@flui-cloud/cli 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +124 -0
- package/bin/run +17 -0
- package/lib/cli/src/background/cluster-worker.d.ts +11 -0
- package/lib/cli/src/background/cluster-worker.js +90 -0
- package/lib/cli/src/cli-providers.module.d.ts +2 -0
- package/lib/cli/src/cli-providers.module.js +118 -0
- package/lib/cli/src/cli.module.d.ts +13 -0
- package/lib/cli/src/cli.module.js +80 -0
- package/lib/cli/src/commands/_diag-oidc.d.ts +6 -0
- package/lib/cli/src/commands/_diag-oidc.js +132 -0
- package/lib/cli/src/commands/app/backup/create.d.ts +20 -0
- package/lib/cli/src/commands/app/backup/create.js +128 -0
- package/lib/cli/src/commands/app/backup/delete.d.ts +19 -0
- package/lib/cli/src/commands/app/backup/delete.js +95 -0
- package/lib/cli/src/commands/app/build.d.ts +17 -0
- package/lib/cli/src/commands/app/build.js +133 -0
- package/lib/cli/src/commands/app/builds.d.ts +14 -0
- package/lib/cli/src/commands/app/builds.js +82 -0
- package/lib/cli/src/commands/app/crash.d.ts +16 -0
- package/lib/cli/src/commands/app/crash.js +106 -0
- package/lib/cli/src/commands/app/crashes.d.ts +15 -0
- package/lib/cli/src/commands/app/crashes.js +99 -0
- package/lib/cli/src/commands/app/delete.d.ts +16 -0
- package/lib/cli/src/commands/app/delete.js +149 -0
- package/lib/cli/src/commands/app/image/delete.d.ts +18 -0
- package/lib/cli/src/commands/app/image/delete.js +72 -0
- package/lib/cli/src/commands/app/init.d.ts +40 -0
- package/lib/cli/src/commands/app/init.js +436 -0
- package/lib/cli/src/commands/app/list.d.ts +11 -0
- package/lib/cli/src/commands/app/list.js +84 -0
- package/lib/cli/src/commands/app/logs.d.ts +18 -0
- package/lib/cli/src/commands/app/logs.js +121 -0
- package/lib/cli/src/commands/app/metrics.d.ts +17 -0
- package/lib/cli/src/commands/app/metrics.js +100 -0
- package/lib/cli/src/commands/app/redeploy.d.ts +14 -0
- package/lib/cli/src/commands/app/redeploy.js +60 -0
- package/lib/cli/src/commands/app/releases.d.ts +15 -0
- package/lib/cli/src/commands/app/releases.js +117 -0
- package/lib/cli/src/commands/app/restart.d.ts +12 -0
- package/lib/cli/src/commands/app/restart.js +44 -0
- package/lib/cli/src/commands/app/scale.d.ts +13 -0
- package/lib/cli/src/commands/app/scale.js +58 -0
- package/lib/cli/src/commands/app/snapshot/create.d.ts +14 -0
- package/lib/cli/src/commands/app/snapshot/create.js +85 -0
- package/lib/cli/src/commands/app/snapshot/delete.d.ts +14 -0
- package/lib/cli/src/commands/app/snapshot/delete.js +63 -0
- package/lib/cli/src/commands/app/snapshot/list.d.ts +11 -0
- package/lib/cli/src/commands/app/snapshot/list.js +82 -0
- package/lib/cli/src/commands/app/snapshot/restore.d.ts +15 -0
- package/lib/cli/src/commands/app/snapshot/restore.js +74 -0
- package/lib/cli/src/commands/app/snapshot/swap.d.ts +15 -0
- package/lib/cli/src/commands/app/snapshot/swap.js +68 -0
- package/lib/cli/src/commands/app/start.d.ts +12 -0
- package/lib/cli/src/commands/app/start.js +45 -0
- package/lib/cli/src/commands/app/status.d.ts +15 -0
- package/lib/cli/src/commands/app/status.js +108 -0
- package/lib/cli/src/commands/app/stop.d.ts +12 -0
- package/lib/cli/src/commands/app/stop.js +45 -0
- package/lib/cli/src/commands/app/versions.d.ts +14 -0
- package/lib/cli/src/commands/app/versions.js +80 -0
- package/lib/cli/src/commands/auth/generate-api-key.d.ts +12 -0
- package/lib/cli/src/commands/auth/generate-api-key.js +90 -0
- package/lib/cli/src/commands/auth/login.d.ts +11 -0
- package/lib/cli/src/commands/auth/login.js +296 -0
- package/lib/cli/src/commands/auth/reset-password.d.ts +15 -0
- package/lib/cli/src/commands/auth/reset-password.js +253 -0
- package/lib/cli/src/commands/backup/destination/create.d.ts +22 -0
- package/lib/cli/src/commands/backup/destination/create.js +102 -0
- package/lib/cli/src/commands/backup/destination/delete.d.ts +11 -0
- package/lib/cli/src/commands/backup/destination/delete.js +46 -0
- package/lib/cli/src/commands/backup/destination/list.d.ts +9 -0
- package/lib/cli/src/commands/backup/destination/list.js +42 -0
- package/lib/cli/src/commands/backup/destination/show.d.ts +11 -0
- package/lib/cli/src/commands/backup/destination/show.js +45 -0
- package/lib/cli/src/commands/backup/destination/test.d.ts +8 -0
- package/lib/cli/src/commands/backup/destination/test.js +39 -0
- package/lib/cli/src/commands/backup/job/list.d.ts +9 -0
- package/lib/cli/src/commands/backup/job/list.js +38 -0
- package/lib/cli/src/commands/backup/job/run.d.ts +8 -0
- package/lib/cli/src/commands/backup/job/run.js +32 -0
- package/lib/cli/src/commands/backup/job/show.d.ts +11 -0
- package/lib/cli/src/commands/backup/job/show.js +38 -0
- package/lib/cli/src/commands/backup/policy/create.d.ts +21 -0
- package/lib/cli/src/commands/backup/policy/create.js +97 -0
- package/lib/cli/src/commands/backup/policy/delete.d.ts +11 -0
- package/lib/cli/src/commands/backup/policy/delete.js +42 -0
- package/lib/cli/src/commands/backup/policy/list.d.ts +9 -0
- package/lib/cli/src/commands/backup/policy/list.js +40 -0
- package/lib/cli/src/commands/backup/policy/show.d.ts +11 -0
- package/lib/cli/src/commands/backup/policy/show.js +45 -0
- package/lib/cli/src/commands/backup/restore/create.d.ts +14 -0
- package/lib/cli/src/commands/backup/restore/create.js +68 -0
- package/lib/cli/src/commands/backup/restore/list.d.ts +8 -0
- package/lib/cli/src/commands/backup/restore/list.js +33 -0
- package/lib/cli/src/commands/backup/restore/preview.d.ts +9 -0
- package/lib/cli/src/commands/backup/restore/preview.js +29 -0
- package/lib/cli/src/commands/backup/restore/show.d.ts +11 -0
- package/lib/cli/src/commands/backup/restore/show.js +40 -0
- package/lib/cli/src/commands/catalog/validate.d.ts +14 -0
- package/lib/cli/src/commands/catalog/validate.js +155 -0
- package/lib/cli/src/commands/cluster/destroy.d.ts +15 -0
- package/lib/cli/src/commands/cluster/destroy.js +137 -0
- package/lib/cli/src/commands/config/get.d.ts +9 -0
- package/lib/cli/src/commands/config/get.js +47 -0
- package/lib/cli/src/commands/config/list.d.ts +15 -0
- package/lib/cli/src/commands/config/list.js +109 -0
- package/lib/cli/src/commands/config/remove.d.ts +12 -0
- package/lib/cli/src/commands/config/remove.js +92 -0
- package/lib/cli/src/commands/config/set.d.ts +15 -0
- package/lib/cli/src/commands/config/set.js +152 -0
- package/lib/cli/src/commands/config/show.d.ts +6 -0
- package/lib/cli/src/commands/config/show.js +15 -0
- package/lib/cli/src/commands/context/create.d.ts +12 -0
- package/lib/cli/src/commands/context/create.js +46 -0
- package/lib/cli/src/commands/context/delete.d.ts +12 -0
- package/lib/cli/src/commands/context/delete.js +53 -0
- package/lib/cli/src/commands/context/list.d.ts +6 -0
- package/lib/cli/src/commands/context/list.js +29 -0
- package/lib/cli/src/commands/context/show.d.ts +6 -0
- package/lib/cli/src/commands/context/show.js +12 -0
- package/lib/cli/src/commands/context/use.d.ts +9 -0
- package/lib/cli/src/commands/context/use.js +30 -0
- package/lib/cli/src/commands/deploy.d.ts +49 -0
- package/lib/cli/src/commands/deploy.js +542 -0
- package/lib/cli/src/commands/dev/creds.d.ts +19 -0
- package/lib/cli/src/commands/dev/creds.js +290 -0
- package/lib/cli/src/commands/dev/tunnel.d.ts +15 -0
- package/lib/cli/src/commands/dev/tunnel.js +268 -0
- package/lib/cli/src/commands/dns/cleanup.d.ts +11 -0
- package/lib/cli/src/commands/dns/cleanup.js +93 -0
- package/lib/cli/src/commands/env/capacity.d.ts +12 -0
- package/lib/cli/src/commands/env/capacity.js +177 -0
- package/lib/cli/src/commands/env/create.d.ts +21 -0
- package/lib/cli/src/commands/env/create.js +721 -0
- package/lib/cli/src/commands/env/credentials.d.ts +21 -0
- package/lib/cli/src/commands/env/credentials.js +435 -0
- package/lib/cli/src/commands/env/destroy.d.ts +9 -0
- package/lib/cli/src/commands/env/destroy.js +145 -0
- package/lib/cli/src/commands/env/diag-ca.d.ts +14 -0
- package/lib/cli/src/commands/env/diag-ca.js +192 -0
- package/lib/cli/src/commands/env/export-config.d.ts +39 -0
- package/lib/cli/src/commands/env/export-config.js +386 -0
- package/lib/cli/src/commands/env/force-ready.d.ts +10 -0
- package/lib/cli/src/commands/env/force-ready.js +222 -0
- package/lib/cli/src/commands/env/inspect.d.ts +12 -0
- package/lib/cli/src/commands/env/inspect.js +192 -0
- package/lib/cli/src/commands/env/kubectl.d.ts +9 -0
- package/lib/cli/src/commands/env/kubectl.js +33 -0
- package/lib/cli/src/commands/env/logs.d.ts +12 -0
- package/lib/cli/src/commands/env/logs.js +136 -0
- package/lib/cli/src/commands/env/orphan-volumes.d.ts +11 -0
- package/lib/cli/src/commands/env/orphan-volumes.js +153 -0
- package/lib/cli/src/commands/env/refresh-kubeconfig.d.ts +6 -0
- package/lib/cli/src/commands/env/refresh-kubeconfig.js +66 -0
- package/lib/cli/src/commands/env/repair-ssh-ca.d.ts +11 -0
- package/lib/cli/src/commands/env/repair-ssh-ca.js +137 -0
- package/lib/cli/src/commands/env/restart.d.ts +10 -0
- package/lib/cli/src/commands/env/restart.js +187 -0
- package/lib/cli/src/commands/env/scale-master.d.ts +11 -0
- package/lib/cli/src/commands/env/scale-master.js +160 -0
- package/lib/cli/src/commands/env/scale-node.d.ts +14 -0
- package/lib/cli/src/commands/env/scale-node.js +139 -0
- package/lib/cli/src/commands/env/status.d.ts +10 -0
- package/lib/cli/src/commands/env/status.js +182 -0
- package/lib/cli/src/commands/env/stop.d.ts +6 -0
- package/lib/cli/src/commands/env/stop.js +147 -0
- package/lib/cli/src/commands/env/storage-expand.d.ts +10 -0
- package/lib/cli/src/commands/env/storage-expand.js +124 -0
- package/lib/cli/src/commands/env/storage.d.ts +8 -0
- package/lib/cli/src/commands/env/storage.js +92 -0
- package/lib/cli/src/commands/env/sync.d.ts +17 -0
- package/lib/cli/src/commands/env/sync.js +225 -0
- package/lib/cli/src/commands/env/uncordon.d.ts +9 -0
- package/lib/cli/src/commands/env/uncordon.js +73 -0
- package/lib/cli/src/commands/env/update-firewall.d.ts +9 -0
- package/lib/cli/src/commands/env/update-firewall.js +185 -0
- package/lib/cli/src/commands/integration/connect.d.ts +13 -0
- package/lib/cli/src/commands/integration/connect.js +161 -0
- package/lib/cli/src/commands/integration/ghcr-pat/revoke.d.ts +9 -0
- package/lib/cli/src/commands/integration/ghcr-pat/revoke.js +61 -0
- package/lib/cli/src/commands/integration/ghcr-pat/set.d.ts +12 -0
- package/lib/cli/src/commands/integration/ghcr-pat/set.js +141 -0
- package/lib/cli/src/commands/integration/ghcr-pat/status.d.ts +6 -0
- package/lib/cli/src/commands/integration/ghcr-pat/status.js +69 -0
- package/lib/cli/src/commands/integration/installations.d.ts +6 -0
- package/lib/cli/src/commands/integration/installations.js +45 -0
- package/lib/cli/src/commands/integration/list.d.ts +8 -0
- package/lib/cli/src/commands/integration/list.js +67 -0
- package/lib/cli/src/commands/integration/remove-installation.d.ts +12 -0
- package/lib/cli/src/commands/integration/remove-installation.js +71 -0
- package/lib/cli/src/commands/integration/setup-github-app.d.ts +10 -0
- package/lib/cli/src/commands/integration/setup-github-app.js +162 -0
- package/lib/cli/src/commands/node/add.d.ts +11 -0
- package/lib/cli/src/commands/node/add.js +103 -0
- package/lib/cli/src/commands/node/list.d.ts +11 -0
- package/lib/cli/src/commands/node/list.js +83 -0
- package/lib/cli/src/commands/node/remove.d.ts +16 -0
- package/lib/cli/src/commands/node/remove.js +161 -0
- package/lib/cli/src/commands/reconcile.d.ts +19 -0
- package/lib/cli/src/commands/reconcile.js +171 -0
- package/lib/cli/src/commands/repo/connect.d.ts +12 -0
- package/lib/cli/src/commands/repo/connect.js +133 -0
- package/lib/cli/src/commands/repo/disconnect.d.ts +12 -0
- package/lib/cli/src/commands/repo/disconnect.js +73 -0
- package/lib/cli/src/commands/repo/list.d.ts +9 -0
- package/lib/cli/src/commands/repo/list.js +66 -0
- package/lib/cli/src/commands/server-types/list.d.ts +12 -0
- package/lib/cli/src/commands/server-types/list.js +205 -0
- package/lib/cli/src/commands/ssh.d.ts +9 -0
- package/lib/cli/src/commands/ssh.js +94 -0
- package/lib/cli/src/commands/standalone/install.d.ts +27 -0
- package/lib/cli/src/commands/standalone/install.js +330 -0
- package/lib/cli/src/commands/template/use.d.ts +16 -0
- package/lib/cli/src/commands/template/use.js +111 -0
- package/lib/cli/src/commands/update.d.ts +6 -0
- package/lib/cli/src/commands/update.js +87 -0
- package/lib/cli/src/config/bootstrap.config.d.ts +37 -0
- package/lib/cli/src/config/bootstrap.config.js +33 -0
- package/lib/cli/src/config/defaults.d.ts +46 -0
- package/lib/cli/src/config/defaults.js +79 -0
- package/lib/cli/src/config/key-router.d.ts +22 -0
- package/lib/cli/src/config/key-router.js +45 -0
- package/lib/cli/src/config/preferences-echo.d.ts +9 -0
- package/lib/cli/src/config/preferences-echo.js +61 -0
- package/lib/cli/src/config/preferences-resolver.d.ts +43 -0
- package/lib/cli/src/config/preferences-resolver.js +100 -0
- package/lib/cli/src/config/preferences-schema.d.ts +32 -0
- package/lib/cli/src/config/preferences-schema.js +53 -0
- package/lib/cli/src/hooks/command_not_found.d.ts +3 -0
- package/lib/cli/src/hooks/command_not_found.js +44 -0
- package/lib/cli/src/lib/api-client.d.ts +58 -0
- package/lib/cli/src/lib/api-client.js +162 -0
- package/lib/cli/src/lib/backup-client.d.ts +131 -0
- package/lib/cli/src/lib/backup-client.js +78 -0
- package/lib/cli/src/lib/browser-callback.d.ts +3 -0
- package/lib/cli/src/lib/browser-callback.js +83 -0
- package/lib/cli/src/lib/byos-precheck.d.ts +29 -0
- package/lib/cli/src/lib/byos-precheck.js +162 -0
- package/lib/cli/src/lib/ca-utils.d.ts +13 -0
- package/lib/cli/src/lib/ca-utils.js +72 -0
- package/lib/cli/src/lib/cli-credential-provider.service.d.ts +31 -0
- package/lib/cli/src/lib/cli-credential-provider.service.js +86 -0
- package/lib/cli/src/lib/config-storage.d.ts +128 -0
- package/lib/cli/src/lib/config-storage.js +349 -0
- package/lib/cli/src/lib/config.d.ts +23 -0
- package/lib/cli/src/lib/config.js +113 -0
- package/lib/cli/src/lib/context-banner.d.ts +12 -0
- package/lib/cli/src/lib/context-banner.js +25 -0
- package/lib/cli/src/lib/format-bytes.d.ts +1 -0
- package/lib/cli/src/lib/format-bytes.js +18 -0
- package/lib/cli/src/lib/framework-detector.d.ts +12 -0
- package/lib/cli/src/lib/framework-detector.js +216 -0
- package/lib/cli/src/lib/framework-postchecks.d.ts +11 -0
- package/lib/cli/src/lib/framework-postchecks.js +152 -0
- package/lib/cli/src/lib/nest-app.d.ts +17 -0
- package/lib/cli/src/lib/nest-app.js +69 -0
- package/lib/cli/src/lib/nip-base-domain.util.d.ts +8 -0
- package/lib/cli/src/lib/nip-base-domain.util.js +17 -0
- package/lib/cli/src/lib/profile-manager.d.ts +56 -0
- package/lib/cli/src/lib/profile-manager.js +207 -0
- package/lib/cli/src/lib/prompts.d.ts +67 -0
- package/lib/cli/src/lib/prompts.js +475 -0
- package/lib/cli/src/lib/provider-credential-schemas.d.ts +29 -0
- package/lib/cli/src/lib/provider-credential-schemas.js +48 -0
- package/lib/cli/src/lib/repositories/cli-cluster.repository.d.ts +56 -0
- package/lib/cli/src/lib/repositories/cli-cluster.repository.js +216 -0
- package/lib/cli/src/lib/repositories/cli-firewall.repository.d.ts +13 -0
- package/lib/cli/src/lib/repositories/cli-firewall.repository.js +147 -0
- package/lib/cli/src/lib/repositories/cli-node.repository.d.ts +26 -0
- package/lib/cli/src/lib/repositories/cli-node.repository.js +164 -0
- package/lib/cli/src/lib/repositories/cli-operation.repository.d.ts +57 -0
- package/lib/cli/src/lib/repositories/cli-operation.repository.js +226 -0
- package/lib/cli/src/lib/repositories/cli-vnet.repository.d.ts +22 -0
- package/lib/cli/src/lib/repositories/cli-vnet.repository.js +175 -0
- package/lib/cli/src/lib/repositories/index.d.ts +5 -0
- package/lib/cli/src/lib/repositories/index.js +21 -0
- package/lib/cli/src/lib/resolve-cluster.d.ts +16 -0
- package/lib/cli/src/lib/resolve-cluster.js +34 -0
- package/lib/cli/src/lib/scaleway-validator.d.ts +5 -0
- package/lib/cli/src/lib/scaleway-validator.js +87 -0
- package/lib/cli/src/lib/server-utils.d.ts +8 -0
- package/lib/cli/src/lib/server-utils.js +19 -0
- package/lib/cli/src/lib/services/cli-app.service.d.ts +294 -0
- package/lib/cli/src/lib/services/cli-app.service.js +162 -0
- package/lib/cli/src/lib/services/cli-node.service.d.ts +43 -0
- package/lib/cli/src/lib/services/cli-node.service.js +34 -0
- package/lib/cli/src/lib/services/provider-sync.service.d.ts +90 -0
- package/lib/cli/src/lib/services/provider-sync.service.js +178 -0
- package/lib/cli/src/lib/services/reconciliation.service.d.ts +40 -0
- package/lib/cli/src/lib/services/reconciliation.service.js +119 -0
- package/lib/cli/src/lib/services/vnet-provisioning.service.d.ts +37 -0
- package/lib/cli/src/lib/services/vnet-provisioning.service.js +164 -0
- package/lib/cli/src/lib/ssh-key.d.ts +23 -0
- package/lib/cli/src/lib/ssh-key.js +126 -0
- package/lib/cli/src/lib/template-fetcher.d.ts +25 -0
- package/lib/cli/src/lib/template-fetcher.js +48 -0
- package/lib/cli/src/lib/templates/firewall-rules.d.ts +8 -0
- package/lib/cli/src/lib/templates/firewall-rules.js +17 -0
- package/lib/cli/src/lib/typeorm-shim.d.ts +12 -0
- package/lib/cli/src/lib/typeorm-shim.js +17 -0
- package/lib/cli/src/lib/utils/env-file.d.ts +2 -0
- package/lib/cli/src/lib/utils/env-file.js +40 -0
- package/lib/cli/src/lib/utils/ip-detection.d.ts +27 -0
- package/lib/cli/src/lib/utils/ip-detection.js +144 -0
- package/lib/cli/src/modules/cli-infrastructure.module.d.ts +14 -0
- package/lib/cli/src/modules/cli-infrastructure.module.js +249 -0
- package/lib/cli/src/services/cli-ca.service.d.ts +62 -0
- package/lib/cli/src/services/cli-ca.service.js +281 -0
- package/lib/cli/src/services/cli-cluster-creator.service.d.ts +78 -0
- package/lib/cli/src/services/cli-cluster-creator.service.js +655 -0
- package/lib/cli/src/services/cli-clusters.service.d.ts +74 -0
- package/lib/cli/src/services/cli-clusters.service.js +762 -0
- package/lib/cli/src/services/cli-endpoint-resolver.service.d.ts +33 -0
- package/lib/cli/src/services/cli-endpoint-resolver.service.js +195 -0
- package/lib/cli/src/services/cli-k3s-script.service.d.ts +114 -0
- package/lib/cli/src/services/cli-k3s-script.service.js +288 -0
- package/lib/cli/src/services/cli-logger.service.d.ts +56 -0
- package/lib/cli/src/services/cli-logger.service.js +188 -0
- package/lib/cli/src/services/cli-observability-cluster.service.d.ts +128 -0
- package/lib/cli/src/services/cli-observability-cluster.service.js +525 -0
- package/lib/cli/src/services/cli-ssh.service.d.ts +90 -0
- package/lib/cli/src/services/cli-ssh.service.js +457 -0
- package/lib/cli/src/services/server-type-cache.service.d.ts +34 -0
- package/lib/cli/src/services/server-type-cache.service.js +156 -0
- package/lib/cli/src/services/server-type-validator.service.d.ts +80 -0
- package/lib/cli/src/services/server-type-validator.service.js +366 -0
- package/lib/cli/src/types/index.d.ts +41 -0
- package/lib/cli/src/types/index.js +2 -0
- package/lib/src/common/utils/project-root.util.d.ts +22 -0
- package/lib/src/common/utils/project-root.util.js +78 -0
- package/lib/src/modules/access/access.controller.d.ts +30 -0
- package/lib/src/modules/access/access.controller.js +336 -0
- package/lib/src/modules/access/access.module.d.ts +2 -0
- package/lib/src/modules/access/access.module.js +92 -0
- package/lib/src/modules/access/controllers/ca.controller.d.ts +22 -0
- package/lib/src/modules/access/controllers/ca.controller.js +242 -0
- package/lib/src/modules/access/dto/api-token.dto.d.ts +11 -0
- package/lib/src/modules/access/dto/api-token.dto.js +74 -0
- package/lib/src/modules/access/dto/bearer-token.dto.d.ts +7 -0
- package/lib/src/modules/access/dto/bearer-token.dto.js +36 -0
- package/lib/src/modules/access/dto/ca-public-key.dto.d.ts +7 -0
- package/lib/src/modules/access/dto/ca-public-key.dto.js +52 -0
- package/lib/src/modules/access/dto/create-api-token.dto.d.ts +7 -0
- package/lib/src/modules/access/dto/create-api-token.dto.js +64 -0
- package/lib/src/modules/access/dto/create-bearer-token.dto.d.ts +9 -0
- package/lib/src/modules/access/dto/create-bearer-token.dto.js +58 -0
- package/lib/src/modules/access/dto/create-ssh-key.dto.d.ts +7 -0
- package/lib/src/modules/access/dto/create-ssh-key.dto.js +61 -0
- package/lib/src/modules/access/dto/refresh-token.dto.d.ts +7 -0
- package/lib/src/modules/access/dto/refresh-token.dto.js +46 -0
- package/lib/src/modules/access/dto/register-ca.dto.d.ts +16 -0
- package/lib/src/modules/access/dto/register-ca.dto.js +111 -0
- package/lib/src/modules/access/dto/ssh-key.dto.d.ts +20 -0
- package/lib/src/modules/access/dto/ssh-key.dto.js +124 -0
- package/lib/src/modules/access/dto/update-ssh-key.dto.d.ts +7 -0
- package/lib/src/modules/access/dto/update-ssh-key.dto.js +73 -0
- package/lib/src/modules/access/entities/api-token.entity.d.ts +30 -0
- package/lib/src/modules/access/entities/api-token.entity.js +87 -0
- package/lib/src/modules/access/entities/ca-keypair.entity.d.ts +13 -0
- package/lib/src/modules/access/entities/ca-keypair.entity.js +63 -0
- package/lib/src/modules/access/entities/credentials.entity.d.ts +18 -0
- package/lib/src/modules/access/entities/credentials.entity.js +87 -0
- package/lib/src/modules/access/entities/ssh-key.entity.d.ts +15 -0
- package/lib/src/modules/access/entities/ssh-key.entity.js +81 -0
- package/lib/src/modules/access/enums/credential-purpose.enum.d.ts +4 -0
- package/lib/src/modules/access/enums/credential-purpose.enum.js +8 -0
- package/lib/src/modules/access/interfaces/access.repository.d.ts +11 -0
- package/lib/src/modules/access/interfaces/access.repository.js +2 -0
- package/lib/src/modules/access/interfaces/ssh-key.interface.d.ts +26 -0
- package/lib/src/modules/access/interfaces/ssh-key.interface.js +2 -0
- package/lib/src/modules/access/mapper/api-token.mapper.d.ts +6 -0
- package/lib/src/modules/access/mapper/api-token.mapper.js +21 -0
- package/lib/src/modules/access/mapper/ssh-key.mapper.d.ts +6 -0
- package/lib/src/modules/access/mapper/ssh-key.mapper.js +25 -0
- package/lib/src/modules/access/providers/contabo-ssh-provider.service.d.ts +13 -0
- package/lib/src/modules/access/providers/contabo-ssh-provider.service.js +40 -0
- package/lib/src/modules/access/providers/hetzner-ssh-provider.service.d.ts +17 -0
- package/lib/src/modules/access/providers/hetzner-ssh-provider.service.js +95 -0
- package/lib/src/modules/access/providers/interfaces/ssh-provider.interface.d.ts +8 -0
- package/lib/src/modules/access/providers/interfaces/ssh-provider.interface.js +3 -0
- package/lib/src/modules/access/providers/ssh-provider.factory.d.ts +13 -0
- package/lib/src/modules/access/providers/ssh-provider.factory.js +44 -0
- package/lib/src/modules/access/repositories/api-token.repository.d.ts +24 -0
- package/lib/src/modules/access/repositories/api-token.repository.js +99 -0
- package/lib/src/modules/access/repositories/default-access.repository.d.ts +16 -0
- package/lib/src/modules/access/repositories/default-access.repository.js +121 -0
- package/lib/src/modules/access/repositories/provider-credentials.repository.d.ts +17 -0
- package/lib/src/modules/access/repositories/provider-credentials.repository.js +106 -0
- package/lib/src/modules/access/services/access.service.d.ts +180 -0
- package/lib/src/modules/access/services/access.service.js +732 -0
- package/lib/src/modules/access/services/bearerToken.service.d.ts +15 -0
- package/lib/src/modules/access/services/bearerToken.service.js +107 -0
- package/lib/src/modules/access/services/ca-manager.service.d.ts +48 -0
- package/lib/src/modules/access/services/ca-manager.service.js +293 -0
- package/lib/src/modules/access/services/certificate-signer.service.d.ts +36 -0
- package/lib/src/modules/access/services/certificate-signer.service.js +155 -0
- package/lib/src/modules/access/services/key-storage.service.d.ts +17 -0
- package/lib/src/modules/access/services/key-storage.service.js +133 -0
- package/lib/src/modules/access/services/ssh-key-generator.service.d.ts +6 -0
- package/lib/src/modules/access/services/ssh-key-generator.service.js +51 -0
- package/lib/src/modules/app-builds/entities/app-build.entity.d.ts +38 -0
- package/lib/src/modules/app-builds/entities/app-build.entity.js +168 -0
- package/lib/src/modules/app-builds/enums/app-build-status.enum.d.ts +10 -0
- package/lib/src/modules/app-builds/enums/app-build-status.enum.js +14 -0
- package/lib/src/modules/app-builds/enums/build-provider.enum.d.ts +6 -0
- package/lib/src/modules/app-builds/enums/build-provider.enum.js +10 -0
- package/lib/src/modules/app-builds/services/build-job.service.d.ts +178 -0
- package/lib/src/modules/app-builds/services/build-job.service.js +1057 -0
- package/lib/src/modules/applications/entities/app-resource.entity.d.ts +24 -0
- package/lib/src/modules/applications/entities/app-resource.entity.js +117 -0
- package/lib/src/modules/applications/entities/app-revision.entity.d.ts +29 -0
- package/lib/src/modules/applications/entities/app-revision.entity.js +133 -0
- package/lib/src/modules/applications/entities/application.entity.d.ts +121 -0
- package/lib/src/modules/applications/entities/application.entity.js +279 -0
- package/lib/src/modules/applications/enums/app-event-type.enum.d.ts +24 -0
- package/lib/src/modules/applications/enums/app-event-type.enum.js +28 -0
- package/lib/src/modules/applications/enums/application-category.enum.d.ts +4 -0
- package/lib/src/modules/applications/enums/application-category.enum.js +8 -0
- package/lib/src/modules/applications/enums/application-exposure.enum.d.ts +4 -0
- package/lib/src/modules/applications/enums/application-exposure.enum.js +8 -0
- package/lib/src/modules/applications/enums/application-kind.enum.d.ts +6 -0
- package/lib/src/modules/applications/enums/application-kind.enum.js +10 -0
- package/lib/src/modules/applications/enums/application-resource-kind.enum.d.ts +17 -0
- package/lib/src/modules/applications/enums/application-resource-kind.enum.js +21 -0
- package/lib/src/modules/applications/enums/application-resource-status.enum.d.ts +8 -0
- package/lib/src/modules/applications/enums/application-resource-status.enum.js +12 -0
- package/lib/src/modules/applications/enums/application-source-type.enum.d.ts +6 -0
- package/lib/src/modules/applications/enums/application-source-type.enum.js +10 -0
- package/lib/src/modules/applications/enums/application-status.enum.d.ts +20 -0
- package/lib/src/modules/applications/enums/application-status.enum.js +24 -0
- package/lib/src/modules/applications/interfaces/source-config.interface.d.ts +132 -0
- package/lib/src/modules/applications/interfaces/source-config.interface.js +2 -0
- package/lib/src/modules/auth/decorators/admin.decorator.d.ts +2 -0
- package/lib/src/modules/auth/decorators/admin.decorator.js +7 -0
- package/lib/src/modules/auth/entities/user.entity.d.ts +19 -0
- package/lib/src/modules/auth/entities/user.entity.js +78 -0
- package/lib/src/modules/auth/guards/admin.guard.d.ts +7 -0
- package/lib/src/modules/auth/guards/admin.guard.js +50 -0
- package/lib/src/modules/auth/interfaces/authenticated-user.interface.d.ts +12 -0
- package/lib/src/modules/auth/interfaces/authenticated-user.interface.js +2 -0
- package/lib/src/modules/common/cache/cache.service.d.ts +77 -0
- package/lib/src/modules/common/cache/cache.service.js +232 -0
- package/lib/src/modules/common/cache/cache.tokens.d.ts +1 -0
- package/lib/src/modules/common/cache/cache.tokens.js +4 -0
- package/lib/src/modules/common/cache/enums/cache-category.enum.d.ts +33 -0
- package/lib/src/modules/common/cache/enums/cache-category.enum.js +42 -0
- package/lib/src/modules/common/common.module.d.ts +2 -0
- package/lib/src/modules/common/common.module.js +20 -0
- package/lib/src/modules/common/dto/async-operation-response.dto.d.ts +19 -0
- package/lib/src/modules/common/dto/async-operation-response.dto.js +65 -0
- package/lib/src/modules/common/dto/index.d.ts +1 -0
- package/lib/src/modules/common/dto/index.js +17 -0
- package/lib/src/modules/common/services/label.service.d.ts +70 -0
- package/lib/src/modules/common/services/label.service.js +128 -0
- package/lib/src/modules/dns/entities/app-endpoint.entity.d.ts +57 -0
- package/lib/src/modules/dns/entities/app-endpoint.entity.js +205 -0
- package/lib/src/modules/dns/entities/cluster-dns-zone.entity.d.ts +21 -0
- package/lib/src/modules/dns/entities/cluster-dns-zone.entity.js +88 -0
- package/lib/src/modules/dns/entities/dns-zone.entity.d.ts +12 -0
- package/lib/src/modules/dns/entities/dns-zone.entity.js +53 -0
- package/lib/src/modules/dns/entities/san-certificate.entity.d.ts +29 -0
- package/lib/src/modules/dns/entities/san-certificate.entity.js +132 -0
- package/lib/src/modules/dns/entities/wildcard-certificate.entity.d.ts +26 -0
- package/lib/src/modules/dns/entities/wildcard-certificate.entity.js +111 -0
- package/lib/src/modules/dns/enums/cert-challenge.enum.d.ts +4 -0
- package/lib/src/modules/dns/enums/cert-challenge.enum.js +8 -0
- package/lib/src/modules/dns/enums/endpoint-type.enum.d.ts +4 -0
- package/lib/src/modules/dns/enums/endpoint-type.enum.js +8 -0
- package/lib/src/modules/dns/enums/hostname-mode.enum.d.ts +4 -0
- package/lib/src/modules/dns/enums/hostname-mode.enum.js +8 -0
- package/lib/src/modules/dns/services/cluster-dns-cleanup.service.d.ts +12 -0
- package/lib/src/modules/dns/services/cluster-dns-cleanup.service.js +79 -0
- package/lib/src/modules/dns/utils/nip-hostname.util.d.ts +12 -0
- package/lib/src/modules/dns/utils/nip-hostname.util.js +27 -0
- package/lib/src/modules/dns/utils/nip-token.util.d.ts +2 -0
- package/lib/src/modules/dns/utils/nip-token.util.js +94 -0
- package/lib/src/modules/frameworks/framework-core/enums/build-stage.enum.d.ts +21 -0
- package/lib/src/modules/frameworks/framework-core/enums/build-stage.enum.js +29 -0
- package/lib/src/modules/frameworks/framework-core/enums/deploy-strategy.enum.d.ts +22 -0
- package/lib/src/modules/frameworks/framework-core/enums/deploy-strategy.enum.js +26 -0
- package/lib/src/modules/frameworks/framework-core/enums/framework-type.enum.d.ts +32 -0
- package/lib/src/modules/frameworks/framework-core/enums/framework-type.enum.js +47 -0
- package/lib/src/modules/grafana/services/grafana-config.service.d.ts +43 -0
- package/lib/src/modules/grafana/services/grafana-config.service.js +177 -0
- package/lib/src/modules/grafana/services/grafana-datasource.service.d.ts +70 -0
- package/lib/src/modules/grafana/services/grafana-datasource.service.js +333 -0
- package/lib/src/modules/infrastructure/clusters/clusters.service.d.ts +126 -0
- package/lib/src/modules/infrastructure/clusters/clusters.service.js +265 -0
- package/lib/src/modules/infrastructure/clusters/constants/storage-conventions.d.ts +60 -0
- package/lib/src/modules/infrastructure/clusters/constants/storage-conventions.js +64 -0
- package/lib/src/modules/infrastructure/clusters/dto/build-resources.dto.d.ts +19 -0
- package/lib/src/modules/infrastructure/clusters/dto/build-resources.dto.js +69 -0
- package/lib/src/modules/infrastructure/clusters/dto/cluster-capacity-plan.dto.d.ts +36 -0
- package/lib/src/modules/infrastructure/clusters/dto/cluster-capacity-plan.dto.js +149 -0
- package/lib/src/modules/infrastructure/clusters/dto/cluster-power-management.dto.d.ts +51 -0
- package/lib/src/modules/infrastructure/clusters/dto/cluster-power-management.dto.js +222 -0
- package/lib/src/modules/infrastructure/clusters/dto/cluster-response.dto.d.ts +42 -0
- package/lib/src/modules/infrastructure/clusters/dto/cluster-response.dto.js +238 -0
- package/lib/src/modules/infrastructure/clusters/dto/cluster-storage.dto.d.ts +35 -0
- package/lib/src/modules/infrastructure/clusters/dto/cluster-storage.dto.js +122 -0
- package/lib/src/modules/infrastructure/clusters/dto/create-cluster.dto.d.ts +43 -0
- package/lib/src/modules/infrastructure/clusters/dto/create-cluster.dto.js +334 -0
- package/lib/src/modules/infrastructure/clusters/dto/register-cluster.dto.d.ts +30 -0
- package/lib/src/modules/infrastructure/clusters/dto/register-cluster.dto.js +190 -0
- package/lib/src/modules/infrastructure/clusters/dto/resource-availability.dto.d.ts +15 -0
- package/lib/src/modules/infrastructure/clusters/dto/resource-availability.dto.js +91 -0
- package/lib/src/modules/infrastructure/clusters/entities/cluster-node.entity.d.ts +28 -0
- package/lib/src/modules/infrastructure/clusters/entities/cluster-node.entity.js +104 -0
- package/lib/src/modules/infrastructure/clusters/entities/cluster.entity.d.ts +64 -0
- package/lib/src/modules/infrastructure/clusters/entities/cluster.entity.js +199 -0
- package/lib/src/modules/infrastructure/clusters/entities/node-billable-interval.entity.d.ts +17 -0
- package/lib/src/modules/infrastructure/clusters/entities/node-billable-interval.entity.js +86 -0
- package/lib/src/modules/infrastructure/clusters/entities/volume-billable-interval.entity.d.ts +18 -0
- package/lib/src/modules/infrastructure/clusters/entities/volume-billable-interval.entity.js +79 -0
- package/lib/src/modules/infrastructure/clusters/services/billing-intervals.service.d.ts +48 -0
- package/lib/src/modules/infrastructure/clusters/services/billing-intervals.service.js +159 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-capacity.service.d.ts +23 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-capacity.service.js +198 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-creation.service.d.ts +25 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-creation.service.js +192 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-deletion.service.d.ts +36 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-deletion.service.js +159 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-firewall-integration.service.d.ts +25 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-firewall-integration.service.js +90 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-mapper.service.d.ts +15 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-mapper.service.js +63 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-node-scaling.service.d.ts +78 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-node-scaling.service.js +644 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-operations.service.d.ts +37 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-operations.service.js +244 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-power-management.service.d.ts +68 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-power-management.service.js +716 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-storage.service.d.ts +15 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-storage.service.js +179 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-validation.service.d.ts +29 -0
- package/lib/src/modules/infrastructure/clusters/services/cluster-validation.service.js +100 -0
- package/lib/src/modules/infrastructure/firewalls/dto/cluster-firewall.dto.d.ts +62 -0
- package/lib/src/modules/infrastructure/firewalls/dto/cluster-firewall.dto.js +252 -0
- package/lib/src/modules/infrastructure/firewalls/entities/cluster-firewall.entity.d.ts +20 -0
- package/lib/src/modules/infrastructure/firewalls/entities/cluster-firewall.entity.js +83 -0
- package/lib/src/modules/infrastructure/firewalls/services/firewall-desired-state.service.d.ts +73 -0
- package/lib/src/modules/infrastructure/firewalls/services/firewall-desired-state.service.js +329 -0
- package/lib/src/modules/infrastructure/firewalls/services/firewall-reconciliation.service.d.ts +43 -0
- package/lib/src/modules/infrastructure/firewalls/services/firewall-reconciliation.service.js +212 -0
- package/lib/src/modules/infrastructure/firewalls/templates/firewall-rules.template.d.ts +54 -0
- package/lib/src/modules/infrastructure/firewalls/templates/firewall-rules.template.js +167 -0
- package/lib/src/modules/infrastructure/operations/helpers/operation-steps.helper.d.ts +34 -0
- package/lib/src/modules/infrastructure/operations/helpers/operation-steps.helper.js +401 -0
- package/lib/src/modules/infrastructure/servers/dto/create-server.dto.d.ts +40 -0
- package/lib/src/modules/infrastructure/servers/dto/create-server.dto.js +157 -0
- package/lib/src/modules/infrastructure/servers/dto/delete-server.dto.d.ts +17 -0
- package/lib/src/modules/infrastructure/servers/dto/delete-server.dto.js +85 -0
- package/lib/src/modules/infrastructure/servers/dto/server-response.dto.d.ts +29 -0
- package/lib/src/modules/infrastructure/servers/dto/server-response.dto.js +147 -0
- package/lib/src/modules/infrastructure/servers/entities/infrastructure-operations.entity.d.ts +266 -0
- package/lib/src/modules/infrastructure/servers/entities/infrastructure-operations.entity.js +348 -0
- package/lib/src/modules/infrastructure/shared/enums/reconciliation-status.enum.d.ts +7 -0
- package/lib/src/modules/infrastructure/shared/enums/reconciliation-status.enum.js +11 -0
- package/lib/src/modules/infrastructure/shared/services/kubernetes.service.d.ts +304 -0
- package/lib/src/modules/infrastructure/shared/services/kubernetes.service.js +1164 -0
- package/lib/src/modules/infrastructure/shared/services/label.service.d.ts +97 -0
- package/lib/src/modules/infrastructure/shared/services/label.service.js +189 -0
- package/lib/src/modules/infrastructure/shared/shared-infrastructure.module.d.ts +2 -0
- package/lib/src/modules/infrastructure/shared/shared-infrastructure.module.js +24 -0
- package/lib/src/modules/infrastructure/vnets/entities/vnet-route.entity.d.ts +10 -0
- package/lib/src/modules/infrastructure/vnets/entities/vnet-route.entity.js +51 -0
- package/lib/src/modules/infrastructure/vnets/entities/vnet-subnet.entity.d.ts +20 -0
- package/lib/src/modules/infrastructure/vnets/entities/vnet-subnet.entity.js +77 -0
- package/lib/src/modules/infrastructure/vnets/entities/vnet.entity.d.ts +28 -0
- package/lib/src/modules/infrastructure/vnets/entities/vnet.entity.js +88 -0
- package/lib/src/modules/instances/entities/instance-status.enum.d.ts +12 -0
- package/lib/src/modules/instances/entities/instance-status.enum.js +16 -0
- package/lib/src/modules/instances/entities/instance-type.enum.d.ts +6 -0
- package/lib/src/modules/instances/entities/instance-type.enum.js +10 -0
- package/lib/src/modules/instances/entities/instance.entity.d.ts +41 -0
- package/lib/src/modules/instances/entities/instance.entity.js +126 -0
- package/lib/src/modules/management/dto/configure-provider.dto.d.ts +8 -0
- package/lib/src/modules/management/dto/configure-provider.dto.js +51 -0
- package/lib/src/modules/management/dto/credentials.dto.d.ts +15 -0
- package/lib/src/modules/management/dto/credentials.dto.js +114 -0
- package/lib/src/modules/management/dto/health-status.dto.d.ts +12 -0
- package/lib/src/modules/management/dto/health-status.dto.js +40 -0
- package/lib/src/modules/management/dto/node-size-option.dto.d.ts +37 -0
- package/lib/src/modules/management/dto/node-size-option.dto.js +178 -0
- package/lib/src/modules/management/dto/pricing-query.dto.d.ts +5 -0
- package/lib/src/modules/management/dto/pricing-query.dto.js +36 -0
- package/lib/src/modules/management/dto/pricing-response.dto.d.ts +21 -0
- package/lib/src/modules/management/dto/pricing-response.dto.js +80 -0
- package/lib/src/modules/management/dto/provider-configuration.dto.d.ts +23 -0
- package/lib/src/modules/management/dto/provider-configuration.dto.js +72 -0
- package/lib/src/modules/management/dto/provider-filters.dto.d.ts +7 -0
- package/lib/src/modules/management/dto/provider-filters.dto.js +45 -0
- package/lib/src/modules/management/dto/validation-result.dto.d.ts +16 -0
- package/lib/src/modules/management/dto/validation-result.dto.js +35 -0
- package/lib/src/modules/management/entities/credentials.entity.d.ts +21 -0
- package/lib/src/modules/management/entities/credentials.entity.js +10 -0
- package/lib/src/modules/management/entities/provider-capabilities.entity.d.ts +85 -0
- package/lib/src/modules/management/entities/provider-capabilities.entity.js +2 -0
- package/lib/src/modules/management/entities/provider-configuration.entity.d.ts +14 -0
- package/lib/src/modules/management/entities/provider-configuration.entity.js +65 -0
- package/lib/src/modules/management/entities/provider-definition.entity.d.ts +19 -0
- package/lib/src/modules/management/entities/provider-definition.entity.js +2 -0
- package/lib/src/modules/management/entities/provider-region.entity.d.ts +11 -0
- package/lib/src/modules/management/entities/provider-region.entity.js +2 -0
- package/lib/src/modules/management/entities/provider-status.enum.d.ts +8 -0
- package/lib/src/modules/management/entities/provider-status.enum.js +12 -0
- package/lib/src/modules/management/interfaces/provider-configuration.repository.interface.d.ts +17 -0
- package/lib/src/modules/management/interfaces/provider-configuration.repository.interface.js +2 -0
- package/lib/src/modules/management/repositories/provider-configuration.repository.d.ts +21 -0
- package/lib/src/modules/management/repositories/provider-configuration.repository.js +89 -0
- package/lib/src/modules/management/services/configuration-mode.service.d.ts +20 -0
- package/lib/src/modules/management/services/configuration-mode.service.js +54 -0
- package/lib/src/modules/management/services/management.service.d.ts +72 -0
- package/lib/src/modules/management/services/management.service.js +546 -0
- package/lib/src/modules/management/services/provider-definitions.service.d.ts +26 -0
- package/lib/src/modules/management/services/provider-definitions.service.js +133 -0
- package/lib/src/modules/providers/controllers/provider-firewalls.controller.d.ts +28 -0
- package/lib/src/modules/providers/controllers/provider-firewalls.controller.js +277 -0
- package/lib/src/modules/providers/core/factories/capabilities-provider.factory.d.ts +10 -0
- package/lib/src/modules/providers/core/factories/capabilities-provider.factory.js +39 -0
- package/lib/src/modules/providers/core/factories/certificate-provider.factory.d.ts +11 -0
- package/lib/src/modules/providers/core/factories/certificate-provider.factory.js +58 -0
- package/lib/src/modules/providers/core/factories/dns-provider.factory.d.ts +12 -0
- package/lib/src/modules/providers/core/factories/dns-provider.factory.js +65 -0
- package/lib/src/modules/providers/core/factories/firewall-provider.factory.d.ts +12 -0
- package/lib/src/modules/providers/core/factories/firewall-provider.factory.js +61 -0
- package/lib/src/modules/providers/core/factories/provider.factory.d.ts +9 -0
- package/lib/src/modules/providers/core/factories/provider.factory.js +47 -0
- package/lib/src/modules/providers/core/factories/vm-backup-provider.factory.d.ts +12 -0
- package/lib/src/modules/providers/core/factories/vm-backup-provider.factory.js +56 -0
- package/lib/src/modules/providers/core/factories/volume-export.factory.d.ts +12 -0
- package/lib/src/modules/providers/core/factories/volume-export.factory.js +56 -0
- package/lib/src/modules/providers/core/interfaces/certificate-provider.interface.d.ts +1 -0
- package/lib/src/modules/providers/core/interfaces/certificate-provider.interface.js +17 -0
- package/lib/src/modules/providers/core/interfaces/cloud-provider.interface.d.ts +1 -0
- package/lib/src/modules/providers/core/interfaces/cloud-provider.interface.js +17 -0
- package/lib/src/modules/providers/core/interfaces/dns-provider.interface.d.ts +1 -0
- package/lib/src/modules/providers/core/interfaces/dns-provider.interface.js +17 -0
- package/lib/src/modules/providers/core/interfaces/firewall-provider.interface.d.ts +1 -0
- package/lib/src/modules/providers/core/interfaces/firewall-provider.interface.js +17 -0
- package/lib/src/modules/providers/core/interfaces/provider-bootstrap-seeder.interface.d.ts +54 -0
- package/lib/src/modules/providers/core/interfaces/provider-bootstrap-seeder.interface.js +2 -0
- package/lib/src/modules/providers/core/tokens.d.ts +59 -0
- package/lib/src/modules/providers/core/tokens.js +19 -0
- package/lib/src/modules/providers/data/region-coordinates.d.ts +6 -0
- package/lib/src/modules/providers/data/region-coordinates.js +25 -0
- package/lib/src/modules/providers/dto/firewall.dto.d.ts +30 -0
- package/lib/src/modules/providers/dto/firewall.dto.js +105 -0
- package/lib/src/modules/providers/dto/node-size.dto.d.ts +46 -0
- package/lib/src/modules/providers/dto/node-size.dto.js +22 -0
- package/lib/src/modules/providers/dto/pricing.dto.d.ts +24 -0
- package/lib/src/modules/providers/dto/pricing.dto.js +19 -0
- package/lib/src/modules/providers/dto/provider-firewall-response.dto.d.ts +28 -0
- package/lib/src/modules/providers/dto/provider-firewall-response.dto.js +134 -0
- package/lib/src/modules/providers/enums/certificate-provider.enum.d.ts +4 -0
- package/lib/src/modules/providers/enums/certificate-provider.enum.js +8 -0
- package/lib/src/modules/providers/enums/cloud-provider.enum.d.ts +5 -0
- package/lib/src/modules/providers/enums/cloud-provider.enum.js +9 -0
- package/lib/src/modules/providers/enums/dns-provider.enum.d.ts +5 -0
- package/lib/src/modules/providers/enums/dns-provider.enum.js +9 -0
- package/lib/src/modules/providers/implementations/contabo/contabo-capabilities.service.d.ts +19 -0
- package/lib/src/modules/providers/implementations/contabo/contabo-capabilities.service.js +254 -0
- package/lib/src/modules/providers/implementations/contabo/contabo-provider.module.d.ts +10 -0
- package/lib/src/modules/providers/implementations/contabo/contabo-provider.module.js +72 -0
- package/lib/src/modules/providers/implementations/contabo/generated/api.d.ts +13374 -0
- package/lib/src/modules/providers/implementations/contabo/generated/api.js +11341 -0
- package/lib/src/modules/providers/implementations/contabo/generated/base.d.ts +66 -0
- package/lib/src/modules/providers/implementations/contabo/generated/base.js +66 -0
- package/lib/src/modules/providers/implementations/contabo/generated/common.d.ts +65 -0
- package/lib/src/modules/providers/implementations/contabo/generated/common.js +152 -0
- package/lib/src/modules/providers/implementations/contabo/generated/configuration.d.ts +91 -0
- package/lib/src/modules/providers/implementations/contabo/generated/configuration.js +50 -0
- package/lib/src/modules/providers/implementations/contabo/generated/index.d.ts +13 -0
- package/lib/src/modules/providers/implementations/contabo/generated/index.js +31 -0
- package/lib/src/modules/providers/implementations/hetzner/generated/api.d.ts +18419 -0
- package/lib/src/modules/providers/implementations/hetzner/generated/api.js +19133 -0
- package/lib/src/modules/providers/implementations/hetzner/generated/base.d.ts +66 -0
- package/lib/src/modules/providers/implementations/hetzner/generated/base.js +66 -0
- package/lib/src/modules/providers/implementations/hetzner/generated/common.d.ts +65 -0
- package/lib/src/modules/providers/implementations/hetzner/generated/common.js +152 -0
- package/lib/src/modules/providers/implementations/hetzner/generated/configuration.d.ts +91 -0
- package/lib/src/modules/providers/implementations/hetzner/generated/configuration.js +50 -0
- package/lib/src/modules/providers/implementations/hetzner/generated/index.d.ts +13 -0
- package/lib/src/modules/providers/implementations/hetzner/generated/index.js +31 -0
- package/lib/src/modules/providers/implementations/hetzner/hetzner-bootstrap-seeder.service.d.ts +19 -0
- package/lib/src/modules/providers/implementations/hetzner/hetzner-bootstrap-seeder.service.js +68 -0
- package/lib/src/modules/providers/implementations/hetzner/hetzner-capabilities.service.d.ts +29 -0
- package/lib/src/modules/providers/implementations/hetzner/hetzner-capabilities.service.js +392 -0
- package/lib/src/modules/providers/implementations/hetzner/hetzner-provider.module.d.ts +2 -0
- package/lib/src/modules/providers/implementations/hetzner/hetzner-provider.module.js +81 -0
- package/lib/src/modules/providers/implementations/hetzner/hetzner-volume-operations.service.d.ts +31 -0
- package/lib/src/modules/providers/implementations/hetzner/hetzner-volume-operations.service.js +312 -0
- package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage-connection.controller.d.ts +18 -0
- package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage-connection.controller.js +67 -0
- package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage-connection.service.d.ts +24 -0
- package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage-connection.service.js +107 -0
- package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.backend.d.ts +7 -0
- package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.backend.js +35 -0
- package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.module.d.ts +8 -0
- package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.module.js +60 -0
- package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.provisioner.d.ts +22 -0
- package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.provisioner.js +100 -0
- package/lib/src/modules/providers/implementations/hetzner/vm-backup/hetzner-vm-backup.service.d.ts +20 -0
- package/lib/src/modules/providers/implementations/hetzner/vm-backup/hetzner-vm-backup.service.js +118 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/api.d.ts +4227 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/api.js +3362 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/base.d.ts +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/base.js +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/common.d.ts +65 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/common.js +152 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/configuration.d.ts +91 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/configuration.js +50 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/index.d.ts +13 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/index.js +31 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/domain/api.d.ts +2486 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/domain/api.js +2424 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/domain/base.d.ts +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/domain/base.js +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/domain/common.d.ts +65 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/domain/common.js +152 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/domain/configuration.d.ts +91 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/domain/configuration.js +50 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/domain/index.d.ts +13 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/domain/index.js +31 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/iam/api.d.ts +6425 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/iam/api.js +6925 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/iam/base.d.ts +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/iam/base.js +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/iam/common.d.ts +65 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/iam/common.js +152 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/iam/configuration.d.ts +91 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/iam/configuration.js +50 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/iam/index.d.ts +13 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/iam/index.js +31 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/instances/api.d.ts +11187 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/instances/api.js +9264 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/instances/base.d.ts +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/instances/base.js +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/instances/common.d.ts +65 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/instances/common.js +152 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/instances/configuration.d.ts +91 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/instances/configuration.js +50 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/instances/index.d.ts +13 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/instances/index.js +31 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/private-network/api.d.ts +492 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/private-network/api.js +531 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/private-network/base.d.ts +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/private-network/base.js +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/private-network/common.d.ts +65 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/private-network/common.js +152 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/private-network/configuration.d.ts +91 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/private-network/configuration.js +50 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/private-network/index.d.ts +13 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/private-network/index.js +31 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/vpc/api.d.ts +2305 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/vpc/api.js +2443 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/vpc/base.d.ts +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/vpc/base.js +66 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/vpc/common.d.ts +65 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/vpc/common.js +152 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/vpc/configuration.d.ts +91 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/vpc/configuration.js +50 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/vpc/index.d.ts +13 -0
- package/lib/src/modules/providers/implementations/scaleway/generated/vpc/index.js +31 -0
- package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.backend.d.ts +8 -0
- package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.backend.js +49 -0
- package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.module.d.ts +9 -0
- package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.module.js +56 -0
- package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.provisioner.d.ts +27 -0
- package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.provisioner.js +120 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-baremetal.adapter.d.ts +22 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-baremetal.adapter.js +140 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-bootstrap-seeder.service.d.ts +12 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-bootstrap-seeder.service.js +65 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-capabilities.service.d.ts +23 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-capabilities.service.js +319 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-dns.service.d.ts +24 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-dns.service.js +189 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-firewall.service.d.ts +43 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-firewall.service.js +455 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-iam.adapter.d.ts +32 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-iam.adapter.js +108 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-instances.adapter.d.ts +66 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-instances.adapter.js +289 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-provider.module.d.ts +17 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-provider.module.js +122 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-provider.service.d.ts +100 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-provider.service.js +1395 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-volume-operations.service.d.ts +24 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-volume-operations.service.js +199 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-vpc.adapter.d.ts +30 -0
- package/lib/src/modules/providers/implementations/scaleway/scaleway-vpc.adapter.js +180 -0
- package/lib/src/modules/providers/index.d.ts +17 -0
- package/lib/src/modules/providers/index.js +39 -0
- package/lib/src/modules/providers/interfaces/certificate-provider.interface.d.ts +38 -0
- package/lib/src/modules/providers/interfaces/certificate-provider.interface.js +11 -0
- package/lib/src/modules/providers/interfaces/cloud-provider.interface.d.ts +215 -0
- package/lib/src/modules/providers/interfaces/cloud-provider.interface.js +2 -0
- package/lib/src/modules/providers/interfaces/credential-provider.interface.d.ts +23 -0
- package/lib/src/modules/providers/interfaces/credential-provider.interface.js +2 -0
- package/lib/src/modules/providers/interfaces/dns-provider.interface.d.ts +55 -0
- package/lib/src/modules/providers/interfaces/dns-provider.interface.js +12 -0
- package/lib/src/modules/providers/interfaces/firewall-provider.interface.d.ts +47 -0
- package/lib/src/modules/providers/interfaces/firewall-provider.interface.js +2 -0
- package/lib/src/modules/providers/interfaces/network-provider.interface.d.ts +124 -0
- package/lib/src/modules/providers/interfaces/network-provider.interface.js +2 -0
- package/lib/src/modules/providers/interfaces/provider-capabilities.interface.d.ts +87 -0
- package/lib/src/modules/providers/interfaces/provider-capabilities.interface.js +2 -0
- package/lib/src/modules/providers/interfaces/vm-backup-provider.interface.d.ts +39 -0
- package/lib/src/modules/providers/interfaces/vm-backup-provider.interface.js +8 -0
- package/lib/src/modules/providers/interfaces/volume-export.interface.d.ts +162 -0
- package/lib/src/modules/providers/interfaces/volume-export.interface.js +21 -0
- package/lib/src/modules/providers/interfaces/volume-operations.interface.d.ts +149 -0
- package/lib/src/modules/providers/interfaces/volume-operations.interface.js +17 -0
- package/lib/src/modules/providers/mappers/node-size.mapper.d.ts +20 -0
- package/lib/src/modules/providers/mappers/node-size.mapper.js +75 -0
- package/lib/src/modules/providers/mappers/pricing.mapper.d.ts +14 -0
- package/lib/src/modules/providers/mappers/pricing.mapper.js +60 -0
- package/lib/src/modules/providers/provider-core.module.d.ts +13 -0
- package/lib/src/modules/providers/provider-core.module.js +59 -0
- package/lib/src/modules/providers/providers.module.d.ts +2 -0
- package/lib/src/modules/providers/providers.module.js +188 -0
- package/lib/src/modules/providers/services/acme-certificate.service.d.ts +38 -0
- package/lib/src/modules/providers/services/acme-certificate.service.js +144 -0
- package/lib/src/modules/providers/services/contabo-firewall.service.d.ts +11 -0
- package/lib/src/modules/providers/services/contabo-firewall.service.js +40 -0
- package/lib/src/modules/providers/services/contabo-provider.service.d.ts +48 -0
- package/lib/src/modules/providers/services/contabo-provider.service.js +194 -0
- package/lib/src/modules/providers/services/credential-provider.service.d.ts +17 -0
- package/lib/src/modules/providers/services/credential-provider.service.js +78 -0
- package/lib/src/modules/providers/services/dns-provider.factory.d.ts +5 -0
- package/lib/src/modules/providers/services/dns-provider.factory.js +9 -0
- package/lib/src/modules/providers/services/firewall-provider.factory.d.ts +5 -0
- package/lib/src/modules/providers/services/firewall-provider.factory.js +9 -0
- package/lib/src/modules/providers/services/hetzner-dns.service.d.ts +71 -0
- package/lib/src/modules/providers/services/hetzner-dns.service.js +565 -0
- package/lib/src/modules/providers/services/hetzner-firewall.service.d.ts +48 -0
- package/lib/src/modules/providers/services/hetzner-firewall.service.js +472 -0
- package/lib/src/modules/providers/services/hetzner-network.service.d.ts +84 -0
- package/lib/src/modules/providers/services/hetzner-network.service.js +408 -0
- package/lib/src/modules/providers/services/hetzner-provider.service.d.ts +213 -0
- package/lib/src/modules/providers/services/hetzner-provider.service.js +1159 -0
- package/lib/src/modules/providers/services/provider.factory.d.ts +5 -0
- package/lib/src/modules/providers/services/provider.factory.js +9 -0
- package/lib/src/modules/providers/services/volume-export.service.d.ts +50 -0
- package/lib/src/modules/providers/services/volume-export.service.js +650 -0
- package/lib/src/modules/shared/encryption/encryption.module.d.ts +2 -0
- package/lib/src/modules/shared/encryption/encryption.module.js +22 -0
- package/lib/src/modules/shared/encryption/services/encryption.service.d.ts +47 -0
- package/lib/src/modules/shared/encryption/services/encryption.service.js +199 -0
- package/lib/src/modules/storage/enums/storage-backend-provider.enum.d.ts +19 -0
- package/lib/src/modules/storage/enums/storage-backend-provider.enum.js +23 -0
- package/lib/src/modules/storage/factories/object-storage-provisioner.factory.d.ts +11 -0
- package/lib/src/modules/storage/factories/object-storage-provisioner.factory.js +48 -0
- package/lib/src/modules/storage/factories/storage-backend.factory.d.ts +12 -0
- package/lib/src/modules/storage/factories/storage-backend.factory.js +51 -0
- package/lib/src/modules/storage/implementations/generic-s3.backend.d.ts +23 -0
- package/lib/src/modules/storage/implementations/generic-s3.backend.js +172 -0
- package/lib/src/modules/storage/interfaces/backup-storage-backend.interface.d.ts +48 -0
- package/lib/src/modules/storage/interfaces/backup-storage-backend.interface.js +2 -0
- package/lib/src/modules/storage/interfaces/object-storage-provisioner.interface.d.ts +55 -0
- package/lib/src/modules/storage/interfaces/object-storage-provisioner.interface.js +9 -0
- package/lib/src/modules/storage/storage.module.d.ts +2 -0
- package/lib/src/modules/storage/storage.module.js +21 -0
- package/lib/src/modules/storage/tokens/object-storage-provisioner-registry.token.d.ts +12 -0
- package/lib/src/modules/storage/tokens/object-storage-provisioner-registry.token.js +8 -0
- package/lib/src/modules/storage/tokens/storage-backend-registry.token.d.ts +12 -0
- package/lib/src/modules/storage/tokens/storage-backend-registry.token.js +8 -0
- package/lib/src/modules/terminal/services/native-ssh-connection.service.d.ts +48 -0
- package/lib/src/modules/terminal/services/native-ssh-connection.service.js +282 -0
- package/oclif.manifest.json +5243 -0
- package/package.json +125 -0
|
@@ -0,0 +1,3362 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Elastic Metal API
|
|
6
|
+
* Scaleway Elastic Metal servers are dedicated physical servers that you can order on-demand, like Instances. You can install an OS or other images on your Elastic Metal server and connect to it via SSH to use it as you require. You can power off the server when you are not using or delete it from your account once you have finished using it. Elastic Metal servers are ideal for large workloads, big data, and applications that require increased security and dedicated resources. (switchcolumn) <Message type=\"tip\"> Check out our dedicated APIs to manage [Private Networks](https://www.scaleway.com/en/developers/api/elastic-metal/private-network-api/) and [Flexible IPs](https://www.scaleway.com/en/developers/api/elastic-metal-flexible-ip/) for Elastic Metal servers. </Message> (switchcolumn) ## Concepts Refer to our [dedicated concepts](https://www.scaleway.com/en/docs/elastic-metal/concepts/) page to find definitions of the different terms referring to Elastic Metal servers. ## Quickstart (switchcolumn) (switchcolumn) 1. **Configure your environment variables.** ```bash export PROJECT_ID=\"<project-id>\" export ACCESS_KEY=\"<access-key>\" export SECRET_KEY=\"<secret-key>\" export ZONE=\"<availability-zone>\" ``` <Message type=\"note\"> This is an optional step that seeks to simplify your usage of the Bare Metal API. </Message> 2. **Edit the POST request payload** that we will use in the next step to create an Elastic Metal server. Modify the values in the example according to your needs, using the information in the table to help. ```json { \"offer_id\": \"string\", \"project_id\": \"string\", \"name\": \"string\", \"description\": \"string\", \"tags\": [ \"tag1\", \"tag2\" ], \"install\": { \"os_id\": \"string\", \"hostname\": \"string\", \"ssh_key_ids\": [ \"string\" ], \"user\": \"string\", \"password\": \"string\", \"service_user\": \"string\", \"service_password\": \"string\" }, \"option_ids\": [ \"string\" ] } ``` | Parameter | Description | | :--------------- | :----------------------------------------------------------------- | | `offer_id` | **REQUIRED** UUID of the Elastic Metal offer | | `project_id` | **REQUIRED** UUID of the project you want to create your Elastic Metal in. | | `name` | **REQUIRED** Name of the Elastic Metal server (≠hostname) | | `description` | **REQUIRED** A description of your server (max 255 characters) | | `tags` | **OPTIONAL** An array of tags associated with your server | | `os_id` | The ID of the operating system image to install on the server | | `hostname` | Hostname of the server | | `ssh_key_ids` | SSH key IDs authorized on the server | | `user` | **NULLABLE** A regular user to be configured on the server | | `password` | **NULLABLE** The password for the user account | | `service_user` | **NULLABLE** A service user for third party services (user to login in services such as BigBlueButton) | | `service password` | **NULLABLE** Password for the service user | | `option_ids` | IDs of options to enable on server | <Message type=\"tip\"> [To find your Project ID you can either use the [Account API](https://www.scaleway.com/en/developers/api/account/project-api/#path-projects-list-all-projects-of-an-organization) or the [Scaleway console](https://console.scaleway.com/project/settings): </Message> 3. **Run the following command** to create an Elastic Metal server. Make sure you include the payload you edited in the previous step. ```bash curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"X-Auth-Token: $SECRET_KEY\" https://api.scaleway.com/baremetal/v1/zones/$ZONE/servers \\ -d \'{ \"offer_id\": \"bd757ca3-a71b-4158-9ef5-39436b6db2a4\", \"project_id\": \"cc6d123a-bc09-4e24-b5d9-3310f2104e13\", \"name\": \"MyElasticMetal\", \"description\": \"My_Elastic_Metal_Server\", \"tags\": [ \"Ubuntu22\", \"Dedicated\" ], \"install\": { \"os_id\": \"96e5f0f2-d216-4de2-8a15-68730d877885\", \"hostname\": \"elasticmetal.example.com\", \"ssh_key_ids\": [ \"fa05e77f-66b7-43b9-bc21-4dfe3c5bb624\" ], \"user\": \"ubuntu\", \"password\": \"mySecretPa$$word\" \"option_ids\": [ \"string\" ] }\" ``` 4. **List your Elastic Metal servers.** ```bash curl -X GET \\ -H \"Content-Type: application/json\" \\ -H \"X-Auth-Token: $SECRET_KEY\" https://api.scaleway.com/baremetal/v1/zones/$ZONE/servers ``` 5. **Retrieve your Elastic Metal server IP** from the response. 6. **Connect to your Elastic Metal server** using SSH ```bash ssh root@my-elastic-metal-server-ip ``` (switchcolumn) <Message type=\"requirement\"> To perform the following steps, you must first ensure that: - you have an account and are logged into the [Scaleway console](https://console.scaleway.com/organization) - you have created an [API key](https://www.scaleway.com/en/docs/iam/how-to/create-api-keys/) and that the API key has sufficient [IAM permissions](https://www.scaleway.com/en/docs/iam/reference-content/permission-sets/) to perform the actions described on this page. - you have [installed `curl`](https://curl.se/download.html) </Message> (switchcolumn) ## Technical information ### Features - Installation (Server is installed by preseed [preseed: complete install from a virtual media], you must define at least one ssh key to install your server) - Start/Stop/Reboot - Rescue Reboot, a rescue image is an operating system image designed to help you diagnose and fix OS experiencing failures. When your server boot on rescue, you can mount your disks and start diagnosing/fixing your image. - Billed by the minute (billing starts when the server is delivered and stops when the server is deleted) - IPv6, all servers are available with a /128 IPv6 subnet - ReverseIP, You can configure your reverse IP (IPv4 and IPv6), you must register the server IP in your DNS records before calling the endpoint - Basic monitoring with ping status - Flexible IP is available ([documentation](https://www.scaleway.com/en/developers/api/elastic-metal-flexible-ip/)) ### Availability Zones Scaleway\'s infrastructure is spread across different [regions and Availability Zones](https://www.scaleway.com/en/docs/account/reference-content/products-availability/). Elastic Metal servers are available in Paris, Amsterdam, and Warsaw regions, with product availability in the following AZs: | Name | API ID | |-----------|----------------------------------| | Paris | `fr-par-1` `fr-par-2` | | Amsterdam | `nl-ams-1` `nl-ams-2` | | Warsaw | `pl-waw-2` `pl-waw-3` | ## Technical limitations - Failover IPs are not available in API `v1`, use the API `v1alpha1` ## Going further For more help using Scaleway Elastic Metal servers, check out the following resources: - Our [main documentation](https://www.scaleway.com/en/docs/elastic-metal/) - The #elastic-metal channel on our [Slack Community](https://www.scaleway.com/en/docs/tutorials/scaleway-slack-community/) - Our [support ticketing system](https://www.scaleway.com/en/docs/account/how-to/open-a-support-ticket/) ### Troubleshooting #### How is the installation of Elastic Metal servers done? - The installation of Elastic Metal servers is done by preseed (± 10min) (preseed: complete install from a virtual media) #### How can I retrieve my secret key and Project ID? You can find your [secret key](https://console.scaleway.com/iam/api-keys) and your [Project ID](https://console.scaleway.com/project/credentials) in the Scaleway console. #### How can I add my server to a Private Network? See [our dedicated documentation](/en/developers/api/elastic-metal-flexible-ip).
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.GetDefaultPartitioningSchemaZoneEnum = exports.PartitioningSchemasApi = exports.PartitioningSchemasApiFactory = exports.PartitioningSchemasApiFp = exports.PartitioningSchemasApiAxiosParamCreator = exports.UpdateSettingZoneEnum = exports.ListSettingsOrderByEnum = exports.ListSettingsZoneEnum = exports.ListOptionsZoneEnum = exports.GetOptionZoneEnum = exports.OptionsApi = exports.OptionsApiFactory = exports.OptionsApiFp = exports.OptionsApiAxiosParamCreator = exports.ListOffersSubscriptionPeriodEnum = exports.ListOffersZoneEnum = exports.GetOfferZoneEnum = exports.OffersApi = exports.OffersApiFactory = exports.OffersApiFp = exports.OffersApiAxiosParamCreator = exports.ListOSZoneEnum = exports.GetOSZoneEnum = exports.OSApi = exports.OSApiFactory = exports.OSApiFp = exports.OSApiAxiosParamCreator = exports.StopBMCAccessZoneEnum = exports.StartBMCAccessZoneEnum = exports.GetBMCAccessZoneEnum = exports.BMCAccessApi = exports.BMCAccessApiFactory = exports.BMCAccessApiFp = exports.BMCAccessApiAxiosParamCreator = exports.ScalewayBaremetalV1SettingTypeEnum = exports.ScalewayBaremetalV1ServerOptionStatusEnum = exports.ScalewayBaremetalV1ServerInstallStatusEnum = exports.ScalewayBaremetalV1ServerPingStatusEnum = exports.ScalewayBaremetalV1ServerBootTypeEnum = exports.ScalewayBaremetalV1ServerStatusEnum = exports.ScalewayBaremetalV1SchemaRAIDLevel = exports.ScalewayBaremetalV1SchemaPoolType = exports.ScalewayBaremetalV1SchemaPartitionLabel = exports.ScalewayBaremetalV1SchemaFilesystemFormat = exports.ScalewayBaremetalV1OfferOptionOfferSubscriptionPeriodEnum = exports.ScalewayBaremetalV1OfferSubscriptionPeriodEnum = exports.ScalewayBaremetalV1OfferStockEnum = exports.ScalewayBaremetalV1IPReverseStatusEnum = exports.ScalewayBaremetalV1IPVersionEnum = exports.RebootServerRequestBootTypeEnum = void 0;
|
|
20
|
+
exports.UpdateServerZoneEnum = exports.UpdateIPZoneEnum = exports.MigrateServerToMonthlyOfferZoneEnum = exports.ListServersOrderByEnum = exports.ListServersZoneEnum = exports.ListServerEventsOrderByEnum = exports.ListServerEventsZoneEnum = exports.InstallServerZoneEnum = exports.GetServerMetricsZoneEnum = exports.GetServerZoneEnum = exports.DeleteServerZoneEnum = exports.DeleteOptionServerZoneEnum = exports.CreateServerZoneEnum = exports.AddOptionServerZoneEnum = exports.ServersApi = exports.ServersApiFactory = exports.ServersApiFp = exports.ServersApiAxiosParamCreator = exports.StopServerZoneEnum = exports.StartServerZoneEnum = exports.RebootServerZoneEnum = exports.ServerActionsApi = exports.ServerActionsApiFactory = exports.ServerActionsApiFp = exports.ServerActionsApiAxiosParamCreator = exports.ValidatePartitioningSchemaZoneEnum = void 0;
|
|
21
|
+
const axios_1 = __importDefault(require("axios"));
|
|
22
|
+
// Some imports not used depending on template conditions
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
const common_1 = require("./common");
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
const base_1 = require("./base");
|
|
27
|
+
exports.RebootServerRequestBootTypeEnum = {
|
|
28
|
+
UnknownBootType: 'unknown_boot_type',
|
|
29
|
+
Normal: 'normal',
|
|
30
|
+
Rescue: 'rescue',
|
|
31
|
+
};
|
|
32
|
+
exports.ScalewayBaremetalV1IPVersionEnum = {
|
|
33
|
+
Ipv4: 'IPv4',
|
|
34
|
+
Ipv6: 'IPv6',
|
|
35
|
+
};
|
|
36
|
+
exports.ScalewayBaremetalV1IPReverseStatusEnum = {
|
|
37
|
+
Unknown: 'unknown',
|
|
38
|
+
Pending: 'pending',
|
|
39
|
+
Active: 'active',
|
|
40
|
+
Error: 'error',
|
|
41
|
+
};
|
|
42
|
+
exports.ScalewayBaremetalV1OfferStockEnum = {
|
|
43
|
+
Empty: 'empty',
|
|
44
|
+
Low: 'low',
|
|
45
|
+
Available: 'available',
|
|
46
|
+
};
|
|
47
|
+
exports.ScalewayBaremetalV1OfferSubscriptionPeriodEnum = {
|
|
48
|
+
UnknownSubscriptionPeriod: 'unknown_subscription_period',
|
|
49
|
+
Hourly: 'hourly',
|
|
50
|
+
Monthly: 'monthly',
|
|
51
|
+
};
|
|
52
|
+
exports.ScalewayBaremetalV1OfferOptionOfferSubscriptionPeriodEnum = {
|
|
53
|
+
UnknownSubscriptionPeriod: 'unknown_subscription_period',
|
|
54
|
+
Hourly: 'hourly',
|
|
55
|
+
Monthly: 'monthly',
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @export
|
|
60
|
+
* @enum {string}
|
|
61
|
+
*/
|
|
62
|
+
exports.ScalewayBaremetalV1SchemaFilesystemFormat = {
|
|
63
|
+
UnknownFormat: 'unknown_format',
|
|
64
|
+
Fat32: 'fat32',
|
|
65
|
+
Ext4: 'ext4',
|
|
66
|
+
Swap: 'swap',
|
|
67
|
+
Zfs: 'zfs',
|
|
68
|
+
Xfs: 'xfs',
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @export
|
|
73
|
+
* @enum {string}
|
|
74
|
+
*/
|
|
75
|
+
exports.ScalewayBaremetalV1SchemaPartitionLabel = {
|
|
76
|
+
UnknownPartitionLabel: 'unknown_partition_label',
|
|
77
|
+
Uefi: 'uefi',
|
|
78
|
+
Legacy: 'legacy',
|
|
79
|
+
Root: 'root',
|
|
80
|
+
Boot: 'boot',
|
|
81
|
+
Swap: 'swap',
|
|
82
|
+
Data: 'data',
|
|
83
|
+
Home: 'home',
|
|
84
|
+
Raid: 'raid',
|
|
85
|
+
Zfs: 'zfs',
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @export
|
|
90
|
+
* @enum {string}
|
|
91
|
+
*/
|
|
92
|
+
exports.ScalewayBaremetalV1SchemaPoolType = {
|
|
93
|
+
UnknownType: 'unknown_type',
|
|
94
|
+
NoRaid: 'no_raid',
|
|
95
|
+
Mirror: 'mirror',
|
|
96
|
+
Raidz1: 'raidz1',
|
|
97
|
+
Raidz2: 'raidz2',
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @export
|
|
102
|
+
* @enum {string}
|
|
103
|
+
*/
|
|
104
|
+
exports.ScalewayBaremetalV1SchemaRAIDLevel = {
|
|
105
|
+
UnknownRaidLevel: 'unknown_raid_level',
|
|
106
|
+
RaidLevel0: 'raid_level_0',
|
|
107
|
+
RaidLevel1: 'raid_level_1',
|
|
108
|
+
RaidLevel5: 'raid_level_5',
|
|
109
|
+
RaidLevel6: 'raid_level_6',
|
|
110
|
+
RaidLevel10: 'raid_level_10',
|
|
111
|
+
};
|
|
112
|
+
exports.ScalewayBaremetalV1ServerStatusEnum = {
|
|
113
|
+
Unknown: 'unknown',
|
|
114
|
+
Delivering: 'delivering',
|
|
115
|
+
Ready: 'ready',
|
|
116
|
+
Stopping: 'stopping',
|
|
117
|
+
Stopped: 'stopped',
|
|
118
|
+
Starting: 'starting',
|
|
119
|
+
Error: 'error',
|
|
120
|
+
Deleting: 'deleting',
|
|
121
|
+
Locked: 'locked',
|
|
122
|
+
OutOfStock: 'out_of_stock',
|
|
123
|
+
Ordered: 'ordered',
|
|
124
|
+
Resetting: 'resetting',
|
|
125
|
+
Migrating: 'migrating',
|
|
126
|
+
};
|
|
127
|
+
exports.ScalewayBaremetalV1ServerBootTypeEnum = {
|
|
128
|
+
UnknownBootType: 'unknown_boot_type',
|
|
129
|
+
Normal: 'normal',
|
|
130
|
+
Rescue: 'rescue',
|
|
131
|
+
};
|
|
132
|
+
exports.ScalewayBaremetalV1ServerPingStatusEnum = {
|
|
133
|
+
PingStatusUnknown: 'ping_status_unknown',
|
|
134
|
+
PingStatusUp: 'ping_status_up',
|
|
135
|
+
PingStatusDown: 'ping_status_down',
|
|
136
|
+
};
|
|
137
|
+
exports.ScalewayBaremetalV1ServerInstallStatusEnum = {
|
|
138
|
+
Unknown: 'unknown',
|
|
139
|
+
ToInstall: 'to_install',
|
|
140
|
+
Installing: 'installing',
|
|
141
|
+
Completed: 'completed',
|
|
142
|
+
Error: 'error',
|
|
143
|
+
};
|
|
144
|
+
exports.ScalewayBaremetalV1ServerOptionStatusEnum = {
|
|
145
|
+
OptionStatusUnknown: 'option_status_unknown',
|
|
146
|
+
OptionStatusEnable: 'option_status_enable',
|
|
147
|
+
OptionStatusEnabling: 'option_status_enabling',
|
|
148
|
+
OptionStatusDisabling: 'option_status_disabling',
|
|
149
|
+
OptionStatusError: 'option_status_error',
|
|
150
|
+
};
|
|
151
|
+
exports.ScalewayBaremetalV1SettingTypeEnum = {
|
|
152
|
+
Unknown: 'unknown',
|
|
153
|
+
Smtp: 'smtp',
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* BMCAccessApi - axios parameter creator
|
|
157
|
+
* @export
|
|
158
|
+
*/
|
|
159
|
+
const BMCAccessApiAxiosParamCreator = function (configuration) {
|
|
160
|
+
return {
|
|
161
|
+
/**
|
|
162
|
+
* Get the BMC (Baseboard Management Controller) access associated with the ID, including the URL and login information needed to connect.
|
|
163
|
+
* @summary Get BMC access
|
|
164
|
+
* @param {GetBMCAccessZoneEnum} zone The zone you want to target
|
|
165
|
+
* @param {string} serverId ID of the server.
|
|
166
|
+
* @param {*} [options] Override http request option.
|
|
167
|
+
* @throws {RequiredError}
|
|
168
|
+
*/
|
|
169
|
+
getBMCAccess: async (zone, serverId, options = {}) => {
|
|
170
|
+
// verify required parameter 'zone' is not null or undefined
|
|
171
|
+
(0, common_1.assertParamExists)('getBMCAccess', 'zone', zone);
|
|
172
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
173
|
+
(0, common_1.assertParamExists)('getBMCAccess', 'serverId', serverId);
|
|
174
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/bmc-access`
|
|
175
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
176
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
177
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
178
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
179
|
+
let baseOptions;
|
|
180
|
+
if (configuration) {
|
|
181
|
+
baseOptions = configuration.baseOptions;
|
|
182
|
+
}
|
|
183
|
+
const localVarRequestOptions = {
|
|
184
|
+
method: 'GET',
|
|
185
|
+
...baseOptions,
|
|
186
|
+
...options,
|
|
187
|
+
};
|
|
188
|
+
const localVarHeaderParameter = {};
|
|
189
|
+
const localVarQueryParameter = {};
|
|
190
|
+
// authentication scaleway required
|
|
191
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
192
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
193
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
194
|
+
localVarRequestOptions.headers = {
|
|
195
|
+
...localVarHeaderParameter,
|
|
196
|
+
...headersFromBaseOptions,
|
|
197
|
+
...options.headers,
|
|
198
|
+
};
|
|
199
|
+
return {
|
|
200
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
201
|
+
options: localVarRequestOptions,
|
|
202
|
+
};
|
|
203
|
+
},
|
|
204
|
+
/**
|
|
205
|
+
* Start BMC (Baseboard Management Controller) access associated with the ID. The BMC (Baseboard Management Controller) access is available one hour after the installation of the server. You need first to create an option Remote Access. You will find the ID and the price with a call to listOffers (https://developers.scaleway.com/en/products/baremetal/api/#get-78db92). Then add the option https://developers.scaleway.com/en/products/baremetal/api/#post-b14abd. After adding the BMC option, you need to Get Remote Access to get the login/password https://developers.scaleway.com/en/products/baremetal/api/#get-cefc0f. Do not forget to delete the Option after use.
|
|
206
|
+
* @summary Start BMC access
|
|
207
|
+
* @param {StartBMCAccessZoneEnum} zone The zone you want to target
|
|
208
|
+
* @param {string} serverId ID of the server.
|
|
209
|
+
* @param {StartBMCAccessRequest} startBMCAccessRequest
|
|
210
|
+
* @param {*} [options] Override http request option.
|
|
211
|
+
* @throws {RequiredError}
|
|
212
|
+
*/
|
|
213
|
+
startBMCAccess: async (zone, serverId, startBMCAccessRequest, options = {}) => {
|
|
214
|
+
// verify required parameter 'zone' is not null or undefined
|
|
215
|
+
(0, common_1.assertParamExists)('startBMCAccess', 'zone', zone);
|
|
216
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
217
|
+
(0, common_1.assertParamExists)('startBMCAccess', 'serverId', serverId);
|
|
218
|
+
// verify required parameter 'startBMCAccessRequest' is not null or undefined
|
|
219
|
+
(0, common_1.assertParamExists)('startBMCAccess', 'startBMCAccessRequest', startBMCAccessRequest);
|
|
220
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/bmc-access`
|
|
221
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
222
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
223
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
224
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
225
|
+
let baseOptions;
|
|
226
|
+
if (configuration) {
|
|
227
|
+
baseOptions = configuration.baseOptions;
|
|
228
|
+
}
|
|
229
|
+
const localVarRequestOptions = {
|
|
230
|
+
method: 'POST',
|
|
231
|
+
...baseOptions,
|
|
232
|
+
...options,
|
|
233
|
+
};
|
|
234
|
+
const localVarHeaderParameter = {};
|
|
235
|
+
const localVarQueryParameter = {};
|
|
236
|
+
// authentication scaleway required
|
|
237
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
238
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
239
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
241
|
+
localVarRequestOptions.headers = {
|
|
242
|
+
...localVarHeaderParameter,
|
|
243
|
+
...headersFromBaseOptions,
|
|
244
|
+
...options.headers,
|
|
245
|
+
};
|
|
246
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(startBMCAccessRequest, localVarRequestOptions, configuration);
|
|
247
|
+
return {
|
|
248
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
249
|
+
options: localVarRequestOptions,
|
|
250
|
+
};
|
|
251
|
+
},
|
|
252
|
+
/**
|
|
253
|
+
* Stop BMC (Baseboard Management Controller) access associated with the ID.
|
|
254
|
+
* @summary Stop BMC access
|
|
255
|
+
* @param {StopBMCAccessZoneEnum} zone The zone you want to target
|
|
256
|
+
* @param {string} serverId ID of the server.
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
stopBMCAccess: async (zone, serverId, options = {}) => {
|
|
261
|
+
// verify required parameter 'zone' is not null or undefined
|
|
262
|
+
(0, common_1.assertParamExists)('stopBMCAccess', 'zone', zone);
|
|
263
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
264
|
+
(0, common_1.assertParamExists)('stopBMCAccess', 'serverId', serverId);
|
|
265
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/bmc-access`
|
|
266
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
267
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
268
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
269
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
270
|
+
let baseOptions;
|
|
271
|
+
if (configuration) {
|
|
272
|
+
baseOptions = configuration.baseOptions;
|
|
273
|
+
}
|
|
274
|
+
const localVarRequestOptions = {
|
|
275
|
+
method: 'DELETE',
|
|
276
|
+
...baseOptions,
|
|
277
|
+
...options,
|
|
278
|
+
};
|
|
279
|
+
const localVarHeaderParameter = {};
|
|
280
|
+
const localVarQueryParameter = {};
|
|
281
|
+
// authentication scaleway required
|
|
282
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
283
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
284
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
285
|
+
localVarRequestOptions.headers = {
|
|
286
|
+
...localVarHeaderParameter,
|
|
287
|
+
...headersFromBaseOptions,
|
|
288
|
+
...options.headers,
|
|
289
|
+
};
|
|
290
|
+
return {
|
|
291
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
292
|
+
options: localVarRequestOptions,
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
exports.BMCAccessApiAxiosParamCreator = BMCAccessApiAxiosParamCreator;
|
|
298
|
+
/**
|
|
299
|
+
* BMCAccessApi - functional programming interface
|
|
300
|
+
* @export
|
|
301
|
+
*/
|
|
302
|
+
const BMCAccessApiFp = function (configuration) {
|
|
303
|
+
const localVarAxiosParamCreator = (0, exports.BMCAccessApiAxiosParamCreator)(configuration);
|
|
304
|
+
return {
|
|
305
|
+
/**
|
|
306
|
+
* Get the BMC (Baseboard Management Controller) access associated with the ID, including the URL and login information needed to connect.
|
|
307
|
+
* @summary Get BMC access
|
|
308
|
+
* @param {GetBMCAccessZoneEnum} zone The zone you want to target
|
|
309
|
+
* @param {string} serverId ID of the server.
|
|
310
|
+
* @param {*} [options] Override http request option.
|
|
311
|
+
* @throws {RequiredError}
|
|
312
|
+
*/
|
|
313
|
+
async getBMCAccess(zone, serverId, options) {
|
|
314
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBMCAccess(zone, serverId, options);
|
|
315
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
316
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BMCAccessApi.getBMCAccess']?.[localVarOperationServerIndex]?.url;
|
|
317
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
318
|
+
},
|
|
319
|
+
/**
|
|
320
|
+
* Start BMC (Baseboard Management Controller) access associated with the ID. The BMC (Baseboard Management Controller) access is available one hour after the installation of the server. You need first to create an option Remote Access. You will find the ID and the price with a call to listOffers (https://developers.scaleway.com/en/products/baremetal/api/#get-78db92). Then add the option https://developers.scaleway.com/en/products/baremetal/api/#post-b14abd. After adding the BMC option, you need to Get Remote Access to get the login/password https://developers.scaleway.com/en/products/baremetal/api/#get-cefc0f. Do not forget to delete the Option after use.
|
|
321
|
+
* @summary Start BMC access
|
|
322
|
+
* @param {StartBMCAccessZoneEnum} zone The zone you want to target
|
|
323
|
+
* @param {string} serverId ID of the server.
|
|
324
|
+
* @param {StartBMCAccessRequest} startBMCAccessRequest
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
async startBMCAccess(zone, serverId, startBMCAccessRequest, options) {
|
|
329
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startBMCAccess(zone, serverId, startBMCAccessRequest, options);
|
|
330
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
331
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BMCAccessApi.startBMCAccess']?.[localVarOperationServerIndex]?.url;
|
|
332
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
333
|
+
},
|
|
334
|
+
/**
|
|
335
|
+
* Stop BMC (Baseboard Management Controller) access associated with the ID.
|
|
336
|
+
* @summary Stop BMC access
|
|
337
|
+
* @param {StopBMCAccessZoneEnum} zone The zone you want to target
|
|
338
|
+
* @param {string} serverId ID of the server.
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
*/
|
|
342
|
+
async stopBMCAccess(zone, serverId, options) {
|
|
343
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.stopBMCAccess(zone, serverId, options);
|
|
344
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
345
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['BMCAccessApi.stopBMCAccess']?.[localVarOperationServerIndex]?.url;
|
|
346
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
347
|
+
},
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
exports.BMCAccessApiFp = BMCAccessApiFp;
|
|
351
|
+
/**
|
|
352
|
+
* BMCAccessApi - factory interface
|
|
353
|
+
* @export
|
|
354
|
+
*/
|
|
355
|
+
const BMCAccessApiFactory = function (configuration, basePath, axios) {
|
|
356
|
+
const localVarFp = (0, exports.BMCAccessApiFp)(configuration);
|
|
357
|
+
return {
|
|
358
|
+
/**
|
|
359
|
+
* Get the BMC (Baseboard Management Controller) access associated with the ID, including the URL and login information needed to connect.
|
|
360
|
+
* @summary Get BMC access
|
|
361
|
+
* @param {GetBMCAccessZoneEnum} zone The zone you want to target
|
|
362
|
+
* @param {string} serverId ID of the server.
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
getBMCAccess(zone, serverId, options) {
|
|
367
|
+
return localVarFp
|
|
368
|
+
.getBMCAccess(zone, serverId, options)
|
|
369
|
+
.then((request) => request(axios, basePath));
|
|
370
|
+
},
|
|
371
|
+
/**
|
|
372
|
+
* Start BMC (Baseboard Management Controller) access associated with the ID. The BMC (Baseboard Management Controller) access is available one hour after the installation of the server. You need first to create an option Remote Access. You will find the ID and the price with a call to listOffers (https://developers.scaleway.com/en/products/baremetal/api/#get-78db92). Then add the option https://developers.scaleway.com/en/products/baremetal/api/#post-b14abd. After adding the BMC option, you need to Get Remote Access to get the login/password https://developers.scaleway.com/en/products/baremetal/api/#get-cefc0f. Do not forget to delete the Option after use.
|
|
373
|
+
* @summary Start BMC access
|
|
374
|
+
* @param {StartBMCAccessZoneEnum} zone The zone you want to target
|
|
375
|
+
* @param {string} serverId ID of the server.
|
|
376
|
+
* @param {StartBMCAccessRequest} startBMCAccessRequest
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
startBMCAccess(zone, serverId, startBMCAccessRequest, options) {
|
|
381
|
+
return localVarFp
|
|
382
|
+
.startBMCAccess(zone, serverId, startBMCAccessRequest, options)
|
|
383
|
+
.then((request) => request(axios, basePath));
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
* Stop BMC (Baseboard Management Controller) access associated with the ID.
|
|
387
|
+
* @summary Stop BMC access
|
|
388
|
+
* @param {StopBMCAccessZoneEnum} zone The zone you want to target
|
|
389
|
+
* @param {string} serverId ID of the server.
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
stopBMCAccess(zone, serverId, options) {
|
|
394
|
+
return localVarFp
|
|
395
|
+
.stopBMCAccess(zone, serverId, options)
|
|
396
|
+
.then((request) => request(axios, basePath));
|
|
397
|
+
},
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
exports.BMCAccessApiFactory = BMCAccessApiFactory;
|
|
401
|
+
/**
|
|
402
|
+
* BMCAccessApi - object-oriented interface
|
|
403
|
+
* @export
|
|
404
|
+
* @class BMCAccessApi
|
|
405
|
+
* @extends {BaseAPI}
|
|
406
|
+
*/
|
|
407
|
+
class BMCAccessApi extends base_1.BaseAPI {
|
|
408
|
+
/**
|
|
409
|
+
* Get the BMC (Baseboard Management Controller) access associated with the ID, including the URL and login information needed to connect.
|
|
410
|
+
* @summary Get BMC access
|
|
411
|
+
* @param {GetBMCAccessZoneEnum} zone The zone you want to target
|
|
412
|
+
* @param {string} serverId ID of the server.
|
|
413
|
+
* @param {*} [options] Override http request option.
|
|
414
|
+
* @throws {RequiredError}
|
|
415
|
+
* @memberof BMCAccessApi
|
|
416
|
+
*/
|
|
417
|
+
getBMCAccess(zone, serverId, options) {
|
|
418
|
+
return (0, exports.BMCAccessApiFp)(this.configuration)
|
|
419
|
+
.getBMCAccess(zone, serverId, options)
|
|
420
|
+
.then((request) => request(this.axios, this.basePath));
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Start BMC (Baseboard Management Controller) access associated with the ID. The BMC (Baseboard Management Controller) access is available one hour after the installation of the server. You need first to create an option Remote Access. You will find the ID and the price with a call to listOffers (https://developers.scaleway.com/en/products/baremetal/api/#get-78db92). Then add the option https://developers.scaleway.com/en/products/baremetal/api/#post-b14abd. After adding the BMC option, you need to Get Remote Access to get the login/password https://developers.scaleway.com/en/products/baremetal/api/#get-cefc0f. Do not forget to delete the Option after use.
|
|
424
|
+
* @summary Start BMC access
|
|
425
|
+
* @param {StartBMCAccessZoneEnum} zone The zone you want to target
|
|
426
|
+
* @param {string} serverId ID of the server.
|
|
427
|
+
* @param {StartBMCAccessRequest} startBMCAccessRequest
|
|
428
|
+
* @param {*} [options] Override http request option.
|
|
429
|
+
* @throws {RequiredError}
|
|
430
|
+
* @memberof BMCAccessApi
|
|
431
|
+
*/
|
|
432
|
+
startBMCAccess(zone, serverId, startBMCAccessRequest, options) {
|
|
433
|
+
return (0, exports.BMCAccessApiFp)(this.configuration)
|
|
434
|
+
.startBMCAccess(zone, serverId, startBMCAccessRequest, options)
|
|
435
|
+
.then((request) => request(this.axios, this.basePath));
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Stop BMC (Baseboard Management Controller) access associated with the ID.
|
|
439
|
+
* @summary Stop BMC access
|
|
440
|
+
* @param {StopBMCAccessZoneEnum} zone The zone you want to target
|
|
441
|
+
* @param {string} serverId ID of the server.
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
* @memberof BMCAccessApi
|
|
445
|
+
*/
|
|
446
|
+
stopBMCAccess(zone, serverId, options) {
|
|
447
|
+
return (0, exports.BMCAccessApiFp)(this.configuration)
|
|
448
|
+
.stopBMCAccess(zone, serverId, options)
|
|
449
|
+
.then((request) => request(this.axios, this.basePath));
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
exports.BMCAccessApi = BMCAccessApi;
|
|
453
|
+
/**
|
|
454
|
+
* @export
|
|
455
|
+
*/
|
|
456
|
+
exports.GetBMCAccessZoneEnum = {
|
|
457
|
+
FrPar1: 'fr-par-1',
|
|
458
|
+
FrPar2: 'fr-par-2',
|
|
459
|
+
NlAms1: 'nl-ams-1',
|
|
460
|
+
NlAms2: 'nl-ams-2',
|
|
461
|
+
PlWaw2: 'pl-waw-2',
|
|
462
|
+
PlWaw3: 'pl-waw-3',
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* @export
|
|
466
|
+
*/
|
|
467
|
+
exports.StartBMCAccessZoneEnum = {
|
|
468
|
+
FrPar1: 'fr-par-1',
|
|
469
|
+
FrPar2: 'fr-par-2',
|
|
470
|
+
NlAms1: 'nl-ams-1',
|
|
471
|
+
NlAms2: 'nl-ams-2',
|
|
472
|
+
PlWaw2: 'pl-waw-2',
|
|
473
|
+
PlWaw3: 'pl-waw-3',
|
|
474
|
+
};
|
|
475
|
+
/**
|
|
476
|
+
* @export
|
|
477
|
+
*/
|
|
478
|
+
exports.StopBMCAccessZoneEnum = {
|
|
479
|
+
FrPar1: 'fr-par-1',
|
|
480
|
+
FrPar2: 'fr-par-2',
|
|
481
|
+
NlAms1: 'nl-ams-1',
|
|
482
|
+
NlAms2: 'nl-ams-2',
|
|
483
|
+
PlWaw2: 'pl-waw-2',
|
|
484
|
+
PlWaw3: 'pl-waw-3',
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* OSApi - axios parameter creator
|
|
488
|
+
* @export
|
|
489
|
+
*/
|
|
490
|
+
const OSApiAxiosParamCreator = function (configuration) {
|
|
491
|
+
return {
|
|
492
|
+
/**
|
|
493
|
+
* Return the specific OS for the ID.
|
|
494
|
+
* @summary Get OS with an ID
|
|
495
|
+
* @param {GetOSZoneEnum} zone The zone you want to target
|
|
496
|
+
* @param {string} osId ID of the OS.
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
getOS: async (zone, osId, options = {}) => {
|
|
501
|
+
// verify required parameter 'zone' is not null or undefined
|
|
502
|
+
(0, common_1.assertParamExists)('getOS', 'zone', zone);
|
|
503
|
+
// verify required parameter 'osId' is not null or undefined
|
|
504
|
+
(0, common_1.assertParamExists)('getOS', 'osId', osId);
|
|
505
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/os/{os_id}`
|
|
506
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
507
|
+
.replace(`{${'os_id'}}`, encodeURIComponent(String(osId)));
|
|
508
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
509
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
510
|
+
let baseOptions;
|
|
511
|
+
if (configuration) {
|
|
512
|
+
baseOptions = configuration.baseOptions;
|
|
513
|
+
}
|
|
514
|
+
const localVarRequestOptions = {
|
|
515
|
+
method: 'GET',
|
|
516
|
+
...baseOptions,
|
|
517
|
+
...options,
|
|
518
|
+
};
|
|
519
|
+
const localVarHeaderParameter = {};
|
|
520
|
+
const localVarQueryParameter = {};
|
|
521
|
+
// authentication scaleway required
|
|
522
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
523
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
524
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
525
|
+
localVarRequestOptions.headers = {
|
|
526
|
+
...localVarHeaderParameter,
|
|
527
|
+
...headersFromBaseOptions,
|
|
528
|
+
...options.headers,
|
|
529
|
+
};
|
|
530
|
+
return {
|
|
531
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
532
|
+
options: localVarRequestOptions,
|
|
533
|
+
};
|
|
534
|
+
},
|
|
535
|
+
/**
|
|
536
|
+
* List all OSes that are available for installation on Elastic Metal servers.
|
|
537
|
+
* @summary List available OSes
|
|
538
|
+
* @param {ListOSZoneEnum} zone The zone you want to target
|
|
539
|
+
* @param {number} [page] Page number.
|
|
540
|
+
* @param {number} [pageSize] Number of OS per page.
|
|
541
|
+
* @param {string} [offerId] Offer IDs to filter OSes for.
|
|
542
|
+
* @param {*} [options] Override http request option.
|
|
543
|
+
* @throws {RequiredError}
|
|
544
|
+
*/
|
|
545
|
+
listOS: async (zone, page, pageSize, offerId, options = {}) => {
|
|
546
|
+
// verify required parameter 'zone' is not null or undefined
|
|
547
|
+
(0, common_1.assertParamExists)('listOS', 'zone', zone);
|
|
548
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/os`.replace(`{${'zone'}}`, encodeURIComponent(String(zone)));
|
|
549
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
550
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
551
|
+
let baseOptions;
|
|
552
|
+
if (configuration) {
|
|
553
|
+
baseOptions = configuration.baseOptions;
|
|
554
|
+
}
|
|
555
|
+
const localVarRequestOptions = {
|
|
556
|
+
method: 'GET',
|
|
557
|
+
...baseOptions,
|
|
558
|
+
...options,
|
|
559
|
+
};
|
|
560
|
+
const localVarHeaderParameter = {};
|
|
561
|
+
const localVarQueryParameter = {};
|
|
562
|
+
// authentication scaleway required
|
|
563
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
564
|
+
if (page !== undefined) {
|
|
565
|
+
localVarQueryParameter['page'] = page;
|
|
566
|
+
}
|
|
567
|
+
if (pageSize !== undefined) {
|
|
568
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
569
|
+
}
|
|
570
|
+
if (offerId !== undefined) {
|
|
571
|
+
localVarQueryParameter['offer_id'] = offerId;
|
|
572
|
+
}
|
|
573
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
574
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
575
|
+
localVarRequestOptions.headers = {
|
|
576
|
+
...localVarHeaderParameter,
|
|
577
|
+
...headersFromBaseOptions,
|
|
578
|
+
...options.headers,
|
|
579
|
+
};
|
|
580
|
+
return {
|
|
581
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
582
|
+
options: localVarRequestOptions,
|
|
583
|
+
};
|
|
584
|
+
},
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
exports.OSApiAxiosParamCreator = OSApiAxiosParamCreator;
|
|
588
|
+
/**
|
|
589
|
+
* OSApi - functional programming interface
|
|
590
|
+
* @export
|
|
591
|
+
*/
|
|
592
|
+
const OSApiFp = function (configuration) {
|
|
593
|
+
const localVarAxiosParamCreator = (0, exports.OSApiAxiosParamCreator)(configuration);
|
|
594
|
+
return {
|
|
595
|
+
/**
|
|
596
|
+
* Return the specific OS for the ID.
|
|
597
|
+
* @summary Get OS with an ID
|
|
598
|
+
* @param {GetOSZoneEnum} zone The zone you want to target
|
|
599
|
+
* @param {string} osId ID of the OS.
|
|
600
|
+
* @param {*} [options] Override http request option.
|
|
601
|
+
* @throws {RequiredError}
|
|
602
|
+
*/
|
|
603
|
+
async getOS(zone, osId, options) {
|
|
604
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOS(zone, osId, options);
|
|
605
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
606
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OSApi.getOS']?.[localVarOperationServerIndex]?.url;
|
|
607
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
608
|
+
},
|
|
609
|
+
/**
|
|
610
|
+
* List all OSes that are available for installation on Elastic Metal servers.
|
|
611
|
+
* @summary List available OSes
|
|
612
|
+
* @param {ListOSZoneEnum} zone The zone you want to target
|
|
613
|
+
* @param {number} [page] Page number.
|
|
614
|
+
* @param {number} [pageSize] Number of OS per page.
|
|
615
|
+
* @param {string} [offerId] Offer IDs to filter OSes for.
|
|
616
|
+
* @param {*} [options] Override http request option.
|
|
617
|
+
* @throws {RequiredError}
|
|
618
|
+
*/
|
|
619
|
+
async listOS(zone, page, pageSize, offerId, options) {
|
|
620
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOS(zone, page, pageSize, offerId, options);
|
|
621
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
622
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OSApi.listOS']?.[localVarOperationServerIndex]?.url;
|
|
623
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
624
|
+
},
|
|
625
|
+
};
|
|
626
|
+
};
|
|
627
|
+
exports.OSApiFp = OSApiFp;
|
|
628
|
+
/**
|
|
629
|
+
* OSApi - factory interface
|
|
630
|
+
* @export
|
|
631
|
+
*/
|
|
632
|
+
const OSApiFactory = function (configuration, basePath, axios) {
|
|
633
|
+
const localVarFp = (0, exports.OSApiFp)(configuration);
|
|
634
|
+
return {
|
|
635
|
+
/**
|
|
636
|
+
* Return the specific OS for the ID.
|
|
637
|
+
* @summary Get OS with an ID
|
|
638
|
+
* @param {GetOSZoneEnum} zone The zone you want to target
|
|
639
|
+
* @param {string} osId ID of the OS.
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
*/
|
|
643
|
+
getOS(zone, osId, options) {
|
|
644
|
+
return localVarFp
|
|
645
|
+
.getOS(zone, osId, options)
|
|
646
|
+
.then((request) => request(axios, basePath));
|
|
647
|
+
},
|
|
648
|
+
/**
|
|
649
|
+
* List all OSes that are available for installation on Elastic Metal servers.
|
|
650
|
+
* @summary List available OSes
|
|
651
|
+
* @param {ListOSZoneEnum} zone The zone you want to target
|
|
652
|
+
* @param {number} [page] Page number.
|
|
653
|
+
* @param {number} [pageSize] Number of OS per page.
|
|
654
|
+
* @param {string} [offerId] Offer IDs to filter OSes for.
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
*/
|
|
658
|
+
listOS(zone, page, pageSize, offerId, options) {
|
|
659
|
+
return localVarFp
|
|
660
|
+
.listOS(zone, page, pageSize, offerId, options)
|
|
661
|
+
.then((request) => request(axios, basePath));
|
|
662
|
+
},
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
exports.OSApiFactory = OSApiFactory;
|
|
666
|
+
/**
|
|
667
|
+
* OSApi - object-oriented interface
|
|
668
|
+
* @export
|
|
669
|
+
* @class OSApi
|
|
670
|
+
* @extends {BaseAPI}
|
|
671
|
+
*/
|
|
672
|
+
class OSApi extends base_1.BaseAPI {
|
|
673
|
+
/**
|
|
674
|
+
* Return the specific OS for the ID.
|
|
675
|
+
* @summary Get OS with an ID
|
|
676
|
+
* @param {GetOSZoneEnum} zone The zone you want to target
|
|
677
|
+
* @param {string} osId ID of the OS.
|
|
678
|
+
* @param {*} [options] Override http request option.
|
|
679
|
+
* @throws {RequiredError}
|
|
680
|
+
* @memberof OSApi
|
|
681
|
+
*/
|
|
682
|
+
getOS(zone, osId, options) {
|
|
683
|
+
return (0, exports.OSApiFp)(this.configuration)
|
|
684
|
+
.getOS(zone, osId, options)
|
|
685
|
+
.then((request) => request(this.axios, this.basePath));
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* List all OSes that are available for installation on Elastic Metal servers.
|
|
689
|
+
* @summary List available OSes
|
|
690
|
+
* @param {ListOSZoneEnum} zone The zone you want to target
|
|
691
|
+
* @param {number} [page] Page number.
|
|
692
|
+
* @param {number} [pageSize] Number of OS per page.
|
|
693
|
+
* @param {string} [offerId] Offer IDs to filter OSes for.
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
* @memberof OSApi
|
|
697
|
+
*/
|
|
698
|
+
listOS(zone, page, pageSize, offerId, options) {
|
|
699
|
+
return (0, exports.OSApiFp)(this.configuration)
|
|
700
|
+
.listOS(zone, page, pageSize, offerId, options)
|
|
701
|
+
.then((request) => request(this.axios, this.basePath));
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
exports.OSApi = OSApi;
|
|
705
|
+
/**
|
|
706
|
+
* @export
|
|
707
|
+
*/
|
|
708
|
+
exports.GetOSZoneEnum = {
|
|
709
|
+
FrPar1: 'fr-par-1',
|
|
710
|
+
FrPar2: 'fr-par-2',
|
|
711
|
+
NlAms1: 'nl-ams-1',
|
|
712
|
+
NlAms2: 'nl-ams-2',
|
|
713
|
+
PlWaw2: 'pl-waw-2',
|
|
714
|
+
PlWaw3: 'pl-waw-3',
|
|
715
|
+
};
|
|
716
|
+
/**
|
|
717
|
+
* @export
|
|
718
|
+
*/
|
|
719
|
+
exports.ListOSZoneEnum = {
|
|
720
|
+
FrPar1: 'fr-par-1',
|
|
721
|
+
FrPar2: 'fr-par-2',
|
|
722
|
+
NlAms1: 'nl-ams-1',
|
|
723
|
+
NlAms2: 'nl-ams-2',
|
|
724
|
+
PlWaw2: 'pl-waw-2',
|
|
725
|
+
PlWaw3: 'pl-waw-3',
|
|
726
|
+
};
|
|
727
|
+
/**
|
|
728
|
+
* OffersApi - axios parameter creator
|
|
729
|
+
* @export
|
|
730
|
+
*/
|
|
731
|
+
const OffersApiAxiosParamCreator = function (configuration) {
|
|
732
|
+
return {
|
|
733
|
+
/**
|
|
734
|
+
* Get details of an offer identified by its offer ID.
|
|
735
|
+
* @summary Get offer
|
|
736
|
+
* @param {GetOfferZoneEnum} zone The zone you want to target
|
|
737
|
+
* @param {string} offerId ID of the researched Offer.
|
|
738
|
+
* @param {*} [options] Override http request option.
|
|
739
|
+
* @throws {RequiredError}
|
|
740
|
+
*/
|
|
741
|
+
getOffer: async (zone, offerId, options = {}) => {
|
|
742
|
+
// verify required parameter 'zone' is not null or undefined
|
|
743
|
+
(0, common_1.assertParamExists)('getOffer', 'zone', zone);
|
|
744
|
+
// verify required parameter 'offerId' is not null or undefined
|
|
745
|
+
(0, common_1.assertParamExists)('getOffer', 'offerId', offerId);
|
|
746
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/offers/{offer_id}`
|
|
747
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
748
|
+
.replace(`{${'offer_id'}}`, encodeURIComponent(String(offerId)));
|
|
749
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
750
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
751
|
+
let baseOptions;
|
|
752
|
+
if (configuration) {
|
|
753
|
+
baseOptions = configuration.baseOptions;
|
|
754
|
+
}
|
|
755
|
+
const localVarRequestOptions = {
|
|
756
|
+
method: 'GET',
|
|
757
|
+
...baseOptions,
|
|
758
|
+
...options,
|
|
759
|
+
};
|
|
760
|
+
const localVarHeaderParameter = {};
|
|
761
|
+
const localVarQueryParameter = {};
|
|
762
|
+
// authentication scaleway required
|
|
763
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
764
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
765
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
766
|
+
localVarRequestOptions.headers = {
|
|
767
|
+
...localVarHeaderParameter,
|
|
768
|
+
...headersFromBaseOptions,
|
|
769
|
+
...options.headers,
|
|
770
|
+
};
|
|
771
|
+
return {
|
|
772
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
773
|
+
options: localVarRequestOptions,
|
|
774
|
+
};
|
|
775
|
+
},
|
|
776
|
+
/**
|
|
777
|
+
* List all available Elastic Metal server configurations.
|
|
778
|
+
* @summary List offers
|
|
779
|
+
* @param {ListOffersZoneEnum} zone The zone you want to target
|
|
780
|
+
* @param {number} [page] Page number.
|
|
781
|
+
* @param {number} [pageSize] Number of offers per page.
|
|
782
|
+
* @param {ListOffersSubscriptionPeriodEnum} [subscriptionPeriod] Subscription period type to filter offers by.
|
|
783
|
+
* @param {string} [name] Offer name to filter offers by.
|
|
784
|
+
* @param {*} [options] Override http request option.
|
|
785
|
+
* @throws {RequiredError}
|
|
786
|
+
*/
|
|
787
|
+
listOffers: async (zone, page, pageSize, subscriptionPeriod, name, options = {}) => {
|
|
788
|
+
// verify required parameter 'zone' is not null or undefined
|
|
789
|
+
(0, common_1.assertParamExists)('listOffers', 'zone', zone);
|
|
790
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/offers`.replace(`{${'zone'}}`, encodeURIComponent(String(zone)));
|
|
791
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
792
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
793
|
+
let baseOptions;
|
|
794
|
+
if (configuration) {
|
|
795
|
+
baseOptions = configuration.baseOptions;
|
|
796
|
+
}
|
|
797
|
+
const localVarRequestOptions = {
|
|
798
|
+
method: 'GET',
|
|
799
|
+
...baseOptions,
|
|
800
|
+
...options,
|
|
801
|
+
};
|
|
802
|
+
const localVarHeaderParameter = {};
|
|
803
|
+
const localVarQueryParameter = {};
|
|
804
|
+
// authentication scaleway required
|
|
805
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
806
|
+
if (page !== undefined) {
|
|
807
|
+
localVarQueryParameter['page'] = page;
|
|
808
|
+
}
|
|
809
|
+
if (pageSize !== undefined) {
|
|
810
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
811
|
+
}
|
|
812
|
+
if (subscriptionPeriod !== undefined) {
|
|
813
|
+
localVarQueryParameter['subscription_period'] = subscriptionPeriod;
|
|
814
|
+
}
|
|
815
|
+
if (name !== undefined) {
|
|
816
|
+
localVarQueryParameter['name'] = name;
|
|
817
|
+
}
|
|
818
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
819
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
820
|
+
localVarRequestOptions.headers = {
|
|
821
|
+
...localVarHeaderParameter,
|
|
822
|
+
...headersFromBaseOptions,
|
|
823
|
+
...options.headers,
|
|
824
|
+
};
|
|
825
|
+
return {
|
|
826
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
827
|
+
options: localVarRequestOptions,
|
|
828
|
+
};
|
|
829
|
+
},
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
exports.OffersApiAxiosParamCreator = OffersApiAxiosParamCreator;
|
|
833
|
+
/**
|
|
834
|
+
* OffersApi - functional programming interface
|
|
835
|
+
* @export
|
|
836
|
+
*/
|
|
837
|
+
const OffersApiFp = function (configuration) {
|
|
838
|
+
const localVarAxiosParamCreator = (0, exports.OffersApiAxiosParamCreator)(configuration);
|
|
839
|
+
return {
|
|
840
|
+
/**
|
|
841
|
+
* Get details of an offer identified by its offer ID.
|
|
842
|
+
* @summary Get offer
|
|
843
|
+
* @param {GetOfferZoneEnum} zone The zone you want to target
|
|
844
|
+
* @param {string} offerId ID of the researched Offer.
|
|
845
|
+
* @param {*} [options] Override http request option.
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
*/
|
|
848
|
+
async getOffer(zone, offerId, options) {
|
|
849
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOffer(zone, offerId, options);
|
|
850
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
851
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OffersApi.getOffer']?.[localVarOperationServerIndex]
|
|
852
|
+
?.url;
|
|
853
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
854
|
+
},
|
|
855
|
+
/**
|
|
856
|
+
* List all available Elastic Metal server configurations.
|
|
857
|
+
* @summary List offers
|
|
858
|
+
* @param {ListOffersZoneEnum} zone The zone you want to target
|
|
859
|
+
* @param {number} [page] Page number.
|
|
860
|
+
* @param {number} [pageSize] Number of offers per page.
|
|
861
|
+
* @param {ListOffersSubscriptionPeriodEnum} [subscriptionPeriod] Subscription period type to filter offers by.
|
|
862
|
+
* @param {string} [name] Offer name to filter offers by.
|
|
863
|
+
* @param {*} [options] Override http request option.
|
|
864
|
+
* @throws {RequiredError}
|
|
865
|
+
*/
|
|
866
|
+
async listOffers(zone, page, pageSize, subscriptionPeriod, name, options) {
|
|
867
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOffers(zone, page, pageSize, subscriptionPeriod, name, options);
|
|
868
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
869
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OffersApi.listOffers']?.[localVarOperationServerIndex]?.url;
|
|
870
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
871
|
+
},
|
|
872
|
+
};
|
|
873
|
+
};
|
|
874
|
+
exports.OffersApiFp = OffersApiFp;
|
|
875
|
+
/**
|
|
876
|
+
* OffersApi - factory interface
|
|
877
|
+
* @export
|
|
878
|
+
*/
|
|
879
|
+
const OffersApiFactory = function (configuration, basePath, axios) {
|
|
880
|
+
const localVarFp = (0, exports.OffersApiFp)(configuration);
|
|
881
|
+
return {
|
|
882
|
+
/**
|
|
883
|
+
* Get details of an offer identified by its offer ID.
|
|
884
|
+
* @summary Get offer
|
|
885
|
+
* @param {GetOfferZoneEnum} zone The zone you want to target
|
|
886
|
+
* @param {string} offerId ID of the researched Offer.
|
|
887
|
+
* @param {*} [options] Override http request option.
|
|
888
|
+
* @throws {RequiredError}
|
|
889
|
+
*/
|
|
890
|
+
getOffer(zone, offerId, options) {
|
|
891
|
+
return localVarFp
|
|
892
|
+
.getOffer(zone, offerId, options)
|
|
893
|
+
.then((request) => request(axios, basePath));
|
|
894
|
+
},
|
|
895
|
+
/**
|
|
896
|
+
* List all available Elastic Metal server configurations.
|
|
897
|
+
* @summary List offers
|
|
898
|
+
* @param {ListOffersZoneEnum} zone The zone you want to target
|
|
899
|
+
* @param {number} [page] Page number.
|
|
900
|
+
* @param {number} [pageSize] Number of offers per page.
|
|
901
|
+
* @param {ListOffersSubscriptionPeriodEnum} [subscriptionPeriod] Subscription period type to filter offers by.
|
|
902
|
+
* @param {string} [name] Offer name to filter offers by.
|
|
903
|
+
* @param {*} [options] Override http request option.
|
|
904
|
+
* @throws {RequiredError}
|
|
905
|
+
*/
|
|
906
|
+
listOffers(zone, page, pageSize, subscriptionPeriod, name, options) {
|
|
907
|
+
return localVarFp
|
|
908
|
+
.listOffers(zone, page, pageSize, subscriptionPeriod, name, options)
|
|
909
|
+
.then((request) => request(axios, basePath));
|
|
910
|
+
},
|
|
911
|
+
};
|
|
912
|
+
};
|
|
913
|
+
exports.OffersApiFactory = OffersApiFactory;
|
|
914
|
+
/**
|
|
915
|
+
* OffersApi - object-oriented interface
|
|
916
|
+
* @export
|
|
917
|
+
* @class OffersApi
|
|
918
|
+
* @extends {BaseAPI}
|
|
919
|
+
*/
|
|
920
|
+
class OffersApi extends base_1.BaseAPI {
|
|
921
|
+
/**
|
|
922
|
+
* Get details of an offer identified by its offer ID.
|
|
923
|
+
* @summary Get offer
|
|
924
|
+
* @param {GetOfferZoneEnum} zone The zone you want to target
|
|
925
|
+
* @param {string} offerId ID of the researched Offer.
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
* @memberof OffersApi
|
|
929
|
+
*/
|
|
930
|
+
getOffer(zone, offerId, options) {
|
|
931
|
+
return (0, exports.OffersApiFp)(this.configuration)
|
|
932
|
+
.getOffer(zone, offerId, options)
|
|
933
|
+
.then((request) => request(this.axios, this.basePath));
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* List all available Elastic Metal server configurations.
|
|
937
|
+
* @summary List offers
|
|
938
|
+
* @param {ListOffersZoneEnum} zone The zone you want to target
|
|
939
|
+
* @param {number} [page] Page number.
|
|
940
|
+
* @param {number} [pageSize] Number of offers per page.
|
|
941
|
+
* @param {ListOffersSubscriptionPeriodEnum} [subscriptionPeriod] Subscription period type to filter offers by.
|
|
942
|
+
* @param {string} [name] Offer name to filter offers by.
|
|
943
|
+
* @param {*} [options] Override http request option.
|
|
944
|
+
* @throws {RequiredError}
|
|
945
|
+
* @memberof OffersApi
|
|
946
|
+
*/
|
|
947
|
+
listOffers(zone, page, pageSize, subscriptionPeriod, name, options) {
|
|
948
|
+
return (0, exports.OffersApiFp)(this.configuration)
|
|
949
|
+
.listOffers(zone, page, pageSize, subscriptionPeriod, name, options)
|
|
950
|
+
.then((request) => request(this.axios, this.basePath));
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
exports.OffersApi = OffersApi;
|
|
954
|
+
/**
|
|
955
|
+
* @export
|
|
956
|
+
*/
|
|
957
|
+
exports.GetOfferZoneEnum = {
|
|
958
|
+
FrPar1: 'fr-par-1',
|
|
959
|
+
FrPar2: 'fr-par-2',
|
|
960
|
+
NlAms1: 'nl-ams-1',
|
|
961
|
+
NlAms2: 'nl-ams-2',
|
|
962
|
+
PlWaw2: 'pl-waw-2',
|
|
963
|
+
PlWaw3: 'pl-waw-3',
|
|
964
|
+
};
|
|
965
|
+
/**
|
|
966
|
+
* @export
|
|
967
|
+
*/
|
|
968
|
+
exports.ListOffersZoneEnum = {
|
|
969
|
+
FrPar1: 'fr-par-1',
|
|
970
|
+
FrPar2: 'fr-par-2',
|
|
971
|
+
NlAms1: 'nl-ams-1',
|
|
972
|
+
NlAms2: 'nl-ams-2',
|
|
973
|
+
PlWaw2: 'pl-waw-2',
|
|
974
|
+
PlWaw3: 'pl-waw-3',
|
|
975
|
+
};
|
|
976
|
+
/**
|
|
977
|
+
* @export
|
|
978
|
+
*/
|
|
979
|
+
exports.ListOffersSubscriptionPeriodEnum = {
|
|
980
|
+
UnknownSubscriptionPeriod: 'unknown_subscription_period',
|
|
981
|
+
Hourly: 'hourly',
|
|
982
|
+
Monthly: 'monthly',
|
|
983
|
+
};
|
|
984
|
+
/**
|
|
985
|
+
* OptionsApi - axios parameter creator
|
|
986
|
+
* @export
|
|
987
|
+
*/
|
|
988
|
+
const OptionsApiAxiosParamCreator = function (configuration) {
|
|
989
|
+
return {
|
|
990
|
+
/**
|
|
991
|
+
* Return specific option for the ID.
|
|
992
|
+
* @summary Get option
|
|
993
|
+
* @param {GetOptionZoneEnum} zone The zone you want to target
|
|
994
|
+
* @param {string} optionId ID of the option.
|
|
995
|
+
* @param {*} [options] Override http request option.
|
|
996
|
+
* @throws {RequiredError}
|
|
997
|
+
*/
|
|
998
|
+
getOption: async (zone, optionId, options = {}) => {
|
|
999
|
+
// verify required parameter 'zone' is not null or undefined
|
|
1000
|
+
(0, common_1.assertParamExists)('getOption', 'zone', zone);
|
|
1001
|
+
// verify required parameter 'optionId' is not null or undefined
|
|
1002
|
+
(0, common_1.assertParamExists)('getOption', 'optionId', optionId);
|
|
1003
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/options/{option_id}`
|
|
1004
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
1005
|
+
.replace(`{${'option_id'}}`, encodeURIComponent(String(optionId)));
|
|
1006
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1007
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1008
|
+
let baseOptions;
|
|
1009
|
+
if (configuration) {
|
|
1010
|
+
baseOptions = configuration.baseOptions;
|
|
1011
|
+
}
|
|
1012
|
+
const localVarRequestOptions = {
|
|
1013
|
+
method: 'GET',
|
|
1014
|
+
...baseOptions,
|
|
1015
|
+
...options,
|
|
1016
|
+
};
|
|
1017
|
+
const localVarHeaderParameter = {};
|
|
1018
|
+
const localVarQueryParameter = {};
|
|
1019
|
+
// authentication scaleway required
|
|
1020
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1021
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1022
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1023
|
+
localVarRequestOptions.headers = {
|
|
1024
|
+
...localVarHeaderParameter,
|
|
1025
|
+
...headersFromBaseOptions,
|
|
1026
|
+
...options.headers,
|
|
1027
|
+
};
|
|
1028
|
+
return {
|
|
1029
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1030
|
+
options: localVarRequestOptions,
|
|
1031
|
+
};
|
|
1032
|
+
},
|
|
1033
|
+
/**
|
|
1034
|
+
* List all options matching with filters.
|
|
1035
|
+
* @summary List options
|
|
1036
|
+
* @param {ListOptionsZoneEnum} zone The zone you want to target
|
|
1037
|
+
* @param {number} [page] Page number.
|
|
1038
|
+
* @param {number} [pageSize] Number of options per page.
|
|
1039
|
+
* @param {string} [offerId] Offer ID to filter options for.
|
|
1040
|
+
* @param {string} [name] Name to filter options for.
|
|
1041
|
+
* @param {*} [options] Override http request option.
|
|
1042
|
+
* @throws {RequiredError}
|
|
1043
|
+
*/
|
|
1044
|
+
listOptions: async (zone, page, pageSize, offerId, name, options = {}) => {
|
|
1045
|
+
// verify required parameter 'zone' is not null or undefined
|
|
1046
|
+
(0, common_1.assertParamExists)('listOptions', 'zone', zone);
|
|
1047
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/options`.replace(`{${'zone'}}`, encodeURIComponent(String(zone)));
|
|
1048
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1049
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1050
|
+
let baseOptions;
|
|
1051
|
+
if (configuration) {
|
|
1052
|
+
baseOptions = configuration.baseOptions;
|
|
1053
|
+
}
|
|
1054
|
+
const localVarRequestOptions = {
|
|
1055
|
+
method: 'GET',
|
|
1056
|
+
...baseOptions,
|
|
1057
|
+
...options,
|
|
1058
|
+
};
|
|
1059
|
+
const localVarHeaderParameter = {};
|
|
1060
|
+
const localVarQueryParameter = {};
|
|
1061
|
+
// authentication scaleway required
|
|
1062
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1063
|
+
if (page !== undefined) {
|
|
1064
|
+
localVarQueryParameter['page'] = page;
|
|
1065
|
+
}
|
|
1066
|
+
if (pageSize !== undefined) {
|
|
1067
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1068
|
+
}
|
|
1069
|
+
if (offerId !== undefined) {
|
|
1070
|
+
localVarQueryParameter['offer_id'] = offerId;
|
|
1071
|
+
}
|
|
1072
|
+
if (name !== undefined) {
|
|
1073
|
+
localVarQueryParameter['name'] = name;
|
|
1074
|
+
}
|
|
1075
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1076
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1077
|
+
localVarRequestOptions.headers = {
|
|
1078
|
+
...localVarHeaderParameter,
|
|
1079
|
+
...headersFromBaseOptions,
|
|
1080
|
+
...options.headers,
|
|
1081
|
+
};
|
|
1082
|
+
return {
|
|
1083
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1084
|
+
options: localVarRequestOptions,
|
|
1085
|
+
};
|
|
1086
|
+
},
|
|
1087
|
+
/**
|
|
1088
|
+
* Return all settings for a Project ID.
|
|
1089
|
+
* @summary List all settings
|
|
1090
|
+
* @param {ListSettingsZoneEnum} zone The zone you want to target
|
|
1091
|
+
* @param {number} [page] Page number.
|
|
1092
|
+
* @param {number} [pageSize] Set the maximum list size.
|
|
1093
|
+
* @param {ListSettingsOrderByEnum} [orderBy] Sort order for items in the response.
|
|
1094
|
+
* @param {string} [projectId] ID of the Project. (UUID format)
|
|
1095
|
+
* @param {*} [options] Override http request option.
|
|
1096
|
+
* @throws {RequiredError}
|
|
1097
|
+
*/
|
|
1098
|
+
listSettings: async (zone, page, pageSize, orderBy, projectId, options = {}) => {
|
|
1099
|
+
// verify required parameter 'zone' is not null or undefined
|
|
1100
|
+
(0, common_1.assertParamExists)('listSettings', 'zone', zone);
|
|
1101
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/settings`.replace(`{${'zone'}}`, encodeURIComponent(String(zone)));
|
|
1102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1103
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1104
|
+
let baseOptions;
|
|
1105
|
+
if (configuration) {
|
|
1106
|
+
baseOptions = configuration.baseOptions;
|
|
1107
|
+
}
|
|
1108
|
+
const localVarRequestOptions = {
|
|
1109
|
+
method: 'GET',
|
|
1110
|
+
...baseOptions,
|
|
1111
|
+
...options,
|
|
1112
|
+
};
|
|
1113
|
+
const localVarHeaderParameter = {};
|
|
1114
|
+
const localVarQueryParameter = {};
|
|
1115
|
+
// authentication scaleway required
|
|
1116
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1117
|
+
if (page !== undefined) {
|
|
1118
|
+
localVarQueryParameter['page'] = page;
|
|
1119
|
+
}
|
|
1120
|
+
if (pageSize !== undefined) {
|
|
1121
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1122
|
+
}
|
|
1123
|
+
if (orderBy !== undefined) {
|
|
1124
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
1125
|
+
}
|
|
1126
|
+
if (projectId !== undefined) {
|
|
1127
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
1128
|
+
}
|
|
1129
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1130
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1131
|
+
localVarRequestOptions.headers = {
|
|
1132
|
+
...localVarHeaderParameter,
|
|
1133
|
+
...headersFromBaseOptions,
|
|
1134
|
+
...options.headers,
|
|
1135
|
+
};
|
|
1136
|
+
return {
|
|
1137
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1138
|
+
options: localVarRequestOptions,
|
|
1139
|
+
};
|
|
1140
|
+
},
|
|
1141
|
+
/**
|
|
1142
|
+
* Update a setting for a Project ID (enable or disable).
|
|
1143
|
+
* @summary Update setting
|
|
1144
|
+
* @param {UpdateSettingZoneEnum} zone The zone you want to target
|
|
1145
|
+
* @param {string} settingId ID of the setting.
|
|
1146
|
+
* @param {UpdateSettingRequest} updateSettingRequest
|
|
1147
|
+
* @param {*} [options] Override http request option.
|
|
1148
|
+
* @throws {RequiredError}
|
|
1149
|
+
*/
|
|
1150
|
+
updateSetting: async (zone, settingId, updateSettingRequest, options = {}) => {
|
|
1151
|
+
// verify required parameter 'zone' is not null or undefined
|
|
1152
|
+
(0, common_1.assertParamExists)('updateSetting', 'zone', zone);
|
|
1153
|
+
// verify required parameter 'settingId' is not null or undefined
|
|
1154
|
+
(0, common_1.assertParamExists)('updateSetting', 'settingId', settingId);
|
|
1155
|
+
// verify required parameter 'updateSettingRequest' is not null or undefined
|
|
1156
|
+
(0, common_1.assertParamExists)('updateSetting', 'updateSettingRequest', updateSettingRequest);
|
|
1157
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/settings/{setting_id}`
|
|
1158
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
1159
|
+
.replace(`{${'setting_id'}}`, encodeURIComponent(String(settingId)));
|
|
1160
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1161
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1162
|
+
let baseOptions;
|
|
1163
|
+
if (configuration) {
|
|
1164
|
+
baseOptions = configuration.baseOptions;
|
|
1165
|
+
}
|
|
1166
|
+
const localVarRequestOptions = {
|
|
1167
|
+
method: 'PATCH',
|
|
1168
|
+
...baseOptions,
|
|
1169
|
+
...options,
|
|
1170
|
+
};
|
|
1171
|
+
const localVarHeaderParameter = {};
|
|
1172
|
+
const localVarQueryParameter = {};
|
|
1173
|
+
// authentication scaleway required
|
|
1174
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1175
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1176
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1178
|
+
localVarRequestOptions.headers = {
|
|
1179
|
+
...localVarHeaderParameter,
|
|
1180
|
+
...headersFromBaseOptions,
|
|
1181
|
+
...options.headers,
|
|
1182
|
+
};
|
|
1183
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSettingRequest, localVarRequestOptions, configuration);
|
|
1184
|
+
return {
|
|
1185
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1186
|
+
options: localVarRequestOptions,
|
|
1187
|
+
};
|
|
1188
|
+
},
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
exports.OptionsApiAxiosParamCreator = OptionsApiAxiosParamCreator;
|
|
1192
|
+
/**
|
|
1193
|
+
* OptionsApi - functional programming interface
|
|
1194
|
+
* @export
|
|
1195
|
+
*/
|
|
1196
|
+
const OptionsApiFp = function (configuration) {
|
|
1197
|
+
const localVarAxiosParamCreator = (0, exports.OptionsApiAxiosParamCreator)(configuration);
|
|
1198
|
+
return {
|
|
1199
|
+
/**
|
|
1200
|
+
* Return specific option for the ID.
|
|
1201
|
+
* @summary Get option
|
|
1202
|
+
* @param {GetOptionZoneEnum} zone The zone you want to target
|
|
1203
|
+
* @param {string} optionId ID of the option.
|
|
1204
|
+
* @param {*} [options] Override http request option.
|
|
1205
|
+
* @throws {RequiredError}
|
|
1206
|
+
*/
|
|
1207
|
+
async getOption(zone, optionId, options) {
|
|
1208
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOption(zone, optionId, options);
|
|
1209
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1210
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OptionsApi.getOption']?.[localVarOperationServerIndex]?.url;
|
|
1211
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1212
|
+
},
|
|
1213
|
+
/**
|
|
1214
|
+
* List all options matching with filters.
|
|
1215
|
+
* @summary List options
|
|
1216
|
+
* @param {ListOptionsZoneEnum} zone The zone you want to target
|
|
1217
|
+
* @param {number} [page] Page number.
|
|
1218
|
+
* @param {number} [pageSize] Number of options per page.
|
|
1219
|
+
* @param {string} [offerId] Offer ID to filter options for.
|
|
1220
|
+
* @param {string} [name] Name to filter options for.
|
|
1221
|
+
* @param {*} [options] Override http request option.
|
|
1222
|
+
* @throws {RequiredError}
|
|
1223
|
+
*/
|
|
1224
|
+
async listOptions(zone, page, pageSize, offerId, name, options) {
|
|
1225
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOptions(zone, page, pageSize, offerId, name, options);
|
|
1226
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1227
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OptionsApi.listOptions']?.[localVarOperationServerIndex]?.url;
|
|
1228
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1229
|
+
},
|
|
1230
|
+
/**
|
|
1231
|
+
* Return all settings for a Project ID.
|
|
1232
|
+
* @summary List all settings
|
|
1233
|
+
* @param {ListSettingsZoneEnum} zone The zone you want to target
|
|
1234
|
+
* @param {number} [page] Page number.
|
|
1235
|
+
* @param {number} [pageSize] Set the maximum list size.
|
|
1236
|
+
* @param {ListSettingsOrderByEnum} [orderBy] Sort order for items in the response.
|
|
1237
|
+
* @param {string} [projectId] ID of the Project. (UUID format)
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
*/
|
|
1241
|
+
async listSettings(zone, page, pageSize, orderBy, projectId, options) {
|
|
1242
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSettings(zone, page, pageSize, orderBy, projectId, options);
|
|
1243
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1244
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OptionsApi.listSettings']?.[localVarOperationServerIndex]?.url;
|
|
1245
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1246
|
+
},
|
|
1247
|
+
/**
|
|
1248
|
+
* Update a setting for a Project ID (enable or disable).
|
|
1249
|
+
* @summary Update setting
|
|
1250
|
+
* @param {UpdateSettingZoneEnum} zone The zone you want to target
|
|
1251
|
+
* @param {string} settingId ID of the setting.
|
|
1252
|
+
* @param {UpdateSettingRequest} updateSettingRequest
|
|
1253
|
+
* @param {*} [options] Override http request option.
|
|
1254
|
+
* @throws {RequiredError}
|
|
1255
|
+
*/
|
|
1256
|
+
async updateSetting(zone, settingId, updateSettingRequest, options) {
|
|
1257
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSetting(zone, settingId, updateSettingRequest, options);
|
|
1258
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1259
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['OptionsApi.updateSetting']?.[localVarOperationServerIndex]?.url;
|
|
1260
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1261
|
+
},
|
|
1262
|
+
};
|
|
1263
|
+
};
|
|
1264
|
+
exports.OptionsApiFp = OptionsApiFp;
|
|
1265
|
+
/**
|
|
1266
|
+
* OptionsApi - factory interface
|
|
1267
|
+
* @export
|
|
1268
|
+
*/
|
|
1269
|
+
const OptionsApiFactory = function (configuration, basePath, axios) {
|
|
1270
|
+
const localVarFp = (0, exports.OptionsApiFp)(configuration);
|
|
1271
|
+
return {
|
|
1272
|
+
/**
|
|
1273
|
+
* Return specific option for the ID.
|
|
1274
|
+
* @summary Get option
|
|
1275
|
+
* @param {GetOptionZoneEnum} zone The zone you want to target
|
|
1276
|
+
* @param {string} optionId ID of the option.
|
|
1277
|
+
* @param {*} [options] Override http request option.
|
|
1278
|
+
* @throws {RequiredError}
|
|
1279
|
+
*/
|
|
1280
|
+
getOption(zone, optionId, options) {
|
|
1281
|
+
return localVarFp
|
|
1282
|
+
.getOption(zone, optionId, options)
|
|
1283
|
+
.then((request) => request(axios, basePath));
|
|
1284
|
+
},
|
|
1285
|
+
/**
|
|
1286
|
+
* List all options matching with filters.
|
|
1287
|
+
* @summary List options
|
|
1288
|
+
* @param {ListOptionsZoneEnum} zone The zone you want to target
|
|
1289
|
+
* @param {number} [page] Page number.
|
|
1290
|
+
* @param {number} [pageSize] Number of options per page.
|
|
1291
|
+
* @param {string} [offerId] Offer ID to filter options for.
|
|
1292
|
+
* @param {string} [name] Name to filter options for.
|
|
1293
|
+
* @param {*} [options] Override http request option.
|
|
1294
|
+
* @throws {RequiredError}
|
|
1295
|
+
*/
|
|
1296
|
+
listOptions(zone, page, pageSize, offerId, name, options) {
|
|
1297
|
+
return localVarFp
|
|
1298
|
+
.listOptions(zone, page, pageSize, offerId, name, options)
|
|
1299
|
+
.then((request) => request(axios, basePath));
|
|
1300
|
+
},
|
|
1301
|
+
/**
|
|
1302
|
+
* Return all settings for a Project ID.
|
|
1303
|
+
* @summary List all settings
|
|
1304
|
+
* @param {ListSettingsZoneEnum} zone The zone you want to target
|
|
1305
|
+
* @param {number} [page] Page number.
|
|
1306
|
+
* @param {number} [pageSize] Set the maximum list size.
|
|
1307
|
+
* @param {ListSettingsOrderByEnum} [orderBy] Sort order for items in the response.
|
|
1308
|
+
* @param {string} [projectId] ID of the Project. (UUID format)
|
|
1309
|
+
* @param {*} [options] Override http request option.
|
|
1310
|
+
* @throws {RequiredError}
|
|
1311
|
+
*/
|
|
1312
|
+
listSettings(zone, page, pageSize, orderBy, projectId, options) {
|
|
1313
|
+
return localVarFp
|
|
1314
|
+
.listSettings(zone, page, pageSize, orderBy, projectId, options)
|
|
1315
|
+
.then((request) => request(axios, basePath));
|
|
1316
|
+
},
|
|
1317
|
+
/**
|
|
1318
|
+
* Update a setting for a Project ID (enable or disable).
|
|
1319
|
+
* @summary Update setting
|
|
1320
|
+
* @param {UpdateSettingZoneEnum} zone The zone you want to target
|
|
1321
|
+
* @param {string} settingId ID of the setting.
|
|
1322
|
+
* @param {UpdateSettingRequest} updateSettingRequest
|
|
1323
|
+
* @param {*} [options] Override http request option.
|
|
1324
|
+
* @throws {RequiredError}
|
|
1325
|
+
*/
|
|
1326
|
+
updateSetting(zone, settingId, updateSettingRequest, options) {
|
|
1327
|
+
return localVarFp
|
|
1328
|
+
.updateSetting(zone, settingId, updateSettingRequest, options)
|
|
1329
|
+
.then((request) => request(axios, basePath));
|
|
1330
|
+
},
|
|
1331
|
+
};
|
|
1332
|
+
};
|
|
1333
|
+
exports.OptionsApiFactory = OptionsApiFactory;
|
|
1334
|
+
/**
|
|
1335
|
+
* OptionsApi - object-oriented interface
|
|
1336
|
+
* @export
|
|
1337
|
+
* @class OptionsApi
|
|
1338
|
+
* @extends {BaseAPI}
|
|
1339
|
+
*/
|
|
1340
|
+
class OptionsApi extends base_1.BaseAPI {
|
|
1341
|
+
/**
|
|
1342
|
+
* Return specific option for the ID.
|
|
1343
|
+
* @summary Get option
|
|
1344
|
+
* @param {GetOptionZoneEnum} zone The zone you want to target
|
|
1345
|
+
* @param {string} optionId ID of the option.
|
|
1346
|
+
* @param {*} [options] Override http request option.
|
|
1347
|
+
* @throws {RequiredError}
|
|
1348
|
+
* @memberof OptionsApi
|
|
1349
|
+
*/
|
|
1350
|
+
getOption(zone, optionId, options) {
|
|
1351
|
+
return (0, exports.OptionsApiFp)(this.configuration)
|
|
1352
|
+
.getOption(zone, optionId, options)
|
|
1353
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* List all options matching with filters.
|
|
1357
|
+
* @summary List options
|
|
1358
|
+
* @param {ListOptionsZoneEnum} zone The zone you want to target
|
|
1359
|
+
* @param {number} [page] Page number.
|
|
1360
|
+
* @param {number} [pageSize] Number of options per page.
|
|
1361
|
+
* @param {string} [offerId] Offer ID to filter options for.
|
|
1362
|
+
* @param {string} [name] Name to filter options for.
|
|
1363
|
+
* @param {*} [options] Override http request option.
|
|
1364
|
+
* @throws {RequiredError}
|
|
1365
|
+
* @memberof OptionsApi
|
|
1366
|
+
*/
|
|
1367
|
+
listOptions(zone, page, pageSize, offerId, name, options) {
|
|
1368
|
+
return (0, exports.OptionsApiFp)(this.configuration)
|
|
1369
|
+
.listOptions(zone, page, pageSize, offerId, name, options)
|
|
1370
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1371
|
+
}
|
|
1372
|
+
/**
|
|
1373
|
+
* Return all settings for a Project ID.
|
|
1374
|
+
* @summary List all settings
|
|
1375
|
+
* @param {ListSettingsZoneEnum} zone The zone you want to target
|
|
1376
|
+
* @param {number} [page] Page number.
|
|
1377
|
+
* @param {number} [pageSize] Set the maximum list size.
|
|
1378
|
+
* @param {ListSettingsOrderByEnum} [orderBy] Sort order for items in the response.
|
|
1379
|
+
* @param {string} [projectId] ID of the Project. (UUID format)
|
|
1380
|
+
* @param {*} [options] Override http request option.
|
|
1381
|
+
* @throws {RequiredError}
|
|
1382
|
+
* @memberof OptionsApi
|
|
1383
|
+
*/
|
|
1384
|
+
listSettings(zone, page, pageSize, orderBy, projectId, options) {
|
|
1385
|
+
return (0, exports.OptionsApiFp)(this.configuration)
|
|
1386
|
+
.listSettings(zone, page, pageSize, orderBy, projectId, options)
|
|
1387
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1388
|
+
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Update a setting for a Project ID (enable or disable).
|
|
1391
|
+
* @summary Update setting
|
|
1392
|
+
* @param {UpdateSettingZoneEnum} zone The zone you want to target
|
|
1393
|
+
* @param {string} settingId ID of the setting.
|
|
1394
|
+
* @param {UpdateSettingRequest} updateSettingRequest
|
|
1395
|
+
* @param {*} [options] Override http request option.
|
|
1396
|
+
* @throws {RequiredError}
|
|
1397
|
+
* @memberof OptionsApi
|
|
1398
|
+
*/
|
|
1399
|
+
updateSetting(zone, settingId, updateSettingRequest, options) {
|
|
1400
|
+
return (0, exports.OptionsApiFp)(this.configuration)
|
|
1401
|
+
.updateSetting(zone, settingId, updateSettingRequest, options)
|
|
1402
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
exports.OptionsApi = OptionsApi;
|
|
1406
|
+
/**
|
|
1407
|
+
* @export
|
|
1408
|
+
*/
|
|
1409
|
+
exports.GetOptionZoneEnum = {
|
|
1410
|
+
FrPar1: 'fr-par-1',
|
|
1411
|
+
FrPar2: 'fr-par-2',
|
|
1412
|
+
NlAms1: 'nl-ams-1',
|
|
1413
|
+
NlAms2: 'nl-ams-2',
|
|
1414
|
+
PlWaw2: 'pl-waw-2',
|
|
1415
|
+
PlWaw3: 'pl-waw-3',
|
|
1416
|
+
};
|
|
1417
|
+
/**
|
|
1418
|
+
* @export
|
|
1419
|
+
*/
|
|
1420
|
+
exports.ListOptionsZoneEnum = {
|
|
1421
|
+
FrPar1: 'fr-par-1',
|
|
1422
|
+
FrPar2: 'fr-par-2',
|
|
1423
|
+
NlAms1: 'nl-ams-1',
|
|
1424
|
+
NlAms2: 'nl-ams-2',
|
|
1425
|
+
PlWaw2: 'pl-waw-2',
|
|
1426
|
+
PlWaw3: 'pl-waw-3',
|
|
1427
|
+
};
|
|
1428
|
+
/**
|
|
1429
|
+
* @export
|
|
1430
|
+
*/
|
|
1431
|
+
exports.ListSettingsZoneEnum = {
|
|
1432
|
+
FrPar1: 'fr-par-1',
|
|
1433
|
+
FrPar2: 'fr-par-2',
|
|
1434
|
+
NlAms1: 'nl-ams-1',
|
|
1435
|
+
NlAms2: 'nl-ams-2',
|
|
1436
|
+
PlWaw2: 'pl-waw-2',
|
|
1437
|
+
PlWaw3: 'pl-waw-3',
|
|
1438
|
+
};
|
|
1439
|
+
/**
|
|
1440
|
+
* @export
|
|
1441
|
+
*/
|
|
1442
|
+
exports.ListSettingsOrderByEnum = {
|
|
1443
|
+
CreatedAtAsc: 'created_at_asc',
|
|
1444
|
+
CreatedAtDesc: 'created_at_desc',
|
|
1445
|
+
};
|
|
1446
|
+
/**
|
|
1447
|
+
* @export
|
|
1448
|
+
*/
|
|
1449
|
+
exports.UpdateSettingZoneEnum = {
|
|
1450
|
+
FrPar1: 'fr-par-1',
|
|
1451
|
+
FrPar2: 'fr-par-2',
|
|
1452
|
+
NlAms1: 'nl-ams-1',
|
|
1453
|
+
NlAms2: 'nl-ams-2',
|
|
1454
|
+
PlWaw2: 'pl-waw-2',
|
|
1455
|
+
PlWaw3: 'pl-waw-3',
|
|
1456
|
+
};
|
|
1457
|
+
/**
|
|
1458
|
+
* PartitioningSchemasApi - axios parameter creator
|
|
1459
|
+
* @export
|
|
1460
|
+
*/
|
|
1461
|
+
const PartitioningSchemasApiAxiosParamCreator = function (configuration) {
|
|
1462
|
+
return {
|
|
1463
|
+
/**
|
|
1464
|
+
* Get the default partitioning schema for the given offer ID and OS ID.
|
|
1465
|
+
* @summary Get default partitioning schema
|
|
1466
|
+
* @param {GetDefaultPartitioningSchemaZoneEnum} zone The zone you want to target
|
|
1467
|
+
* @param {string} offerId ID of the offer.
|
|
1468
|
+
* @param {string} osId ID of the OS.
|
|
1469
|
+
* @param {*} [options] Override http request option.
|
|
1470
|
+
* @throws {RequiredError}
|
|
1471
|
+
*/
|
|
1472
|
+
getDefaultPartitioningSchema: async (zone, offerId, osId, options = {}) => {
|
|
1473
|
+
// verify required parameter 'zone' is not null or undefined
|
|
1474
|
+
(0, common_1.assertParamExists)('getDefaultPartitioningSchema', 'zone', zone);
|
|
1475
|
+
// verify required parameter 'offerId' is not null or undefined
|
|
1476
|
+
(0, common_1.assertParamExists)('getDefaultPartitioningSchema', 'offerId', offerId);
|
|
1477
|
+
// verify required parameter 'osId' is not null or undefined
|
|
1478
|
+
(0, common_1.assertParamExists)('getDefaultPartitioningSchema', 'osId', osId);
|
|
1479
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/partitioning-schemas/default`.replace(`{${'zone'}}`, encodeURIComponent(String(zone)));
|
|
1480
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1481
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1482
|
+
let baseOptions;
|
|
1483
|
+
if (configuration) {
|
|
1484
|
+
baseOptions = configuration.baseOptions;
|
|
1485
|
+
}
|
|
1486
|
+
const localVarRequestOptions = {
|
|
1487
|
+
method: 'GET',
|
|
1488
|
+
...baseOptions,
|
|
1489
|
+
...options,
|
|
1490
|
+
};
|
|
1491
|
+
const localVarHeaderParameter = {};
|
|
1492
|
+
const localVarQueryParameter = {};
|
|
1493
|
+
// authentication scaleway required
|
|
1494
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1495
|
+
if (offerId !== undefined) {
|
|
1496
|
+
localVarQueryParameter['offer_id'] = offerId;
|
|
1497
|
+
}
|
|
1498
|
+
if (osId !== undefined) {
|
|
1499
|
+
localVarQueryParameter['os_id'] = osId;
|
|
1500
|
+
}
|
|
1501
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1502
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1503
|
+
localVarRequestOptions.headers = {
|
|
1504
|
+
...localVarHeaderParameter,
|
|
1505
|
+
...headersFromBaseOptions,
|
|
1506
|
+
...options.headers,
|
|
1507
|
+
};
|
|
1508
|
+
return {
|
|
1509
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1510
|
+
options: localVarRequestOptions,
|
|
1511
|
+
};
|
|
1512
|
+
},
|
|
1513
|
+
/**
|
|
1514
|
+
* Validate the incoming partitioning schema from a user before installing the server. Return default ErrorCode if invalid.
|
|
1515
|
+
* @summary Validate client partitioning schema
|
|
1516
|
+
* @param {ValidatePartitioningSchemaZoneEnum} zone The zone you want to target
|
|
1517
|
+
* @param {ValidatePartitioningSchemaRequest} validatePartitioningSchemaRequest
|
|
1518
|
+
* @param {*} [options] Override http request option.
|
|
1519
|
+
* @throws {RequiredError}
|
|
1520
|
+
*/
|
|
1521
|
+
validatePartitioningSchema: async (zone, validatePartitioningSchemaRequest, options = {}) => {
|
|
1522
|
+
// verify required parameter 'zone' is not null or undefined
|
|
1523
|
+
(0, common_1.assertParamExists)('validatePartitioningSchema', 'zone', zone);
|
|
1524
|
+
// verify required parameter 'validatePartitioningSchemaRequest' is not null or undefined
|
|
1525
|
+
(0, common_1.assertParamExists)('validatePartitioningSchema', 'validatePartitioningSchemaRequest', validatePartitioningSchemaRequest);
|
|
1526
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/partitioning-schemas/validate`.replace(`{${'zone'}}`, encodeURIComponent(String(zone)));
|
|
1527
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1528
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1529
|
+
let baseOptions;
|
|
1530
|
+
if (configuration) {
|
|
1531
|
+
baseOptions = configuration.baseOptions;
|
|
1532
|
+
}
|
|
1533
|
+
const localVarRequestOptions = {
|
|
1534
|
+
method: 'POST',
|
|
1535
|
+
...baseOptions,
|
|
1536
|
+
...options,
|
|
1537
|
+
};
|
|
1538
|
+
const localVarHeaderParameter = {};
|
|
1539
|
+
const localVarQueryParameter = {};
|
|
1540
|
+
// authentication scaleway required
|
|
1541
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1542
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1543
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1544
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1545
|
+
localVarRequestOptions.headers = {
|
|
1546
|
+
...localVarHeaderParameter,
|
|
1547
|
+
...headersFromBaseOptions,
|
|
1548
|
+
...options.headers,
|
|
1549
|
+
};
|
|
1550
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(validatePartitioningSchemaRequest, localVarRequestOptions, configuration);
|
|
1551
|
+
return {
|
|
1552
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1553
|
+
options: localVarRequestOptions,
|
|
1554
|
+
};
|
|
1555
|
+
},
|
|
1556
|
+
};
|
|
1557
|
+
};
|
|
1558
|
+
exports.PartitioningSchemasApiAxiosParamCreator = PartitioningSchemasApiAxiosParamCreator;
|
|
1559
|
+
/**
|
|
1560
|
+
* PartitioningSchemasApi - functional programming interface
|
|
1561
|
+
* @export
|
|
1562
|
+
*/
|
|
1563
|
+
const PartitioningSchemasApiFp = function (configuration) {
|
|
1564
|
+
const localVarAxiosParamCreator = (0, exports.PartitioningSchemasApiAxiosParamCreator)(configuration);
|
|
1565
|
+
return {
|
|
1566
|
+
/**
|
|
1567
|
+
* Get the default partitioning schema for the given offer ID and OS ID.
|
|
1568
|
+
* @summary Get default partitioning schema
|
|
1569
|
+
* @param {GetDefaultPartitioningSchemaZoneEnum} zone The zone you want to target
|
|
1570
|
+
* @param {string} offerId ID of the offer.
|
|
1571
|
+
* @param {string} osId ID of the OS.
|
|
1572
|
+
* @param {*} [options] Override http request option.
|
|
1573
|
+
* @throws {RequiredError}
|
|
1574
|
+
*/
|
|
1575
|
+
async getDefaultPartitioningSchema(zone, offerId, osId, options) {
|
|
1576
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDefaultPartitioningSchema(zone, offerId, osId, options);
|
|
1577
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1578
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['PartitioningSchemasApi.getDefaultPartitioningSchema']?.[localVarOperationServerIndex]?.url;
|
|
1579
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1580
|
+
},
|
|
1581
|
+
/**
|
|
1582
|
+
* Validate the incoming partitioning schema from a user before installing the server. Return default ErrorCode if invalid.
|
|
1583
|
+
* @summary Validate client partitioning schema
|
|
1584
|
+
* @param {ValidatePartitioningSchemaZoneEnum} zone The zone you want to target
|
|
1585
|
+
* @param {ValidatePartitioningSchemaRequest} validatePartitioningSchemaRequest
|
|
1586
|
+
* @param {*} [options] Override http request option.
|
|
1587
|
+
* @throws {RequiredError}
|
|
1588
|
+
*/
|
|
1589
|
+
async validatePartitioningSchema(zone, validatePartitioningSchemaRequest, options) {
|
|
1590
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validatePartitioningSchema(zone, validatePartitioningSchemaRequest, options);
|
|
1591
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1592
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['PartitioningSchemasApi.validatePartitioningSchema']?.[localVarOperationServerIndex]?.url;
|
|
1593
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1594
|
+
},
|
|
1595
|
+
};
|
|
1596
|
+
};
|
|
1597
|
+
exports.PartitioningSchemasApiFp = PartitioningSchemasApiFp;
|
|
1598
|
+
/**
|
|
1599
|
+
* PartitioningSchemasApi - factory interface
|
|
1600
|
+
* @export
|
|
1601
|
+
*/
|
|
1602
|
+
const PartitioningSchemasApiFactory = function (configuration, basePath, axios) {
|
|
1603
|
+
const localVarFp = (0, exports.PartitioningSchemasApiFp)(configuration);
|
|
1604
|
+
return {
|
|
1605
|
+
/**
|
|
1606
|
+
* Get the default partitioning schema for the given offer ID and OS ID.
|
|
1607
|
+
* @summary Get default partitioning schema
|
|
1608
|
+
* @param {GetDefaultPartitioningSchemaZoneEnum} zone The zone you want to target
|
|
1609
|
+
* @param {string} offerId ID of the offer.
|
|
1610
|
+
* @param {string} osId ID of the OS.
|
|
1611
|
+
* @param {*} [options] Override http request option.
|
|
1612
|
+
* @throws {RequiredError}
|
|
1613
|
+
*/
|
|
1614
|
+
getDefaultPartitioningSchema(zone, offerId, osId, options) {
|
|
1615
|
+
return localVarFp
|
|
1616
|
+
.getDefaultPartitioningSchema(zone, offerId, osId, options)
|
|
1617
|
+
.then((request) => request(axios, basePath));
|
|
1618
|
+
},
|
|
1619
|
+
/**
|
|
1620
|
+
* Validate the incoming partitioning schema from a user before installing the server. Return default ErrorCode if invalid.
|
|
1621
|
+
* @summary Validate client partitioning schema
|
|
1622
|
+
* @param {ValidatePartitioningSchemaZoneEnum} zone The zone you want to target
|
|
1623
|
+
* @param {ValidatePartitioningSchemaRequest} validatePartitioningSchemaRequest
|
|
1624
|
+
* @param {*} [options] Override http request option.
|
|
1625
|
+
* @throws {RequiredError}
|
|
1626
|
+
*/
|
|
1627
|
+
validatePartitioningSchema(zone, validatePartitioningSchemaRequest, options) {
|
|
1628
|
+
return localVarFp
|
|
1629
|
+
.validatePartitioningSchema(zone, validatePartitioningSchemaRequest, options)
|
|
1630
|
+
.then((request) => request(axios, basePath));
|
|
1631
|
+
},
|
|
1632
|
+
};
|
|
1633
|
+
};
|
|
1634
|
+
exports.PartitioningSchemasApiFactory = PartitioningSchemasApiFactory;
|
|
1635
|
+
/**
|
|
1636
|
+
* PartitioningSchemasApi - object-oriented interface
|
|
1637
|
+
* @export
|
|
1638
|
+
* @class PartitioningSchemasApi
|
|
1639
|
+
* @extends {BaseAPI}
|
|
1640
|
+
*/
|
|
1641
|
+
class PartitioningSchemasApi extends base_1.BaseAPI {
|
|
1642
|
+
/**
|
|
1643
|
+
* Get the default partitioning schema for the given offer ID and OS ID.
|
|
1644
|
+
* @summary Get default partitioning schema
|
|
1645
|
+
* @param {GetDefaultPartitioningSchemaZoneEnum} zone The zone you want to target
|
|
1646
|
+
* @param {string} offerId ID of the offer.
|
|
1647
|
+
* @param {string} osId ID of the OS.
|
|
1648
|
+
* @param {*} [options] Override http request option.
|
|
1649
|
+
* @throws {RequiredError}
|
|
1650
|
+
* @memberof PartitioningSchemasApi
|
|
1651
|
+
*/
|
|
1652
|
+
getDefaultPartitioningSchema(zone, offerId, osId, options) {
|
|
1653
|
+
return (0, exports.PartitioningSchemasApiFp)(this.configuration)
|
|
1654
|
+
.getDefaultPartitioningSchema(zone, offerId, osId, options)
|
|
1655
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1656
|
+
}
|
|
1657
|
+
/**
|
|
1658
|
+
* Validate the incoming partitioning schema from a user before installing the server. Return default ErrorCode if invalid.
|
|
1659
|
+
* @summary Validate client partitioning schema
|
|
1660
|
+
* @param {ValidatePartitioningSchemaZoneEnum} zone The zone you want to target
|
|
1661
|
+
* @param {ValidatePartitioningSchemaRequest} validatePartitioningSchemaRequest
|
|
1662
|
+
* @param {*} [options] Override http request option.
|
|
1663
|
+
* @throws {RequiredError}
|
|
1664
|
+
* @memberof PartitioningSchemasApi
|
|
1665
|
+
*/
|
|
1666
|
+
validatePartitioningSchema(zone, validatePartitioningSchemaRequest, options) {
|
|
1667
|
+
return (0, exports.PartitioningSchemasApiFp)(this.configuration)
|
|
1668
|
+
.validatePartitioningSchema(zone, validatePartitioningSchemaRequest, options)
|
|
1669
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
exports.PartitioningSchemasApi = PartitioningSchemasApi;
|
|
1673
|
+
/**
|
|
1674
|
+
* @export
|
|
1675
|
+
*/
|
|
1676
|
+
exports.GetDefaultPartitioningSchemaZoneEnum = {
|
|
1677
|
+
FrPar1: 'fr-par-1',
|
|
1678
|
+
FrPar2: 'fr-par-2',
|
|
1679
|
+
NlAms1: 'nl-ams-1',
|
|
1680
|
+
NlAms2: 'nl-ams-2',
|
|
1681
|
+
PlWaw2: 'pl-waw-2',
|
|
1682
|
+
PlWaw3: 'pl-waw-3',
|
|
1683
|
+
};
|
|
1684
|
+
/**
|
|
1685
|
+
* @export
|
|
1686
|
+
*/
|
|
1687
|
+
exports.ValidatePartitioningSchemaZoneEnum = {
|
|
1688
|
+
FrPar1: 'fr-par-1',
|
|
1689
|
+
FrPar2: 'fr-par-2',
|
|
1690
|
+
NlAms1: 'nl-ams-1',
|
|
1691
|
+
NlAms2: 'nl-ams-2',
|
|
1692
|
+
PlWaw2: 'pl-waw-2',
|
|
1693
|
+
PlWaw3: 'pl-waw-3',
|
|
1694
|
+
};
|
|
1695
|
+
/**
|
|
1696
|
+
* ServerActionsApi - axios parameter creator
|
|
1697
|
+
* @export
|
|
1698
|
+
*/
|
|
1699
|
+
const ServerActionsApiAxiosParamCreator = function (configuration) {
|
|
1700
|
+
return {
|
|
1701
|
+
/**
|
|
1702
|
+
* Reboot the Elastic Metal server associated with the ID, use the `boot_type` `rescue` to reboot the server in rescue mode.
|
|
1703
|
+
* @summary Reboot an Elastic Metal server
|
|
1704
|
+
* @param {RebootServerZoneEnum} zone The zone you want to target
|
|
1705
|
+
* @param {string} serverId ID of the server to reboot.
|
|
1706
|
+
* @param {RebootServerRequest} rebootServerRequest
|
|
1707
|
+
* @param {*} [options] Override http request option.
|
|
1708
|
+
* @throws {RequiredError}
|
|
1709
|
+
*/
|
|
1710
|
+
rebootServer: async (zone, serverId, rebootServerRequest, options = {}) => {
|
|
1711
|
+
// verify required parameter 'zone' is not null or undefined
|
|
1712
|
+
(0, common_1.assertParamExists)('rebootServer', 'zone', zone);
|
|
1713
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
1714
|
+
(0, common_1.assertParamExists)('rebootServer', 'serverId', serverId);
|
|
1715
|
+
// verify required parameter 'rebootServerRequest' is not null or undefined
|
|
1716
|
+
(0, common_1.assertParamExists)('rebootServer', 'rebootServerRequest', rebootServerRequest);
|
|
1717
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/reboot`
|
|
1718
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
1719
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
1720
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1721
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1722
|
+
let baseOptions;
|
|
1723
|
+
if (configuration) {
|
|
1724
|
+
baseOptions = configuration.baseOptions;
|
|
1725
|
+
}
|
|
1726
|
+
const localVarRequestOptions = {
|
|
1727
|
+
method: 'POST',
|
|
1728
|
+
...baseOptions,
|
|
1729
|
+
...options,
|
|
1730
|
+
};
|
|
1731
|
+
const localVarHeaderParameter = {};
|
|
1732
|
+
const localVarQueryParameter = {};
|
|
1733
|
+
// authentication scaleway required
|
|
1734
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1735
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1736
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1737
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1738
|
+
localVarRequestOptions.headers = {
|
|
1739
|
+
...localVarHeaderParameter,
|
|
1740
|
+
...headersFromBaseOptions,
|
|
1741
|
+
...options.headers,
|
|
1742
|
+
};
|
|
1743
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rebootServerRequest, localVarRequestOptions, configuration);
|
|
1744
|
+
return {
|
|
1745
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1746
|
+
options: localVarRequestOptions,
|
|
1747
|
+
};
|
|
1748
|
+
},
|
|
1749
|
+
/**
|
|
1750
|
+
* Start the server associated with the ID.
|
|
1751
|
+
* @summary Start an Elastic Metal server
|
|
1752
|
+
* @param {StartServerZoneEnum} zone The zone you want to target
|
|
1753
|
+
* @param {string} serverId ID of the server to start.
|
|
1754
|
+
* @param {RebootServerRequest} rebootServerRequest
|
|
1755
|
+
* @param {*} [options] Override http request option.
|
|
1756
|
+
* @throws {RequiredError}
|
|
1757
|
+
*/
|
|
1758
|
+
startServer: async (zone, serverId, rebootServerRequest, options = {}) => {
|
|
1759
|
+
// verify required parameter 'zone' is not null or undefined
|
|
1760
|
+
(0, common_1.assertParamExists)('startServer', 'zone', zone);
|
|
1761
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
1762
|
+
(0, common_1.assertParamExists)('startServer', 'serverId', serverId);
|
|
1763
|
+
// verify required parameter 'rebootServerRequest' is not null or undefined
|
|
1764
|
+
(0, common_1.assertParamExists)('startServer', 'rebootServerRequest', rebootServerRequest);
|
|
1765
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/start`
|
|
1766
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
1767
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
1768
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1769
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1770
|
+
let baseOptions;
|
|
1771
|
+
if (configuration) {
|
|
1772
|
+
baseOptions = configuration.baseOptions;
|
|
1773
|
+
}
|
|
1774
|
+
const localVarRequestOptions = {
|
|
1775
|
+
method: 'POST',
|
|
1776
|
+
...baseOptions,
|
|
1777
|
+
...options,
|
|
1778
|
+
};
|
|
1779
|
+
const localVarHeaderParameter = {};
|
|
1780
|
+
const localVarQueryParameter = {};
|
|
1781
|
+
// authentication scaleway required
|
|
1782
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1783
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1784
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1785
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1786
|
+
localVarRequestOptions.headers = {
|
|
1787
|
+
...localVarHeaderParameter,
|
|
1788
|
+
...headersFromBaseOptions,
|
|
1789
|
+
...options.headers,
|
|
1790
|
+
};
|
|
1791
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rebootServerRequest, localVarRequestOptions, configuration);
|
|
1792
|
+
return {
|
|
1793
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1794
|
+
options: localVarRequestOptions,
|
|
1795
|
+
};
|
|
1796
|
+
},
|
|
1797
|
+
/**
|
|
1798
|
+
* Stop the server associated with the ID. The server remains allocated to your account and all data remains on the local storage of the server.
|
|
1799
|
+
* @summary Stop an Elastic Metal server
|
|
1800
|
+
* @param {StopServerZoneEnum} zone The zone you want to target
|
|
1801
|
+
* @param {string} serverId ID of the server to stop.
|
|
1802
|
+
* @param {object} body
|
|
1803
|
+
* @param {*} [options] Override http request option.
|
|
1804
|
+
* @throws {RequiredError}
|
|
1805
|
+
*/
|
|
1806
|
+
stopServer: async (zone, serverId, body, options = {}) => {
|
|
1807
|
+
// verify required parameter 'zone' is not null or undefined
|
|
1808
|
+
(0, common_1.assertParamExists)('stopServer', 'zone', zone);
|
|
1809
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
1810
|
+
(0, common_1.assertParamExists)('stopServer', 'serverId', serverId);
|
|
1811
|
+
// verify required parameter 'body' is not null or undefined
|
|
1812
|
+
(0, common_1.assertParamExists)('stopServer', 'body', body);
|
|
1813
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/stop`
|
|
1814
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
1815
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
1816
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1817
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1818
|
+
let baseOptions;
|
|
1819
|
+
if (configuration) {
|
|
1820
|
+
baseOptions = configuration.baseOptions;
|
|
1821
|
+
}
|
|
1822
|
+
const localVarRequestOptions = {
|
|
1823
|
+
method: 'POST',
|
|
1824
|
+
...baseOptions,
|
|
1825
|
+
...options,
|
|
1826
|
+
};
|
|
1827
|
+
const localVarHeaderParameter = {};
|
|
1828
|
+
const localVarQueryParameter = {};
|
|
1829
|
+
// authentication scaleway required
|
|
1830
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1831
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1832
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1833
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1834
|
+
localVarRequestOptions.headers = {
|
|
1835
|
+
...localVarHeaderParameter,
|
|
1836
|
+
...headersFromBaseOptions,
|
|
1837
|
+
...options.headers,
|
|
1838
|
+
};
|
|
1839
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
1840
|
+
return {
|
|
1841
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1842
|
+
options: localVarRequestOptions,
|
|
1843
|
+
};
|
|
1844
|
+
},
|
|
1845
|
+
};
|
|
1846
|
+
};
|
|
1847
|
+
exports.ServerActionsApiAxiosParamCreator = ServerActionsApiAxiosParamCreator;
|
|
1848
|
+
/**
|
|
1849
|
+
* ServerActionsApi - functional programming interface
|
|
1850
|
+
* @export
|
|
1851
|
+
*/
|
|
1852
|
+
const ServerActionsApiFp = function (configuration) {
|
|
1853
|
+
const localVarAxiosParamCreator = (0, exports.ServerActionsApiAxiosParamCreator)(configuration);
|
|
1854
|
+
return {
|
|
1855
|
+
/**
|
|
1856
|
+
* Reboot the Elastic Metal server associated with the ID, use the `boot_type` `rescue` to reboot the server in rescue mode.
|
|
1857
|
+
* @summary Reboot an Elastic Metal server
|
|
1858
|
+
* @param {RebootServerZoneEnum} zone The zone you want to target
|
|
1859
|
+
* @param {string} serverId ID of the server to reboot.
|
|
1860
|
+
* @param {RebootServerRequest} rebootServerRequest
|
|
1861
|
+
* @param {*} [options] Override http request option.
|
|
1862
|
+
* @throws {RequiredError}
|
|
1863
|
+
*/
|
|
1864
|
+
async rebootServer(zone, serverId, rebootServerRequest, options) {
|
|
1865
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rebootServer(zone, serverId, rebootServerRequest, options);
|
|
1866
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1867
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServerActionsApi.rebootServer']?.[localVarOperationServerIndex]?.url;
|
|
1868
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1869
|
+
},
|
|
1870
|
+
/**
|
|
1871
|
+
* Start the server associated with the ID.
|
|
1872
|
+
* @summary Start an Elastic Metal server
|
|
1873
|
+
* @param {StartServerZoneEnum} zone The zone you want to target
|
|
1874
|
+
* @param {string} serverId ID of the server to start.
|
|
1875
|
+
* @param {RebootServerRequest} rebootServerRequest
|
|
1876
|
+
* @param {*} [options] Override http request option.
|
|
1877
|
+
* @throws {RequiredError}
|
|
1878
|
+
*/
|
|
1879
|
+
async startServer(zone, serverId, rebootServerRequest, options) {
|
|
1880
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.startServer(zone, serverId, rebootServerRequest, options);
|
|
1881
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1882
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServerActionsApi.startServer']?.[localVarOperationServerIndex]?.url;
|
|
1883
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1884
|
+
},
|
|
1885
|
+
/**
|
|
1886
|
+
* Stop the server associated with the ID. The server remains allocated to your account and all data remains on the local storage of the server.
|
|
1887
|
+
* @summary Stop an Elastic Metal server
|
|
1888
|
+
* @param {StopServerZoneEnum} zone The zone you want to target
|
|
1889
|
+
* @param {string} serverId ID of the server to stop.
|
|
1890
|
+
* @param {object} body
|
|
1891
|
+
* @param {*} [options] Override http request option.
|
|
1892
|
+
* @throws {RequiredError}
|
|
1893
|
+
*/
|
|
1894
|
+
async stopServer(zone, serverId, body, options) {
|
|
1895
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.stopServer(zone, serverId, body, options);
|
|
1896
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1897
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServerActionsApi.stopServer']?.[localVarOperationServerIndex]?.url;
|
|
1898
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1899
|
+
},
|
|
1900
|
+
};
|
|
1901
|
+
};
|
|
1902
|
+
exports.ServerActionsApiFp = ServerActionsApiFp;
|
|
1903
|
+
/**
|
|
1904
|
+
* ServerActionsApi - factory interface
|
|
1905
|
+
* @export
|
|
1906
|
+
*/
|
|
1907
|
+
const ServerActionsApiFactory = function (configuration, basePath, axios) {
|
|
1908
|
+
const localVarFp = (0, exports.ServerActionsApiFp)(configuration);
|
|
1909
|
+
return {
|
|
1910
|
+
/**
|
|
1911
|
+
* Reboot the Elastic Metal server associated with the ID, use the `boot_type` `rescue` to reboot the server in rescue mode.
|
|
1912
|
+
* @summary Reboot an Elastic Metal server
|
|
1913
|
+
* @param {RebootServerZoneEnum} zone The zone you want to target
|
|
1914
|
+
* @param {string} serverId ID of the server to reboot.
|
|
1915
|
+
* @param {RebootServerRequest} rebootServerRequest
|
|
1916
|
+
* @param {*} [options] Override http request option.
|
|
1917
|
+
* @throws {RequiredError}
|
|
1918
|
+
*/
|
|
1919
|
+
rebootServer(zone, serverId, rebootServerRequest, options) {
|
|
1920
|
+
return localVarFp
|
|
1921
|
+
.rebootServer(zone, serverId, rebootServerRequest, options)
|
|
1922
|
+
.then((request) => request(axios, basePath));
|
|
1923
|
+
},
|
|
1924
|
+
/**
|
|
1925
|
+
* Start the server associated with the ID.
|
|
1926
|
+
* @summary Start an Elastic Metal server
|
|
1927
|
+
* @param {StartServerZoneEnum} zone The zone you want to target
|
|
1928
|
+
* @param {string} serverId ID of the server to start.
|
|
1929
|
+
* @param {RebootServerRequest} rebootServerRequest
|
|
1930
|
+
* @param {*} [options] Override http request option.
|
|
1931
|
+
* @throws {RequiredError}
|
|
1932
|
+
*/
|
|
1933
|
+
startServer(zone, serverId, rebootServerRequest, options) {
|
|
1934
|
+
return localVarFp
|
|
1935
|
+
.startServer(zone, serverId, rebootServerRequest, options)
|
|
1936
|
+
.then((request) => request(axios, basePath));
|
|
1937
|
+
},
|
|
1938
|
+
/**
|
|
1939
|
+
* Stop the server associated with the ID. The server remains allocated to your account and all data remains on the local storage of the server.
|
|
1940
|
+
* @summary Stop an Elastic Metal server
|
|
1941
|
+
* @param {StopServerZoneEnum} zone The zone you want to target
|
|
1942
|
+
* @param {string} serverId ID of the server to stop.
|
|
1943
|
+
* @param {object} body
|
|
1944
|
+
* @param {*} [options] Override http request option.
|
|
1945
|
+
* @throws {RequiredError}
|
|
1946
|
+
*/
|
|
1947
|
+
stopServer(zone, serverId, body, options) {
|
|
1948
|
+
return localVarFp
|
|
1949
|
+
.stopServer(zone, serverId, body, options)
|
|
1950
|
+
.then((request) => request(axios, basePath));
|
|
1951
|
+
},
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
exports.ServerActionsApiFactory = ServerActionsApiFactory;
|
|
1955
|
+
/**
|
|
1956
|
+
* ServerActionsApi - object-oriented interface
|
|
1957
|
+
* @export
|
|
1958
|
+
* @class ServerActionsApi
|
|
1959
|
+
* @extends {BaseAPI}
|
|
1960
|
+
*/
|
|
1961
|
+
class ServerActionsApi extends base_1.BaseAPI {
|
|
1962
|
+
/**
|
|
1963
|
+
* Reboot the Elastic Metal server associated with the ID, use the `boot_type` `rescue` to reboot the server in rescue mode.
|
|
1964
|
+
* @summary Reboot an Elastic Metal server
|
|
1965
|
+
* @param {RebootServerZoneEnum} zone The zone you want to target
|
|
1966
|
+
* @param {string} serverId ID of the server to reboot.
|
|
1967
|
+
* @param {RebootServerRequest} rebootServerRequest
|
|
1968
|
+
* @param {*} [options] Override http request option.
|
|
1969
|
+
* @throws {RequiredError}
|
|
1970
|
+
* @memberof ServerActionsApi
|
|
1971
|
+
*/
|
|
1972
|
+
rebootServer(zone, serverId, rebootServerRequest, options) {
|
|
1973
|
+
return (0, exports.ServerActionsApiFp)(this.configuration)
|
|
1974
|
+
.rebootServer(zone, serverId, rebootServerRequest, options)
|
|
1975
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1976
|
+
}
|
|
1977
|
+
/**
|
|
1978
|
+
* Start the server associated with the ID.
|
|
1979
|
+
* @summary Start an Elastic Metal server
|
|
1980
|
+
* @param {StartServerZoneEnum} zone The zone you want to target
|
|
1981
|
+
* @param {string} serverId ID of the server to start.
|
|
1982
|
+
* @param {RebootServerRequest} rebootServerRequest
|
|
1983
|
+
* @param {*} [options] Override http request option.
|
|
1984
|
+
* @throws {RequiredError}
|
|
1985
|
+
* @memberof ServerActionsApi
|
|
1986
|
+
*/
|
|
1987
|
+
startServer(zone, serverId, rebootServerRequest, options) {
|
|
1988
|
+
return (0, exports.ServerActionsApiFp)(this.configuration)
|
|
1989
|
+
.startServer(zone, serverId, rebootServerRequest, options)
|
|
1990
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1991
|
+
}
|
|
1992
|
+
/**
|
|
1993
|
+
* Stop the server associated with the ID. The server remains allocated to your account and all data remains on the local storage of the server.
|
|
1994
|
+
* @summary Stop an Elastic Metal server
|
|
1995
|
+
* @param {StopServerZoneEnum} zone The zone you want to target
|
|
1996
|
+
* @param {string} serverId ID of the server to stop.
|
|
1997
|
+
* @param {object} body
|
|
1998
|
+
* @param {*} [options] Override http request option.
|
|
1999
|
+
* @throws {RequiredError}
|
|
2000
|
+
* @memberof ServerActionsApi
|
|
2001
|
+
*/
|
|
2002
|
+
stopServer(zone, serverId, body, options) {
|
|
2003
|
+
return (0, exports.ServerActionsApiFp)(this.configuration)
|
|
2004
|
+
.stopServer(zone, serverId, body, options)
|
|
2005
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2006
|
+
}
|
|
2007
|
+
}
|
|
2008
|
+
exports.ServerActionsApi = ServerActionsApi;
|
|
2009
|
+
/**
|
|
2010
|
+
* @export
|
|
2011
|
+
*/
|
|
2012
|
+
exports.RebootServerZoneEnum = {
|
|
2013
|
+
FrPar1: 'fr-par-1',
|
|
2014
|
+
FrPar2: 'fr-par-2',
|
|
2015
|
+
NlAms1: 'nl-ams-1',
|
|
2016
|
+
NlAms2: 'nl-ams-2',
|
|
2017
|
+
PlWaw2: 'pl-waw-2',
|
|
2018
|
+
PlWaw3: 'pl-waw-3',
|
|
2019
|
+
};
|
|
2020
|
+
/**
|
|
2021
|
+
* @export
|
|
2022
|
+
*/
|
|
2023
|
+
exports.StartServerZoneEnum = {
|
|
2024
|
+
FrPar1: 'fr-par-1',
|
|
2025
|
+
FrPar2: 'fr-par-2',
|
|
2026
|
+
NlAms1: 'nl-ams-1',
|
|
2027
|
+
NlAms2: 'nl-ams-2',
|
|
2028
|
+
PlWaw2: 'pl-waw-2',
|
|
2029
|
+
PlWaw3: 'pl-waw-3',
|
|
2030
|
+
};
|
|
2031
|
+
/**
|
|
2032
|
+
* @export
|
|
2033
|
+
*/
|
|
2034
|
+
exports.StopServerZoneEnum = {
|
|
2035
|
+
FrPar1: 'fr-par-1',
|
|
2036
|
+
FrPar2: 'fr-par-2',
|
|
2037
|
+
NlAms1: 'nl-ams-1',
|
|
2038
|
+
NlAms2: 'nl-ams-2',
|
|
2039
|
+
PlWaw2: 'pl-waw-2',
|
|
2040
|
+
PlWaw3: 'pl-waw-3',
|
|
2041
|
+
};
|
|
2042
|
+
/**
|
|
2043
|
+
* ServersApi - axios parameter creator
|
|
2044
|
+
* @export
|
|
2045
|
+
*/
|
|
2046
|
+
const ServersApiAxiosParamCreator = function (configuration) {
|
|
2047
|
+
return {
|
|
2048
|
+
/**
|
|
2049
|
+
* Add an option, such as Private Networks, to a specific server.
|
|
2050
|
+
* @summary Add server option
|
|
2051
|
+
* @param {AddOptionServerZoneEnum} zone The zone you want to target
|
|
2052
|
+
* @param {string} serverId ID of the server.
|
|
2053
|
+
* @param {string} optionId ID of the option to add.
|
|
2054
|
+
* @param {AddOptionServerRequest} addOptionServerRequest
|
|
2055
|
+
* @param {*} [options] Override http request option.
|
|
2056
|
+
* @throws {RequiredError}
|
|
2057
|
+
*/
|
|
2058
|
+
addOptionServer: async (zone, serverId, optionId, addOptionServerRequest, options = {}) => {
|
|
2059
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2060
|
+
(0, common_1.assertParamExists)('addOptionServer', 'zone', zone);
|
|
2061
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
2062
|
+
(0, common_1.assertParamExists)('addOptionServer', 'serverId', serverId);
|
|
2063
|
+
// verify required parameter 'optionId' is not null or undefined
|
|
2064
|
+
(0, common_1.assertParamExists)('addOptionServer', 'optionId', optionId);
|
|
2065
|
+
// verify required parameter 'addOptionServerRequest' is not null or undefined
|
|
2066
|
+
(0, common_1.assertParamExists)('addOptionServer', 'addOptionServerRequest', addOptionServerRequest);
|
|
2067
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/options/{option_id}`
|
|
2068
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
2069
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)))
|
|
2070
|
+
.replace(`{${'option_id'}}`, encodeURIComponent(String(optionId)));
|
|
2071
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2072
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2073
|
+
let baseOptions;
|
|
2074
|
+
if (configuration) {
|
|
2075
|
+
baseOptions = configuration.baseOptions;
|
|
2076
|
+
}
|
|
2077
|
+
const localVarRequestOptions = {
|
|
2078
|
+
method: 'POST',
|
|
2079
|
+
...baseOptions,
|
|
2080
|
+
...options,
|
|
2081
|
+
};
|
|
2082
|
+
const localVarHeaderParameter = {};
|
|
2083
|
+
const localVarQueryParameter = {};
|
|
2084
|
+
// authentication scaleway required
|
|
2085
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2086
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2087
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2088
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2089
|
+
localVarRequestOptions.headers = {
|
|
2090
|
+
...localVarHeaderParameter,
|
|
2091
|
+
...headersFromBaseOptions,
|
|
2092
|
+
...options.headers,
|
|
2093
|
+
};
|
|
2094
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addOptionServerRequest, localVarRequestOptions, configuration);
|
|
2095
|
+
return {
|
|
2096
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2097
|
+
options: localVarRequestOptions,
|
|
2098
|
+
};
|
|
2099
|
+
},
|
|
2100
|
+
/**
|
|
2101
|
+
* Create a new Elastic Metal server. Once the server is created, proceed with the [installation of an OS](#post-3e949e).
|
|
2102
|
+
* @summary Create an Elastic Metal server
|
|
2103
|
+
* @param {CreateServerZoneEnum} zone The zone you want to target
|
|
2104
|
+
* @param {CreateServerRequest} createServerRequest
|
|
2105
|
+
* @param {*} [options] Override http request option.
|
|
2106
|
+
* @throws {RequiredError}
|
|
2107
|
+
*/
|
|
2108
|
+
createServer: async (zone, createServerRequest, options = {}) => {
|
|
2109
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2110
|
+
(0, common_1.assertParamExists)('createServer', 'zone', zone);
|
|
2111
|
+
// verify required parameter 'createServerRequest' is not null or undefined
|
|
2112
|
+
(0, common_1.assertParamExists)('createServer', 'createServerRequest', createServerRequest);
|
|
2113
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers`.replace(`{${'zone'}}`, encodeURIComponent(String(zone)));
|
|
2114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2115
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2116
|
+
let baseOptions;
|
|
2117
|
+
if (configuration) {
|
|
2118
|
+
baseOptions = configuration.baseOptions;
|
|
2119
|
+
}
|
|
2120
|
+
const localVarRequestOptions = {
|
|
2121
|
+
method: 'POST',
|
|
2122
|
+
...baseOptions,
|
|
2123
|
+
...options,
|
|
2124
|
+
};
|
|
2125
|
+
const localVarHeaderParameter = {};
|
|
2126
|
+
const localVarQueryParameter = {};
|
|
2127
|
+
// authentication scaleway required
|
|
2128
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2129
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2130
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2132
|
+
localVarRequestOptions.headers = {
|
|
2133
|
+
...localVarHeaderParameter,
|
|
2134
|
+
...headersFromBaseOptions,
|
|
2135
|
+
...options.headers,
|
|
2136
|
+
};
|
|
2137
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createServerRequest, localVarRequestOptions, configuration);
|
|
2138
|
+
return {
|
|
2139
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2140
|
+
options: localVarRequestOptions,
|
|
2141
|
+
};
|
|
2142
|
+
},
|
|
2143
|
+
/**
|
|
2144
|
+
* Delete an option from a specific server.
|
|
2145
|
+
* @summary Delete server option
|
|
2146
|
+
* @param {DeleteOptionServerZoneEnum} zone The zone you want to target
|
|
2147
|
+
* @param {string} serverId ID of the server.
|
|
2148
|
+
* @param {string} optionId ID of the option to delete.
|
|
2149
|
+
* @param {*} [options] Override http request option.
|
|
2150
|
+
* @throws {RequiredError}
|
|
2151
|
+
*/
|
|
2152
|
+
deleteOptionServer: async (zone, serverId, optionId, options = {}) => {
|
|
2153
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2154
|
+
(0, common_1.assertParamExists)('deleteOptionServer', 'zone', zone);
|
|
2155
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
2156
|
+
(0, common_1.assertParamExists)('deleteOptionServer', 'serverId', serverId);
|
|
2157
|
+
// verify required parameter 'optionId' is not null or undefined
|
|
2158
|
+
(0, common_1.assertParamExists)('deleteOptionServer', 'optionId', optionId);
|
|
2159
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/options/{option_id}`
|
|
2160
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
2161
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)))
|
|
2162
|
+
.replace(`{${'option_id'}}`, encodeURIComponent(String(optionId)));
|
|
2163
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2164
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2165
|
+
let baseOptions;
|
|
2166
|
+
if (configuration) {
|
|
2167
|
+
baseOptions = configuration.baseOptions;
|
|
2168
|
+
}
|
|
2169
|
+
const localVarRequestOptions = {
|
|
2170
|
+
method: 'DELETE',
|
|
2171
|
+
...baseOptions,
|
|
2172
|
+
...options,
|
|
2173
|
+
};
|
|
2174
|
+
const localVarHeaderParameter = {};
|
|
2175
|
+
const localVarQueryParameter = {};
|
|
2176
|
+
// authentication scaleway required
|
|
2177
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2178
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2179
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2180
|
+
localVarRequestOptions.headers = {
|
|
2181
|
+
...localVarHeaderParameter,
|
|
2182
|
+
...headersFromBaseOptions,
|
|
2183
|
+
...options.headers,
|
|
2184
|
+
};
|
|
2185
|
+
return {
|
|
2186
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2187
|
+
options: localVarRequestOptions,
|
|
2188
|
+
};
|
|
2189
|
+
},
|
|
2190
|
+
/**
|
|
2191
|
+
* Delete the server associated with the ID.
|
|
2192
|
+
* @summary Delete an Elastic Metal server
|
|
2193
|
+
* @param {DeleteServerZoneEnum} zone The zone you want to target
|
|
2194
|
+
* @param {string} serverId ID of the server to delete.
|
|
2195
|
+
* @param {*} [options] Override http request option.
|
|
2196
|
+
* @throws {RequiredError}
|
|
2197
|
+
*/
|
|
2198
|
+
deleteServer: async (zone, serverId, options = {}) => {
|
|
2199
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2200
|
+
(0, common_1.assertParamExists)('deleteServer', 'zone', zone);
|
|
2201
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
2202
|
+
(0, common_1.assertParamExists)('deleteServer', 'serverId', serverId);
|
|
2203
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}`
|
|
2204
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
2205
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
2206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2207
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2208
|
+
let baseOptions;
|
|
2209
|
+
if (configuration) {
|
|
2210
|
+
baseOptions = configuration.baseOptions;
|
|
2211
|
+
}
|
|
2212
|
+
const localVarRequestOptions = {
|
|
2213
|
+
method: 'DELETE',
|
|
2214
|
+
...baseOptions,
|
|
2215
|
+
...options,
|
|
2216
|
+
};
|
|
2217
|
+
const localVarHeaderParameter = {};
|
|
2218
|
+
const localVarQueryParameter = {};
|
|
2219
|
+
// authentication scaleway required
|
|
2220
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2221
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2222
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2223
|
+
localVarRequestOptions.headers = {
|
|
2224
|
+
...localVarHeaderParameter,
|
|
2225
|
+
...headersFromBaseOptions,
|
|
2226
|
+
...options.headers,
|
|
2227
|
+
};
|
|
2228
|
+
return {
|
|
2229
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2230
|
+
options: localVarRequestOptions,
|
|
2231
|
+
};
|
|
2232
|
+
},
|
|
2233
|
+
/**
|
|
2234
|
+
* Get full details of an existing Elastic Metal server associated with the ID.
|
|
2235
|
+
* @summary Get a specific Elastic Metal server
|
|
2236
|
+
* @param {GetServerZoneEnum} zone The zone you want to target
|
|
2237
|
+
* @param {string} serverId ID of the server.
|
|
2238
|
+
* @param {*} [options] Override http request option.
|
|
2239
|
+
* @throws {RequiredError}
|
|
2240
|
+
*/
|
|
2241
|
+
getServer: async (zone, serverId, options = {}) => {
|
|
2242
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2243
|
+
(0, common_1.assertParamExists)('getServer', 'zone', zone);
|
|
2244
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
2245
|
+
(0, common_1.assertParamExists)('getServer', 'serverId', serverId);
|
|
2246
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}`
|
|
2247
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
2248
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
2249
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2250
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2251
|
+
let baseOptions;
|
|
2252
|
+
if (configuration) {
|
|
2253
|
+
baseOptions = configuration.baseOptions;
|
|
2254
|
+
}
|
|
2255
|
+
const localVarRequestOptions = {
|
|
2256
|
+
method: 'GET',
|
|
2257
|
+
...baseOptions,
|
|
2258
|
+
...options,
|
|
2259
|
+
};
|
|
2260
|
+
const localVarHeaderParameter = {};
|
|
2261
|
+
const localVarQueryParameter = {};
|
|
2262
|
+
// authentication scaleway required
|
|
2263
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2264
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2265
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2266
|
+
localVarRequestOptions.headers = {
|
|
2267
|
+
...localVarHeaderParameter,
|
|
2268
|
+
...headersFromBaseOptions,
|
|
2269
|
+
...options.headers,
|
|
2270
|
+
};
|
|
2271
|
+
return {
|
|
2272
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2273
|
+
options: localVarRequestOptions,
|
|
2274
|
+
};
|
|
2275
|
+
},
|
|
2276
|
+
/**
|
|
2277
|
+
* Get the ping status of the server associated with the ID.
|
|
2278
|
+
* @summary Return server metrics
|
|
2279
|
+
* @param {GetServerMetricsZoneEnum} zone The zone you want to target
|
|
2280
|
+
* @param {string} serverId Server ID to get the metrics.
|
|
2281
|
+
* @param {*} [options] Override http request option.
|
|
2282
|
+
* @throws {RequiredError}
|
|
2283
|
+
*/
|
|
2284
|
+
getServerMetrics: async (zone, serverId, options = {}) => {
|
|
2285
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2286
|
+
(0, common_1.assertParamExists)('getServerMetrics', 'zone', zone);
|
|
2287
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
2288
|
+
(0, common_1.assertParamExists)('getServerMetrics', 'serverId', serverId);
|
|
2289
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/metrics`
|
|
2290
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
2291
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
2292
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2293
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2294
|
+
let baseOptions;
|
|
2295
|
+
if (configuration) {
|
|
2296
|
+
baseOptions = configuration.baseOptions;
|
|
2297
|
+
}
|
|
2298
|
+
const localVarRequestOptions = {
|
|
2299
|
+
method: 'GET',
|
|
2300
|
+
...baseOptions,
|
|
2301
|
+
...options,
|
|
2302
|
+
};
|
|
2303
|
+
const localVarHeaderParameter = {};
|
|
2304
|
+
const localVarQueryParameter = {};
|
|
2305
|
+
// authentication scaleway required
|
|
2306
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2307
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2308
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2309
|
+
localVarRequestOptions.headers = {
|
|
2310
|
+
...localVarHeaderParameter,
|
|
2311
|
+
...headersFromBaseOptions,
|
|
2312
|
+
...options.headers,
|
|
2313
|
+
};
|
|
2314
|
+
return {
|
|
2315
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2316
|
+
options: localVarRequestOptions,
|
|
2317
|
+
};
|
|
2318
|
+
},
|
|
2319
|
+
/**
|
|
2320
|
+
* Install an Operating System (OS) on the Elastic Metal server with a specific ID.
|
|
2321
|
+
* @summary Install an Elastic Metal server
|
|
2322
|
+
* @param {InstallServerZoneEnum} zone The zone you want to target
|
|
2323
|
+
* @param {string} serverId Server ID to install.
|
|
2324
|
+
* @param {InstallServerRequest} installServerRequest
|
|
2325
|
+
* @param {*} [options] Override http request option.
|
|
2326
|
+
* @throws {RequiredError}
|
|
2327
|
+
*/
|
|
2328
|
+
installServer: async (zone, serverId, installServerRequest, options = {}) => {
|
|
2329
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2330
|
+
(0, common_1.assertParamExists)('installServer', 'zone', zone);
|
|
2331
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
2332
|
+
(0, common_1.assertParamExists)('installServer', 'serverId', serverId);
|
|
2333
|
+
// verify required parameter 'installServerRequest' is not null or undefined
|
|
2334
|
+
(0, common_1.assertParamExists)('installServer', 'installServerRequest', installServerRequest);
|
|
2335
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/install`
|
|
2336
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
2337
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
2338
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2339
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2340
|
+
let baseOptions;
|
|
2341
|
+
if (configuration) {
|
|
2342
|
+
baseOptions = configuration.baseOptions;
|
|
2343
|
+
}
|
|
2344
|
+
const localVarRequestOptions = {
|
|
2345
|
+
method: 'POST',
|
|
2346
|
+
...baseOptions,
|
|
2347
|
+
...options,
|
|
2348
|
+
};
|
|
2349
|
+
const localVarHeaderParameter = {};
|
|
2350
|
+
const localVarQueryParameter = {};
|
|
2351
|
+
// authentication scaleway required
|
|
2352
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2353
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2354
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2355
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2356
|
+
localVarRequestOptions.headers = {
|
|
2357
|
+
...localVarHeaderParameter,
|
|
2358
|
+
...headersFromBaseOptions,
|
|
2359
|
+
...options.headers,
|
|
2360
|
+
};
|
|
2361
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(installServerRequest, localVarRequestOptions, configuration);
|
|
2362
|
+
return {
|
|
2363
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2364
|
+
options: localVarRequestOptions,
|
|
2365
|
+
};
|
|
2366
|
+
},
|
|
2367
|
+
/**
|
|
2368
|
+
* List event (i.e. start/stop/reboot) associated to the server ID.
|
|
2369
|
+
* @summary List server events
|
|
2370
|
+
* @param {ListServerEventsZoneEnum} zone The zone you want to target
|
|
2371
|
+
* @param {string} serverId ID of the server events searched.
|
|
2372
|
+
* @param {number} [page] Page number.
|
|
2373
|
+
* @param {number} [pageSize] Number of server events per page.
|
|
2374
|
+
* @param {ListServerEventsOrderByEnum} [orderBy] Order of the server events.
|
|
2375
|
+
* @param {*} [options] Override http request option.
|
|
2376
|
+
* @throws {RequiredError}
|
|
2377
|
+
*/
|
|
2378
|
+
listServerEvents: async (zone, serverId, page, pageSize, orderBy, options = {}) => {
|
|
2379
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2380
|
+
(0, common_1.assertParamExists)('listServerEvents', 'zone', zone);
|
|
2381
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
2382
|
+
(0, common_1.assertParamExists)('listServerEvents', 'serverId', serverId);
|
|
2383
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/events`
|
|
2384
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
2385
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
2386
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2387
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2388
|
+
let baseOptions;
|
|
2389
|
+
if (configuration) {
|
|
2390
|
+
baseOptions = configuration.baseOptions;
|
|
2391
|
+
}
|
|
2392
|
+
const localVarRequestOptions = {
|
|
2393
|
+
method: 'GET',
|
|
2394
|
+
...baseOptions,
|
|
2395
|
+
...options,
|
|
2396
|
+
};
|
|
2397
|
+
const localVarHeaderParameter = {};
|
|
2398
|
+
const localVarQueryParameter = {};
|
|
2399
|
+
// authentication scaleway required
|
|
2400
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2401
|
+
if (page !== undefined) {
|
|
2402
|
+
localVarQueryParameter['page'] = page;
|
|
2403
|
+
}
|
|
2404
|
+
if (pageSize !== undefined) {
|
|
2405
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
2406
|
+
}
|
|
2407
|
+
if (orderBy !== undefined) {
|
|
2408
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
2409
|
+
}
|
|
2410
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2411
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2412
|
+
localVarRequestOptions.headers = {
|
|
2413
|
+
...localVarHeaderParameter,
|
|
2414
|
+
...headersFromBaseOptions,
|
|
2415
|
+
...options.headers,
|
|
2416
|
+
};
|
|
2417
|
+
return {
|
|
2418
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2419
|
+
options: localVarRequestOptions,
|
|
2420
|
+
};
|
|
2421
|
+
},
|
|
2422
|
+
/**
|
|
2423
|
+
* List Elastic Metal servers for a specific Organization.
|
|
2424
|
+
* @summary List Elastic Metal servers for an Organization
|
|
2425
|
+
* @param {ListServersZoneEnum} zone The zone you want to target
|
|
2426
|
+
* @param {number} [page] Page number.
|
|
2427
|
+
* @param {number} [pageSize] Number of servers per page.
|
|
2428
|
+
* @param {ListServersOrderByEnum} [orderBy] Order of the servers.
|
|
2429
|
+
* @param {Array<string>} [tags] Tags to filter for.
|
|
2430
|
+
* @param {Array<string>} [status] Status to filter for.
|
|
2431
|
+
* @param {string} [name] Names to filter for.
|
|
2432
|
+
* @param {string} [organizationId] Organization ID to filter for.
|
|
2433
|
+
* @param {string} [projectId] Project ID to filter for.
|
|
2434
|
+
* @param {string} [optionId] Option ID to filter for.
|
|
2435
|
+
* @param {*} [options] Override http request option.
|
|
2436
|
+
* @throws {RequiredError}
|
|
2437
|
+
*/
|
|
2438
|
+
listServers: async (zone, page, pageSize, orderBy, tags, status, name, organizationId, projectId, optionId, options = {}) => {
|
|
2439
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2440
|
+
(0, common_1.assertParamExists)('listServers', 'zone', zone);
|
|
2441
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers`.replace(`{${'zone'}}`, encodeURIComponent(String(zone)));
|
|
2442
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2443
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2444
|
+
let baseOptions;
|
|
2445
|
+
if (configuration) {
|
|
2446
|
+
baseOptions = configuration.baseOptions;
|
|
2447
|
+
}
|
|
2448
|
+
const localVarRequestOptions = {
|
|
2449
|
+
method: 'GET',
|
|
2450
|
+
...baseOptions,
|
|
2451
|
+
...options,
|
|
2452
|
+
};
|
|
2453
|
+
const localVarHeaderParameter = {};
|
|
2454
|
+
const localVarQueryParameter = {};
|
|
2455
|
+
// authentication scaleway required
|
|
2456
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2457
|
+
if (page !== undefined) {
|
|
2458
|
+
localVarQueryParameter['page'] = page;
|
|
2459
|
+
}
|
|
2460
|
+
if (pageSize !== undefined) {
|
|
2461
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
2462
|
+
}
|
|
2463
|
+
if (orderBy !== undefined) {
|
|
2464
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
2465
|
+
}
|
|
2466
|
+
if (tags) {
|
|
2467
|
+
localVarQueryParameter['tags'] = tags;
|
|
2468
|
+
}
|
|
2469
|
+
if (status) {
|
|
2470
|
+
localVarQueryParameter['status'] = status;
|
|
2471
|
+
}
|
|
2472
|
+
if (name !== undefined) {
|
|
2473
|
+
localVarQueryParameter['name'] = name;
|
|
2474
|
+
}
|
|
2475
|
+
if (organizationId !== undefined) {
|
|
2476
|
+
localVarQueryParameter['organization_id'] = organizationId;
|
|
2477
|
+
}
|
|
2478
|
+
if (projectId !== undefined) {
|
|
2479
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
2480
|
+
}
|
|
2481
|
+
if (optionId !== undefined) {
|
|
2482
|
+
localVarQueryParameter['option_id'] = optionId;
|
|
2483
|
+
}
|
|
2484
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2485
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2486
|
+
localVarRequestOptions.headers = {
|
|
2487
|
+
...localVarHeaderParameter,
|
|
2488
|
+
...headersFromBaseOptions,
|
|
2489
|
+
...options.headers,
|
|
2490
|
+
};
|
|
2491
|
+
return {
|
|
2492
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2493
|
+
options: localVarRequestOptions,
|
|
2494
|
+
};
|
|
2495
|
+
},
|
|
2496
|
+
/**
|
|
2497
|
+
* Migrate server with hourly offer to monthly offer.
|
|
2498
|
+
* @summary Migrate server offer
|
|
2499
|
+
* @param {MigrateServerToMonthlyOfferZoneEnum} zone The zone you want to target
|
|
2500
|
+
* @param {string} serverId ID of the server.
|
|
2501
|
+
* @param {*} [options] Override http request option.
|
|
2502
|
+
* @throws {RequiredError}
|
|
2503
|
+
*/
|
|
2504
|
+
migrateServerToMonthlyOffer: async (zone, serverId, options = {}) => {
|
|
2505
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2506
|
+
(0, common_1.assertParamExists)('migrateServerToMonthlyOffer', 'zone', zone);
|
|
2507
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
2508
|
+
(0, common_1.assertParamExists)('migrateServerToMonthlyOffer', 'serverId', serverId);
|
|
2509
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/migrate-offer-monthly`
|
|
2510
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
2511
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
2512
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2513
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2514
|
+
let baseOptions;
|
|
2515
|
+
if (configuration) {
|
|
2516
|
+
baseOptions = configuration.baseOptions;
|
|
2517
|
+
}
|
|
2518
|
+
const localVarRequestOptions = {
|
|
2519
|
+
method: 'POST',
|
|
2520
|
+
...baseOptions,
|
|
2521
|
+
...options,
|
|
2522
|
+
};
|
|
2523
|
+
const localVarHeaderParameter = {};
|
|
2524
|
+
const localVarQueryParameter = {};
|
|
2525
|
+
// authentication scaleway required
|
|
2526
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2527
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2529
|
+
localVarRequestOptions.headers = {
|
|
2530
|
+
...localVarHeaderParameter,
|
|
2531
|
+
...headersFromBaseOptions,
|
|
2532
|
+
...options.headers,
|
|
2533
|
+
};
|
|
2534
|
+
return {
|
|
2535
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2536
|
+
options: localVarRequestOptions,
|
|
2537
|
+
};
|
|
2538
|
+
},
|
|
2539
|
+
/**
|
|
2540
|
+
* Configure the IP address associated with the server ID and IP ID. You can use this method to set a reverse DNS for an IP address.
|
|
2541
|
+
* @summary Update IP
|
|
2542
|
+
* @param {UpdateIPZoneEnum} zone The zone you want to target
|
|
2543
|
+
* @param {string} serverId ID of the server.
|
|
2544
|
+
* @param {string} ipId ID of the IP to update.
|
|
2545
|
+
* @param {UpdateIPRequest} updateIPRequest
|
|
2546
|
+
* @param {*} [options] Override http request option.
|
|
2547
|
+
* @throws {RequiredError}
|
|
2548
|
+
*/
|
|
2549
|
+
updateIP: async (zone, serverId, ipId, updateIPRequest, options = {}) => {
|
|
2550
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2551
|
+
(0, common_1.assertParamExists)('updateIP', 'zone', zone);
|
|
2552
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
2553
|
+
(0, common_1.assertParamExists)('updateIP', 'serverId', serverId);
|
|
2554
|
+
// verify required parameter 'ipId' is not null or undefined
|
|
2555
|
+
(0, common_1.assertParamExists)('updateIP', 'ipId', ipId);
|
|
2556
|
+
// verify required parameter 'updateIPRequest' is not null or undefined
|
|
2557
|
+
(0, common_1.assertParamExists)('updateIP', 'updateIPRequest', updateIPRequest);
|
|
2558
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}/ips/{ip_id}`
|
|
2559
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
2560
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)))
|
|
2561
|
+
.replace(`{${'ip_id'}}`, encodeURIComponent(String(ipId)));
|
|
2562
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2563
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2564
|
+
let baseOptions;
|
|
2565
|
+
if (configuration) {
|
|
2566
|
+
baseOptions = configuration.baseOptions;
|
|
2567
|
+
}
|
|
2568
|
+
const localVarRequestOptions = {
|
|
2569
|
+
method: 'PATCH',
|
|
2570
|
+
...baseOptions,
|
|
2571
|
+
...options,
|
|
2572
|
+
};
|
|
2573
|
+
const localVarHeaderParameter = {};
|
|
2574
|
+
const localVarQueryParameter = {};
|
|
2575
|
+
// authentication scaleway required
|
|
2576
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2577
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2578
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2579
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2580
|
+
localVarRequestOptions.headers = {
|
|
2581
|
+
...localVarHeaderParameter,
|
|
2582
|
+
...headersFromBaseOptions,
|
|
2583
|
+
...options.headers,
|
|
2584
|
+
};
|
|
2585
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateIPRequest, localVarRequestOptions, configuration);
|
|
2586
|
+
return {
|
|
2587
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2588
|
+
options: localVarRequestOptions,
|
|
2589
|
+
};
|
|
2590
|
+
},
|
|
2591
|
+
/**
|
|
2592
|
+
* Update the server associated with the ID. You can update parameters such as the server\'s name, tags, description and protection flag. Any parameters left null in the request body are not updated.
|
|
2593
|
+
* @summary Update an Elastic Metal server
|
|
2594
|
+
* @param {UpdateServerZoneEnum} zone The zone you want to target
|
|
2595
|
+
* @param {string} serverId ID of the server to update.
|
|
2596
|
+
* @param {UpdateServerRequest} updateServerRequest
|
|
2597
|
+
* @param {*} [options] Override http request option.
|
|
2598
|
+
* @throws {RequiredError}
|
|
2599
|
+
*/
|
|
2600
|
+
updateServer: async (zone, serverId, updateServerRequest, options = {}) => {
|
|
2601
|
+
// verify required parameter 'zone' is not null or undefined
|
|
2602
|
+
(0, common_1.assertParamExists)('updateServer', 'zone', zone);
|
|
2603
|
+
// verify required parameter 'serverId' is not null or undefined
|
|
2604
|
+
(0, common_1.assertParamExists)('updateServer', 'serverId', serverId);
|
|
2605
|
+
// verify required parameter 'updateServerRequest' is not null or undefined
|
|
2606
|
+
(0, common_1.assertParamExists)('updateServer', 'updateServerRequest', updateServerRequest);
|
|
2607
|
+
const localVarPath = `/baremetal/v1/zones/{zone}/servers/{server_id}`
|
|
2608
|
+
.replace(`{${'zone'}}`, encodeURIComponent(String(zone)))
|
|
2609
|
+
.replace(`{${'server_id'}}`, encodeURIComponent(String(serverId)));
|
|
2610
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2611
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2612
|
+
let baseOptions;
|
|
2613
|
+
if (configuration) {
|
|
2614
|
+
baseOptions = configuration.baseOptions;
|
|
2615
|
+
}
|
|
2616
|
+
const localVarRequestOptions = {
|
|
2617
|
+
method: 'PATCH',
|
|
2618
|
+
...baseOptions,
|
|
2619
|
+
...options,
|
|
2620
|
+
};
|
|
2621
|
+
const localVarHeaderParameter = {};
|
|
2622
|
+
const localVarQueryParameter = {};
|
|
2623
|
+
// authentication scaleway required
|
|
2624
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2625
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2626
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2628
|
+
localVarRequestOptions.headers = {
|
|
2629
|
+
...localVarHeaderParameter,
|
|
2630
|
+
...headersFromBaseOptions,
|
|
2631
|
+
...options.headers,
|
|
2632
|
+
};
|
|
2633
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateServerRequest, localVarRequestOptions, configuration);
|
|
2634
|
+
return {
|
|
2635
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2636
|
+
options: localVarRequestOptions,
|
|
2637
|
+
};
|
|
2638
|
+
},
|
|
2639
|
+
};
|
|
2640
|
+
};
|
|
2641
|
+
exports.ServersApiAxiosParamCreator = ServersApiAxiosParamCreator;
|
|
2642
|
+
/**
|
|
2643
|
+
* ServersApi - functional programming interface
|
|
2644
|
+
* @export
|
|
2645
|
+
*/
|
|
2646
|
+
const ServersApiFp = function (configuration) {
|
|
2647
|
+
const localVarAxiosParamCreator = (0, exports.ServersApiAxiosParamCreator)(configuration);
|
|
2648
|
+
return {
|
|
2649
|
+
/**
|
|
2650
|
+
* Add an option, such as Private Networks, to a specific server.
|
|
2651
|
+
* @summary Add server option
|
|
2652
|
+
* @param {AddOptionServerZoneEnum} zone The zone you want to target
|
|
2653
|
+
* @param {string} serverId ID of the server.
|
|
2654
|
+
* @param {string} optionId ID of the option to add.
|
|
2655
|
+
* @param {AddOptionServerRequest} addOptionServerRequest
|
|
2656
|
+
* @param {*} [options] Override http request option.
|
|
2657
|
+
* @throws {RequiredError}
|
|
2658
|
+
*/
|
|
2659
|
+
async addOptionServer(zone, serverId, optionId, addOptionServerRequest, options) {
|
|
2660
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addOptionServer(zone, serverId, optionId, addOptionServerRequest, options);
|
|
2661
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2662
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.addOptionServer']?.[localVarOperationServerIndex]?.url;
|
|
2663
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2664
|
+
},
|
|
2665
|
+
/**
|
|
2666
|
+
* Create a new Elastic Metal server. Once the server is created, proceed with the [installation of an OS](#post-3e949e).
|
|
2667
|
+
* @summary Create an Elastic Metal server
|
|
2668
|
+
* @param {CreateServerZoneEnum} zone The zone you want to target
|
|
2669
|
+
* @param {CreateServerRequest} createServerRequest
|
|
2670
|
+
* @param {*} [options] Override http request option.
|
|
2671
|
+
* @throws {RequiredError}
|
|
2672
|
+
*/
|
|
2673
|
+
async createServer(zone, createServerRequest, options) {
|
|
2674
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createServer(zone, createServerRequest, options);
|
|
2675
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2676
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.createServer']?.[localVarOperationServerIndex]?.url;
|
|
2677
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2678
|
+
},
|
|
2679
|
+
/**
|
|
2680
|
+
* Delete an option from a specific server.
|
|
2681
|
+
* @summary Delete server option
|
|
2682
|
+
* @param {DeleteOptionServerZoneEnum} zone The zone you want to target
|
|
2683
|
+
* @param {string} serverId ID of the server.
|
|
2684
|
+
* @param {string} optionId ID of the option to delete.
|
|
2685
|
+
* @param {*} [options] Override http request option.
|
|
2686
|
+
* @throws {RequiredError}
|
|
2687
|
+
*/
|
|
2688
|
+
async deleteOptionServer(zone, serverId, optionId, options) {
|
|
2689
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOptionServer(zone, serverId, optionId, options);
|
|
2690
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2691
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.deleteOptionServer']?.[localVarOperationServerIndex]?.url;
|
|
2692
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2693
|
+
},
|
|
2694
|
+
/**
|
|
2695
|
+
* Delete the server associated with the ID.
|
|
2696
|
+
* @summary Delete an Elastic Metal server
|
|
2697
|
+
* @param {DeleteServerZoneEnum} zone The zone you want to target
|
|
2698
|
+
* @param {string} serverId ID of the server to delete.
|
|
2699
|
+
* @param {*} [options] Override http request option.
|
|
2700
|
+
* @throws {RequiredError}
|
|
2701
|
+
*/
|
|
2702
|
+
async deleteServer(zone, serverId, options) {
|
|
2703
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteServer(zone, serverId, options);
|
|
2704
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2705
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.deleteServer']?.[localVarOperationServerIndex]?.url;
|
|
2706
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2707
|
+
},
|
|
2708
|
+
/**
|
|
2709
|
+
* Get full details of an existing Elastic Metal server associated with the ID.
|
|
2710
|
+
* @summary Get a specific Elastic Metal server
|
|
2711
|
+
* @param {GetServerZoneEnum} zone The zone you want to target
|
|
2712
|
+
* @param {string} serverId ID of the server.
|
|
2713
|
+
* @param {*} [options] Override http request option.
|
|
2714
|
+
* @throws {RequiredError}
|
|
2715
|
+
*/
|
|
2716
|
+
async getServer(zone, serverId, options) {
|
|
2717
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getServer(zone, serverId, options);
|
|
2718
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2719
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.getServer']?.[localVarOperationServerIndex]?.url;
|
|
2720
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2721
|
+
},
|
|
2722
|
+
/**
|
|
2723
|
+
* Get the ping status of the server associated with the ID.
|
|
2724
|
+
* @summary Return server metrics
|
|
2725
|
+
* @param {GetServerMetricsZoneEnum} zone The zone you want to target
|
|
2726
|
+
* @param {string} serverId Server ID to get the metrics.
|
|
2727
|
+
* @param {*} [options] Override http request option.
|
|
2728
|
+
* @throws {RequiredError}
|
|
2729
|
+
*/
|
|
2730
|
+
async getServerMetrics(zone, serverId, options) {
|
|
2731
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getServerMetrics(zone, serverId, options);
|
|
2732
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2733
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.getServerMetrics']?.[localVarOperationServerIndex]?.url;
|
|
2734
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2735
|
+
},
|
|
2736
|
+
/**
|
|
2737
|
+
* Install an Operating System (OS) on the Elastic Metal server with a specific ID.
|
|
2738
|
+
* @summary Install an Elastic Metal server
|
|
2739
|
+
* @param {InstallServerZoneEnum} zone The zone you want to target
|
|
2740
|
+
* @param {string} serverId Server ID to install.
|
|
2741
|
+
* @param {InstallServerRequest} installServerRequest
|
|
2742
|
+
* @param {*} [options] Override http request option.
|
|
2743
|
+
* @throws {RequiredError}
|
|
2744
|
+
*/
|
|
2745
|
+
async installServer(zone, serverId, installServerRequest, options) {
|
|
2746
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.installServer(zone, serverId, installServerRequest, options);
|
|
2747
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2748
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.installServer']?.[localVarOperationServerIndex]?.url;
|
|
2749
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2750
|
+
},
|
|
2751
|
+
/**
|
|
2752
|
+
* List event (i.e. start/stop/reboot) associated to the server ID.
|
|
2753
|
+
* @summary List server events
|
|
2754
|
+
* @param {ListServerEventsZoneEnum} zone The zone you want to target
|
|
2755
|
+
* @param {string} serverId ID of the server events searched.
|
|
2756
|
+
* @param {number} [page] Page number.
|
|
2757
|
+
* @param {number} [pageSize] Number of server events per page.
|
|
2758
|
+
* @param {ListServerEventsOrderByEnum} [orderBy] Order of the server events.
|
|
2759
|
+
* @param {*} [options] Override http request option.
|
|
2760
|
+
* @throws {RequiredError}
|
|
2761
|
+
*/
|
|
2762
|
+
async listServerEvents(zone, serverId, page, pageSize, orderBy, options) {
|
|
2763
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listServerEvents(zone, serverId, page, pageSize, orderBy, options);
|
|
2764
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2765
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.listServerEvents']?.[localVarOperationServerIndex]?.url;
|
|
2766
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2767
|
+
},
|
|
2768
|
+
/**
|
|
2769
|
+
* List Elastic Metal servers for a specific Organization.
|
|
2770
|
+
* @summary List Elastic Metal servers for an Organization
|
|
2771
|
+
* @param {ListServersZoneEnum} zone The zone you want to target
|
|
2772
|
+
* @param {number} [page] Page number.
|
|
2773
|
+
* @param {number} [pageSize] Number of servers per page.
|
|
2774
|
+
* @param {ListServersOrderByEnum} [orderBy] Order of the servers.
|
|
2775
|
+
* @param {Array<string>} [tags] Tags to filter for.
|
|
2776
|
+
* @param {Array<string>} [status] Status to filter for.
|
|
2777
|
+
* @param {string} [name] Names to filter for.
|
|
2778
|
+
* @param {string} [organizationId] Organization ID to filter for.
|
|
2779
|
+
* @param {string} [projectId] Project ID to filter for.
|
|
2780
|
+
* @param {string} [optionId] Option ID to filter for.
|
|
2781
|
+
* @param {*} [options] Override http request option.
|
|
2782
|
+
* @throws {RequiredError}
|
|
2783
|
+
*/
|
|
2784
|
+
async listServers(zone, page, pageSize, orderBy, tags, status, name, organizationId, projectId, optionId, options) {
|
|
2785
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listServers(zone, page, pageSize, orderBy, tags, status, name, organizationId, projectId, optionId, options);
|
|
2786
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2787
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.listServers']?.[localVarOperationServerIndex]?.url;
|
|
2788
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2789
|
+
},
|
|
2790
|
+
/**
|
|
2791
|
+
* Migrate server with hourly offer to monthly offer.
|
|
2792
|
+
* @summary Migrate server offer
|
|
2793
|
+
* @param {MigrateServerToMonthlyOfferZoneEnum} zone The zone you want to target
|
|
2794
|
+
* @param {string} serverId ID of the server.
|
|
2795
|
+
* @param {*} [options] Override http request option.
|
|
2796
|
+
* @throws {RequiredError}
|
|
2797
|
+
*/
|
|
2798
|
+
async migrateServerToMonthlyOffer(zone, serverId, options) {
|
|
2799
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.migrateServerToMonthlyOffer(zone, serverId, options);
|
|
2800
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2801
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.migrateServerToMonthlyOffer']?.[localVarOperationServerIndex]?.url;
|
|
2802
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2803
|
+
},
|
|
2804
|
+
/**
|
|
2805
|
+
* Configure the IP address associated with the server ID and IP ID. You can use this method to set a reverse DNS for an IP address.
|
|
2806
|
+
* @summary Update IP
|
|
2807
|
+
* @param {UpdateIPZoneEnum} zone The zone you want to target
|
|
2808
|
+
* @param {string} serverId ID of the server.
|
|
2809
|
+
* @param {string} ipId ID of the IP to update.
|
|
2810
|
+
* @param {UpdateIPRequest} updateIPRequest
|
|
2811
|
+
* @param {*} [options] Override http request option.
|
|
2812
|
+
* @throws {RequiredError}
|
|
2813
|
+
*/
|
|
2814
|
+
async updateIP(zone, serverId, ipId, updateIPRequest, options) {
|
|
2815
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateIP(zone, serverId, ipId, updateIPRequest, options);
|
|
2816
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2817
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.updateIP']?.[localVarOperationServerIndex]?.url;
|
|
2818
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2819
|
+
},
|
|
2820
|
+
/**
|
|
2821
|
+
* Update the server associated with the ID. You can update parameters such as the server\'s name, tags, description and protection flag. Any parameters left null in the request body are not updated.
|
|
2822
|
+
* @summary Update an Elastic Metal server
|
|
2823
|
+
* @param {UpdateServerZoneEnum} zone The zone you want to target
|
|
2824
|
+
* @param {string} serverId ID of the server to update.
|
|
2825
|
+
* @param {UpdateServerRequest} updateServerRequest
|
|
2826
|
+
* @param {*} [options] Override http request option.
|
|
2827
|
+
* @throws {RequiredError}
|
|
2828
|
+
*/
|
|
2829
|
+
async updateServer(zone, serverId, updateServerRequest, options) {
|
|
2830
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateServer(zone, serverId, updateServerRequest, options);
|
|
2831
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2832
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ServersApi.updateServer']?.[localVarOperationServerIndex]?.url;
|
|
2833
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2834
|
+
},
|
|
2835
|
+
};
|
|
2836
|
+
};
|
|
2837
|
+
exports.ServersApiFp = ServersApiFp;
|
|
2838
|
+
/**
|
|
2839
|
+
* ServersApi - factory interface
|
|
2840
|
+
* @export
|
|
2841
|
+
*/
|
|
2842
|
+
const ServersApiFactory = function (configuration, basePath, axios) {
|
|
2843
|
+
const localVarFp = (0, exports.ServersApiFp)(configuration);
|
|
2844
|
+
return {
|
|
2845
|
+
/**
|
|
2846
|
+
* Add an option, such as Private Networks, to a specific server.
|
|
2847
|
+
* @summary Add server option
|
|
2848
|
+
* @param {AddOptionServerZoneEnum} zone The zone you want to target
|
|
2849
|
+
* @param {string} serverId ID of the server.
|
|
2850
|
+
* @param {string} optionId ID of the option to add.
|
|
2851
|
+
* @param {AddOptionServerRequest} addOptionServerRequest
|
|
2852
|
+
* @param {*} [options] Override http request option.
|
|
2853
|
+
* @throws {RequiredError}
|
|
2854
|
+
*/
|
|
2855
|
+
addOptionServer(zone, serverId, optionId, addOptionServerRequest, options) {
|
|
2856
|
+
return localVarFp
|
|
2857
|
+
.addOptionServer(zone, serverId, optionId, addOptionServerRequest, options)
|
|
2858
|
+
.then((request) => request(axios, basePath));
|
|
2859
|
+
},
|
|
2860
|
+
/**
|
|
2861
|
+
* Create a new Elastic Metal server. Once the server is created, proceed with the [installation of an OS](#post-3e949e).
|
|
2862
|
+
* @summary Create an Elastic Metal server
|
|
2863
|
+
* @param {CreateServerZoneEnum} zone The zone you want to target
|
|
2864
|
+
* @param {CreateServerRequest} createServerRequest
|
|
2865
|
+
* @param {*} [options] Override http request option.
|
|
2866
|
+
* @throws {RequiredError}
|
|
2867
|
+
*/
|
|
2868
|
+
createServer(zone, createServerRequest, options) {
|
|
2869
|
+
return localVarFp
|
|
2870
|
+
.createServer(zone, createServerRequest, options)
|
|
2871
|
+
.then((request) => request(axios, basePath));
|
|
2872
|
+
},
|
|
2873
|
+
/**
|
|
2874
|
+
* Delete an option from a specific server.
|
|
2875
|
+
* @summary Delete server option
|
|
2876
|
+
* @param {DeleteOptionServerZoneEnum} zone The zone you want to target
|
|
2877
|
+
* @param {string} serverId ID of the server.
|
|
2878
|
+
* @param {string} optionId ID of the option to delete.
|
|
2879
|
+
* @param {*} [options] Override http request option.
|
|
2880
|
+
* @throws {RequiredError}
|
|
2881
|
+
*/
|
|
2882
|
+
deleteOptionServer(zone, serverId, optionId, options) {
|
|
2883
|
+
return localVarFp
|
|
2884
|
+
.deleteOptionServer(zone, serverId, optionId, options)
|
|
2885
|
+
.then((request) => request(axios, basePath));
|
|
2886
|
+
},
|
|
2887
|
+
/**
|
|
2888
|
+
* Delete the server associated with the ID.
|
|
2889
|
+
* @summary Delete an Elastic Metal server
|
|
2890
|
+
* @param {DeleteServerZoneEnum} zone The zone you want to target
|
|
2891
|
+
* @param {string} serverId ID of the server to delete.
|
|
2892
|
+
* @param {*} [options] Override http request option.
|
|
2893
|
+
* @throws {RequiredError}
|
|
2894
|
+
*/
|
|
2895
|
+
deleteServer(zone, serverId, options) {
|
|
2896
|
+
return localVarFp
|
|
2897
|
+
.deleteServer(zone, serverId, options)
|
|
2898
|
+
.then((request) => request(axios, basePath));
|
|
2899
|
+
},
|
|
2900
|
+
/**
|
|
2901
|
+
* Get full details of an existing Elastic Metal server associated with the ID.
|
|
2902
|
+
* @summary Get a specific Elastic Metal server
|
|
2903
|
+
* @param {GetServerZoneEnum} zone The zone you want to target
|
|
2904
|
+
* @param {string} serverId ID of the server.
|
|
2905
|
+
* @param {*} [options] Override http request option.
|
|
2906
|
+
* @throws {RequiredError}
|
|
2907
|
+
*/
|
|
2908
|
+
getServer(zone, serverId, options) {
|
|
2909
|
+
return localVarFp
|
|
2910
|
+
.getServer(zone, serverId, options)
|
|
2911
|
+
.then((request) => request(axios, basePath));
|
|
2912
|
+
},
|
|
2913
|
+
/**
|
|
2914
|
+
* Get the ping status of the server associated with the ID.
|
|
2915
|
+
* @summary Return server metrics
|
|
2916
|
+
* @param {GetServerMetricsZoneEnum} zone The zone you want to target
|
|
2917
|
+
* @param {string} serverId Server ID to get the metrics.
|
|
2918
|
+
* @param {*} [options] Override http request option.
|
|
2919
|
+
* @throws {RequiredError}
|
|
2920
|
+
*/
|
|
2921
|
+
getServerMetrics(zone, serverId, options) {
|
|
2922
|
+
return localVarFp
|
|
2923
|
+
.getServerMetrics(zone, serverId, options)
|
|
2924
|
+
.then((request) => request(axios, basePath));
|
|
2925
|
+
},
|
|
2926
|
+
/**
|
|
2927
|
+
* Install an Operating System (OS) on the Elastic Metal server with a specific ID.
|
|
2928
|
+
* @summary Install an Elastic Metal server
|
|
2929
|
+
* @param {InstallServerZoneEnum} zone The zone you want to target
|
|
2930
|
+
* @param {string} serverId Server ID to install.
|
|
2931
|
+
* @param {InstallServerRequest} installServerRequest
|
|
2932
|
+
* @param {*} [options] Override http request option.
|
|
2933
|
+
* @throws {RequiredError}
|
|
2934
|
+
*/
|
|
2935
|
+
installServer(zone, serverId, installServerRequest, options) {
|
|
2936
|
+
return localVarFp
|
|
2937
|
+
.installServer(zone, serverId, installServerRequest, options)
|
|
2938
|
+
.then((request) => request(axios, basePath));
|
|
2939
|
+
},
|
|
2940
|
+
/**
|
|
2941
|
+
* List event (i.e. start/stop/reboot) associated to the server ID.
|
|
2942
|
+
* @summary List server events
|
|
2943
|
+
* @param {ListServerEventsZoneEnum} zone The zone you want to target
|
|
2944
|
+
* @param {string} serverId ID of the server events searched.
|
|
2945
|
+
* @param {number} [page] Page number.
|
|
2946
|
+
* @param {number} [pageSize] Number of server events per page.
|
|
2947
|
+
* @param {ListServerEventsOrderByEnum} [orderBy] Order of the server events.
|
|
2948
|
+
* @param {*} [options] Override http request option.
|
|
2949
|
+
* @throws {RequiredError}
|
|
2950
|
+
*/
|
|
2951
|
+
listServerEvents(zone, serverId, page, pageSize, orderBy, options) {
|
|
2952
|
+
return localVarFp
|
|
2953
|
+
.listServerEvents(zone, serverId, page, pageSize, orderBy, options)
|
|
2954
|
+
.then((request) => request(axios, basePath));
|
|
2955
|
+
},
|
|
2956
|
+
/**
|
|
2957
|
+
* List Elastic Metal servers for a specific Organization.
|
|
2958
|
+
* @summary List Elastic Metal servers for an Organization
|
|
2959
|
+
* @param {ListServersZoneEnum} zone The zone you want to target
|
|
2960
|
+
* @param {number} [page] Page number.
|
|
2961
|
+
* @param {number} [pageSize] Number of servers per page.
|
|
2962
|
+
* @param {ListServersOrderByEnum} [orderBy] Order of the servers.
|
|
2963
|
+
* @param {Array<string>} [tags] Tags to filter for.
|
|
2964
|
+
* @param {Array<string>} [status] Status to filter for.
|
|
2965
|
+
* @param {string} [name] Names to filter for.
|
|
2966
|
+
* @param {string} [organizationId] Organization ID to filter for.
|
|
2967
|
+
* @param {string} [projectId] Project ID to filter for.
|
|
2968
|
+
* @param {string} [optionId] Option ID to filter for.
|
|
2969
|
+
* @param {*} [options] Override http request option.
|
|
2970
|
+
* @throws {RequiredError}
|
|
2971
|
+
*/
|
|
2972
|
+
listServers(zone, page, pageSize, orderBy, tags, status, name, organizationId, projectId, optionId, options) {
|
|
2973
|
+
return localVarFp
|
|
2974
|
+
.listServers(zone, page, pageSize, orderBy, tags, status, name, organizationId, projectId, optionId, options)
|
|
2975
|
+
.then((request) => request(axios, basePath));
|
|
2976
|
+
},
|
|
2977
|
+
/**
|
|
2978
|
+
* Migrate server with hourly offer to monthly offer.
|
|
2979
|
+
* @summary Migrate server offer
|
|
2980
|
+
* @param {MigrateServerToMonthlyOfferZoneEnum} zone The zone you want to target
|
|
2981
|
+
* @param {string} serverId ID of the server.
|
|
2982
|
+
* @param {*} [options] Override http request option.
|
|
2983
|
+
* @throws {RequiredError}
|
|
2984
|
+
*/
|
|
2985
|
+
migrateServerToMonthlyOffer(zone, serverId, options) {
|
|
2986
|
+
return localVarFp
|
|
2987
|
+
.migrateServerToMonthlyOffer(zone, serverId, options)
|
|
2988
|
+
.then((request) => request(axios, basePath));
|
|
2989
|
+
},
|
|
2990
|
+
/**
|
|
2991
|
+
* Configure the IP address associated with the server ID and IP ID. You can use this method to set a reverse DNS for an IP address.
|
|
2992
|
+
* @summary Update IP
|
|
2993
|
+
* @param {UpdateIPZoneEnum} zone The zone you want to target
|
|
2994
|
+
* @param {string} serverId ID of the server.
|
|
2995
|
+
* @param {string} ipId ID of the IP to update.
|
|
2996
|
+
* @param {UpdateIPRequest} updateIPRequest
|
|
2997
|
+
* @param {*} [options] Override http request option.
|
|
2998
|
+
* @throws {RequiredError}
|
|
2999
|
+
*/
|
|
3000
|
+
updateIP(zone, serverId, ipId, updateIPRequest, options) {
|
|
3001
|
+
return localVarFp
|
|
3002
|
+
.updateIP(zone, serverId, ipId, updateIPRequest, options)
|
|
3003
|
+
.then((request) => request(axios, basePath));
|
|
3004
|
+
},
|
|
3005
|
+
/**
|
|
3006
|
+
* Update the server associated with the ID. You can update parameters such as the server\'s name, tags, description and protection flag. Any parameters left null in the request body are not updated.
|
|
3007
|
+
* @summary Update an Elastic Metal server
|
|
3008
|
+
* @param {UpdateServerZoneEnum} zone The zone you want to target
|
|
3009
|
+
* @param {string} serverId ID of the server to update.
|
|
3010
|
+
* @param {UpdateServerRequest} updateServerRequest
|
|
3011
|
+
* @param {*} [options] Override http request option.
|
|
3012
|
+
* @throws {RequiredError}
|
|
3013
|
+
*/
|
|
3014
|
+
updateServer(zone, serverId, updateServerRequest, options) {
|
|
3015
|
+
return localVarFp
|
|
3016
|
+
.updateServer(zone, serverId, updateServerRequest, options)
|
|
3017
|
+
.then((request) => request(axios, basePath));
|
|
3018
|
+
},
|
|
3019
|
+
};
|
|
3020
|
+
};
|
|
3021
|
+
exports.ServersApiFactory = ServersApiFactory;
|
|
3022
|
+
/**
|
|
3023
|
+
* ServersApi - object-oriented interface
|
|
3024
|
+
* @export
|
|
3025
|
+
* @class ServersApi
|
|
3026
|
+
* @extends {BaseAPI}
|
|
3027
|
+
*/
|
|
3028
|
+
class ServersApi extends base_1.BaseAPI {
|
|
3029
|
+
/**
|
|
3030
|
+
* Add an option, such as Private Networks, to a specific server.
|
|
3031
|
+
* @summary Add server option
|
|
3032
|
+
* @param {AddOptionServerZoneEnum} zone The zone you want to target
|
|
3033
|
+
* @param {string} serverId ID of the server.
|
|
3034
|
+
* @param {string} optionId ID of the option to add.
|
|
3035
|
+
* @param {AddOptionServerRequest} addOptionServerRequest
|
|
3036
|
+
* @param {*} [options] Override http request option.
|
|
3037
|
+
* @throws {RequiredError}
|
|
3038
|
+
* @memberof ServersApi
|
|
3039
|
+
*/
|
|
3040
|
+
addOptionServer(zone, serverId, optionId, addOptionServerRequest, options) {
|
|
3041
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3042
|
+
.addOptionServer(zone, serverId, optionId, addOptionServerRequest, options)
|
|
3043
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3044
|
+
}
|
|
3045
|
+
/**
|
|
3046
|
+
* Create a new Elastic Metal server. Once the server is created, proceed with the [installation of an OS](#post-3e949e).
|
|
3047
|
+
* @summary Create an Elastic Metal server
|
|
3048
|
+
* @param {CreateServerZoneEnum} zone The zone you want to target
|
|
3049
|
+
* @param {CreateServerRequest} createServerRequest
|
|
3050
|
+
* @param {*} [options] Override http request option.
|
|
3051
|
+
* @throws {RequiredError}
|
|
3052
|
+
* @memberof ServersApi
|
|
3053
|
+
*/
|
|
3054
|
+
createServer(zone, createServerRequest, options) {
|
|
3055
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3056
|
+
.createServer(zone, createServerRequest, options)
|
|
3057
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3058
|
+
}
|
|
3059
|
+
/**
|
|
3060
|
+
* Delete an option from a specific server.
|
|
3061
|
+
* @summary Delete server option
|
|
3062
|
+
* @param {DeleteOptionServerZoneEnum} zone The zone you want to target
|
|
3063
|
+
* @param {string} serverId ID of the server.
|
|
3064
|
+
* @param {string} optionId ID of the option to delete.
|
|
3065
|
+
* @param {*} [options] Override http request option.
|
|
3066
|
+
* @throws {RequiredError}
|
|
3067
|
+
* @memberof ServersApi
|
|
3068
|
+
*/
|
|
3069
|
+
deleteOptionServer(zone, serverId, optionId, options) {
|
|
3070
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3071
|
+
.deleteOptionServer(zone, serverId, optionId, options)
|
|
3072
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3073
|
+
}
|
|
3074
|
+
/**
|
|
3075
|
+
* Delete the server associated with the ID.
|
|
3076
|
+
* @summary Delete an Elastic Metal server
|
|
3077
|
+
* @param {DeleteServerZoneEnum} zone The zone you want to target
|
|
3078
|
+
* @param {string} serverId ID of the server to delete.
|
|
3079
|
+
* @param {*} [options] Override http request option.
|
|
3080
|
+
* @throws {RequiredError}
|
|
3081
|
+
* @memberof ServersApi
|
|
3082
|
+
*/
|
|
3083
|
+
deleteServer(zone, serverId, options) {
|
|
3084
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3085
|
+
.deleteServer(zone, serverId, options)
|
|
3086
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3087
|
+
}
|
|
3088
|
+
/**
|
|
3089
|
+
* Get full details of an existing Elastic Metal server associated with the ID.
|
|
3090
|
+
* @summary Get a specific Elastic Metal server
|
|
3091
|
+
* @param {GetServerZoneEnum} zone The zone you want to target
|
|
3092
|
+
* @param {string} serverId ID of the server.
|
|
3093
|
+
* @param {*} [options] Override http request option.
|
|
3094
|
+
* @throws {RequiredError}
|
|
3095
|
+
* @memberof ServersApi
|
|
3096
|
+
*/
|
|
3097
|
+
getServer(zone, serverId, options) {
|
|
3098
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3099
|
+
.getServer(zone, serverId, options)
|
|
3100
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3101
|
+
}
|
|
3102
|
+
/**
|
|
3103
|
+
* Get the ping status of the server associated with the ID.
|
|
3104
|
+
* @summary Return server metrics
|
|
3105
|
+
* @param {GetServerMetricsZoneEnum} zone The zone you want to target
|
|
3106
|
+
* @param {string} serverId Server ID to get the metrics.
|
|
3107
|
+
* @param {*} [options] Override http request option.
|
|
3108
|
+
* @throws {RequiredError}
|
|
3109
|
+
* @memberof ServersApi
|
|
3110
|
+
*/
|
|
3111
|
+
getServerMetrics(zone, serverId, options) {
|
|
3112
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3113
|
+
.getServerMetrics(zone, serverId, options)
|
|
3114
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3115
|
+
}
|
|
3116
|
+
/**
|
|
3117
|
+
* Install an Operating System (OS) on the Elastic Metal server with a specific ID.
|
|
3118
|
+
* @summary Install an Elastic Metal server
|
|
3119
|
+
* @param {InstallServerZoneEnum} zone The zone you want to target
|
|
3120
|
+
* @param {string} serverId Server ID to install.
|
|
3121
|
+
* @param {InstallServerRequest} installServerRequest
|
|
3122
|
+
* @param {*} [options] Override http request option.
|
|
3123
|
+
* @throws {RequiredError}
|
|
3124
|
+
* @memberof ServersApi
|
|
3125
|
+
*/
|
|
3126
|
+
installServer(zone, serverId, installServerRequest, options) {
|
|
3127
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3128
|
+
.installServer(zone, serverId, installServerRequest, options)
|
|
3129
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3130
|
+
}
|
|
3131
|
+
/**
|
|
3132
|
+
* List event (i.e. start/stop/reboot) associated to the server ID.
|
|
3133
|
+
* @summary List server events
|
|
3134
|
+
* @param {ListServerEventsZoneEnum} zone The zone you want to target
|
|
3135
|
+
* @param {string} serverId ID of the server events searched.
|
|
3136
|
+
* @param {number} [page] Page number.
|
|
3137
|
+
* @param {number} [pageSize] Number of server events per page.
|
|
3138
|
+
* @param {ListServerEventsOrderByEnum} [orderBy] Order of the server events.
|
|
3139
|
+
* @param {*} [options] Override http request option.
|
|
3140
|
+
* @throws {RequiredError}
|
|
3141
|
+
* @memberof ServersApi
|
|
3142
|
+
*/
|
|
3143
|
+
listServerEvents(zone, serverId, page, pageSize, orderBy, options) {
|
|
3144
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3145
|
+
.listServerEvents(zone, serverId, page, pageSize, orderBy, options)
|
|
3146
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3147
|
+
}
|
|
3148
|
+
/**
|
|
3149
|
+
* List Elastic Metal servers for a specific Organization.
|
|
3150
|
+
* @summary List Elastic Metal servers for an Organization
|
|
3151
|
+
* @param {ListServersZoneEnum} zone The zone you want to target
|
|
3152
|
+
* @param {number} [page] Page number.
|
|
3153
|
+
* @param {number} [pageSize] Number of servers per page.
|
|
3154
|
+
* @param {ListServersOrderByEnum} [orderBy] Order of the servers.
|
|
3155
|
+
* @param {Array<string>} [tags] Tags to filter for.
|
|
3156
|
+
* @param {Array<string>} [status] Status to filter for.
|
|
3157
|
+
* @param {string} [name] Names to filter for.
|
|
3158
|
+
* @param {string} [organizationId] Organization ID to filter for.
|
|
3159
|
+
* @param {string} [projectId] Project ID to filter for.
|
|
3160
|
+
* @param {string} [optionId] Option ID to filter for.
|
|
3161
|
+
* @param {*} [options] Override http request option.
|
|
3162
|
+
* @throws {RequiredError}
|
|
3163
|
+
* @memberof ServersApi
|
|
3164
|
+
*/
|
|
3165
|
+
listServers(zone, page, pageSize, orderBy, tags, status, name, organizationId, projectId, optionId, options) {
|
|
3166
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3167
|
+
.listServers(zone, page, pageSize, orderBy, tags, status, name, organizationId, projectId, optionId, options)
|
|
3168
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3169
|
+
}
|
|
3170
|
+
/**
|
|
3171
|
+
* Migrate server with hourly offer to monthly offer.
|
|
3172
|
+
* @summary Migrate server offer
|
|
3173
|
+
* @param {MigrateServerToMonthlyOfferZoneEnum} zone The zone you want to target
|
|
3174
|
+
* @param {string} serverId ID of the server.
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
* @memberof ServersApi
|
|
3178
|
+
*/
|
|
3179
|
+
migrateServerToMonthlyOffer(zone, serverId, options) {
|
|
3180
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3181
|
+
.migrateServerToMonthlyOffer(zone, serverId, options)
|
|
3182
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3183
|
+
}
|
|
3184
|
+
/**
|
|
3185
|
+
* Configure the IP address associated with the server ID and IP ID. You can use this method to set a reverse DNS for an IP address.
|
|
3186
|
+
* @summary Update IP
|
|
3187
|
+
* @param {UpdateIPZoneEnum} zone The zone you want to target
|
|
3188
|
+
* @param {string} serverId ID of the server.
|
|
3189
|
+
* @param {string} ipId ID of the IP to update.
|
|
3190
|
+
* @param {UpdateIPRequest} updateIPRequest
|
|
3191
|
+
* @param {*} [options] Override http request option.
|
|
3192
|
+
* @throws {RequiredError}
|
|
3193
|
+
* @memberof ServersApi
|
|
3194
|
+
*/
|
|
3195
|
+
updateIP(zone, serverId, ipId, updateIPRequest, options) {
|
|
3196
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3197
|
+
.updateIP(zone, serverId, ipId, updateIPRequest, options)
|
|
3198
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3199
|
+
}
|
|
3200
|
+
/**
|
|
3201
|
+
* Update the server associated with the ID. You can update parameters such as the server\'s name, tags, description and protection flag. Any parameters left null in the request body are not updated.
|
|
3202
|
+
* @summary Update an Elastic Metal server
|
|
3203
|
+
* @param {UpdateServerZoneEnum} zone The zone you want to target
|
|
3204
|
+
* @param {string} serverId ID of the server to update.
|
|
3205
|
+
* @param {UpdateServerRequest} updateServerRequest
|
|
3206
|
+
* @param {*} [options] Override http request option.
|
|
3207
|
+
* @throws {RequiredError}
|
|
3208
|
+
* @memberof ServersApi
|
|
3209
|
+
*/
|
|
3210
|
+
updateServer(zone, serverId, updateServerRequest, options) {
|
|
3211
|
+
return (0, exports.ServersApiFp)(this.configuration)
|
|
3212
|
+
.updateServer(zone, serverId, updateServerRequest, options)
|
|
3213
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3214
|
+
}
|
|
3215
|
+
}
|
|
3216
|
+
exports.ServersApi = ServersApi;
|
|
3217
|
+
/**
|
|
3218
|
+
* @export
|
|
3219
|
+
*/
|
|
3220
|
+
exports.AddOptionServerZoneEnum = {
|
|
3221
|
+
FrPar1: 'fr-par-1',
|
|
3222
|
+
FrPar2: 'fr-par-2',
|
|
3223
|
+
NlAms1: 'nl-ams-1',
|
|
3224
|
+
NlAms2: 'nl-ams-2',
|
|
3225
|
+
PlWaw2: 'pl-waw-2',
|
|
3226
|
+
PlWaw3: 'pl-waw-3',
|
|
3227
|
+
};
|
|
3228
|
+
/**
|
|
3229
|
+
* @export
|
|
3230
|
+
*/
|
|
3231
|
+
exports.CreateServerZoneEnum = {
|
|
3232
|
+
FrPar1: 'fr-par-1',
|
|
3233
|
+
FrPar2: 'fr-par-2',
|
|
3234
|
+
NlAms1: 'nl-ams-1',
|
|
3235
|
+
NlAms2: 'nl-ams-2',
|
|
3236
|
+
PlWaw2: 'pl-waw-2',
|
|
3237
|
+
PlWaw3: 'pl-waw-3',
|
|
3238
|
+
};
|
|
3239
|
+
/**
|
|
3240
|
+
* @export
|
|
3241
|
+
*/
|
|
3242
|
+
exports.DeleteOptionServerZoneEnum = {
|
|
3243
|
+
FrPar1: 'fr-par-1',
|
|
3244
|
+
FrPar2: 'fr-par-2',
|
|
3245
|
+
NlAms1: 'nl-ams-1',
|
|
3246
|
+
NlAms2: 'nl-ams-2',
|
|
3247
|
+
PlWaw2: 'pl-waw-2',
|
|
3248
|
+
PlWaw3: 'pl-waw-3',
|
|
3249
|
+
};
|
|
3250
|
+
/**
|
|
3251
|
+
* @export
|
|
3252
|
+
*/
|
|
3253
|
+
exports.DeleteServerZoneEnum = {
|
|
3254
|
+
FrPar1: 'fr-par-1',
|
|
3255
|
+
FrPar2: 'fr-par-2',
|
|
3256
|
+
NlAms1: 'nl-ams-1',
|
|
3257
|
+
NlAms2: 'nl-ams-2',
|
|
3258
|
+
PlWaw2: 'pl-waw-2',
|
|
3259
|
+
PlWaw3: 'pl-waw-3',
|
|
3260
|
+
};
|
|
3261
|
+
/**
|
|
3262
|
+
* @export
|
|
3263
|
+
*/
|
|
3264
|
+
exports.GetServerZoneEnum = {
|
|
3265
|
+
FrPar1: 'fr-par-1',
|
|
3266
|
+
FrPar2: 'fr-par-2',
|
|
3267
|
+
NlAms1: 'nl-ams-1',
|
|
3268
|
+
NlAms2: 'nl-ams-2',
|
|
3269
|
+
PlWaw2: 'pl-waw-2',
|
|
3270
|
+
PlWaw3: 'pl-waw-3',
|
|
3271
|
+
};
|
|
3272
|
+
/**
|
|
3273
|
+
* @export
|
|
3274
|
+
*/
|
|
3275
|
+
exports.GetServerMetricsZoneEnum = {
|
|
3276
|
+
FrPar1: 'fr-par-1',
|
|
3277
|
+
FrPar2: 'fr-par-2',
|
|
3278
|
+
NlAms1: 'nl-ams-1',
|
|
3279
|
+
NlAms2: 'nl-ams-2',
|
|
3280
|
+
PlWaw2: 'pl-waw-2',
|
|
3281
|
+
PlWaw3: 'pl-waw-3',
|
|
3282
|
+
};
|
|
3283
|
+
/**
|
|
3284
|
+
* @export
|
|
3285
|
+
*/
|
|
3286
|
+
exports.InstallServerZoneEnum = {
|
|
3287
|
+
FrPar1: 'fr-par-1',
|
|
3288
|
+
FrPar2: 'fr-par-2',
|
|
3289
|
+
NlAms1: 'nl-ams-1',
|
|
3290
|
+
NlAms2: 'nl-ams-2',
|
|
3291
|
+
PlWaw2: 'pl-waw-2',
|
|
3292
|
+
PlWaw3: 'pl-waw-3',
|
|
3293
|
+
};
|
|
3294
|
+
/**
|
|
3295
|
+
* @export
|
|
3296
|
+
*/
|
|
3297
|
+
exports.ListServerEventsZoneEnum = {
|
|
3298
|
+
FrPar1: 'fr-par-1',
|
|
3299
|
+
FrPar2: 'fr-par-2',
|
|
3300
|
+
NlAms1: 'nl-ams-1',
|
|
3301
|
+
NlAms2: 'nl-ams-2',
|
|
3302
|
+
PlWaw2: 'pl-waw-2',
|
|
3303
|
+
PlWaw3: 'pl-waw-3',
|
|
3304
|
+
};
|
|
3305
|
+
/**
|
|
3306
|
+
* @export
|
|
3307
|
+
*/
|
|
3308
|
+
exports.ListServerEventsOrderByEnum = {
|
|
3309
|
+
CreatedAtAsc: 'created_at_asc',
|
|
3310
|
+
CreatedAtDesc: 'created_at_desc',
|
|
3311
|
+
};
|
|
3312
|
+
/**
|
|
3313
|
+
* @export
|
|
3314
|
+
*/
|
|
3315
|
+
exports.ListServersZoneEnum = {
|
|
3316
|
+
FrPar1: 'fr-par-1',
|
|
3317
|
+
FrPar2: 'fr-par-2',
|
|
3318
|
+
NlAms1: 'nl-ams-1',
|
|
3319
|
+
NlAms2: 'nl-ams-2',
|
|
3320
|
+
PlWaw2: 'pl-waw-2',
|
|
3321
|
+
PlWaw3: 'pl-waw-3',
|
|
3322
|
+
};
|
|
3323
|
+
/**
|
|
3324
|
+
* @export
|
|
3325
|
+
*/
|
|
3326
|
+
exports.ListServersOrderByEnum = {
|
|
3327
|
+
CreatedAtAsc: 'created_at_asc',
|
|
3328
|
+
CreatedAtDesc: 'created_at_desc',
|
|
3329
|
+
};
|
|
3330
|
+
/**
|
|
3331
|
+
* @export
|
|
3332
|
+
*/
|
|
3333
|
+
exports.MigrateServerToMonthlyOfferZoneEnum = {
|
|
3334
|
+
FrPar1: 'fr-par-1',
|
|
3335
|
+
FrPar2: 'fr-par-2',
|
|
3336
|
+
NlAms1: 'nl-ams-1',
|
|
3337
|
+
NlAms2: 'nl-ams-2',
|
|
3338
|
+
PlWaw2: 'pl-waw-2',
|
|
3339
|
+
PlWaw3: 'pl-waw-3',
|
|
3340
|
+
};
|
|
3341
|
+
/**
|
|
3342
|
+
* @export
|
|
3343
|
+
*/
|
|
3344
|
+
exports.UpdateIPZoneEnum = {
|
|
3345
|
+
FrPar1: 'fr-par-1',
|
|
3346
|
+
FrPar2: 'fr-par-2',
|
|
3347
|
+
NlAms1: 'nl-ams-1',
|
|
3348
|
+
NlAms2: 'nl-ams-2',
|
|
3349
|
+
PlWaw2: 'pl-waw-2',
|
|
3350
|
+
PlWaw3: 'pl-waw-3',
|
|
3351
|
+
};
|
|
3352
|
+
/**
|
|
3353
|
+
* @export
|
|
3354
|
+
*/
|
|
3355
|
+
exports.UpdateServerZoneEnum = {
|
|
3356
|
+
FrPar1: 'fr-par-1',
|
|
3357
|
+
FrPar2: 'fr-par-2',
|
|
3358
|
+
NlAms1: 'nl-ams-1',
|
|
3359
|
+
NlAms2: 'nl-ams-2',
|
|
3360
|
+
PlWaw2: 'pl-waw-2',
|
|
3361
|
+
PlWaw3: 'pl-waw-3',
|
|
3362
|
+
};
|