@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,2424 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Domains and DNS API
|
|
6
|
+
* The Domains and DNS API documentation allows you to configure and manage your domains\' DNS zones and records. You can also use dynamic records to optimize and easily use your infrastructure as code. Read our [reference content documentation](https://www.scaleway.com/en/docs/network/domains-and-dns/reference-content/) for more information about domains. Refer to the [Domains and DNS Registrar API documentation](https://www.scaleway.com/en/developers/api/domains-and-dns/registrar-api/) to find out how to buy,transfer and manage your domains and contacts (DNSSEC included). (switchcolumn) (switchcolumn) ## Concepts Refer to our [dedicated concepts page](https://www.scaleway.com/en/docs/network/domains-and-dns/concepts/) to find definitions of the different terms referring to Scaleway Domains and DNS. (switchcolumn) (switchcolumn) ## Quickstart 1. **Configure your environment variables.** <Message type=\"note\"> This is an optional step that seeks to simplify your usage of the API. </Message> ```bash export SCW_ACCESS_KEY=\"<API access key>\" export SCW_SECRET_KEY=\"<API secret key>\" export SCW_PROJECT_ID=\"<Scaleway Project ID>\" ``` 2. **Register an external domain.** Run the following command to register your domain: ```bash curl https://api.scaleway.com/domain/v2beta1/external-domains \\ -X POST \\ -H \"Content-Type: application/json\" \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" \\ -d \'{ \"domain\": \"my-external-domain.test\", \"project_id\": \"<Scaleway Project ID>\" }\' ``` 3. **Set up a TXT record.** <Message type=\"important\"> After you register your external domain, you must set up a TXT record **within 48 hours**. This step is optional if you have an internal domain. </Message> Set up your TXT record as explained in **step 4** of our [documentation on how to add an external domain](https://www.scaleway.com/en/docs/network/domains-and-dns/how-to/add-external-domain/) to confirm you are the owner of the domain registered. <Message type=\"note\"> You will receive a confirmation email once your domain is validated. Your domain will then be available on the API. </Message> 4. **Update your DNS name servers.** [Update your DNS name servers](https://www.scaleway.com/en/docs/network/domains-and-dns/how-to/manage-nameservers-internal-domain) to Scaleway\'s DNS name servers: `ns0.dom.scw.cloud` and `ns1.dom.scw.cloud`. - For your domain: update the name servers at your registrar to point your domain to Scaleway\'s DNS servers - For your subdomain: update the name servers at your parent DNS server to point your subdomain to Scaleway\'s DNS servers 5. **Set up your domain\'s DNSSEC.** You need to set up your domain\'s DNSSEC on the registry by your registrar and on the DNS server with the same information. To set up the DNSSEC: * use the [Registrar API](https://www.scaleway.com/en/developers/api/domains-and-dns/registrar-api/#path-domains-update-domain-dnssec) `EnableDomainDNSSEC` to generate the setup on the DNS servers * if your domain is not registered on Scaleway but on another registrar, use the DS or public key information to configure the DNSSEC on your registrar <Message type=\"tip\"> You can remove your DNSSEC settings on your registrar before you migrate to our service. You will be able to set it up again afterwards. </Message> 6. **List your domains.** Run the following command to retrieve the list of your domains: ```bash curl https://api.scaleway.com/domain/v2beta1/domains \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" ``` The following output displays: ```bash { \"total_count\": 1, \"domains\": [ { \"domain\": \"domain-external.test\", \"organization_id\": \"<Scaleway Organization ID>\", \"project_id\": \"<Scaleway Project ID>\", \"auto_renew_status\": \"disabled\", \"dnssec_status\": \"disabled\", \"epp_code\": [], \"expired_at\": null, \"updated_at\": \"1970-01-01T00:00:00Z\", \"registrar\": \"EXTERNAL\", \"is_external\": true, \"status\": \"active\" } ] } ``` 7. **List the zones you can manage.** Run the following command to list the DNS zones you can manage: ```bash curl https://api.scaleway.com/domain/v2beta1/dns-zones/ \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" ``` An output similar to the following displays: ```bash { \"total_count\": 3, \"dns_zones\": [ { \"domain\": \"domain-external.test\", \"subdomain\": \"\", \"ns\": [ \"ns0.dom.scw.cloud\", \"ns1.dom.scw.cloud\" ], \"ns_default\": [ \"ns0.dom.scw.cloud\", \"ns1.dom.scw.cloud\" ], \"ns_master\": [], \"status\": \"active\", \"message\": null, \"updated_at\": \"2022-06-21T01:34:55Z\", \"project_id\": \"<Scaleway Project ID>\" }, { \"domain\": \"domain-external.test\", \"subdomain\": \"test-zone\", \"ns\": [ \"ns0.dom.scw.cloud\", \"ns1.dom.scw.cloud\" ], \"ns_default\": [ \"ns0.dom.scw.cloud\", \"ns1.dom.scw.cloud\" ], \"ns_master\": [], \"status\": \"active\", \"message\": null, \"updated_at\": \"2022-06-21T01:34:55Z\", \"project_id\": \"<Scaleway Project ID>\" }, { \"domain\": \"other-domain-external.test\", \"subdomain\": \"\", \"ns\": [ \"ns0.dom.scw.cloud\", \"ns1.dom.scw.cloud\" ], \"ns_default\": [ \"ns0.dom.scw.cloud\", \"ns1.dom.scw.cloud\" ], \"ns_master\": [], \"status\": \"active\", \"message\": null, \"updated_at\": \"2022-06-21T01:34:55Z\", \"project_id\": \"<Scaleway Project ID>\" } ] } ``` 8. **Update a zone\'s record(s).** <Message type=\"important\"> - The `clear` command clears all your records. You will have to setup your records again - If the zone you want to update does not exist but is included in a managed zone, the API will create the new (sub) zone </Message> Run the following command to update a zone\'s record: ```bash curl https://api.scaleway.com/domain/v2beta1/dns-zones/subdomain.domain-external.test/records \\ -X PATCH \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" \\ -d \'{ \"changes\": [ { \"clear\": {} }, { \"add\": { \"records\": [ { \"name\": \"test1\", \"data\": \"127.0.0.1\", \"type\": \"A\", \"ttl\": 3600 }, { \"name\": \"test2\", \"data\": \"127.0.0.1\", \"type\": \"A\", \"ttl\": 3600 } ] } }, { \"set\": { \"id_fields\": { \"type\": \"A\", \"name\": \"test2\" }, \"records\": [ { \"name\": \"test2\", \"data\": \"127.0.0.2\", \"type\": \"A\", \"ttl\": 3600 } ] } }, { \"add\": { \"records\": [ { \"name\": \"test3\", \"data\": \"127.0.0.3\", \"type\": \"A\", \"ttl\": 3600 }, { \"name\": \"test3\", \"data\": \"127.0.0.4\", \"type\": \"A\", \"ttl\": 3600 } ] } }, { \"delete\": { \"id_fields\": { \"name\": \"test3\", \"data\": \"127.0.0.4\", \"type\": \"A\", \"ttl\": 3600 } } } ] }\' ``` An output similar to the following displays: ```bash { \"records\": [ { \"id\": \"<UUID>\", \"data\": \"127.0.0.1\", \"name\": \"test1\", \"priority\": 0, \"ttl\": 3600, \"type\": \"A\" }, { \"id\": \"<UUID>\", \"data\": \"127.0.0.1\", \"name\": \"test2\", \"priority\": 0, \"ttl\": 3600, \"type\": \"A\" }, { \"id\": \"<UUID>\", \"data\": \"127.0.0.2\", \"name\": \"test2\", \"priority\": 0, \"ttl\": 3600, \"type\": \"A\" }, { \"id\": \"<UUID>\", \"data\": \"127.0.0.3\", \"name\": \"test3\", \"priority\": 0, \"ttl\": 3600, \"type\": \"A\" } ] } ``` 9. **Enable DNSSEC for external domains.** - Run the following command if you have not set up DNSSEC at your registrar: ```bash curl https://api.scaleway.com/domain/v2beta1/domains/example.com/enable-dnssec \\ -X POST \\ -H \"Content-Type: application/json\" \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" \\ -d \'{}\' ``` An output similar to the following displays: ```json { \"domain\":{ \"domain\":\"example.fr\", \"auto_renew_status\":\"enabled\", \"dnssec_status\":\"disabled\", \"ds_records\":[ { \"key_id\":49071, \"algorithm\":\"ecdsap256sha256\", \"digest\":{ \"type\":\"sha_384\", \"digest\":\"c14421f739e35b62e3383d5972263f93610dea31da48a1990453752cf1b4f4f0314f75ecd0bc9061c51ee41ec7692204\" } } ], \"epp\":[ \"clientTransferProhibited\" ], \"expired_at\":\"2021-04-04T12:46:29Z\", \"updated_at\":\"2020-07-07T13:24:27Z\", \"registrar\":\"EXTERNAL\", \"is_external\":true, \"status\":\"active\", \"......\" } ``` <Message type=\"important\"> Set up the information returned under `ds_records` in the output, in your registrar to configure DNSSEC for your external domain. </Message> - Run the following command if you have already set up DNSSEC at your registrar: ```bash curl https://api.scaleway.com/domain/v2beta1/domains/example.com/enable-dnssec \\ -X POST \\ -H \"Content-Type: application/json\" \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" \\ -d \'{ \"ds_record\": { \"algorithm\": \"rsamd5\", \"digest\": { \"type\": \"sha_1\", \"digest\": \"ABCD\" } } }\' ``` 10. **Enable DNSSEC for internal domains.** Find out how to enable DNSSEC for your internal domains in our [dedicated documentation](https://www.scaleway.com/en/docs/network/domains-and-dns/how-to/configure-dnssec-internal-domain/). (switchcolumn) <Message type=\"requirement\"> - You have a [Scaleway account](https://console.scaleway.com/) - 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 your [Organization ID](https://console.scaleway.com/organization/settings) - You have [installed `curl`](https://curl.se/download.html) </Message> (switchcolumn) ## Technical information ### Regional availability Scaleway Domains and DNS is currently available globally. Find out about [product availability in our dedicated documentation](https://www.scaleway.com/en/docs/account/reference-content/products-availability). ### Format - The format of record names is always in \"short\" format (i.e.\"test\" instead of the FQDN \"test.mydomain.com\") - If a data value is not in RFC format, quotes will be added for `TXT`records. If `CNAME`records are not in FQDDN, the zone will be added ## Technical limitations - Only the owner of a domain can use and configure it with Domains and DNS - Each zone supports the creation of sub-zones, which inherit the parent\'s Project ID - We provide the following record types: `A`, `AAAA`, `CNAME`, `CAA`, `DNAME`, `HTTPS`, `MX`, `NAPTR`, `NS`, `SRV`, `SVCB`, `TLSA` and `TXT` - We support the following dynamic records: `http(s)` `health check` and `views` ## Going further For more information about Domains and DNS, you can check out the following pages: - [Domains and DNS Documentation](https://www.scaleway.com/en/docs/network/domains-and-dns/) - [Scaleway Slack Community](http://slack.scaleway.com) join the #domains channel - [Contact our support team](https://console.scaleway.com/support/tickets) ### Test if the service is up Run the following command to test if an `http` or `https` service is up on a provided list of IPs: ```bash curl https://api.scaleway.com/domain/v2beta1/dns-zones/dom.example.com/records \\ -X PATCH \\ -H \"Content-Type: application/json\" \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" \\ -d \'{ \"return_all_records\": false, \"changes\": [ { \"add\": { \"records\": [ { \"name\": \"service-www\", \"data\": \"10.51.2.8\", \"type\": \"A\", \"ttl\": 600, \"http_service_config\": { \"ips\": [ \"10.51.2.8\", \"10.51.3.7\", \"10.51.2.9\" ], \"must_contain\": \"I am fine\", \"url\": \"https://www.domain-test.test\" } } ] } } ] }\' ``` <Message type=\"note\"> An IP is considered healthy if the query response contains the text specified in `must_contain`. The record type can be one of `A` and `AAAA`. </Message> ### View Run the following command to view responses depending on the requester\'s or resolver\'s IP: ```bash curl https://api.scaleway.com/domain/v2beta1/dns-zones/dom.example.com/records \\ -X PATCH \\ -H \"Content-Type: application/json\" \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" \\ -d \'{ \"return_all_records\": false, \"changes\": [ { \"set\": { \"id_fields\": { \"name\": \"test\", \"type\": \"CNAME\" }, \"records\": [ { \"name\": \"test\", \"data\": \"default-domain.com.\", \"type\": \"CNAME\", \"ttl\": 600, \"view_config\": { \"views\": [ { \"subnet\": \"10.51.0.0/16\", \"data\": \"filtered-domain.com.\" } ] } } ] } } ] }\' ``` <Message type=\"note\"> Record types include `A`, `AAAA`, `CNAME` and `TXT`. </Message>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v2beta1
|
|
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.VersionsApi = exports.VersionsApiFactory = exports.VersionsApiFp = exports.VersionsApiAxiosParamCreator = exports.ListDNSZoneRecordsTypeEnum = exports.ListDNSZoneRecordsOrderByEnum = exports.RecordsApi = exports.RecordsApiFactory = exports.RecordsApiFp = exports.RecordsApiAxiosParamCreator = exports.ExportRawDNSZoneFormatEnum = exports.ImportsExportsApi = exports.ImportsExportsApiFactory = exports.ImportsExportsApiFp = exports.ImportsExportsApiAxiosParamCreator = exports.ListDNSZonesOrderByEnum = exports.DNSZonesApi = exports.DNSZonesApiFactory = exports.DNSZonesApiFp = exports.DNSZonesApiAxiosParamCreator = exports.ScalewayDomainV2beta1SSLCertificateStatus = exports.ScalewayDomainV2beta1RecordType = exports.ScalewayDomainV2beta1RecordHTTPServiceConfigStrategy = exports.ScalewayDomainV2beta1RawFormat = exports.ScalewayDomainV2beta1LinkedProduct = exports.ScalewayDomainV2beta1DNSZoneStatus = void 0;
|
|
20
|
+
const axios_1 = __importDefault(require("axios"));
|
|
21
|
+
// Some imports not used depending on template conditions
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
const common_1 = require("./common");
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const base_1 = require("./base");
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @enum {string}
|
|
30
|
+
*/
|
|
31
|
+
exports.ScalewayDomainV2beta1DNSZoneStatus = {
|
|
32
|
+
Unknown: 'unknown',
|
|
33
|
+
Active: 'active',
|
|
34
|
+
Pending: 'pending',
|
|
35
|
+
Error: 'error',
|
|
36
|
+
Locked: 'locked',
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @enum {string}
|
|
42
|
+
*/
|
|
43
|
+
exports.ScalewayDomainV2beta1LinkedProduct = {
|
|
44
|
+
UnknownProduct: 'unknown_product',
|
|
45
|
+
Vpc: 'vpc',
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @export
|
|
50
|
+
* @enum {string}
|
|
51
|
+
*/
|
|
52
|
+
exports.ScalewayDomainV2beta1RawFormat = {
|
|
53
|
+
UnknownRawFormat: 'unknown_raw_format',
|
|
54
|
+
Bind: 'bind',
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
* @enum {string}
|
|
60
|
+
*/
|
|
61
|
+
exports.ScalewayDomainV2beta1RecordHTTPServiceConfigStrategy = {
|
|
62
|
+
Random: 'random',
|
|
63
|
+
Hashed: 'hashed',
|
|
64
|
+
All: 'all',
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @export
|
|
69
|
+
* @enum {string}
|
|
70
|
+
*/
|
|
71
|
+
exports.ScalewayDomainV2beta1RecordType = {
|
|
72
|
+
Unknown: 'unknown',
|
|
73
|
+
A: 'A',
|
|
74
|
+
Aaaa: 'AAAA',
|
|
75
|
+
Cname: 'CNAME',
|
|
76
|
+
Txt: 'TXT',
|
|
77
|
+
Srv: 'SRV',
|
|
78
|
+
Tlsa: 'TLSA',
|
|
79
|
+
Mx: 'MX',
|
|
80
|
+
Ns: 'NS',
|
|
81
|
+
Ptr: 'PTR',
|
|
82
|
+
Caa: 'CAA',
|
|
83
|
+
Alias: 'ALIAS',
|
|
84
|
+
Loc: 'LOC',
|
|
85
|
+
Sshfp: 'SSHFP',
|
|
86
|
+
Hinfo: 'HINFO',
|
|
87
|
+
Rp: 'RP',
|
|
88
|
+
Uri: 'URI',
|
|
89
|
+
Ds: 'DS',
|
|
90
|
+
Naptr: 'NAPTR',
|
|
91
|
+
Dname: 'DNAME',
|
|
92
|
+
Svcb: 'SVCB',
|
|
93
|
+
Https: 'HTTPS',
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @export
|
|
98
|
+
* @enum {string}
|
|
99
|
+
*/
|
|
100
|
+
exports.ScalewayDomainV2beta1SSLCertificateStatus = {
|
|
101
|
+
Unknown: 'unknown',
|
|
102
|
+
New: 'new',
|
|
103
|
+
Pending: 'pending',
|
|
104
|
+
Success: 'success',
|
|
105
|
+
Error: 'error',
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* DNSZonesApi - axios parameter creator
|
|
109
|
+
* @export
|
|
110
|
+
*/
|
|
111
|
+
const DNSZonesApiAxiosParamCreator = function (configuration) {
|
|
112
|
+
return {
|
|
113
|
+
/**
|
|
114
|
+
* Clone an existing DNS zone with all its records into a new DNS zone.
|
|
115
|
+
* @summary Clone a DNS zone
|
|
116
|
+
* @param {string} dnsZone DNS zone to clone.
|
|
117
|
+
* @param {CloneDNSZoneRequest} cloneDNSZoneRequest
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
121
|
+
cloneDNSZone: async (dnsZone, cloneDNSZoneRequest, options = {}) => {
|
|
122
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
123
|
+
(0, common_1.assertParamExists)('cloneDNSZone', 'dnsZone', dnsZone);
|
|
124
|
+
// verify required parameter 'cloneDNSZoneRequest' is not null or undefined
|
|
125
|
+
(0, common_1.assertParamExists)('cloneDNSZone', 'cloneDNSZoneRequest', cloneDNSZoneRequest);
|
|
126
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/clone`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
127
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
128
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
129
|
+
let baseOptions;
|
|
130
|
+
if (configuration) {
|
|
131
|
+
baseOptions = configuration.baseOptions;
|
|
132
|
+
}
|
|
133
|
+
const localVarRequestOptions = {
|
|
134
|
+
method: 'POST',
|
|
135
|
+
...baseOptions,
|
|
136
|
+
...options,
|
|
137
|
+
};
|
|
138
|
+
const localVarHeaderParameter = {};
|
|
139
|
+
const localVarQueryParameter = {};
|
|
140
|
+
// authentication scaleway required
|
|
141
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
142
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
|
+
localVarRequestOptions.headers = {
|
|
146
|
+
...localVarHeaderParameter,
|
|
147
|
+
...headersFromBaseOptions,
|
|
148
|
+
...options.headers,
|
|
149
|
+
};
|
|
150
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(cloneDNSZoneRequest, localVarRequestOptions, configuration);
|
|
151
|
+
return {
|
|
152
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
153
|
+
options: localVarRequestOptions,
|
|
154
|
+
};
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
* Create a new DNS zone specified by the domain name, the subdomain and the Project ID.
|
|
158
|
+
* @summary Create a DNS zone
|
|
159
|
+
* @param {CreateDNSZoneRequest} createDNSZoneRequest
|
|
160
|
+
* @param {*} [options] Override http request option.
|
|
161
|
+
* @throws {RequiredError}
|
|
162
|
+
*/
|
|
163
|
+
createDNSZone: async (createDNSZoneRequest, options = {}) => {
|
|
164
|
+
// verify required parameter 'createDNSZoneRequest' is not null or undefined
|
|
165
|
+
(0, common_1.assertParamExists)('createDNSZone', 'createDNSZoneRequest', createDNSZoneRequest);
|
|
166
|
+
const localVarPath = `/domain/v2beta1/dns-zones`;
|
|
167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
|
+
let baseOptions;
|
|
170
|
+
if (configuration) {
|
|
171
|
+
baseOptions = configuration.baseOptions;
|
|
172
|
+
}
|
|
173
|
+
const localVarRequestOptions = {
|
|
174
|
+
method: 'POST',
|
|
175
|
+
...baseOptions,
|
|
176
|
+
...options,
|
|
177
|
+
};
|
|
178
|
+
const localVarHeaderParameter = {};
|
|
179
|
+
const localVarQueryParameter = {};
|
|
180
|
+
// authentication scaleway required
|
|
181
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
182
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
183
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
+
localVarRequestOptions.headers = {
|
|
186
|
+
...localVarHeaderParameter,
|
|
187
|
+
...headersFromBaseOptions,
|
|
188
|
+
...options.headers,
|
|
189
|
+
};
|
|
190
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDNSZoneRequest, localVarRequestOptions, configuration);
|
|
191
|
+
return {
|
|
192
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
193
|
+
options: localVarRequestOptions,
|
|
194
|
+
};
|
|
195
|
+
},
|
|
196
|
+
/**
|
|
197
|
+
* Create a new TLS certificate or retrieve information about an existing TLS certificate.
|
|
198
|
+
* @summary Create or get the DNS zone\'s TLS certificate
|
|
199
|
+
* @param {CreateSSLCertificateRequest} createSSLCertificateRequest
|
|
200
|
+
* @param {*} [options] Override http request option.
|
|
201
|
+
* @throws {RequiredError}
|
|
202
|
+
*/
|
|
203
|
+
createSSLCertificate: async (createSSLCertificateRequest, options = {}) => {
|
|
204
|
+
// verify required parameter 'createSSLCertificateRequest' is not null or undefined
|
|
205
|
+
(0, common_1.assertParamExists)('createSSLCertificate', 'createSSLCertificateRequest', createSSLCertificateRequest);
|
|
206
|
+
const localVarPath = `/domain/v2beta1/ssl-certificates`;
|
|
207
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
209
|
+
let baseOptions;
|
|
210
|
+
if (configuration) {
|
|
211
|
+
baseOptions = configuration.baseOptions;
|
|
212
|
+
}
|
|
213
|
+
const localVarRequestOptions = {
|
|
214
|
+
method: 'POST',
|
|
215
|
+
...baseOptions,
|
|
216
|
+
...options,
|
|
217
|
+
};
|
|
218
|
+
const localVarHeaderParameter = {};
|
|
219
|
+
const localVarQueryParameter = {};
|
|
220
|
+
// authentication scaleway required
|
|
221
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
222
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
223
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
224
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
|
+
localVarRequestOptions.headers = {
|
|
226
|
+
...localVarHeaderParameter,
|
|
227
|
+
...headersFromBaseOptions,
|
|
228
|
+
...options.headers,
|
|
229
|
+
};
|
|
230
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSSLCertificateRequest, localVarRequestOptions, configuration);
|
|
231
|
+
return {
|
|
232
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
233
|
+
options: localVarRequestOptions,
|
|
234
|
+
};
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
* Delete a DNS zone and all its records.
|
|
238
|
+
* @summary Delete a DNS zone
|
|
239
|
+
* @param {string} dnsZone DNS zone to delete.
|
|
240
|
+
* @param {string} projectId Project ID of the DNS zone to delete.
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
deleteDNSZone: async (dnsZone, projectId, options = {}) => {
|
|
245
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
246
|
+
(0, common_1.assertParamExists)('deleteDNSZone', 'dnsZone', dnsZone);
|
|
247
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
248
|
+
(0, common_1.assertParamExists)('deleteDNSZone', 'projectId', projectId);
|
|
249
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
250
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
251
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
252
|
+
let baseOptions;
|
|
253
|
+
if (configuration) {
|
|
254
|
+
baseOptions = configuration.baseOptions;
|
|
255
|
+
}
|
|
256
|
+
const localVarRequestOptions = {
|
|
257
|
+
method: 'DELETE',
|
|
258
|
+
...baseOptions,
|
|
259
|
+
...options,
|
|
260
|
+
};
|
|
261
|
+
const localVarHeaderParameter = {};
|
|
262
|
+
const localVarQueryParameter = {};
|
|
263
|
+
// authentication scaleway required
|
|
264
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
265
|
+
if (projectId !== undefined) {
|
|
266
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
267
|
+
}
|
|
268
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
269
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
270
|
+
localVarRequestOptions.headers = {
|
|
271
|
+
...localVarHeaderParameter,
|
|
272
|
+
...headersFromBaseOptions,
|
|
273
|
+
...options.headers,
|
|
274
|
+
};
|
|
275
|
+
return {
|
|
276
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
277
|
+
options: localVarRequestOptions,
|
|
278
|
+
};
|
|
279
|
+
},
|
|
280
|
+
/**
|
|
281
|
+
* Delete an existing TSIG key specified by its DNS zone. Deleting a TSIG key is permanent and cannot be undone.
|
|
282
|
+
* @summary Delete the DNS zone\'s TSIG key
|
|
283
|
+
* @param {string} dnsZone
|
|
284
|
+
* @param {*} [options] Override http request option.
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
*/
|
|
287
|
+
deleteDNSZoneTsigKey: async (dnsZone, options = {}) => {
|
|
288
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
289
|
+
(0, common_1.assertParamExists)('deleteDNSZoneTsigKey', 'dnsZone', dnsZone);
|
|
290
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/tsig-key`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
291
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
292
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
293
|
+
let baseOptions;
|
|
294
|
+
if (configuration) {
|
|
295
|
+
baseOptions = configuration.baseOptions;
|
|
296
|
+
}
|
|
297
|
+
const localVarRequestOptions = {
|
|
298
|
+
method: 'DELETE',
|
|
299
|
+
...baseOptions,
|
|
300
|
+
...options,
|
|
301
|
+
};
|
|
302
|
+
const localVarHeaderParameter = {};
|
|
303
|
+
const localVarQueryParameter = {};
|
|
304
|
+
// authentication scaleway required
|
|
305
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
306
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
307
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
308
|
+
localVarRequestOptions.headers = {
|
|
309
|
+
...localVarHeaderParameter,
|
|
310
|
+
...headersFromBaseOptions,
|
|
311
|
+
...options.headers,
|
|
312
|
+
};
|
|
313
|
+
return {
|
|
314
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
315
|
+
options: localVarRequestOptions,
|
|
316
|
+
};
|
|
317
|
+
},
|
|
318
|
+
/**
|
|
319
|
+
* Delete an existing TLS certificate specified by its DNS zone. Deleting a TLS certificate is permanent and cannot be undone.
|
|
320
|
+
* @summary Delete a TLS certificate
|
|
321
|
+
* @param {string} dnsZone
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
deleteSSLCertificate: async (dnsZone, options = {}) => {
|
|
326
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
327
|
+
(0, common_1.assertParamExists)('deleteSSLCertificate', 'dnsZone', dnsZone);
|
|
328
|
+
const localVarPath = `/domain/v2beta1/ssl-certificates/{dns_zone}`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
329
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
330
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
331
|
+
let baseOptions;
|
|
332
|
+
if (configuration) {
|
|
333
|
+
baseOptions = configuration.baseOptions;
|
|
334
|
+
}
|
|
335
|
+
const localVarRequestOptions = {
|
|
336
|
+
method: 'DELETE',
|
|
337
|
+
...baseOptions,
|
|
338
|
+
...options,
|
|
339
|
+
};
|
|
340
|
+
const localVarHeaderParameter = {};
|
|
341
|
+
const localVarQueryParameter = {};
|
|
342
|
+
// authentication scaleway required
|
|
343
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
344
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
345
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
346
|
+
localVarRequestOptions.headers = {
|
|
347
|
+
...localVarHeaderParameter,
|
|
348
|
+
...headersFromBaseOptions,
|
|
349
|
+
...options.headers,
|
|
350
|
+
};
|
|
351
|
+
return {
|
|
352
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
353
|
+
options: localVarRequestOptions,
|
|
354
|
+
};
|
|
355
|
+
},
|
|
356
|
+
/**
|
|
357
|
+
* Retrieve information about the TSIG key of a given DNS zone to allow AXFR requests.
|
|
358
|
+
* @summary Get the DNS zone\'s TSIG key
|
|
359
|
+
* @param {string} dnsZone
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
*/
|
|
363
|
+
getDNSZoneTsigKey: async (dnsZone, options = {}) => {
|
|
364
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
365
|
+
(0, common_1.assertParamExists)('getDNSZoneTsigKey', 'dnsZone', dnsZone);
|
|
366
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/tsig-key`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
368
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
369
|
+
let baseOptions;
|
|
370
|
+
if (configuration) {
|
|
371
|
+
baseOptions = configuration.baseOptions;
|
|
372
|
+
}
|
|
373
|
+
const localVarRequestOptions = {
|
|
374
|
+
method: 'GET',
|
|
375
|
+
...baseOptions,
|
|
376
|
+
...options,
|
|
377
|
+
};
|
|
378
|
+
const localVarHeaderParameter = {};
|
|
379
|
+
const localVarQueryParameter = {};
|
|
380
|
+
// authentication scaleway required
|
|
381
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
382
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
383
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
384
|
+
localVarRequestOptions.headers = {
|
|
385
|
+
...localVarHeaderParameter,
|
|
386
|
+
...headersFromBaseOptions,
|
|
387
|
+
...options.headers,
|
|
388
|
+
};
|
|
389
|
+
return {
|
|
390
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
391
|
+
options: localVarRequestOptions,
|
|
392
|
+
};
|
|
393
|
+
},
|
|
394
|
+
/**
|
|
395
|
+
* Get the DNS zone\'s TLS certificate. If you do not have a certificate, the output returns `no certificate found`.
|
|
396
|
+
* @summary Get a DNS zone\'s TLS certificate
|
|
397
|
+
* @param {string} dnsZone
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
getSSLCertificate: async (dnsZone, options = {}) => {
|
|
402
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
403
|
+
(0, common_1.assertParamExists)('getSSLCertificate', 'dnsZone', dnsZone);
|
|
404
|
+
const localVarPath = `/domain/v2beta1/ssl-certificates/{dns_zone}`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
405
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
406
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
407
|
+
let baseOptions;
|
|
408
|
+
if (configuration) {
|
|
409
|
+
baseOptions = configuration.baseOptions;
|
|
410
|
+
}
|
|
411
|
+
const localVarRequestOptions = {
|
|
412
|
+
method: 'GET',
|
|
413
|
+
...baseOptions,
|
|
414
|
+
...options,
|
|
415
|
+
};
|
|
416
|
+
const localVarHeaderParameter = {};
|
|
417
|
+
const localVarQueryParameter = {};
|
|
418
|
+
// authentication scaleway required
|
|
419
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
420
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
421
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
422
|
+
localVarRequestOptions.headers = {
|
|
423
|
+
...localVarHeaderParameter,
|
|
424
|
+
...headersFromBaseOptions,
|
|
425
|
+
...options.headers,
|
|
426
|
+
};
|
|
427
|
+
return {
|
|
428
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
429
|
+
options: localVarRequestOptions,
|
|
430
|
+
};
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
* Retrieve the list of DNS zones you can manage and filter DNS zones associated with specific domain names.
|
|
434
|
+
* @summary List DNS zones
|
|
435
|
+
* @param {string} domain Domain on which to filter the returned DNS zones.
|
|
436
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zones.
|
|
437
|
+
* @param {string} [organizationId] Organization ID on which to filter the returned DNS zones.
|
|
438
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zones.
|
|
439
|
+
* @param {ListDNSZonesOrderByEnum} [orderBy] Sort order of the returned DNS zones.
|
|
440
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
441
|
+
* @param {number} [pageSize] Maximum number of DNS zones to return per page.
|
|
442
|
+
* @param {Array<string>} [dnsZones] DNS zones on which to filter the returned DNS zones.
|
|
443
|
+
* @param {string} [createdAfter] Only list DNS zones created after this date. (RFC 3339 format)
|
|
444
|
+
* @param {string} [createdBefore] Only list DNS zones created before this date. (RFC 3339 format)
|
|
445
|
+
* @param {string} [updatedAfter] Only list DNS zones updated after this date. (RFC 3339 format)
|
|
446
|
+
* @param {string} [updatedBefore] Only list DNS zones updated before this date. (RFC 3339 format)
|
|
447
|
+
* @param {*} [options] Override http request option.
|
|
448
|
+
* @throws {RequiredError}
|
|
449
|
+
*/
|
|
450
|
+
listDNSZones: async (domain, dnsZone, organizationId, projectId, orderBy, page, pageSize, dnsZones, createdAfter, createdBefore, updatedAfter, updatedBefore, options = {}) => {
|
|
451
|
+
// verify required parameter 'domain' is not null or undefined
|
|
452
|
+
(0, common_1.assertParamExists)('listDNSZones', 'domain', domain);
|
|
453
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
454
|
+
(0, common_1.assertParamExists)('listDNSZones', 'dnsZone', dnsZone);
|
|
455
|
+
const localVarPath = `/domain/v2beta1/dns-zones`;
|
|
456
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
457
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
458
|
+
let baseOptions;
|
|
459
|
+
if (configuration) {
|
|
460
|
+
baseOptions = configuration.baseOptions;
|
|
461
|
+
}
|
|
462
|
+
const localVarRequestOptions = {
|
|
463
|
+
method: 'GET',
|
|
464
|
+
...baseOptions,
|
|
465
|
+
...options,
|
|
466
|
+
};
|
|
467
|
+
const localVarHeaderParameter = {};
|
|
468
|
+
const localVarQueryParameter = {};
|
|
469
|
+
// authentication scaleway required
|
|
470
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
471
|
+
if (organizationId !== undefined) {
|
|
472
|
+
localVarQueryParameter['organization_id'] = organizationId;
|
|
473
|
+
}
|
|
474
|
+
if (projectId !== undefined) {
|
|
475
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
476
|
+
}
|
|
477
|
+
if (orderBy !== undefined) {
|
|
478
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
479
|
+
}
|
|
480
|
+
if (page !== undefined) {
|
|
481
|
+
localVarQueryParameter['page'] = page;
|
|
482
|
+
}
|
|
483
|
+
if (pageSize !== undefined) {
|
|
484
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
485
|
+
}
|
|
486
|
+
if (domain !== undefined) {
|
|
487
|
+
localVarQueryParameter['domain'] = domain;
|
|
488
|
+
}
|
|
489
|
+
if (dnsZone !== undefined) {
|
|
490
|
+
localVarQueryParameter['dns_zone'] = dnsZone;
|
|
491
|
+
}
|
|
492
|
+
if (dnsZones) {
|
|
493
|
+
localVarQueryParameter['dns_zones'] = dnsZones;
|
|
494
|
+
}
|
|
495
|
+
if (createdAfter !== undefined) {
|
|
496
|
+
localVarQueryParameter['created_after'] =
|
|
497
|
+
createdAfter instanceof Date
|
|
498
|
+
? createdAfter.toISOString()
|
|
499
|
+
: createdAfter;
|
|
500
|
+
}
|
|
501
|
+
if (createdBefore !== undefined) {
|
|
502
|
+
localVarQueryParameter['created_before'] =
|
|
503
|
+
createdBefore instanceof Date
|
|
504
|
+
? createdBefore.toISOString()
|
|
505
|
+
: createdBefore;
|
|
506
|
+
}
|
|
507
|
+
if (updatedAfter !== undefined) {
|
|
508
|
+
localVarQueryParameter['updated_after'] =
|
|
509
|
+
updatedAfter instanceof Date
|
|
510
|
+
? updatedAfter.toISOString()
|
|
511
|
+
: updatedAfter;
|
|
512
|
+
}
|
|
513
|
+
if (updatedBefore !== undefined) {
|
|
514
|
+
localVarQueryParameter['updated_before'] =
|
|
515
|
+
updatedBefore instanceof Date
|
|
516
|
+
? updatedBefore.toISOString()
|
|
517
|
+
: updatedBefore;
|
|
518
|
+
}
|
|
519
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
520
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
521
|
+
localVarRequestOptions.headers = {
|
|
522
|
+
...localVarHeaderParameter,
|
|
523
|
+
...headersFromBaseOptions,
|
|
524
|
+
...options.headers,
|
|
525
|
+
};
|
|
526
|
+
return {
|
|
527
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
528
|
+
options: localVarRequestOptions,
|
|
529
|
+
};
|
|
530
|
+
},
|
|
531
|
+
/**
|
|
532
|
+
* List all the TLS certificates a user has created, specified by the user\'s Project ID and the DNS zone.
|
|
533
|
+
* @summary List a user\'s TLS certificates
|
|
534
|
+
* @param {string} dnsZone
|
|
535
|
+
* @param {number} [page]
|
|
536
|
+
* @param {number} [pageSize]
|
|
537
|
+
* @param {string} [projectId]
|
|
538
|
+
* @param {*} [options] Override http request option.
|
|
539
|
+
* @throws {RequiredError}
|
|
540
|
+
*/
|
|
541
|
+
listSSLCertificates: async (dnsZone, page, pageSize, projectId, options = {}) => {
|
|
542
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
543
|
+
(0, common_1.assertParamExists)('listSSLCertificates', 'dnsZone', dnsZone);
|
|
544
|
+
const localVarPath = `/domain/v2beta1/ssl-certificates`;
|
|
545
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
546
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
547
|
+
let baseOptions;
|
|
548
|
+
if (configuration) {
|
|
549
|
+
baseOptions = configuration.baseOptions;
|
|
550
|
+
}
|
|
551
|
+
const localVarRequestOptions = {
|
|
552
|
+
method: 'GET',
|
|
553
|
+
...baseOptions,
|
|
554
|
+
...options,
|
|
555
|
+
};
|
|
556
|
+
const localVarHeaderParameter = {};
|
|
557
|
+
const localVarQueryParameter = {};
|
|
558
|
+
// authentication scaleway required
|
|
559
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
560
|
+
if (dnsZone !== undefined) {
|
|
561
|
+
localVarQueryParameter['dns_zone'] = dnsZone;
|
|
562
|
+
}
|
|
563
|
+
if (page !== undefined) {
|
|
564
|
+
localVarQueryParameter['page'] = page;
|
|
565
|
+
}
|
|
566
|
+
if (pageSize !== undefined) {
|
|
567
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
568
|
+
}
|
|
569
|
+
if (projectId !== undefined) {
|
|
570
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
571
|
+
}
|
|
572
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
573
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
574
|
+
localVarRequestOptions.headers = {
|
|
575
|
+
...localVarHeaderParameter,
|
|
576
|
+
...headersFromBaseOptions,
|
|
577
|
+
...options.headers,
|
|
578
|
+
};
|
|
579
|
+
return {
|
|
580
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
581
|
+
options: localVarRequestOptions,
|
|
582
|
+
};
|
|
583
|
+
},
|
|
584
|
+
/**
|
|
585
|
+
* Refresh an SOA DNS zone to reload the records in the DNS zone and update the SOA serial. You can recreate the given DNS zone and its sub DNS zone if needed.
|
|
586
|
+
* @summary Refresh a DNS zone
|
|
587
|
+
* @param {string} dnsZone DNS zone to refresh.
|
|
588
|
+
* @param {RefreshDNSZoneRequest} refreshDNSZoneRequest
|
|
589
|
+
* @param {*} [options] Override http request option.
|
|
590
|
+
* @throws {RequiredError}
|
|
591
|
+
*/
|
|
592
|
+
refreshDNSZone: async (dnsZone, refreshDNSZoneRequest, options = {}) => {
|
|
593
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
594
|
+
(0, common_1.assertParamExists)('refreshDNSZone', 'dnsZone', dnsZone);
|
|
595
|
+
// verify required parameter 'refreshDNSZoneRequest' is not null or undefined
|
|
596
|
+
(0, common_1.assertParamExists)('refreshDNSZone', 'refreshDNSZoneRequest', refreshDNSZoneRequest);
|
|
597
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/refresh`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
598
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
599
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
600
|
+
let baseOptions;
|
|
601
|
+
if (configuration) {
|
|
602
|
+
baseOptions = configuration.baseOptions;
|
|
603
|
+
}
|
|
604
|
+
const localVarRequestOptions = {
|
|
605
|
+
method: 'POST',
|
|
606
|
+
...baseOptions,
|
|
607
|
+
...options,
|
|
608
|
+
};
|
|
609
|
+
const localVarHeaderParameter = {};
|
|
610
|
+
const localVarQueryParameter = {};
|
|
611
|
+
// authentication scaleway required
|
|
612
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
613
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
614
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
615
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
616
|
+
localVarRequestOptions.headers = {
|
|
617
|
+
...localVarHeaderParameter,
|
|
618
|
+
...headersFromBaseOptions,
|
|
619
|
+
...options.headers,
|
|
620
|
+
};
|
|
621
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(refreshDNSZoneRequest, localVarRequestOptions, configuration);
|
|
622
|
+
return {
|
|
623
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
624
|
+
options: localVarRequestOptions,
|
|
625
|
+
};
|
|
626
|
+
},
|
|
627
|
+
/**
|
|
628
|
+
* Update the name and/or the Organizations for a DNS zone.
|
|
629
|
+
* @summary Update a DNS zone
|
|
630
|
+
* @param {string} dnsZone DNS zone to update.
|
|
631
|
+
* @param {UpdateDNSZoneRequest} updateDNSZoneRequest
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
*/
|
|
635
|
+
updateDNSZone: async (dnsZone, updateDNSZoneRequest, options = {}) => {
|
|
636
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
637
|
+
(0, common_1.assertParamExists)('updateDNSZone', 'dnsZone', dnsZone);
|
|
638
|
+
// verify required parameter 'updateDNSZoneRequest' is not null or undefined
|
|
639
|
+
(0, common_1.assertParamExists)('updateDNSZone', 'updateDNSZoneRequest', updateDNSZoneRequest);
|
|
640
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
641
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
642
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
643
|
+
let baseOptions;
|
|
644
|
+
if (configuration) {
|
|
645
|
+
baseOptions = configuration.baseOptions;
|
|
646
|
+
}
|
|
647
|
+
const localVarRequestOptions = {
|
|
648
|
+
method: 'PATCH',
|
|
649
|
+
...baseOptions,
|
|
650
|
+
...options,
|
|
651
|
+
};
|
|
652
|
+
const localVarHeaderParameter = {};
|
|
653
|
+
const localVarQueryParameter = {};
|
|
654
|
+
// authentication scaleway required
|
|
655
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
656
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
657
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
658
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
659
|
+
localVarRequestOptions.headers = {
|
|
660
|
+
...localVarHeaderParameter,
|
|
661
|
+
...headersFromBaseOptions,
|
|
662
|
+
...options.headers,
|
|
663
|
+
};
|
|
664
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDNSZoneRequest, localVarRequestOptions, configuration);
|
|
665
|
+
return {
|
|
666
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
667
|
+
options: localVarRequestOptions,
|
|
668
|
+
};
|
|
669
|
+
},
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
exports.DNSZonesApiAxiosParamCreator = DNSZonesApiAxiosParamCreator;
|
|
673
|
+
/**
|
|
674
|
+
* DNSZonesApi - functional programming interface
|
|
675
|
+
* @export
|
|
676
|
+
*/
|
|
677
|
+
const DNSZonesApiFp = function (configuration) {
|
|
678
|
+
const localVarAxiosParamCreator = (0, exports.DNSZonesApiAxiosParamCreator)(configuration);
|
|
679
|
+
return {
|
|
680
|
+
/**
|
|
681
|
+
* Clone an existing DNS zone with all its records into a new DNS zone.
|
|
682
|
+
* @summary Clone a DNS zone
|
|
683
|
+
* @param {string} dnsZone DNS zone to clone.
|
|
684
|
+
* @param {CloneDNSZoneRequest} cloneDNSZoneRequest
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
*/
|
|
688
|
+
async cloneDNSZone(dnsZone, cloneDNSZoneRequest, options) {
|
|
689
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cloneDNSZone(dnsZone, cloneDNSZoneRequest, options);
|
|
690
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
691
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.cloneDNSZone']?.[localVarOperationServerIndex]?.url;
|
|
692
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
693
|
+
},
|
|
694
|
+
/**
|
|
695
|
+
* Create a new DNS zone specified by the domain name, the subdomain and the Project ID.
|
|
696
|
+
* @summary Create a DNS zone
|
|
697
|
+
* @param {CreateDNSZoneRequest} createDNSZoneRequest
|
|
698
|
+
* @param {*} [options] Override http request option.
|
|
699
|
+
* @throws {RequiredError}
|
|
700
|
+
*/
|
|
701
|
+
async createDNSZone(createDNSZoneRequest, options) {
|
|
702
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDNSZone(createDNSZoneRequest, options);
|
|
703
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
704
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.createDNSZone']?.[localVarOperationServerIndex]?.url;
|
|
705
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
706
|
+
},
|
|
707
|
+
/**
|
|
708
|
+
* Create a new TLS certificate or retrieve information about an existing TLS certificate.
|
|
709
|
+
* @summary Create or get the DNS zone\'s TLS certificate
|
|
710
|
+
* @param {CreateSSLCertificateRequest} createSSLCertificateRequest
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
*/
|
|
714
|
+
async createSSLCertificate(createSSLCertificateRequest, options) {
|
|
715
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSSLCertificate(createSSLCertificateRequest, options);
|
|
716
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
717
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.createSSLCertificate']?.[localVarOperationServerIndex]?.url;
|
|
718
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
719
|
+
},
|
|
720
|
+
/**
|
|
721
|
+
* Delete a DNS zone and all its records.
|
|
722
|
+
* @summary Delete a DNS zone
|
|
723
|
+
* @param {string} dnsZone DNS zone to delete.
|
|
724
|
+
* @param {string} projectId Project ID of the DNS zone to delete.
|
|
725
|
+
* @param {*} [options] Override http request option.
|
|
726
|
+
* @throws {RequiredError}
|
|
727
|
+
*/
|
|
728
|
+
async deleteDNSZone(dnsZone, projectId, options) {
|
|
729
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDNSZone(dnsZone, projectId, options);
|
|
730
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
731
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.deleteDNSZone']?.[localVarOperationServerIndex]?.url;
|
|
732
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
733
|
+
},
|
|
734
|
+
/**
|
|
735
|
+
* Delete an existing TSIG key specified by its DNS zone. Deleting a TSIG key is permanent and cannot be undone.
|
|
736
|
+
* @summary Delete the DNS zone\'s TSIG key
|
|
737
|
+
* @param {string} dnsZone
|
|
738
|
+
* @param {*} [options] Override http request option.
|
|
739
|
+
* @throws {RequiredError}
|
|
740
|
+
*/
|
|
741
|
+
async deleteDNSZoneTsigKey(dnsZone, options) {
|
|
742
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDNSZoneTsigKey(dnsZone, options);
|
|
743
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
744
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.deleteDNSZoneTsigKey']?.[localVarOperationServerIndex]?.url;
|
|
745
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
746
|
+
},
|
|
747
|
+
/**
|
|
748
|
+
* Delete an existing TLS certificate specified by its DNS zone. Deleting a TLS certificate is permanent and cannot be undone.
|
|
749
|
+
* @summary Delete a TLS certificate
|
|
750
|
+
* @param {string} dnsZone
|
|
751
|
+
* @param {*} [options] Override http request option.
|
|
752
|
+
* @throws {RequiredError}
|
|
753
|
+
*/
|
|
754
|
+
async deleteSSLCertificate(dnsZone, options) {
|
|
755
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSSLCertificate(dnsZone, options);
|
|
756
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
757
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.deleteSSLCertificate']?.[localVarOperationServerIndex]?.url;
|
|
758
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
759
|
+
},
|
|
760
|
+
/**
|
|
761
|
+
* Retrieve information about the TSIG key of a given DNS zone to allow AXFR requests.
|
|
762
|
+
* @summary Get the DNS zone\'s TSIG key
|
|
763
|
+
* @param {string} dnsZone
|
|
764
|
+
* @param {*} [options] Override http request option.
|
|
765
|
+
* @throws {RequiredError}
|
|
766
|
+
*/
|
|
767
|
+
async getDNSZoneTsigKey(dnsZone, options) {
|
|
768
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDNSZoneTsigKey(dnsZone, options);
|
|
769
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
770
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.getDNSZoneTsigKey']?.[localVarOperationServerIndex]?.url;
|
|
771
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
772
|
+
},
|
|
773
|
+
/**
|
|
774
|
+
* Get the DNS zone\'s TLS certificate. If you do not have a certificate, the output returns `no certificate found`.
|
|
775
|
+
* @summary Get a DNS zone\'s TLS certificate
|
|
776
|
+
* @param {string} dnsZone
|
|
777
|
+
* @param {*} [options] Override http request option.
|
|
778
|
+
* @throws {RequiredError}
|
|
779
|
+
*/
|
|
780
|
+
async getSSLCertificate(dnsZone, options) {
|
|
781
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSSLCertificate(dnsZone, options);
|
|
782
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
783
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.getSSLCertificate']?.[localVarOperationServerIndex]?.url;
|
|
784
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
785
|
+
},
|
|
786
|
+
/**
|
|
787
|
+
* Retrieve the list of DNS zones you can manage and filter DNS zones associated with specific domain names.
|
|
788
|
+
* @summary List DNS zones
|
|
789
|
+
* @param {string} domain Domain on which to filter the returned DNS zones.
|
|
790
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zones.
|
|
791
|
+
* @param {string} [organizationId] Organization ID on which to filter the returned DNS zones.
|
|
792
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zones.
|
|
793
|
+
* @param {ListDNSZonesOrderByEnum} [orderBy] Sort order of the returned DNS zones.
|
|
794
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
795
|
+
* @param {number} [pageSize] Maximum number of DNS zones to return per page.
|
|
796
|
+
* @param {Array<string>} [dnsZones] DNS zones on which to filter the returned DNS zones.
|
|
797
|
+
* @param {string} [createdAfter] Only list DNS zones created after this date. (RFC 3339 format)
|
|
798
|
+
* @param {string} [createdBefore] Only list DNS zones created before this date. (RFC 3339 format)
|
|
799
|
+
* @param {string} [updatedAfter] Only list DNS zones updated after this date. (RFC 3339 format)
|
|
800
|
+
* @param {string} [updatedBefore] Only list DNS zones updated before this date. (RFC 3339 format)
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
*/
|
|
804
|
+
async listDNSZones(domain, dnsZone, organizationId, projectId, orderBy, page, pageSize, dnsZones, createdAfter, createdBefore, updatedAfter, updatedBefore, options) {
|
|
805
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDNSZones(domain, dnsZone, organizationId, projectId, orderBy, page, pageSize, dnsZones, createdAfter, createdBefore, updatedAfter, updatedBefore, options);
|
|
806
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
807
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.listDNSZones']?.[localVarOperationServerIndex]?.url;
|
|
808
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
809
|
+
},
|
|
810
|
+
/**
|
|
811
|
+
* List all the TLS certificates a user has created, specified by the user\'s Project ID and the DNS zone.
|
|
812
|
+
* @summary List a user\'s TLS certificates
|
|
813
|
+
* @param {string} dnsZone
|
|
814
|
+
* @param {number} [page]
|
|
815
|
+
* @param {number} [pageSize]
|
|
816
|
+
* @param {string} [projectId]
|
|
817
|
+
* @param {*} [options] Override http request option.
|
|
818
|
+
* @throws {RequiredError}
|
|
819
|
+
*/
|
|
820
|
+
async listSSLCertificates(dnsZone, page, pageSize, projectId, options) {
|
|
821
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listSSLCertificates(dnsZone, page, pageSize, projectId, options);
|
|
822
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
823
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.listSSLCertificates']?.[localVarOperationServerIndex]?.url;
|
|
824
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
825
|
+
},
|
|
826
|
+
/**
|
|
827
|
+
* Refresh an SOA DNS zone to reload the records in the DNS zone and update the SOA serial. You can recreate the given DNS zone and its sub DNS zone if needed.
|
|
828
|
+
* @summary Refresh a DNS zone
|
|
829
|
+
* @param {string} dnsZone DNS zone to refresh.
|
|
830
|
+
* @param {RefreshDNSZoneRequest} refreshDNSZoneRequest
|
|
831
|
+
* @param {*} [options] Override http request option.
|
|
832
|
+
* @throws {RequiredError}
|
|
833
|
+
*/
|
|
834
|
+
async refreshDNSZone(dnsZone, refreshDNSZoneRequest, options) {
|
|
835
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.refreshDNSZone(dnsZone, refreshDNSZoneRequest, options);
|
|
836
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
837
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.refreshDNSZone']?.[localVarOperationServerIndex]?.url;
|
|
838
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
839
|
+
},
|
|
840
|
+
/**
|
|
841
|
+
* Update the name and/or the Organizations for a DNS zone.
|
|
842
|
+
* @summary Update a DNS zone
|
|
843
|
+
* @param {string} dnsZone DNS zone to update.
|
|
844
|
+
* @param {UpdateDNSZoneRequest} updateDNSZoneRequest
|
|
845
|
+
* @param {*} [options] Override http request option.
|
|
846
|
+
* @throws {RequiredError}
|
|
847
|
+
*/
|
|
848
|
+
async updateDNSZone(dnsZone, updateDNSZoneRequest, options) {
|
|
849
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDNSZone(dnsZone, updateDNSZoneRequest, options);
|
|
850
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
851
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['DNSZonesApi.updateDNSZone']?.[localVarOperationServerIndex]?.url;
|
|
852
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
853
|
+
},
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
exports.DNSZonesApiFp = DNSZonesApiFp;
|
|
857
|
+
/**
|
|
858
|
+
* DNSZonesApi - factory interface
|
|
859
|
+
* @export
|
|
860
|
+
*/
|
|
861
|
+
const DNSZonesApiFactory = function (configuration, basePath, axios) {
|
|
862
|
+
const localVarFp = (0, exports.DNSZonesApiFp)(configuration);
|
|
863
|
+
return {
|
|
864
|
+
/**
|
|
865
|
+
* Clone an existing DNS zone with all its records into a new DNS zone.
|
|
866
|
+
* @summary Clone a DNS zone
|
|
867
|
+
* @param {string} dnsZone DNS zone to clone.
|
|
868
|
+
* @param {CloneDNSZoneRequest} cloneDNSZoneRequest
|
|
869
|
+
* @param {*} [options] Override http request option.
|
|
870
|
+
* @throws {RequiredError}
|
|
871
|
+
*/
|
|
872
|
+
cloneDNSZone(dnsZone, cloneDNSZoneRequest, options) {
|
|
873
|
+
return localVarFp
|
|
874
|
+
.cloneDNSZone(dnsZone, cloneDNSZoneRequest, options)
|
|
875
|
+
.then((request) => request(axios, basePath));
|
|
876
|
+
},
|
|
877
|
+
/**
|
|
878
|
+
* Create a new DNS zone specified by the domain name, the subdomain and the Project ID.
|
|
879
|
+
* @summary Create a DNS zone
|
|
880
|
+
* @param {CreateDNSZoneRequest} createDNSZoneRequest
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
createDNSZone(createDNSZoneRequest, options) {
|
|
885
|
+
return localVarFp
|
|
886
|
+
.createDNSZone(createDNSZoneRequest, options)
|
|
887
|
+
.then((request) => request(axios, basePath));
|
|
888
|
+
},
|
|
889
|
+
/**
|
|
890
|
+
* Create a new TLS certificate or retrieve information about an existing TLS certificate.
|
|
891
|
+
* @summary Create or get the DNS zone\'s TLS certificate
|
|
892
|
+
* @param {CreateSSLCertificateRequest} createSSLCertificateRequest
|
|
893
|
+
* @param {*} [options] Override http request option.
|
|
894
|
+
* @throws {RequiredError}
|
|
895
|
+
*/
|
|
896
|
+
createSSLCertificate(createSSLCertificateRequest, options) {
|
|
897
|
+
return localVarFp
|
|
898
|
+
.createSSLCertificate(createSSLCertificateRequest, options)
|
|
899
|
+
.then((request) => request(axios, basePath));
|
|
900
|
+
},
|
|
901
|
+
/**
|
|
902
|
+
* Delete a DNS zone and all its records.
|
|
903
|
+
* @summary Delete a DNS zone
|
|
904
|
+
* @param {string} dnsZone DNS zone to delete.
|
|
905
|
+
* @param {string} projectId Project ID of the DNS zone to delete.
|
|
906
|
+
* @param {*} [options] Override http request option.
|
|
907
|
+
* @throws {RequiredError}
|
|
908
|
+
*/
|
|
909
|
+
deleteDNSZone(dnsZone, projectId, options) {
|
|
910
|
+
return localVarFp
|
|
911
|
+
.deleteDNSZone(dnsZone, projectId, options)
|
|
912
|
+
.then((request) => request(axios, basePath));
|
|
913
|
+
},
|
|
914
|
+
/**
|
|
915
|
+
* Delete an existing TSIG key specified by its DNS zone. Deleting a TSIG key is permanent and cannot be undone.
|
|
916
|
+
* @summary Delete the DNS zone\'s TSIG key
|
|
917
|
+
* @param {string} dnsZone
|
|
918
|
+
* @param {*} [options] Override http request option.
|
|
919
|
+
* @throws {RequiredError}
|
|
920
|
+
*/
|
|
921
|
+
deleteDNSZoneTsigKey(dnsZone, options) {
|
|
922
|
+
return localVarFp
|
|
923
|
+
.deleteDNSZoneTsigKey(dnsZone, options)
|
|
924
|
+
.then((request) => request(axios, basePath));
|
|
925
|
+
},
|
|
926
|
+
/**
|
|
927
|
+
* Delete an existing TLS certificate specified by its DNS zone. Deleting a TLS certificate is permanent and cannot be undone.
|
|
928
|
+
* @summary Delete a TLS certificate
|
|
929
|
+
* @param {string} dnsZone
|
|
930
|
+
* @param {*} [options] Override http request option.
|
|
931
|
+
* @throws {RequiredError}
|
|
932
|
+
*/
|
|
933
|
+
deleteSSLCertificate(dnsZone, options) {
|
|
934
|
+
return localVarFp
|
|
935
|
+
.deleteSSLCertificate(dnsZone, options)
|
|
936
|
+
.then((request) => request(axios, basePath));
|
|
937
|
+
},
|
|
938
|
+
/**
|
|
939
|
+
* Retrieve information about the TSIG key of a given DNS zone to allow AXFR requests.
|
|
940
|
+
* @summary Get the DNS zone\'s TSIG key
|
|
941
|
+
* @param {string} dnsZone
|
|
942
|
+
* @param {*} [options] Override http request option.
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
*/
|
|
945
|
+
getDNSZoneTsigKey(dnsZone, options) {
|
|
946
|
+
return localVarFp
|
|
947
|
+
.getDNSZoneTsigKey(dnsZone, options)
|
|
948
|
+
.then((request) => request(axios, basePath));
|
|
949
|
+
},
|
|
950
|
+
/**
|
|
951
|
+
* Get the DNS zone\'s TLS certificate. If you do not have a certificate, the output returns `no certificate found`.
|
|
952
|
+
* @summary Get a DNS zone\'s TLS certificate
|
|
953
|
+
* @param {string} dnsZone
|
|
954
|
+
* @param {*} [options] Override http request option.
|
|
955
|
+
* @throws {RequiredError}
|
|
956
|
+
*/
|
|
957
|
+
getSSLCertificate(dnsZone, options) {
|
|
958
|
+
return localVarFp
|
|
959
|
+
.getSSLCertificate(dnsZone, options)
|
|
960
|
+
.then((request) => request(axios, basePath));
|
|
961
|
+
},
|
|
962
|
+
/**
|
|
963
|
+
* Retrieve the list of DNS zones you can manage and filter DNS zones associated with specific domain names.
|
|
964
|
+
* @summary List DNS zones
|
|
965
|
+
* @param {string} domain Domain on which to filter the returned DNS zones.
|
|
966
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zones.
|
|
967
|
+
* @param {string} [organizationId] Organization ID on which to filter the returned DNS zones.
|
|
968
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zones.
|
|
969
|
+
* @param {ListDNSZonesOrderByEnum} [orderBy] Sort order of the returned DNS zones.
|
|
970
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
971
|
+
* @param {number} [pageSize] Maximum number of DNS zones to return per page.
|
|
972
|
+
* @param {Array<string>} [dnsZones] DNS zones on which to filter the returned DNS zones.
|
|
973
|
+
* @param {string} [createdAfter] Only list DNS zones created after this date. (RFC 3339 format)
|
|
974
|
+
* @param {string} [createdBefore] Only list DNS zones created before this date. (RFC 3339 format)
|
|
975
|
+
* @param {string} [updatedAfter] Only list DNS zones updated after this date. (RFC 3339 format)
|
|
976
|
+
* @param {string} [updatedBefore] Only list DNS zones updated before this date. (RFC 3339 format)
|
|
977
|
+
* @param {*} [options] Override http request option.
|
|
978
|
+
* @throws {RequiredError}
|
|
979
|
+
*/
|
|
980
|
+
listDNSZones(domain, dnsZone, organizationId, projectId, orderBy, page, pageSize, dnsZones, createdAfter, createdBefore, updatedAfter, updatedBefore, options) {
|
|
981
|
+
return localVarFp
|
|
982
|
+
.listDNSZones(domain, dnsZone, organizationId, projectId, orderBy, page, pageSize, dnsZones, createdAfter, createdBefore, updatedAfter, updatedBefore, options)
|
|
983
|
+
.then((request) => request(axios, basePath));
|
|
984
|
+
},
|
|
985
|
+
/**
|
|
986
|
+
* List all the TLS certificates a user has created, specified by the user\'s Project ID and the DNS zone.
|
|
987
|
+
* @summary List a user\'s TLS certificates
|
|
988
|
+
* @param {string} dnsZone
|
|
989
|
+
* @param {number} [page]
|
|
990
|
+
* @param {number} [pageSize]
|
|
991
|
+
* @param {string} [projectId]
|
|
992
|
+
* @param {*} [options] Override http request option.
|
|
993
|
+
* @throws {RequiredError}
|
|
994
|
+
*/
|
|
995
|
+
listSSLCertificates(dnsZone, page, pageSize, projectId, options) {
|
|
996
|
+
return localVarFp
|
|
997
|
+
.listSSLCertificates(dnsZone, page, pageSize, projectId, options)
|
|
998
|
+
.then((request) => request(axios, basePath));
|
|
999
|
+
},
|
|
1000
|
+
/**
|
|
1001
|
+
* Refresh an SOA DNS zone to reload the records in the DNS zone and update the SOA serial. You can recreate the given DNS zone and its sub DNS zone if needed.
|
|
1002
|
+
* @summary Refresh a DNS zone
|
|
1003
|
+
* @param {string} dnsZone DNS zone to refresh.
|
|
1004
|
+
* @param {RefreshDNSZoneRequest} refreshDNSZoneRequest
|
|
1005
|
+
* @param {*} [options] Override http request option.
|
|
1006
|
+
* @throws {RequiredError}
|
|
1007
|
+
*/
|
|
1008
|
+
refreshDNSZone(dnsZone, refreshDNSZoneRequest, options) {
|
|
1009
|
+
return localVarFp
|
|
1010
|
+
.refreshDNSZone(dnsZone, refreshDNSZoneRequest, options)
|
|
1011
|
+
.then((request) => request(axios, basePath));
|
|
1012
|
+
},
|
|
1013
|
+
/**
|
|
1014
|
+
* Update the name and/or the Organizations for a DNS zone.
|
|
1015
|
+
* @summary Update a DNS zone
|
|
1016
|
+
* @param {string} dnsZone DNS zone to update.
|
|
1017
|
+
* @param {UpdateDNSZoneRequest} updateDNSZoneRequest
|
|
1018
|
+
* @param {*} [options] Override http request option.
|
|
1019
|
+
* @throws {RequiredError}
|
|
1020
|
+
*/
|
|
1021
|
+
updateDNSZone(dnsZone, updateDNSZoneRequest, options) {
|
|
1022
|
+
return localVarFp
|
|
1023
|
+
.updateDNSZone(dnsZone, updateDNSZoneRequest, options)
|
|
1024
|
+
.then((request) => request(axios, basePath));
|
|
1025
|
+
},
|
|
1026
|
+
};
|
|
1027
|
+
};
|
|
1028
|
+
exports.DNSZonesApiFactory = DNSZonesApiFactory;
|
|
1029
|
+
/**
|
|
1030
|
+
* DNSZonesApi - object-oriented interface
|
|
1031
|
+
* @export
|
|
1032
|
+
* @class DNSZonesApi
|
|
1033
|
+
* @extends {BaseAPI}
|
|
1034
|
+
*/
|
|
1035
|
+
class DNSZonesApi extends base_1.BaseAPI {
|
|
1036
|
+
/**
|
|
1037
|
+
* Clone an existing DNS zone with all its records into a new DNS zone.
|
|
1038
|
+
* @summary Clone a DNS zone
|
|
1039
|
+
* @param {string} dnsZone DNS zone to clone.
|
|
1040
|
+
* @param {CloneDNSZoneRequest} cloneDNSZoneRequest
|
|
1041
|
+
* @param {*} [options] Override http request option.
|
|
1042
|
+
* @throws {RequiredError}
|
|
1043
|
+
* @memberof DNSZonesApi
|
|
1044
|
+
*/
|
|
1045
|
+
cloneDNSZone(dnsZone, cloneDNSZoneRequest, options) {
|
|
1046
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1047
|
+
.cloneDNSZone(dnsZone, cloneDNSZoneRequest, options)
|
|
1048
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* Create a new DNS zone specified by the domain name, the subdomain and the Project ID.
|
|
1052
|
+
* @summary Create a DNS zone
|
|
1053
|
+
* @param {CreateDNSZoneRequest} createDNSZoneRequest
|
|
1054
|
+
* @param {*} [options] Override http request option.
|
|
1055
|
+
* @throws {RequiredError}
|
|
1056
|
+
* @memberof DNSZonesApi
|
|
1057
|
+
*/
|
|
1058
|
+
createDNSZone(createDNSZoneRequest, options) {
|
|
1059
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1060
|
+
.createDNSZone(createDNSZoneRequest, options)
|
|
1061
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* Create a new TLS certificate or retrieve information about an existing TLS certificate.
|
|
1065
|
+
* @summary Create or get the DNS zone\'s TLS certificate
|
|
1066
|
+
* @param {CreateSSLCertificateRequest} createSSLCertificateRequest
|
|
1067
|
+
* @param {*} [options] Override http request option.
|
|
1068
|
+
* @throws {RequiredError}
|
|
1069
|
+
* @memberof DNSZonesApi
|
|
1070
|
+
*/
|
|
1071
|
+
createSSLCertificate(createSSLCertificateRequest, options) {
|
|
1072
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1073
|
+
.createSSLCertificate(createSSLCertificateRequest, options)
|
|
1074
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* Delete a DNS zone and all its records.
|
|
1078
|
+
* @summary Delete a DNS zone
|
|
1079
|
+
* @param {string} dnsZone DNS zone to delete.
|
|
1080
|
+
* @param {string} projectId Project ID of the DNS zone to delete.
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
* @memberof DNSZonesApi
|
|
1084
|
+
*/
|
|
1085
|
+
deleteDNSZone(dnsZone, projectId, options) {
|
|
1086
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1087
|
+
.deleteDNSZone(dnsZone, projectId, options)
|
|
1088
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1089
|
+
}
|
|
1090
|
+
/**
|
|
1091
|
+
* Delete an existing TSIG key specified by its DNS zone. Deleting a TSIG key is permanent and cannot be undone.
|
|
1092
|
+
* @summary Delete the DNS zone\'s TSIG key
|
|
1093
|
+
* @param {string} dnsZone
|
|
1094
|
+
* @param {*} [options] Override http request option.
|
|
1095
|
+
* @throws {RequiredError}
|
|
1096
|
+
* @memberof DNSZonesApi
|
|
1097
|
+
*/
|
|
1098
|
+
deleteDNSZoneTsigKey(dnsZone, options) {
|
|
1099
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1100
|
+
.deleteDNSZoneTsigKey(dnsZone, options)
|
|
1101
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Delete an existing TLS certificate specified by its DNS zone. Deleting a TLS certificate is permanent and cannot be undone.
|
|
1105
|
+
* @summary Delete a TLS certificate
|
|
1106
|
+
* @param {string} dnsZone
|
|
1107
|
+
* @param {*} [options] Override http request option.
|
|
1108
|
+
* @throws {RequiredError}
|
|
1109
|
+
* @memberof DNSZonesApi
|
|
1110
|
+
*/
|
|
1111
|
+
deleteSSLCertificate(dnsZone, options) {
|
|
1112
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1113
|
+
.deleteSSLCertificate(dnsZone, options)
|
|
1114
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1115
|
+
}
|
|
1116
|
+
/**
|
|
1117
|
+
* Retrieve information about the TSIG key of a given DNS zone to allow AXFR requests.
|
|
1118
|
+
* @summary Get the DNS zone\'s TSIG key
|
|
1119
|
+
* @param {string} dnsZone
|
|
1120
|
+
* @param {*} [options] Override http request option.
|
|
1121
|
+
* @throws {RequiredError}
|
|
1122
|
+
* @memberof DNSZonesApi
|
|
1123
|
+
*/
|
|
1124
|
+
getDNSZoneTsigKey(dnsZone, options) {
|
|
1125
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1126
|
+
.getDNSZoneTsigKey(dnsZone, options)
|
|
1127
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* Get the DNS zone\'s TLS certificate. If you do not have a certificate, the output returns `no certificate found`.
|
|
1131
|
+
* @summary Get a DNS zone\'s TLS certificate
|
|
1132
|
+
* @param {string} dnsZone
|
|
1133
|
+
* @param {*} [options] Override http request option.
|
|
1134
|
+
* @throws {RequiredError}
|
|
1135
|
+
* @memberof DNSZonesApi
|
|
1136
|
+
*/
|
|
1137
|
+
getSSLCertificate(dnsZone, options) {
|
|
1138
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1139
|
+
.getSSLCertificate(dnsZone, options)
|
|
1140
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* Retrieve the list of DNS zones you can manage and filter DNS zones associated with specific domain names.
|
|
1144
|
+
* @summary List DNS zones
|
|
1145
|
+
* @param {string} domain Domain on which to filter the returned DNS zones.
|
|
1146
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zones.
|
|
1147
|
+
* @param {string} [organizationId] Organization ID on which to filter the returned DNS zones.
|
|
1148
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zones.
|
|
1149
|
+
* @param {ListDNSZonesOrderByEnum} [orderBy] Sort order of the returned DNS zones.
|
|
1150
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
1151
|
+
* @param {number} [pageSize] Maximum number of DNS zones to return per page.
|
|
1152
|
+
* @param {Array<string>} [dnsZones] DNS zones on which to filter the returned DNS zones.
|
|
1153
|
+
* @param {string} [createdAfter] Only list DNS zones created after this date. (RFC 3339 format)
|
|
1154
|
+
* @param {string} [createdBefore] Only list DNS zones created before this date. (RFC 3339 format)
|
|
1155
|
+
* @param {string} [updatedAfter] Only list DNS zones updated after this date. (RFC 3339 format)
|
|
1156
|
+
* @param {string} [updatedBefore] Only list DNS zones updated before this date. (RFC 3339 format)
|
|
1157
|
+
* @param {*} [options] Override http request option.
|
|
1158
|
+
* @throws {RequiredError}
|
|
1159
|
+
* @memberof DNSZonesApi
|
|
1160
|
+
*/
|
|
1161
|
+
listDNSZones(domain, dnsZone, organizationId, projectId, orderBy, page, pageSize, dnsZones, createdAfter, createdBefore, updatedAfter, updatedBefore, options) {
|
|
1162
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1163
|
+
.listDNSZones(domain, dnsZone, organizationId, projectId, orderBy, page, pageSize, dnsZones, createdAfter, createdBefore, updatedAfter, updatedBefore, options)
|
|
1164
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* List all the TLS certificates a user has created, specified by the user\'s Project ID and the DNS zone.
|
|
1168
|
+
* @summary List a user\'s TLS certificates
|
|
1169
|
+
* @param {string} dnsZone
|
|
1170
|
+
* @param {number} [page]
|
|
1171
|
+
* @param {number} [pageSize]
|
|
1172
|
+
* @param {string} [projectId]
|
|
1173
|
+
* @param {*} [options] Override http request option.
|
|
1174
|
+
* @throws {RequiredError}
|
|
1175
|
+
* @memberof DNSZonesApi
|
|
1176
|
+
*/
|
|
1177
|
+
listSSLCertificates(dnsZone, page, pageSize, projectId, options) {
|
|
1178
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1179
|
+
.listSSLCertificates(dnsZone, page, pageSize, projectId, options)
|
|
1180
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Refresh an SOA DNS zone to reload the records in the DNS zone and update the SOA serial. You can recreate the given DNS zone and its sub DNS zone if needed.
|
|
1184
|
+
* @summary Refresh a DNS zone
|
|
1185
|
+
* @param {string} dnsZone DNS zone to refresh.
|
|
1186
|
+
* @param {RefreshDNSZoneRequest} refreshDNSZoneRequest
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
* @memberof DNSZonesApi
|
|
1190
|
+
*/
|
|
1191
|
+
refreshDNSZone(dnsZone, refreshDNSZoneRequest, options) {
|
|
1192
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1193
|
+
.refreshDNSZone(dnsZone, refreshDNSZoneRequest, options)
|
|
1194
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Update the name and/or the Organizations for a DNS zone.
|
|
1198
|
+
* @summary Update a DNS zone
|
|
1199
|
+
* @param {string} dnsZone DNS zone to update.
|
|
1200
|
+
* @param {UpdateDNSZoneRequest} updateDNSZoneRequest
|
|
1201
|
+
* @param {*} [options] Override http request option.
|
|
1202
|
+
* @throws {RequiredError}
|
|
1203
|
+
* @memberof DNSZonesApi
|
|
1204
|
+
*/
|
|
1205
|
+
updateDNSZone(dnsZone, updateDNSZoneRequest, options) {
|
|
1206
|
+
return (0, exports.DNSZonesApiFp)(this.configuration)
|
|
1207
|
+
.updateDNSZone(dnsZone, updateDNSZoneRequest, options)
|
|
1208
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
exports.DNSZonesApi = DNSZonesApi;
|
|
1212
|
+
/**
|
|
1213
|
+
* @export
|
|
1214
|
+
*/
|
|
1215
|
+
exports.ListDNSZonesOrderByEnum = {
|
|
1216
|
+
DomainAsc: 'domain_asc',
|
|
1217
|
+
DomainDesc: 'domain_desc',
|
|
1218
|
+
SubdomainAsc: 'subdomain_asc',
|
|
1219
|
+
SubdomainDesc: 'subdomain_desc',
|
|
1220
|
+
CreatedAtAsc: 'created_at_asc',
|
|
1221
|
+
CreatedAtDesc: 'created_at_desc',
|
|
1222
|
+
UpdatedAtAsc: 'updated_at_asc',
|
|
1223
|
+
UpdatedAtDesc: 'updated_at_desc',
|
|
1224
|
+
};
|
|
1225
|
+
/**
|
|
1226
|
+
* ImportsExportsApi - axios parameter creator
|
|
1227
|
+
* @export
|
|
1228
|
+
*/
|
|
1229
|
+
const ImportsExportsApiAxiosParamCreator = function (configuration) {
|
|
1230
|
+
return {
|
|
1231
|
+
/**
|
|
1232
|
+
* Export a DNS zone with default name servers, in a specific format.
|
|
1233
|
+
* @summary Export a raw DNS zone
|
|
1234
|
+
* @param {string} dnsZone DNS zone to export.
|
|
1235
|
+
* @param {ExportRawDNSZoneFormatEnum} [format] DNS zone format.
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
*/
|
|
1239
|
+
exportRawDNSZone: async (dnsZone, format, options = {}) => {
|
|
1240
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
1241
|
+
(0, common_1.assertParamExists)('exportRawDNSZone', 'dnsZone', dnsZone);
|
|
1242
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/raw`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
1243
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1244
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1245
|
+
let baseOptions;
|
|
1246
|
+
if (configuration) {
|
|
1247
|
+
baseOptions = configuration.baseOptions;
|
|
1248
|
+
}
|
|
1249
|
+
const localVarRequestOptions = {
|
|
1250
|
+
method: 'GET',
|
|
1251
|
+
...baseOptions,
|
|
1252
|
+
...options,
|
|
1253
|
+
};
|
|
1254
|
+
const localVarHeaderParameter = {};
|
|
1255
|
+
const localVarQueryParameter = {};
|
|
1256
|
+
// authentication scaleway required
|
|
1257
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1258
|
+
if (format !== undefined) {
|
|
1259
|
+
localVarQueryParameter['format'] = format;
|
|
1260
|
+
}
|
|
1261
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1262
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1263
|
+
localVarRequestOptions.headers = {
|
|
1264
|
+
...localVarHeaderParameter,
|
|
1265
|
+
...headersFromBaseOptions,
|
|
1266
|
+
...options.headers,
|
|
1267
|
+
};
|
|
1268
|
+
return {
|
|
1269
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1270
|
+
options: localVarRequestOptions,
|
|
1271
|
+
};
|
|
1272
|
+
},
|
|
1273
|
+
/**
|
|
1274
|
+
* Import and replace the format of records from a given provider, with default name servers.
|
|
1275
|
+
* @summary Import a DNS zone from another provider
|
|
1276
|
+
* @param {string} dnsZone
|
|
1277
|
+
* @param {ImportProviderDNSZoneRequest} importProviderDNSZoneRequest
|
|
1278
|
+
* @param {*} [options] Override http request option.
|
|
1279
|
+
* @throws {RequiredError}
|
|
1280
|
+
*/
|
|
1281
|
+
importProviderDNSZone: async (dnsZone, importProviderDNSZoneRequest, options = {}) => {
|
|
1282
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
1283
|
+
(0, common_1.assertParamExists)('importProviderDNSZone', 'dnsZone', dnsZone);
|
|
1284
|
+
// verify required parameter 'importProviderDNSZoneRequest' is not null or undefined
|
|
1285
|
+
(0, common_1.assertParamExists)('importProviderDNSZone', 'importProviderDNSZoneRequest', importProviderDNSZoneRequest);
|
|
1286
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/import-provider`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
1287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1288
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1289
|
+
let baseOptions;
|
|
1290
|
+
if (configuration) {
|
|
1291
|
+
baseOptions = configuration.baseOptions;
|
|
1292
|
+
}
|
|
1293
|
+
const localVarRequestOptions = {
|
|
1294
|
+
method: 'POST',
|
|
1295
|
+
...baseOptions,
|
|
1296
|
+
...options,
|
|
1297
|
+
};
|
|
1298
|
+
const localVarHeaderParameter = {};
|
|
1299
|
+
const localVarQueryParameter = {};
|
|
1300
|
+
// authentication scaleway required
|
|
1301
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1302
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1303
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1304
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1305
|
+
localVarRequestOptions.headers = {
|
|
1306
|
+
...localVarHeaderParameter,
|
|
1307
|
+
...headersFromBaseOptions,
|
|
1308
|
+
...options.headers,
|
|
1309
|
+
};
|
|
1310
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(importProviderDNSZoneRequest, localVarRequestOptions, configuration);
|
|
1311
|
+
return {
|
|
1312
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1313
|
+
options: localVarRequestOptions,
|
|
1314
|
+
};
|
|
1315
|
+
},
|
|
1316
|
+
/**
|
|
1317
|
+
* Import and replace the format of records from a given provider, with default name servers.
|
|
1318
|
+
* @summary Import a raw DNS zone
|
|
1319
|
+
* @param {string} dnsZone DNS zone to import.
|
|
1320
|
+
* @param {ImportRawDNSZoneRequest} importRawDNSZoneRequest
|
|
1321
|
+
* @param {*} [options] Override http request option.
|
|
1322
|
+
* @throws {RequiredError}
|
|
1323
|
+
*/
|
|
1324
|
+
importRawDNSZone: async (dnsZone, importRawDNSZoneRequest, options = {}) => {
|
|
1325
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
1326
|
+
(0, common_1.assertParamExists)('importRawDNSZone', 'dnsZone', dnsZone);
|
|
1327
|
+
// verify required parameter 'importRawDNSZoneRequest' is not null or undefined
|
|
1328
|
+
(0, common_1.assertParamExists)('importRawDNSZone', 'importRawDNSZoneRequest', importRawDNSZoneRequest);
|
|
1329
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/raw`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
1330
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1331
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1332
|
+
let baseOptions;
|
|
1333
|
+
if (configuration) {
|
|
1334
|
+
baseOptions = configuration.baseOptions;
|
|
1335
|
+
}
|
|
1336
|
+
const localVarRequestOptions = {
|
|
1337
|
+
method: 'POST',
|
|
1338
|
+
...baseOptions,
|
|
1339
|
+
...options,
|
|
1340
|
+
};
|
|
1341
|
+
const localVarHeaderParameter = {};
|
|
1342
|
+
const localVarQueryParameter = {};
|
|
1343
|
+
// authentication scaleway required
|
|
1344
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1345
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1346
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1348
|
+
localVarRequestOptions.headers = {
|
|
1349
|
+
...localVarHeaderParameter,
|
|
1350
|
+
...headersFromBaseOptions,
|
|
1351
|
+
...options.headers,
|
|
1352
|
+
};
|
|
1353
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(importRawDNSZoneRequest, localVarRequestOptions, configuration);
|
|
1354
|
+
return {
|
|
1355
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1356
|
+
options: localVarRequestOptions,
|
|
1357
|
+
};
|
|
1358
|
+
},
|
|
1359
|
+
};
|
|
1360
|
+
};
|
|
1361
|
+
exports.ImportsExportsApiAxiosParamCreator = ImportsExportsApiAxiosParamCreator;
|
|
1362
|
+
/**
|
|
1363
|
+
* ImportsExportsApi - functional programming interface
|
|
1364
|
+
* @export
|
|
1365
|
+
*/
|
|
1366
|
+
const ImportsExportsApiFp = function (configuration) {
|
|
1367
|
+
const localVarAxiosParamCreator = (0, exports.ImportsExportsApiAxiosParamCreator)(configuration);
|
|
1368
|
+
return {
|
|
1369
|
+
/**
|
|
1370
|
+
* Export a DNS zone with default name servers, in a specific format.
|
|
1371
|
+
* @summary Export a raw DNS zone
|
|
1372
|
+
* @param {string} dnsZone DNS zone to export.
|
|
1373
|
+
* @param {ExportRawDNSZoneFormatEnum} [format] DNS zone format.
|
|
1374
|
+
* @param {*} [options] Override http request option.
|
|
1375
|
+
* @throws {RequiredError}
|
|
1376
|
+
*/
|
|
1377
|
+
async exportRawDNSZone(dnsZone, format, options) {
|
|
1378
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.exportRawDNSZone(dnsZone, format, options);
|
|
1379
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1380
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ImportsExportsApi.exportRawDNSZone']?.[localVarOperationServerIndex]?.url;
|
|
1381
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1382
|
+
},
|
|
1383
|
+
/**
|
|
1384
|
+
* Import and replace the format of records from a given provider, with default name servers.
|
|
1385
|
+
* @summary Import a DNS zone from another provider
|
|
1386
|
+
* @param {string} dnsZone
|
|
1387
|
+
* @param {ImportProviderDNSZoneRequest} importProviderDNSZoneRequest
|
|
1388
|
+
* @param {*} [options] Override http request option.
|
|
1389
|
+
* @throws {RequiredError}
|
|
1390
|
+
*/
|
|
1391
|
+
async importProviderDNSZone(dnsZone, importProviderDNSZoneRequest, options) {
|
|
1392
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importProviderDNSZone(dnsZone, importProviderDNSZoneRequest, options);
|
|
1393
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1394
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ImportsExportsApi.importProviderDNSZone']?.[localVarOperationServerIndex]?.url;
|
|
1395
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1396
|
+
},
|
|
1397
|
+
/**
|
|
1398
|
+
* Import and replace the format of records from a given provider, with default name servers.
|
|
1399
|
+
* @summary Import a raw DNS zone
|
|
1400
|
+
* @param {string} dnsZone DNS zone to import.
|
|
1401
|
+
* @param {ImportRawDNSZoneRequest} importRawDNSZoneRequest
|
|
1402
|
+
* @param {*} [options] Override http request option.
|
|
1403
|
+
* @throws {RequiredError}
|
|
1404
|
+
*/
|
|
1405
|
+
async importRawDNSZone(dnsZone, importRawDNSZoneRequest, options) {
|
|
1406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.importRawDNSZone(dnsZone, importRawDNSZoneRequest, options);
|
|
1407
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1408
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['ImportsExportsApi.importRawDNSZone']?.[localVarOperationServerIndex]?.url;
|
|
1409
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1410
|
+
},
|
|
1411
|
+
};
|
|
1412
|
+
};
|
|
1413
|
+
exports.ImportsExportsApiFp = ImportsExportsApiFp;
|
|
1414
|
+
/**
|
|
1415
|
+
* ImportsExportsApi - factory interface
|
|
1416
|
+
* @export
|
|
1417
|
+
*/
|
|
1418
|
+
const ImportsExportsApiFactory = function (configuration, basePath, axios) {
|
|
1419
|
+
const localVarFp = (0, exports.ImportsExportsApiFp)(configuration);
|
|
1420
|
+
return {
|
|
1421
|
+
/**
|
|
1422
|
+
* Export a DNS zone with default name servers, in a specific format.
|
|
1423
|
+
* @summary Export a raw DNS zone
|
|
1424
|
+
* @param {string} dnsZone DNS zone to export.
|
|
1425
|
+
* @param {ExportRawDNSZoneFormatEnum} [format] DNS zone format.
|
|
1426
|
+
* @param {*} [options] Override http request option.
|
|
1427
|
+
* @throws {RequiredError}
|
|
1428
|
+
*/
|
|
1429
|
+
exportRawDNSZone(dnsZone, format, options) {
|
|
1430
|
+
return localVarFp
|
|
1431
|
+
.exportRawDNSZone(dnsZone, format, options)
|
|
1432
|
+
.then((request) => request(axios, basePath));
|
|
1433
|
+
},
|
|
1434
|
+
/**
|
|
1435
|
+
* Import and replace the format of records from a given provider, with default name servers.
|
|
1436
|
+
* @summary Import a DNS zone from another provider
|
|
1437
|
+
* @param {string} dnsZone
|
|
1438
|
+
* @param {ImportProviderDNSZoneRequest} importProviderDNSZoneRequest
|
|
1439
|
+
* @param {*} [options] Override http request option.
|
|
1440
|
+
* @throws {RequiredError}
|
|
1441
|
+
*/
|
|
1442
|
+
importProviderDNSZone(dnsZone, importProviderDNSZoneRequest, options) {
|
|
1443
|
+
return localVarFp
|
|
1444
|
+
.importProviderDNSZone(dnsZone, importProviderDNSZoneRequest, options)
|
|
1445
|
+
.then((request) => request(axios, basePath));
|
|
1446
|
+
},
|
|
1447
|
+
/**
|
|
1448
|
+
* Import and replace the format of records from a given provider, with default name servers.
|
|
1449
|
+
* @summary Import a raw DNS zone
|
|
1450
|
+
* @param {string} dnsZone DNS zone to import.
|
|
1451
|
+
* @param {ImportRawDNSZoneRequest} importRawDNSZoneRequest
|
|
1452
|
+
* @param {*} [options] Override http request option.
|
|
1453
|
+
* @throws {RequiredError}
|
|
1454
|
+
*/
|
|
1455
|
+
importRawDNSZone(dnsZone, importRawDNSZoneRequest, options) {
|
|
1456
|
+
return localVarFp
|
|
1457
|
+
.importRawDNSZone(dnsZone, importRawDNSZoneRequest, options)
|
|
1458
|
+
.then((request) => request(axios, basePath));
|
|
1459
|
+
},
|
|
1460
|
+
};
|
|
1461
|
+
};
|
|
1462
|
+
exports.ImportsExportsApiFactory = ImportsExportsApiFactory;
|
|
1463
|
+
/**
|
|
1464
|
+
* ImportsExportsApi - object-oriented interface
|
|
1465
|
+
* @export
|
|
1466
|
+
* @class ImportsExportsApi
|
|
1467
|
+
* @extends {BaseAPI}
|
|
1468
|
+
*/
|
|
1469
|
+
class ImportsExportsApi extends base_1.BaseAPI {
|
|
1470
|
+
/**
|
|
1471
|
+
* Export a DNS zone with default name servers, in a specific format.
|
|
1472
|
+
* @summary Export a raw DNS zone
|
|
1473
|
+
* @param {string} dnsZone DNS zone to export.
|
|
1474
|
+
* @param {ExportRawDNSZoneFormatEnum} [format] DNS zone format.
|
|
1475
|
+
* @param {*} [options] Override http request option.
|
|
1476
|
+
* @throws {RequiredError}
|
|
1477
|
+
* @memberof ImportsExportsApi
|
|
1478
|
+
*/
|
|
1479
|
+
exportRawDNSZone(dnsZone, format, options) {
|
|
1480
|
+
return (0, exports.ImportsExportsApiFp)(this.configuration)
|
|
1481
|
+
.exportRawDNSZone(dnsZone, format, options)
|
|
1482
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* Import and replace the format of records from a given provider, with default name servers.
|
|
1486
|
+
* @summary Import a DNS zone from another provider
|
|
1487
|
+
* @param {string} dnsZone
|
|
1488
|
+
* @param {ImportProviderDNSZoneRequest} importProviderDNSZoneRequest
|
|
1489
|
+
* @param {*} [options] Override http request option.
|
|
1490
|
+
* @throws {RequiredError}
|
|
1491
|
+
* @memberof ImportsExportsApi
|
|
1492
|
+
*/
|
|
1493
|
+
importProviderDNSZone(dnsZone, importProviderDNSZoneRequest, options) {
|
|
1494
|
+
return (0, exports.ImportsExportsApiFp)(this.configuration)
|
|
1495
|
+
.importProviderDNSZone(dnsZone, importProviderDNSZoneRequest, options)
|
|
1496
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
* Import and replace the format of records from a given provider, with default name servers.
|
|
1500
|
+
* @summary Import a raw DNS zone
|
|
1501
|
+
* @param {string} dnsZone DNS zone to import.
|
|
1502
|
+
* @param {ImportRawDNSZoneRequest} importRawDNSZoneRequest
|
|
1503
|
+
* @param {*} [options] Override http request option.
|
|
1504
|
+
* @throws {RequiredError}
|
|
1505
|
+
* @memberof ImportsExportsApi
|
|
1506
|
+
*/
|
|
1507
|
+
importRawDNSZone(dnsZone, importRawDNSZoneRequest, options) {
|
|
1508
|
+
return (0, exports.ImportsExportsApiFp)(this.configuration)
|
|
1509
|
+
.importRawDNSZone(dnsZone, importRawDNSZoneRequest, options)
|
|
1510
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
exports.ImportsExportsApi = ImportsExportsApi;
|
|
1514
|
+
/**
|
|
1515
|
+
* @export
|
|
1516
|
+
*/
|
|
1517
|
+
exports.ExportRawDNSZoneFormatEnum = {
|
|
1518
|
+
UnknownRawFormat: 'unknown_raw_format',
|
|
1519
|
+
Bind: 'bind',
|
|
1520
|
+
};
|
|
1521
|
+
/**
|
|
1522
|
+
* RecordsApi - axios parameter creator
|
|
1523
|
+
* @export
|
|
1524
|
+
*/
|
|
1525
|
+
const RecordsApiAxiosParamCreator = function (configuration) {
|
|
1526
|
+
return {
|
|
1527
|
+
/**
|
|
1528
|
+
* Delete all records within a DNS zone that has default name servers.<br/> All edits will be versioned.
|
|
1529
|
+
* @summary Clear records within a DNS zone
|
|
1530
|
+
* @param {string} dnsZone DNS zone to clear.
|
|
1531
|
+
* @param {*} [options] Override http request option.
|
|
1532
|
+
* @throws {RequiredError}
|
|
1533
|
+
*/
|
|
1534
|
+
clearDNSZoneRecords: async (dnsZone, options = {}) => {
|
|
1535
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
1536
|
+
(0, common_1.assertParamExists)('clearDNSZoneRecords', 'dnsZone', dnsZone);
|
|
1537
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/records`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
1538
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1539
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1540
|
+
let baseOptions;
|
|
1541
|
+
if (configuration) {
|
|
1542
|
+
baseOptions = configuration.baseOptions;
|
|
1543
|
+
}
|
|
1544
|
+
const localVarRequestOptions = {
|
|
1545
|
+
method: 'DELETE',
|
|
1546
|
+
...baseOptions,
|
|
1547
|
+
...options,
|
|
1548
|
+
};
|
|
1549
|
+
const localVarHeaderParameter = {};
|
|
1550
|
+
const localVarQueryParameter = {};
|
|
1551
|
+
// authentication scaleway required
|
|
1552
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1553
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1554
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1555
|
+
localVarRequestOptions.headers = {
|
|
1556
|
+
...localVarHeaderParameter,
|
|
1557
|
+
...headersFromBaseOptions,
|
|
1558
|
+
...options.headers,
|
|
1559
|
+
};
|
|
1560
|
+
return {
|
|
1561
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1562
|
+
options: localVarRequestOptions,
|
|
1563
|
+
};
|
|
1564
|
+
},
|
|
1565
|
+
/**
|
|
1566
|
+
* Retrieve a list of name servers within a DNS zone and their optional glue records.
|
|
1567
|
+
* @summary List name servers within a DNS zone
|
|
1568
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zone name servers.
|
|
1569
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zone name servers.
|
|
1570
|
+
* @param {*} [options] Override http request option.
|
|
1571
|
+
* @throws {RequiredError}
|
|
1572
|
+
*/
|
|
1573
|
+
listDNSZoneNameservers: async (dnsZone, projectId, options = {}) => {
|
|
1574
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
1575
|
+
(0, common_1.assertParamExists)('listDNSZoneNameservers', 'dnsZone', dnsZone);
|
|
1576
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/nameservers`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
1577
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1578
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1579
|
+
let baseOptions;
|
|
1580
|
+
if (configuration) {
|
|
1581
|
+
baseOptions = configuration.baseOptions;
|
|
1582
|
+
}
|
|
1583
|
+
const localVarRequestOptions = {
|
|
1584
|
+
method: 'GET',
|
|
1585
|
+
...baseOptions,
|
|
1586
|
+
...options,
|
|
1587
|
+
};
|
|
1588
|
+
const localVarHeaderParameter = {};
|
|
1589
|
+
const localVarQueryParameter = {};
|
|
1590
|
+
// authentication scaleway required
|
|
1591
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1592
|
+
if (projectId !== undefined) {
|
|
1593
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
1594
|
+
}
|
|
1595
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1596
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1597
|
+
localVarRequestOptions.headers = {
|
|
1598
|
+
...localVarHeaderParameter,
|
|
1599
|
+
...headersFromBaseOptions,
|
|
1600
|
+
...options.headers,
|
|
1601
|
+
};
|
|
1602
|
+
return {
|
|
1603
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1604
|
+
options: localVarRequestOptions,
|
|
1605
|
+
};
|
|
1606
|
+
},
|
|
1607
|
+
/**
|
|
1608
|
+
* Retrieve a list of DNS records within a DNS zone that has default name servers. You can filter records by type and name.
|
|
1609
|
+
* @summary List records within a DNS zone
|
|
1610
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zone records.
|
|
1611
|
+
* @param {string} name Name on which to filter the returned DNS zone records.
|
|
1612
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zone records.
|
|
1613
|
+
* @param {ListDNSZoneRecordsOrderByEnum} [orderBy] Sort order of the returned DNS zone records.
|
|
1614
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
1615
|
+
* @param {number} [pageSize] Maximum number of DNS zone records per page.
|
|
1616
|
+
* @param {ListDNSZoneRecordsTypeEnum} [type] Record type on which to filter the returned DNS zone records.
|
|
1617
|
+
* @param {string} [id] Record ID on which to filter the returned DNS zone records.
|
|
1618
|
+
* @param {*} [options] Override http request option.
|
|
1619
|
+
* @throws {RequiredError}
|
|
1620
|
+
*/
|
|
1621
|
+
listDNSZoneRecords: async (dnsZone, name, projectId, orderBy, page, pageSize, type, id, options = {}) => {
|
|
1622
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
1623
|
+
(0, common_1.assertParamExists)('listDNSZoneRecords', 'dnsZone', dnsZone);
|
|
1624
|
+
// verify required parameter 'name' is not null or undefined
|
|
1625
|
+
(0, common_1.assertParamExists)('listDNSZoneRecords', 'name', name);
|
|
1626
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/records`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
1627
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1628
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1629
|
+
let baseOptions;
|
|
1630
|
+
if (configuration) {
|
|
1631
|
+
baseOptions = configuration.baseOptions;
|
|
1632
|
+
}
|
|
1633
|
+
const localVarRequestOptions = {
|
|
1634
|
+
method: 'GET',
|
|
1635
|
+
...baseOptions,
|
|
1636
|
+
...options,
|
|
1637
|
+
};
|
|
1638
|
+
const localVarHeaderParameter = {};
|
|
1639
|
+
const localVarQueryParameter = {};
|
|
1640
|
+
// authentication scaleway required
|
|
1641
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1642
|
+
if (projectId !== undefined) {
|
|
1643
|
+
localVarQueryParameter['project_id'] = projectId;
|
|
1644
|
+
}
|
|
1645
|
+
if (orderBy !== undefined) {
|
|
1646
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
1647
|
+
}
|
|
1648
|
+
if (page !== undefined) {
|
|
1649
|
+
localVarQueryParameter['page'] = page;
|
|
1650
|
+
}
|
|
1651
|
+
if (pageSize !== undefined) {
|
|
1652
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1653
|
+
}
|
|
1654
|
+
if (name !== undefined) {
|
|
1655
|
+
localVarQueryParameter['name'] = name;
|
|
1656
|
+
}
|
|
1657
|
+
if (type !== undefined) {
|
|
1658
|
+
localVarQueryParameter['type'] = type;
|
|
1659
|
+
}
|
|
1660
|
+
if (id !== undefined) {
|
|
1661
|
+
localVarQueryParameter['id'] = id;
|
|
1662
|
+
}
|
|
1663
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1665
|
+
localVarRequestOptions.headers = {
|
|
1666
|
+
...localVarHeaderParameter,
|
|
1667
|
+
...headersFromBaseOptions,
|
|
1668
|
+
...options.headers,
|
|
1669
|
+
};
|
|
1670
|
+
return {
|
|
1671
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1672
|
+
options: localVarRequestOptions,
|
|
1673
|
+
};
|
|
1674
|
+
},
|
|
1675
|
+
/**
|
|
1676
|
+
* Update name servers within a DNS zone and set optional glue records.
|
|
1677
|
+
* @summary Update name servers within a DNS zone
|
|
1678
|
+
* @param {string} dnsZone DNS zone in which to update the DNS zone name servers.
|
|
1679
|
+
* @param {UpdateDNSZoneNameserversRequest} updateDNSZoneNameserversRequest
|
|
1680
|
+
* @param {*} [options] Override http request option.
|
|
1681
|
+
* @throws {RequiredError}
|
|
1682
|
+
*/
|
|
1683
|
+
updateDNSZoneNameservers: async (dnsZone, updateDNSZoneNameserversRequest, options = {}) => {
|
|
1684
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
1685
|
+
(0, common_1.assertParamExists)('updateDNSZoneNameservers', 'dnsZone', dnsZone);
|
|
1686
|
+
// verify required parameter 'updateDNSZoneNameserversRequest' is not null or undefined
|
|
1687
|
+
(0, common_1.assertParamExists)('updateDNSZoneNameservers', 'updateDNSZoneNameserversRequest', updateDNSZoneNameserversRequest);
|
|
1688
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/nameservers`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
1689
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1690
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1691
|
+
let baseOptions;
|
|
1692
|
+
if (configuration) {
|
|
1693
|
+
baseOptions = configuration.baseOptions;
|
|
1694
|
+
}
|
|
1695
|
+
const localVarRequestOptions = {
|
|
1696
|
+
method: 'PUT',
|
|
1697
|
+
...baseOptions,
|
|
1698
|
+
...options,
|
|
1699
|
+
};
|
|
1700
|
+
const localVarHeaderParameter = {};
|
|
1701
|
+
const localVarQueryParameter = {};
|
|
1702
|
+
// authentication scaleway required
|
|
1703
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1704
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1705
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1706
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1707
|
+
localVarRequestOptions.headers = {
|
|
1708
|
+
...localVarHeaderParameter,
|
|
1709
|
+
...headersFromBaseOptions,
|
|
1710
|
+
...options.headers,
|
|
1711
|
+
};
|
|
1712
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDNSZoneNameserversRequest, localVarRequestOptions, configuration);
|
|
1713
|
+
return {
|
|
1714
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1715
|
+
options: localVarRequestOptions,
|
|
1716
|
+
};
|
|
1717
|
+
},
|
|
1718
|
+
/**
|
|
1719
|
+
* Update records within a DNS zone that has default name servers and perform several actions on your records. Actions include: - add: allows you to add a new record or add a new IP to an existing A record, for example - set: allows you to edit a record or edit an IP from an existing A record, for example - delete: allows you to delete a record or delete an IP from an existing A record, for example - clear: allows you to delete all records from a DNS zone All edits will be versioned.
|
|
1720
|
+
* @summary Update records within a DNS zone
|
|
1721
|
+
* @param {string} dnsZone DNS zone in which to update the DNS zone records.
|
|
1722
|
+
* @param {UpdateDNSZoneRecordsRequest} updateDNSZoneRecordsRequest
|
|
1723
|
+
* @param {*} [options] Override http request option.
|
|
1724
|
+
* @throws {RequiredError}
|
|
1725
|
+
*/
|
|
1726
|
+
updateDNSZoneRecords: async (dnsZone, updateDNSZoneRecordsRequest, options = {}) => {
|
|
1727
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
1728
|
+
(0, common_1.assertParamExists)('updateDNSZoneRecords', 'dnsZone', dnsZone);
|
|
1729
|
+
// verify required parameter 'updateDNSZoneRecordsRequest' is not null or undefined
|
|
1730
|
+
(0, common_1.assertParamExists)('updateDNSZoneRecords', 'updateDNSZoneRecordsRequest', updateDNSZoneRecordsRequest);
|
|
1731
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/records`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
1732
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1733
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1734
|
+
let baseOptions;
|
|
1735
|
+
if (configuration) {
|
|
1736
|
+
baseOptions = configuration.baseOptions;
|
|
1737
|
+
}
|
|
1738
|
+
const localVarRequestOptions = {
|
|
1739
|
+
method: 'PATCH',
|
|
1740
|
+
...baseOptions,
|
|
1741
|
+
...options,
|
|
1742
|
+
};
|
|
1743
|
+
const localVarHeaderParameter = {};
|
|
1744
|
+
const localVarQueryParameter = {};
|
|
1745
|
+
// authentication scaleway required
|
|
1746
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
1747
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1748
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1749
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1750
|
+
localVarRequestOptions.headers = {
|
|
1751
|
+
...localVarHeaderParameter,
|
|
1752
|
+
...headersFromBaseOptions,
|
|
1753
|
+
...options.headers,
|
|
1754
|
+
};
|
|
1755
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDNSZoneRecordsRequest, localVarRequestOptions, configuration);
|
|
1756
|
+
return {
|
|
1757
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1758
|
+
options: localVarRequestOptions,
|
|
1759
|
+
};
|
|
1760
|
+
},
|
|
1761
|
+
};
|
|
1762
|
+
};
|
|
1763
|
+
exports.RecordsApiAxiosParamCreator = RecordsApiAxiosParamCreator;
|
|
1764
|
+
/**
|
|
1765
|
+
* RecordsApi - functional programming interface
|
|
1766
|
+
* @export
|
|
1767
|
+
*/
|
|
1768
|
+
const RecordsApiFp = function (configuration) {
|
|
1769
|
+
const localVarAxiosParamCreator = (0, exports.RecordsApiAxiosParamCreator)(configuration);
|
|
1770
|
+
return {
|
|
1771
|
+
/**
|
|
1772
|
+
* Delete all records within a DNS zone that has default name servers.<br/> All edits will be versioned.
|
|
1773
|
+
* @summary Clear records within a DNS zone
|
|
1774
|
+
* @param {string} dnsZone DNS zone to clear.
|
|
1775
|
+
* @param {*} [options] Override http request option.
|
|
1776
|
+
* @throws {RequiredError}
|
|
1777
|
+
*/
|
|
1778
|
+
async clearDNSZoneRecords(dnsZone, options) {
|
|
1779
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.clearDNSZoneRecords(dnsZone, options);
|
|
1780
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1781
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['RecordsApi.clearDNSZoneRecords']?.[localVarOperationServerIndex]?.url;
|
|
1782
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1783
|
+
},
|
|
1784
|
+
/**
|
|
1785
|
+
* Retrieve a list of name servers within a DNS zone and their optional glue records.
|
|
1786
|
+
* @summary List name servers within a DNS zone
|
|
1787
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zone name servers.
|
|
1788
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zone name servers.
|
|
1789
|
+
* @param {*} [options] Override http request option.
|
|
1790
|
+
* @throws {RequiredError}
|
|
1791
|
+
*/
|
|
1792
|
+
async listDNSZoneNameservers(dnsZone, projectId, options) {
|
|
1793
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDNSZoneNameservers(dnsZone, projectId, options);
|
|
1794
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1795
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['RecordsApi.listDNSZoneNameservers']?.[localVarOperationServerIndex]?.url;
|
|
1796
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1797
|
+
},
|
|
1798
|
+
/**
|
|
1799
|
+
* Retrieve a list of DNS records within a DNS zone that has default name servers. You can filter records by type and name.
|
|
1800
|
+
* @summary List records within a DNS zone
|
|
1801
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zone records.
|
|
1802
|
+
* @param {string} name Name on which to filter the returned DNS zone records.
|
|
1803
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zone records.
|
|
1804
|
+
* @param {ListDNSZoneRecordsOrderByEnum} [orderBy] Sort order of the returned DNS zone records.
|
|
1805
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
1806
|
+
* @param {number} [pageSize] Maximum number of DNS zone records per page.
|
|
1807
|
+
* @param {ListDNSZoneRecordsTypeEnum} [type] Record type on which to filter the returned DNS zone records.
|
|
1808
|
+
* @param {string} [id] Record ID on which to filter the returned DNS zone records.
|
|
1809
|
+
* @param {*} [options] Override http request option.
|
|
1810
|
+
* @throws {RequiredError}
|
|
1811
|
+
*/
|
|
1812
|
+
async listDNSZoneRecords(dnsZone, name, projectId, orderBy, page, pageSize, type, id, options) {
|
|
1813
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDNSZoneRecords(dnsZone, name, projectId, orderBy, page, pageSize, type, id, options);
|
|
1814
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1815
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['RecordsApi.listDNSZoneRecords']?.[localVarOperationServerIndex]?.url;
|
|
1816
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1817
|
+
},
|
|
1818
|
+
/**
|
|
1819
|
+
* Update name servers within a DNS zone and set optional glue records.
|
|
1820
|
+
* @summary Update name servers within a DNS zone
|
|
1821
|
+
* @param {string} dnsZone DNS zone in which to update the DNS zone name servers.
|
|
1822
|
+
* @param {UpdateDNSZoneNameserversRequest} updateDNSZoneNameserversRequest
|
|
1823
|
+
* @param {*} [options] Override http request option.
|
|
1824
|
+
* @throws {RequiredError}
|
|
1825
|
+
*/
|
|
1826
|
+
async updateDNSZoneNameservers(dnsZone, updateDNSZoneNameserversRequest, options) {
|
|
1827
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDNSZoneNameservers(dnsZone, updateDNSZoneNameserversRequest, options);
|
|
1828
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1829
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['RecordsApi.updateDNSZoneNameservers']?.[localVarOperationServerIndex]?.url;
|
|
1830
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1831
|
+
},
|
|
1832
|
+
/**
|
|
1833
|
+
* Update records within a DNS zone that has default name servers and perform several actions on your records. Actions include: - add: allows you to add a new record or add a new IP to an existing A record, for example - set: allows you to edit a record or edit an IP from an existing A record, for example - delete: allows you to delete a record or delete an IP from an existing A record, for example - clear: allows you to delete all records from a DNS zone All edits will be versioned.
|
|
1834
|
+
* @summary Update records within a DNS zone
|
|
1835
|
+
* @param {string} dnsZone DNS zone in which to update the DNS zone records.
|
|
1836
|
+
* @param {UpdateDNSZoneRecordsRequest} updateDNSZoneRecordsRequest
|
|
1837
|
+
* @param {*} [options] Override http request option.
|
|
1838
|
+
* @throws {RequiredError}
|
|
1839
|
+
*/
|
|
1840
|
+
async updateDNSZoneRecords(dnsZone, updateDNSZoneRecordsRequest, options) {
|
|
1841
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDNSZoneRecords(dnsZone, updateDNSZoneRecordsRequest, options);
|
|
1842
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1843
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['RecordsApi.updateDNSZoneRecords']?.[localVarOperationServerIndex]?.url;
|
|
1844
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1845
|
+
},
|
|
1846
|
+
};
|
|
1847
|
+
};
|
|
1848
|
+
exports.RecordsApiFp = RecordsApiFp;
|
|
1849
|
+
/**
|
|
1850
|
+
* RecordsApi - factory interface
|
|
1851
|
+
* @export
|
|
1852
|
+
*/
|
|
1853
|
+
const RecordsApiFactory = function (configuration, basePath, axios) {
|
|
1854
|
+
const localVarFp = (0, exports.RecordsApiFp)(configuration);
|
|
1855
|
+
return {
|
|
1856
|
+
/**
|
|
1857
|
+
* Delete all records within a DNS zone that has default name servers.<br/> All edits will be versioned.
|
|
1858
|
+
* @summary Clear records within a DNS zone
|
|
1859
|
+
* @param {string} dnsZone DNS zone to clear.
|
|
1860
|
+
* @param {*} [options] Override http request option.
|
|
1861
|
+
* @throws {RequiredError}
|
|
1862
|
+
*/
|
|
1863
|
+
clearDNSZoneRecords(dnsZone, options) {
|
|
1864
|
+
return localVarFp
|
|
1865
|
+
.clearDNSZoneRecords(dnsZone, options)
|
|
1866
|
+
.then((request) => request(axios, basePath));
|
|
1867
|
+
},
|
|
1868
|
+
/**
|
|
1869
|
+
* Retrieve a list of name servers within a DNS zone and their optional glue records.
|
|
1870
|
+
* @summary List name servers within a DNS zone
|
|
1871
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zone name servers.
|
|
1872
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zone name servers.
|
|
1873
|
+
* @param {*} [options] Override http request option.
|
|
1874
|
+
* @throws {RequiredError}
|
|
1875
|
+
*/
|
|
1876
|
+
listDNSZoneNameservers(dnsZone, projectId, options) {
|
|
1877
|
+
return localVarFp
|
|
1878
|
+
.listDNSZoneNameservers(dnsZone, projectId, options)
|
|
1879
|
+
.then((request) => request(axios, basePath));
|
|
1880
|
+
},
|
|
1881
|
+
/**
|
|
1882
|
+
* Retrieve a list of DNS records within a DNS zone that has default name servers. You can filter records by type and name.
|
|
1883
|
+
* @summary List records within a DNS zone
|
|
1884
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zone records.
|
|
1885
|
+
* @param {string} name Name on which to filter the returned DNS zone records.
|
|
1886
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zone records.
|
|
1887
|
+
* @param {ListDNSZoneRecordsOrderByEnum} [orderBy] Sort order of the returned DNS zone records.
|
|
1888
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
1889
|
+
* @param {number} [pageSize] Maximum number of DNS zone records per page.
|
|
1890
|
+
* @param {ListDNSZoneRecordsTypeEnum} [type] Record type on which to filter the returned DNS zone records.
|
|
1891
|
+
* @param {string} [id] Record ID on which to filter the returned DNS zone records.
|
|
1892
|
+
* @param {*} [options] Override http request option.
|
|
1893
|
+
* @throws {RequiredError}
|
|
1894
|
+
*/
|
|
1895
|
+
listDNSZoneRecords(dnsZone, name, projectId, orderBy, page, pageSize, type, id, options) {
|
|
1896
|
+
return localVarFp
|
|
1897
|
+
.listDNSZoneRecords(dnsZone, name, projectId, orderBy, page, pageSize, type, id, options)
|
|
1898
|
+
.then((request) => request(axios, basePath));
|
|
1899
|
+
},
|
|
1900
|
+
/**
|
|
1901
|
+
* Update name servers within a DNS zone and set optional glue records.
|
|
1902
|
+
* @summary Update name servers within a DNS zone
|
|
1903
|
+
* @param {string} dnsZone DNS zone in which to update the DNS zone name servers.
|
|
1904
|
+
* @param {UpdateDNSZoneNameserversRequest} updateDNSZoneNameserversRequest
|
|
1905
|
+
* @param {*} [options] Override http request option.
|
|
1906
|
+
* @throws {RequiredError}
|
|
1907
|
+
*/
|
|
1908
|
+
updateDNSZoneNameservers(dnsZone, updateDNSZoneNameserversRequest, options) {
|
|
1909
|
+
return localVarFp
|
|
1910
|
+
.updateDNSZoneNameservers(dnsZone, updateDNSZoneNameserversRequest, options)
|
|
1911
|
+
.then((request) => request(axios, basePath));
|
|
1912
|
+
},
|
|
1913
|
+
/**
|
|
1914
|
+
* Update records within a DNS zone that has default name servers and perform several actions on your records. Actions include: - add: allows you to add a new record or add a new IP to an existing A record, for example - set: allows you to edit a record or edit an IP from an existing A record, for example - delete: allows you to delete a record or delete an IP from an existing A record, for example - clear: allows you to delete all records from a DNS zone All edits will be versioned.
|
|
1915
|
+
* @summary Update records within a DNS zone
|
|
1916
|
+
* @param {string} dnsZone DNS zone in which to update the DNS zone records.
|
|
1917
|
+
* @param {UpdateDNSZoneRecordsRequest} updateDNSZoneRecordsRequest
|
|
1918
|
+
* @param {*} [options] Override http request option.
|
|
1919
|
+
* @throws {RequiredError}
|
|
1920
|
+
*/
|
|
1921
|
+
updateDNSZoneRecords(dnsZone, updateDNSZoneRecordsRequest, options) {
|
|
1922
|
+
return localVarFp
|
|
1923
|
+
.updateDNSZoneRecords(dnsZone, updateDNSZoneRecordsRequest, options)
|
|
1924
|
+
.then((request) => request(axios, basePath));
|
|
1925
|
+
},
|
|
1926
|
+
};
|
|
1927
|
+
};
|
|
1928
|
+
exports.RecordsApiFactory = RecordsApiFactory;
|
|
1929
|
+
/**
|
|
1930
|
+
* RecordsApi - object-oriented interface
|
|
1931
|
+
* @export
|
|
1932
|
+
* @class RecordsApi
|
|
1933
|
+
* @extends {BaseAPI}
|
|
1934
|
+
*/
|
|
1935
|
+
class RecordsApi extends base_1.BaseAPI {
|
|
1936
|
+
/**
|
|
1937
|
+
* Delete all records within a DNS zone that has default name servers.<br/> All edits will be versioned.
|
|
1938
|
+
* @summary Clear records within a DNS zone
|
|
1939
|
+
* @param {string} dnsZone DNS zone to clear.
|
|
1940
|
+
* @param {*} [options] Override http request option.
|
|
1941
|
+
* @throws {RequiredError}
|
|
1942
|
+
* @memberof RecordsApi
|
|
1943
|
+
*/
|
|
1944
|
+
clearDNSZoneRecords(dnsZone, options) {
|
|
1945
|
+
return (0, exports.RecordsApiFp)(this.configuration)
|
|
1946
|
+
.clearDNSZoneRecords(dnsZone, options)
|
|
1947
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1948
|
+
}
|
|
1949
|
+
/**
|
|
1950
|
+
* Retrieve a list of name servers within a DNS zone and their optional glue records.
|
|
1951
|
+
* @summary List name servers within a DNS zone
|
|
1952
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zone name servers.
|
|
1953
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zone name servers.
|
|
1954
|
+
* @param {*} [options] Override http request option.
|
|
1955
|
+
* @throws {RequiredError}
|
|
1956
|
+
* @memberof RecordsApi
|
|
1957
|
+
*/
|
|
1958
|
+
listDNSZoneNameservers(dnsZone, projectId, options) {
|
|
1959
|
+
return (0, exports.RecordsApiFp)(this.configuration)
|
|
1960
|
+
.listDNSZoneNameservers(dnsZone, projectId, options)
|
|
1961
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* Retrieve a list of DNS records within a DNS zone that has default name servers. You can filter records by type and name.
|
|
1965
|
+
* @summary List records within a DNS zone
|
|
1966
|
+
* @param {string} dnsZone DNS zone on which to filter the returned DNS zone records.
|
|
1967
|
+
* @param {string} name Name on which to filter the returned DNS zone records.
|
|
1968
|
+
* @param {string} [projectId] Project ID on which to filter the returned DNS zone records.
|
|
1969
|
+
* @param {ListDNSZoneRecordsOrderByEnum} [orderBy] Sort order of the returned DNS zone records.
|
|
1970
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
1971
|
+
* @param {number} [pageSize] Maximum number of DNS zone records per page.
|
|
1972
|
+
* @param {ListDNSZoneRecordsTypeEnum} [type] Record type on which to filter the returned DNS zone records.
|
|
1973
|
+
* @param {string} [id] Record ID on which to filter the returned DNS zone records.
|
|
1974
|
+
* @param {*} [options] Override http request option.
|
|
1975
|
+
* @throws {RequiredError}
|
|
1976
|
+
* @memberof RecordsApi
|
|
1977
|
+
*/
|
|
1978
|
+
listDNSZoneRecords(dnsZone, name, projectId, orderBy, page, pageSize, type, id, options) {
|
|
1979
|
+
return (0, exports.RecordsApiFp)(this.configuration)
|
|
1980
|
+
.listDNSZoneRecords(dnsZone, name, projectId, orderBy, page, pageSize, type, id, options)
|
|
1981
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* Update name servers within a DNS zone and set optional glue records.
|
|
1985
|
+
* @summary Update name servers within a DNS zone
|
|
1986
|
+
* @param {string} dnsZone DNS zone in which to update the DNS zone name servers.
|
|
1987
|
+
* @param {UpdateDNSZoneNameserversRequest} updateDNSZoneNameserversRequest
|
|
1988
|
+
* @param {*} [options] Override http request option.
|
|
1989
|
+
* @throws {RequiredError}
|
|
1990
|
+
* @memberof RecordsApi
|
|
1991
|
+
*/
|
|
1992
|
+
updateDNSZoneNameservers(dnsZone, updateDNSZoneNameserversRequest, options) {
|
|
1993
|
+
return (0, exports.RecordsApiFp)(this.configuration)
|
|
1994
|
+
.updateDNSZoneNameservers(dnsZone, updateDNSZoneNameserversRequest, options)
|
|
1995
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1996
|
+
}
|
|
1997
|
+
/**
|
|
1998
|
+
* Update records within a DNS zone that has default name servers and perform several actions on your records. Actions include: - add: allows you to add a new record or add a new IP to an existing A record, for example - set: allows you to edit a record or edit an IP from an existing A record, for example - delete: allows you to delete a record or delete an IP from an existing A record, for example - clear: allows you to delete all records from a DNS zone All edits will be versioned.
|
|
1999
|
+
* @summary Update records within a DNS zone
|
|
2000
|
+
* @param {string} dnsZone DNS zone in which to update the DNS zone records.
|
|
2001
|
+
* @param {UpdateDNSZoneRecordsRequest} updateDNSZoneRecordsRequest
|
|
2002
|
+
* @param {*} [options] Override http request option.
|
|
2003
|
+
* @throws {RequiredError}
|
|
2004
|
+
* @memberof RecordsApi
|
|
2005
|
+
*/
|
|
2006
|
+
updateDNSZoneRecords(dnsZone, updateDNSZoneRecordsRequest, options) {
|
|
2007
|
+
return (0, exports.RecordsApiFp)(this.configuration)
|
|
2008
|
+
.updateDNSZoneRecords(dnsZone, updateDNSZoneRecordsRequest, options)
|
|
2009
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
exports.RecordsApi = RecordsApi;
|
|
2013
|
+
/**
|
|
2014
|
+
* @export
|
|
2015
|
+
*/
|
|
2016
|
+
exports.ListDNSZoneRecordsOrderByEnum = {
|
|
2017
|
+
NameAsc: 'name_asc',
|
|
2018
|
+
NameDesc: 'name_desc',
|
|
2019
|
+
};
|
|
2020
|
+
/**
|
|
2021
|
+
* @export
|
|
2022
|
+
*/
|
|
2023
|
+
exports.ListDNSZoneRecordsTypeEnum = {
|
|
2024
|
+
Unknown: 'unknown',
|
|
2025
|
+
A: 'A',
|
|
2026
|
+
Aaaa: 'AAAA',
|
|
2027
|
+
Cname: 'CNAME',
|
|
2028
|
+
Txt: 'TXT',
|
|
2029
|
+
Srv: 'SRV',
|
|
2030
|
+
Tlsa: 'TLSA',
|
|
2031
|
+
Mx: 'MX',
|
|
2032
|
+
Ns: 'NS',
|
|
2033
|
+
Ptr: 'PTR',
|
|
2034
|
+
Caa: 'CAA',
|
|
2035
|
+
Alias: 'ALIAS',
|
|
2036
|
+
Loc: 'LOC',
|
|
2037
|
+
Sshfp: 'SSHFP',
|
|
2038
|
+
Hinfo: 'HINFO',
|
|
2039
|
+
Rp: 'RP',
|
|
2040
|
+
Uri: 'URI',
|
|
2041
|
+
Ds: 'DS',
|
|
2042
|
+
Naptr: 'NAPTR',
|
|
2043
|
+
Dname: 'DNAME',
|
|
2044
|
+
Svcb: 'SVCB',
|
|
2045
|
+
Https: 'HTTPS',
|
|
2046
|
+
};
|
|
2047
|
+
/**
|
|
2048
|
+
* VersionsApi - axios parameter creator
|
|
2049
|
+
* @export
|
|
2050
|
+
*/
|
|
2051
|
+
const VersionsApiAxiosParamCreator = function (configuration) {
|
|
2052
|
+
return {
|
|
2053
|
+
/**
|
|
2054
|
+
* Access a previous DNS zone version to see the differences from another specific version.
|
|
2055
|
+
* @summary Access differences from a specific DNS zone version
|
|
2056
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2057
|
+
* @param {*} [options] Override http request option.
|
|
2058
|
+
* @throws {RequiredError}
|
|
2059
|
+
*/
|
|
2060
|
+
getDNSZoneVersionDiff: async (dnsZoneVersionId, options = {}) => {
|
|
2061
|
+
// verify required parameter 'dnsZoneVersionId' is not null or undefined
|
|
2062
|
+
(0, common_1.assertParamExists)('getDNSZoneVersionDiff', 'dnsZoneVersionId', dnsZoneVersionId);
|
|
2063
|
+
const localVarPath = `/domain/v2beta1/dns-zones/version/{dns_zone_version_id}/diff`.replace(`{${'dns_zone_version_id'}}`, encodeURIComponent(String(dnsZoneVersionId)));
|
|
2064
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2065
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2066
|
+
let baseOptions;
|
|
2067
|
+
if (configuration) {
|
|
2068
|
+
baseOptions = configuration.baseOptions;
|
|
2069
|
+
}
|
|
2070
|
+
const localVarRequestOptions = {
|
|
2071
|
+
method: 'GET',
|
|
2072
|
+
...baseOptions,
|
|
2073
|
+
...options,
|
|
2074
|
+
};
|
|
2075
|
+
const localVarHeaderParameter = {};
|
|
2076
|
+
const localVarQueryParameter = {};
|
|
2077
|
+
// authentication scaleway required
|
|
2078
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2079
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2080
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2081
|
+
localVarRequestOptions.headers = {
|
|
2082
|
+
...localVarHeaderParameter,
|
|
2083
|
+
...headersFromBaseOptions,
|
|
2084
|
+
...options.headers,
|
|
2085
|
+
};
|
|
2086
|
+
return {
|
|
2087
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2088
|
+
options: localVarRequestOptions,
|
|
2089
|
+
};
|
|
2090
|
+
},
|
|
2091
|
+
/**
|
|
2092
|
+
* Retrieve a list of records from a specific DNS zone version.
|
|
2093
|
+
* @summary List records from a given version of a specific DNS zone
|
|
2094
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2095
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
2096
|
+
* @param {number} [pageSize] Maximum number of DNS zones versions records per page.
|
|
2097
|
+
* @param {*} [options] Override http request option.
|
|
2098
|
+
* @throws {RequiredError}
|
|
2099
|
+
*/
|
|
2100
|
+
listDNSZoneVersionRecords: async (dnsZoneVersionId, page, pageSize, options = {}) => {
|
|
2101
|
+
// verify required parameter 'dnsZoneVersionId' is not null or undefined
|
|
2102
|
+
(0, common_1.assertParamExists)('listDNSZoneVersionRecords', 'dnsZoneVersionId', dnsZoneVersionId);
|
|
2103
|
+
const localVarPath = `/domain/v2beta1/dns-zones/version/{dns_zone_version_id}`.replace(`{${'dns_zone_version_id'}}`, encodeURIComponent(String(dnsZoneVersionId)));
|
|
2104
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2105
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2106
|
+
let baseOptions;
|
|
2107
|
+
if (configuration) {
|
|
2108
|
+
baseOptions = configuration.baseOptions;
|
|
2109
|
+
}
|
|
2110
|
+
const localVarRequestOptions = {
|
|
2111
|
+
method: 'GET',
|
|
2112
|
+
...baseOptions,
|
|
2113
|
+
...options,
|
|
2114
|
+
};
|
|
2115
|
+
const localVarHeaderParameter = {};
|
|
2116
|
+
const localVarQueryParameter = {};
|
|
2117
|
+
// authentication scaleway required
|
|
2118
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2119
|
+
if (page !== undefined) {
|
|
2120
|
+
localVarQueryParameter['page'] = page;
|
|
2121
|
+
}
|
|
2122
|
+
if (pageSize !== undefined) {
|
|
2123
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
2124
|
+
}
|
|
2125
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2126
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2127
|
+
localVarRequestOptions.headers = {
|
|
2128
|
+
...localVarHeaderParameter,
|
|
2129
|
+
...headersFromBaseOptions,
|
|
2130
|
+
...options.headers,
|
|
2131
|
+
};
|
|
2132
|
+
return {
|
|
2133
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2134
|
+
options: localVarRequestOptions,
|
|
2135
|
+
};
|
|
2136
|
+
},
|
|
2137
|
+
/**
|
|
2138
|
+
* Retrieve a list of a DNS zone\'s versions.<br/> The maximum version count is 100. If the count reaches this limit, the oldest version will be deleted after each new modification.
|
|
2139
|
+
* @summary List versions of a DNS zone
|
|
2140
|
+
* @param {string} dnsZone
|
|
2141
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
2142
|
+
* @param {number} [pageSize] Maximum number of DNS zones versions per page.
|
|
2143
|
+
* @param {*} [options] Override http request option.
|
|
2144
|
+
* @throws {RequiredError}
|
|
2145
|
+
*/
|
|
2146
|
+
listDNSZoneVersions: async (dnsZone, page, pageSize, options = {}) => {
|
|
2147
|
+
// verify required parameter 'dnsZone' is not null or undefined
|
|
2148
|
+
(0, common_1.assertParamExists)('listDNSZoneVersions', 'dnsZone', dnsZone);
|
|
2149
|
+
const localVarPath = `/domain/v2beta1/dns-zones/{dns_zone}/versions`.replace(`{${'dns_zone'}}`, encodeURIComponent(String(dnsZone)));
|
|
2150
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2151
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2152
|
+
let baseOptions;
|
|
2153
|
+
if (configuration) {
|
|
2154
|
+
baseOptions = configuration.baseOptions;
|
|
2155
|
+
}
|
|
2156
|
+
const localVarRequestOptions = {
|
|
2157
|
+
method: 'GET',
|
|
2158
|
+
...baseOptions,
|
|
2159
|
+
...options,
|
|
2160
|
+
};
|
|
2161
|
+
const localVarHeaderParameter = {};
|
|
2162
|
+
const localVarQueryParameter = {};
|
|
2163
|
+
// authentication scaleway required
|
|
2164
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2165
|
+
if (page !== undefined) {
|
|
2166
|
+
localVarQueryParameter['page'] = page;
|
|
2167
|
+
}
|
|
2168
|
+
if (pageSize !== undefined) {
|
|
2169
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
2170
|
+
}
|
|
2171
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2173
|
+
localVarRequestOptions.headers = {
|
|
2174
|
+
...localVarHeaderParameter,
|
|
2175
|
+
...headersFromBaseOptions,
|
|
2176
|
+
...options.headers,
|
|
2177
|
+
};
|
|
2178
|
+
return {
|
|
2179
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2180
|
+
options: localVarRequestOptions,
|
|
2181
|
+
};
|
|
2182
|
+
},
|
|
2183
|
+
/**
|
|
2184
|
+
* Restore and activate a version of a specific DNS zone.
|
|
2185
|
+
* @summary Restore a DNS zone version
|
|
2186
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2187
|
+
* @param {object} body
|
|
2188
|
+
* @param {*} [options] Override http request option.
|
|
2189
|
+
* @throws {RequiredError}
|
|
2190
|
+
*/
|
|
2191
|
+
restoreDNSZoneVersion: async (dnsZoneVersionId, body, options = {}) => {
|
|
2192
|
+
// verify required parameter 'dnsZoneVersionId' is not null or undefined
|
|
2193
|
+
(0, common_1.assertParamExists)('restoreDNSZoneVersion', 'dnsZoneVersionId', dnsZoneVersionId);
|
|
2194
|
+
// verify required parameter 'body' is not null or undefined
|
|
2195
|
+
(0, common_1.assertParamExists)('restoreDNSZoneVersion', 'body', body);
|
|
2196
|
+
const localVarPath = `/domain/v2beta1/dns-zones/version/{dns_zone_version_id}/restore`.replace(`{${'dns_zone_version_id'}}`, encodeURIComponent(String(dnsZoneVersionId)));
|
|
2197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2198
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2199
|
+
let baseOptions;
|
|
2200
|
+
if (configuration) {
|
|
2201
|
+
baseOptions = configuration.baseOptions;
|
|
2202
|
+
}
|
|
2203
|
+
const localVarRequestOptions = {
|
|
2204
|
+
method: 'POST',
|
|
2205
|
+
...baseOptions,
|
|
2206
|
+
...options,
|
|
2207
|
+
};
|
|
2208
|
+
const localVarHeaderParameter = {};
|
|
2209
|
+
const localVarQueryParameter = {};
|
|
2210
|
+
// authentication scaleway required
|
|
2211
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
|
|
2212
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2213
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2214
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2215
|
+
localVarRequestOptions.headers = {
|
|
2216
|
+
...localVarHeaderParameter,
|
|
2217
|
+
...headersFromBaseOptions,
|
|
2218
|
+
...options.headers,
|
|
2219
|
+
};
|
|
2220
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2221
|
+
return {
|
|
2222
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2223
|
+
options: localVarRequestOptions,
|
|
2224
|
+
};
|
|
2225
|
+
},
|
|
2226
|
+
};
|
|
2227
|
+
};
|
|
2228
|
+
exports.VersionsApiAxiosParamCreator = VersionsApiAxiosParamCreator;
|
|
2229
|
+
/**
|
|
2230
|
+
* VersionsApi - functional programming interface
|
|
2231
|
+
* @export
|
|
2232
|
+
*/
|
|
2233
|
+
const VersionsApiFp = function (configuration) {
|
|
2234
|
+
const localVarAxiosParamCreator = (0, exports.VersionsApiAxiosParamCreator)(configuration);
|
|
2235
|
+
return {
|
|
2236
|
+
/**
|
|
2237
|
+
* Access a previous DNS zone version to see the differences from another specific version.
|
|
2238
|
+
* @summary Access differences from a specific DNS zone version
|
|
2239
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2240
|
+
* @param {*} [options] Override http request option.
|
|
2241
|
+
* @throws {RequiredError}
|
|
2242
|
+
*/
|
|
2243
|
+
async getDNSZoneVersionDiff(dnsZoneVersionId, options) {
|
|
2244
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDNSZoneVersionDiff(dnsZoneVersionId, options);
|
|
2245
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2246
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VersionsApi.getDNSZoneVersionDiff']?.[localVarOperationServerIndex]?.url;
|
|
2247
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2248
|
+
},
|
|
2249
|
+
/**
|
|
2250
|
+
* Retrieve a list of records from a specific DNS zone version.
|
|
2251
|
+
* @summary List records from a given version of a specific DNS zone
|
|
2252
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2253
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
2254
|
+
* @param {number} [pageSize] Maximum number of DNS zones versions records per page.
|
|
2255
|
+
* @param {*} [options] Override http request option.
|
|
2256
|
+
* @throws {RequiredError}
|
|
2257
|
+
*/
|
|
2258
|
+
async listDNSZoneVersionRecords(dnsZoneVersionId, page, pageSize, options) {
|
|
2259
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDNSZoneVersionRecords(dnsZoneVersionId, page, pageSize, options);
|
|
2260
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2261
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VersionsApi.listDNSZoneVersionRecords']?.[localVarOperationServerIndex]?.url;
|
|
2262
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2263
|
+
},
|
|
2264
|
+
/**
|
|
2265
|
+
* Retrieve a list of a DNS zone\'s versions.<br/> The maximum version count is 100. If the count reaches this limit, the oldest version will be deleted after each new modification.
|
|
2266
|
+
* @summary List versions of a DNS zone
|
|
2267
|
+
* @param {string} dnsZone
|
|
2268
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
2269
|
+
* @param {number} [pageSize] Maximum number of DNS zones versions per page.
|
|
2270
|
+
* @param {*} [options] Override http request option.
|
|
2271
|
+
* @throws {RequiredError}
|
|
2272
|
+
*/
|
|
2273
|
+
async listDNSZoneVersions(dnsZone, page, pageSize, options) {
|
|
2274
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDNSZoneVersions(dnsZone, page, pageSize, options);
|
|
2275
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2276
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VersionsApi.listDNSZoneVersions']?.[localVarOperationServerIndex]?.url;
|
|
2277
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2278
|
+
},
|
|
2279
|
+
/**
|
|
2280
|
+
* Restore and activate a version of a specific DNS zone.
|
|
2281
|
+
* @summary Restore a DNS zone version
|
|
2282
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2283
|
+
* @param {object} body
|
|
2284
|
+
* @param {*} [options] Override http request option.
|
|
2285
|
+
* @throws {RequiredError}
|
|
2286
|
+
*/
|
|
2287
|
+
async restoreDNSZoneVersion(dnsZoneVersionId, body, options) {
|
|
2288
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDNSZoneVersion(dnsZoneVersionId, body, options);
|
|
2289
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2290
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['VersionsApi.restoreDNSZoneVersion']?.[localVarOperationServerIndex]?.url;
|
|
2291
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2292
|
+
},
|
|
2293
|
+
};
|
|
2294
|
+
};
|
|
2295
|
+
exports.VersionsApiFp = VersionsApiFp;
|
|
2296
|
+
/**
|
|
2297
|
+
* VersionsApi - factory interface
|
|
2298
|
+
* @export
|
|
2299
|
+
*/
|
|
2300
|
+
const VersionsApiFactory = function (configuration, basePath, axios) {
|
|
2301
|
+
const localVarFp = (0, exports.VersionsApiFp)(configuration);
|
|
2302
|
+
return {
|
|
2303
|
+
/**
|
|
2304
|
+
* Access a previous DNS zone version to see the differences from another specific version.
|
|
2305
|
+
* @summary Access differences from a specific DNS zone version
|
|
2306
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2307
|
+
* @param {*} [options] Override http request option.
|
|
2308
|
+
* @throws {RequiredError}
|
|
2309
|
+
*/
|
|
2310
|
+
getDNSZoneVersionDiff(dnsZoneVersionId, options) {
|
|
2311
|
+
return localVarFp
|
|
2312
|
+
.getDNSZoneVersionDiff(dnsZoneVersionId, options)
|
|
2313
|
+
.then((request) => request(axios, basePath));
|
|
2314
|
+
},
|
|
2315
|
+
/**
|
|
2316
|
+
* Retrieve a list of records from a specific DNS zone version.
|
|
2317
|
+
* @summary List records from a given version of a specific DNS zone
|
|
2318
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2319
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
2320
|
+
* @param {number} [pageSize] Maximum number of DNS zones versions records per page.
|
|
2321
|
+
* @param {*} [options] Override http request option.
|
|
2322
|
+
* @throws {RequiredError}
|
|
2323
|
+
*/
|
|
2324
|
+
listDNSZoneVersionRecords(dnsZoneVersionId, page, pageSize, options) {
|
|
2325
|
+
return localVarFp
|
|
2326
|
+
.listDNSZoneVersionRecords(dnsZoneVersionId, page, pageSize, options)
|
|
2327
|
+
.then((request) => request(axios, basePath));
|
|
2328
|
+
},
|
|
2329
|
+
/**
|
|
2330
|
+
* Retrieve a list of a DNS zone\'s versions.<br/> The maximum version count is 100. If the count reaches this limit, the oldest version will be deleted after each new modification.
|
|
2331
|
+
* @summary List versions of a DNS zone
|
|
2332
|
+
* @param {string} dnsZone
|
|
2333
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
2334
|
+
* @param {number} [pageSize] Maximum number of DNS zones versions per page.
|
|
2335
|
+
* @param {*} [options] Override http request option.
|
|
2336
|
+
* @throws {RequiredError}
|
|
2337
|
+
*/
|
|
2338
|
+
listDNSZoneVersions(dnsZone, page, pageSize, options) {
|
|
2339
|
+
return localVarFp
|
|
2340
|
+
.listDNSZoneVersions(dnsZone, page, pageSize, options)
|
|
2341
|
+
.then((request) => request(axios, basePath));
|
|
2342
|
+
},
|
|
2343
|
+
/**
|
|
2344
|
+
* Restore and activate a version of a specific DNS zone.
|
|
2345
|
+
* @summary Restore a DNS zone version
|
|
2346
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2347
|
+
* @param {object} body
|
|
2348
|
+
* @param {*} [options] Override http request option.
|
|
2349
|
+
* @throws {RequiredError}
|
|
2350
|
+
*/
|
|
2351
|
+
restoreDNSZoneVersion(dnsZoneVersionId, body, options) {
|
|
2352
|
+
return localVarFp
|
|
2353
|
+
.restoreDNSZoneVersion(dnsZoneVersionId, body, options)
|
|
2354
|
+
.then((request) => request(axios, basePath));
|
|
2355
|
+
},
|
|
2356
|
+
};
|
|
2357
|
+
};
|
|
2358
|
+
exports.VersionsApiFactory = VersionsApiFactory;
|
|
2359
|
+
/**
|
|
2360
|
+
* VersionsApi - object-oriented interface
|
|
2361
|
+
* @export
|
|
2362
|
+
* @class VersionsApi
|
|
2363
|
+
* @extends {BaseAPI}
|
|
2364
|
+
*/
|
|
2365
|
+
class VersionsApi extends base_1.BaseAPI {
|
|
2366
|
+
/**
|
|
2367
|
+
* Access a previous DNS zone version to see the differences from another specific version.
|
|
2368
|
+
* @summary Access differences from a specific DNS zone version
|
|
2369
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2370
|
+
* @param {*} [options] Override http request option.
|
|
2371
|
+
* @throws {RequiredError}
|
|
2372
|
+
* @memberof VersionsApi
|
|
2373
|
+
*/
|
|
2374
|
+
getDNSZoneVersionDiff(dnsZoneVersionId, options) {
|
|
2375
|
+
return (0, exports.VersionsApiFp)(this.configuration)
|
|
2376
|
+
.getDNSZoneVersionDiff(dnsZoneVersionId, options)
|
|
2377
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2378
|
+
}
|
|
2379
|
+
/**
|
|
2380
|
+
* Retrieve a list of records from a specific DNS zone version.
|
|
2381
|
+
* @summary List records from a given version of a specific DNS zone
|
|
2382
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2383
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
2384
|
+
* @param {number} [pageSize] Maximum number of DNS zones versions records per page.
|
|
2385
|
+
* @param {*} [options] Override http request option.
|
|
2386
|
+
* @throws {RequiredError}
|
|
2387
|
+
* @memberof VersionsApi
|
|
2388
|
+
*/
|
|
2389
|
+
listDNSZoneVersionRecords(dnsZoneVersionId, page, pageSize, options) {
|
|
2390
|
+
return (0, exports.VersionsApiFp)(this.configuration)
|
|
2391
|
+
.listDNSZoneVersionRecords(dnsZoneVersionId, page, pageSize, options)
|
|
2392
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2393
|
+
}
|
|
2394
|
+
/**
|
|
2395
|
+
* Retrieve a list of a DNS zone\'s versions.<br/> The maximum version count is 100. If the count reaches this limit, the oldest version will be deleted after each new modification.
|
|
2396
|
+
* @summary List versions of a DNS zone
|
|
2397
|
+
* @param {string} dnsZone
|
|
2398
|
+
* @param {number} [page] Page number to return, from the paginated results.
|
|
2399
|
+
* @param {number} [pageSize] Maximum number of DNS zones versions per page.
|
|
2400
|
+
* @param {*} [options] Override http request option.
|
|
2401
|
+
* @throws {RequiredError}
|
|
2402
|
+
* @memberof VersionsApi
|
|
2403
|
+
*/
|
|
2404
|
+
listDNSZoneVersions(dnsZone, page, pageSize, options) {
|
|
2405
|
+
return (0, exports.VersionsApiFp)(this.configuration)
|
|
2406
|
+
.listDNSZoneVersions(dnsZone, page, pageSize, options)
|
|
2407
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2408
|
+
}
|
|
2409
|
+
/**
|
|
2410
|
+
* Restore and activate a version of a specific DNS zone.
|
|
2411
|
+
* @summary Restore a DNS zone version
|
|
2412
|
+
* @param {string} dnsZoneVersionId (UUID format)
|
|
2413
|
+
* @param {object} body
|
|
2414
|
+
* @param {*} [options] Override http request option.
|
|
2415
|
+
* @throws {RequiredError}
|
|
2416
|
+
* @memberof VersionsApi
|
|
2417
|
+
*/
|
|
2418
|
+
restoreDNSZoneVersion(dnsZoneVersionId, body, options) {
|
|
2419
|
+
return (0, exports.VersionsApiFp)(this.configuration)
|
|
2420
|
+
.restoreDNSZoneVersion(dnsZoneVersionId, body, options)
|
|
2421
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
exports.VersionsApi = VersionsApi;
|