@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.
Files changed (873) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +124 -0
  3. package/bin/run +17 -0
  4. package/lib/cli/src/background/cluster-worker.d.ts +11 -0
  5. package/lib/cli/src/background/cluster-worker.js +90 -0
  6. package/lib/cli/src/cli-providers.module.d.ts +2 -0
  7. package/lib/cli/src/cli-providers.module.js +118 -0
  8. package/lib/cli/src/cli.module.d.ts +13 -0
  9. package/lib/cli/src/cli.module.js +80 -0
  10. package/lib/cli/src/commands/_diag-oidc.d.ts +6 -0
  11. package/lib/cli/src/commands/_diag-oidc.js +132 -0
  12. package/lib/cli/src/commands/app/backup/create.d.ts +20 -0
  13. package/lib/cli/src/commands/app/backup/create.js +128 -0
  14. package/lib/cli/src/commands/app/backup/delete.d.ts +19 -0
  15. package/lib/cli/src/commands/app/backup/delete.js +95 -0
  16. package/lib/cli/src/commands/app/build.d.ts +17 -0
  17. package/lib/cli/src/commands/app/build.js +133 -0
  18. package/lib/cli/src/commands/app/builds.d.ts +14 -0
  19. package/lib/cli/src/commands/app/builds.js +82 -0
  20. package/lib/cli/src/commands/app/crash.d.ts +16 -0
  21. package/lib/cli/src/commands/app/crash.js +106 -0
  22. package/lib/cli/src/commands/app/crashes.d.ts +15 -0
  23. package/lib/cli/src/commands/app/crashes.js +99 -0
  24. package/lib/cli/src/commands/app/delete.d.ts +16 -0
  25. package/lib/cli/src/commands/app/delete.js +149 -0
  26. package/lib/cli/src/commands/app/image/delete.d.ts +18 -0
  27. package/lib/cli/src/commands/app/image/delete.js +72 -0
  28. package/lib/cli/src/commands/app/init.d.ts +40 -0
  29. package/lib/cli/src/commands/app/init.js +436 -0
  30. package/lib/cli/src/commands/app/list.d.ts +11 -0
  31. package/lib/cli/src/commands/app/list.js +84 -0
  32. package/lib/cli/src/commands/app/logs.d.ts +18 -0
  33. package/lib/cli/src/commands/app/logs.js +121 -0
  34. package/lib/cli/src/commands/app/metrics.d.ts +17 -0
  35. package/lib/cli/src/commands/app/metrics.js +100 -0
  36. package/lib/cli/src/commands/app/redeploy.d.ts +14 -0
  37. package/lib/cli/src/commands/app/redeploy.js +60 -0
  38. package/lib/cli/src/commands/app/releases.d.ts +15 -0
  39. package/lib/cli/src/commands/app/releases.js +117 -0
  40. package/lib/cli/src/commands/app/restart.d.ts +12 -0
  41. package/lib/cli/src/commands/app/restart.js +44 -0
  42. package/lib/cli/src/commands/app/scale.d.ts +13 -0
  43. package/lib/cli/src/commands/app/scale.js +58 -0
  44. package/lib/cli/src/commands/app/snapshot/create.d.ts +14 -0
  45. package/lib/cli/src/commands/app/snapshot/create.js +85 -0
  46. package/lib/cli/src/commands/app/snapshot/delete.d.ts +14 -0
  47. package/lib/cli/src/commands/app/snapshot/delete.js +63 -0
  48. package/lib/cli/src/commands/app/snapshot/list.d.ts +11 -0
  49. package/lib/cli/src/commands/app/snapshot/list.js +82 -0
  50. package/lib/cli/src/commands/app/snapshot/restore.d.ts +15 -0
  51. package/lib/cli/src/commands/app/snapshot/restore.js +74 -0
  52. package/lib/cli/src/commands/app/snapshot/swap.d.ts +15 -0
  53. package/lib/cli/src/commands/app/snapshot/swap.js +68 -0
  54. package/lib/cli/src/commands/app/start.d.ts +12 -0
  55. package/lib/cli/src/commands/app/start.js +45 -0
  56. package/lib/cli/src/commands/app/status.d.ts +15 -0
  57. package/lib/cli/src/commands/app/status.js +108 -0
  58. package/lib/cli/src/commands/app/stop.d.ts +12 -0
  59. package/lib/cli/src/commands/app/stop.js +45 -0
  60. package/lib/cli/src/commands/app/versions.d.ts +14 -0
  61. package/lib/cli/src/commands/app/versions.js +80 -0
  62. package/lib/cli/src/commands/auth/generate-api-key.d.ts +12 -0
  63. package/lib/cli/src/commands/auth/generate-api-key.js +90 -0
  64. package/lib/cli/src/commands/auth/login.d.ts +11 -0
  65. package/lib/cli/src/commands/auth/login.js +296 -0
  66. package/lib/cli/src/commands/auth/reset-password.d.ts +15 -0
  67. package/lib/cli/src/commands/auth/reset-password.js +253 -0
  68. package/lib/cli/src/commands/backup/destination/create.d.ts +22 -0
  69. package/lib/cli/src/commands/backup/destination/create.js +102 -0
  70. package/lib/cli/src/commands/backup/destination/delete.d.ts +11 -0
  71. package/lib/cli/src/commands/backup/destination/delete.js +46 -0
  72. package/lib/cli/src/commands/backup/destination/list.d.ts +9 -0
  73. package/lib/cli/src/commands/backup/destination/list.js +42 -0
  74. package/lib/cli/src/commands/backup/destination/show.d.ts +11 -0
  75. package/lib/cli/src/commands/backup/destination/show.js +45 -0
  76. package/lib/cli/src/commands/backup/destination/test.d.ts +8 -0
  77. package/lib/cli/src/commands/backup/destination/test.js +39 -0
  78. package/lib/cli/src/commands/backup/job/list.d.ts +9 -0
  79. package/lib/cli/src/commands/backup/job/list.js +38 -0
  80. package/lib/cli/src/commands/backup/job/run.d.ts +8 -0
  81. package/lib/cli/src/commands/backup/job/run.js +32 -0
  82. package/lib/cli/src/commands/backup/job/show.d.ts +11 -0
  83. package/lib/cli/src/commands/backup/job/show.js +38 -0
  84. package/lib/cli/src/commands/backup/policy/create.d.ts +21 -0
  85. package/lib/cli/src/commands/backup/policy/create.js +97 -0
  86. package/lib/cli/src/commands/backup/policy/delete.d.ts +11 -0
  87. package/lib/cli/src/commands/backup/policy/delete.js +42 -0
  88. package/lib/cli/src/commands/backup/policy/list.d.ts +9 -0
  89. package/lib/cli/src/commands/backup/policy/list.js +40 -0
  90. package/lib/cli/src/commands/backup/policy/show.d.ts +11 -0
  91. package/lib/cli/src/commands/backup/policy/show.js +45 -0
  92. package/lib/cli/src/commands/backup/restore/create.d.ts +14 -0
  93. package/lib/cli/src/commands/backup/restore/create.js +68 -0
  94. package/lib/cli/src/commands/backup/restore/list.d.ts +8 -0
  95. package/lib/cli/src/commands/backup/restore/list.js +33 -0
  96. package/lib/cli/src/commands/backup/restore/preview.d.ts +9 -0
  97. package/lib/cli/src/commands/backup/restore/preview.js +29 -0
  98. package/lib/cli/src/commands/backup/restore/show.d.ts +11 -0
  99. package/lib/cli/src/commands/backup/restore/show.js +40 -0
  100. package/lib/cli/src/commands/catalog/validate.d.ts +14 -0
  101. package/lib/cli/src/commands/catalog/validate.js +155 -0
  102. package/lib/cli/src/commands/cluster/destroy.d.ts +15 -0
  103. package/lib/cli/src/commands/cluster/destroy.js +137 -0
  104. package/lib/cli/src/commands/config/get.d.ts +9 -0
  105. package/lib/cli/src/commands/config/get.js +47 -0
  106. package/lib/cli/src/commands/config/list.d.ts +15 -0
  107. package/lib/cli/src/commands/config/list.js +109 -0
  108. package/lib/cli/src/commands/config/remove.d.ts +12 -0
  109. package/lib/cli/src/commands/config/remove.js +92 -0
  110. package/lib/cli/src/commands/config/set.d.ts +15 -0
  111. package/lib/cli/src/commands/config/set.js +152 -0
  112. package/lib/cli/src/commands/config/show.d.ts +6 -0
  113. package/lib/cli/src/commands/config/show.js +15 -0
  114. package/lib/cli/src/commands/context/create.d.ts +12 -0
  115. package/lib/cli/src/commands/context/create.js +46 -0
  116. package/lib/cli/src/commands/context/delete.d.ts +12 -0
  117. package/lib/cli/src/commands/context/delete.js +53 -0
  118. package/lib/cli/src/commands/context/list.d.ts +6 -0
  119. package/lib/cli/src/commands/context/list.js +29 -0
  120. package/lib/cli/src/commands/context/show.d.ts +6 -0
  121. package/lib/cli/src/commands/context/show.js +12 -0
  122. package/lib/cli/src/commands/context/use.d.ts +9 -0
  123. package/lib/cli/src/commands/context/use.js +30 -0
  124. package/lib/cli/src/commands/deploy.d.ts +49 -0
  125. package/lib/cli/src/commands/deploy.js +542 -0
  126. package/lib/cli/src/commands/dev/creds.d.ts +19 -0
  127. package/lib/cli/src/commands/dev/creds.js +290 -0
  128. package/lib/cli/src/commands/dev/tunnel.d.ts +15 -0
  129. package/lib/cli/src/commands/dev/tunnel.js +268 -0
  130. package/lib/cli/src/commands/dns/cleanup.d.ts +11 -0
  131. package/lib/cli/src/commands/dns/cleanup.js +93 -0
  132. package/lib/cli/src/commands/env/capacity.d.ts +12 -0
  133. package/lib/cli/src/commands/env/capacity.js +177 -0
  134. package/lib/cli/src/commands/env/create.d.ts +21 -0
  135. package/lib/cli/src/commands/env/create.js +721 -0
  136. package/lib/cli/src/commands/env/credentials.d.ts +21 -0
  137. package/lib/cli/src/commands/env/credentials.js +435 -0
  138. package/lib/cli/src/commands/env/destroy.d.ts +9 -0
  139. package/lib/cli/src/commands/env/destroy.js +145 -0
  140. package/lib/cli/src/commands/env/diag-ca.d.ts +14 -0
  141. package/lib/cli/src/commands/env/diag-ca.js +192 -0
  142. package/lib/cli/src/commands/env/export-config.d.ts +39 -0
  143. package/lib/cli/src/commands/env/export-config.js +386 -0
  144. package/lib/cli/src/commands/env/force-ready.d.ts +10 -0
  145. package/lib/cli/src/commands/env/force-ready.js +222 -0
  146. package/lib/cli/src/commands/env/inspect.d.ts +12 -0
  147. package/lib/cli/src/commands/env/inspect.js +192 -0
  148. package/lib/cli/src/commands/env/kubectl.d.ts +9 -0
  149. package/lib/cli/src/commands/env/kubectl.js +33 -0
  150. package/lib/cli/src/commands/env/logs.d.ts +12 -0
  151. package/lib/cli/src/commands/env/logs.js +136 -0
  152. package/lib/cli/src/commands/env/orphan-volumes.d.ts +11 -0
  153. package/lib/cli/src/commands/env/orphan-volumes.js +153 -0
  154. package/lib/cli/src/commands/env/refresh-kubeconfig.d.ts +6 -0
  155. package/lib/cli/src/commands/env/refresh-kubeconfig.js +66 -0
  156. package/lib/cli/src/commands/env/repair-ssh-ca.d.ts +11 -0
  157. package/lib/cli/src/commands/env/repair-ssh-ca.js +137 -0
  158. package/lib/cli/src/commands/env/restart.d.ts +10 -0
  159. package/lib/cli/src/commands/env/restart.js +187 -0
  160. package/lib/cli/src/commands/env/scale-master.d.ts +11 -0
  161. package/lib/cli/src/commands/env/scale-master.js +160 -0
  162. package/lib/cli/src/commands/env/scale-node.d.ts +14 -0
  163. package/lib/cli/src/commands/env/scale-node.js +139 -0
  164. package/lib/cli/src/commands/env/status.d.ts +10 -0
  165. package/lib/cli/src/commands/env/status.js +182 -0
  166. package/lib/cli/src/commands/env/stop.d.ts +6 -0
  167. package/lib/cli/src/commands/env/stop.js +147 -0
  168. package/lib/cli/src/commands/env/storage-expand.d.ts +10 -0
  169. package/lib/cli/src/commands/env/storage-expand.js +124 -0
  170. package/lib/cli/src/commands/env/storage.d.ts +8 -0
  171. package/lib/cli/src/commands/env/storage.js +92 -0
  172. package/lib/cli/src/commands/env/sync.d.ts +17 -0
  173. package/lib/cli/src/commands/env/sync.js +225 -0
  174. package/lib/cli/src/commands/env/uncordon.d.ts +9 -0
  175. package/lib/cli/src/commands/env/uncordon.js +73 -0
  176. package/lib/cli/src/commands/env/update-firewall.d.ts +9 -0
  177. package/lib/cli/src/commands/env/update-firewall.js +185 -0
  178. package/lib/cli/src/commands/integration/connect.d.ts +13 -0
  179. package/lib/cli/src/commands/integration/connect.js +161 -0
  180. package/lib/cli/src/commands/integration/ghcr-pat/revoke.d.ts +9 -0
  181. package/lib/cli/src/commands/integration/ghcr-pat/revoke.js +61 -0
  182. package/lib/cli/src/commands/integration/ghcr-pat/set.d.ts +12 -0
  183. package/lib/cli/src/commands/integration/ghcr-pat/set.js +141 -0
  184. package/lib/cli/src/commands/integration/ghcr-pat/status.d.ts +6 -0
  185. package/lib/cli/src/commands/integration/ghcr-pat/status.js +69 -0
  186. package/lib/cli/src/commands/integration/installations.d.ts +6 -0
  187. package/lib/cli/src/commands/integration/installations.js +45 -0
  188. package/lib/cli/src/commands/integration/list.d.ts +8 -0
  189. package/lib/cli/src/commands/integration/list.js +67 -0
  190. package/lib/cli/src/commands/integration/remove-installation.d.ts +12 -0
  191. package/lib/cli/src/commands/integration/remove-installation.js +71 -0
  192. package/lib/cli/src/commands/integration/setup-github-app.d.ts +10 -0
  193. package/lib/cli/src/commands/integration/setup-github-app.js +162 -0
  194. package/lib/cli/src/commands/node/add.d.ts +11 -0
  195. package/lib/cli/src/commands/node/add.js +103 -0
  196. package/lib/cli/src/commands/node/list.d.ts +11 -0
  197. package/lib/cli/src/commands/node/list.js +83 -0
  198. package/lib/cli/src/commands/node/remove.d.ts +16 -0
  199. package/lib/cli/src/commands/node/remove.js +161 -0
  200. package/lib/cli/src/commands/reconcile.d.ts +19 -0
  201. package/lib/cli/src/commands/reconcile.js +171 -0
  202. package/lib/cli/src/commands/repo/connect.d.ts +12 -0
  203. package/lib/cli/src/commands/repo/connect.js +133 -0
  204. package/lib/cli/src/commands/repo/disconnect.d.ts +12 -0
  205. package/lib/cli/src/commands/repo/disconnect.js +73 -0
  206. package/lib/cli/src/commands/repo/list.d.ts +9 -0
  207. package/lib/cli/src/commands/repo/list.js +66 -0
  208. package/lib/cli/src/commands/server-types/list.d.ts +12 -0
  209. package/lib/cli/src/commands/server-types/list.js +205 -0
  210. package/lib/cli/src/commands/ssh.d.ts +9 -0
  211. package/lib/cli/src/commands/ssh.js +94 -0
  212. package/lib/cli/src/commands/standalone/install.d.ts +27 -0
  213. package/lib/cli/src/commands/standalone/install.js +330 -0
  214. package/lib/cli/src/commands/template/use.d.ts +16 -0
  215. package/lib/cli/src/commands/template/use.js +111 -0
  216. package/lib/cli/src/commands/update.d.ts +6 -0
  217. package/lib/cli/src/commands/update.js +87 -0
  218. package/lib/cli/src/config/bootstrap.config.d.ts +37 -0
  219. package/lib/cli/src/config/bootstrap.config.js +33 -0
  220. package/lib/cli/src/config/defaults.d.ts +46 -0
  221. package/lib/cli/src/config/defaults.js +79 -0
  222. package/lib/cli/src/config/key-router.d.ts +22 -0
  223. package/lib/cli/src/config/key-router.js +45 -0
  224. package/lib/cli/src/config/preferences-echo.d.ts +9 -0
  225. package/lib/cli/src/config/preferences-echo.js +61 -0
  226. package/lib/cli/src/config/preferences-resolver.d.ts +43 -0
  227. package/lib/cli/src/config/preferences-resolver.js +100 -0
  228. package/lib/cli/src/config/preferences-schema.d.ts +32 -0
  229. package/lib/cli/src/config/preferences-schema.js +53 -0
  230. package/lib/cli/src/hooks/command_not_found.d.ts +3 -0
  231. package/lib/cli/src/hooks/command_not_found.js +44 -0
  232. package/lib/cli/src/lib/api-client.d.ts +58 -0
  233. package/lib/cli/src/lib/api-client.js +162 -0
  234. package/lib/cli/src/lib/backup-client.d.ts +131 -0
  235. package/lib/cli/src/lib/backup-client.js +78 -0
  236. package/lib/cli/src/lib/browser-callback.d.ts +3 -0
  237. package/lib/cli/src/lib/browser-callback.js +83 -0
  238. package/lib/cli/src/lib/byos-precheck.d.ts +29 -0
  239. package/lib/cli/src/lib/byos-precheck.js +162 -0
  240. package/lib/cli/src/lib/ca-utils.d.ts +13 -0
  241. package/lib/cli/src/lib/ca-utils.js +72 -0
  242. package/lib/cli/src/lib/cli-credential-provider.service.d.ts +31 -0
  243. package/lib/cli/src/lib/cli-credential-provider.service.js +86 -0
  244. package/lib/cli/src/lib/config-storage.d.ts +128 -0
  245. package/lib/cli/src/lib/config-storage.js +349 -0
  246. package/lib/cli/src/lib/config.d.ts +23 -0
  247. package/lib/cli/src/lib/config.js +113 -0
  248. package/lib/cli/src/lib/context-banner.d.ts +12 -0
  249. package/lib/cli/src/lib/context-banner.js +25 -0
  250. package/lib/cli/src/lib/format-bytes.d.ts +1 -0
  251. package/lib/cli/src/lib/format-bytes.js +18 -0
  252. package/lib/cli/src/lib/framework-detector.d.ts +12 -0
  253. package/lib/cli/src/lib/framework-detector.js +216 -0
  254. package/lib/cli/src/lib/framework-postchecks.d.ts +11 -0
  255. package/lib/cli/src/lib/framework-postchecks.js +152 -0
  256. package/lib/cli/src/lib/nest-app.d.ts +17 -0
  257. package/lib/cli/src/lib/nest-app.js +69 -0
  258. package/lib/cli/src/lib/nip-base-domain.util.d.ts +8 -0
  259. package/lib/cli/src/lib/nip-base-domain.util.js +17 -0
  260. package/lib/cli/src/lib/profile-manager.d.ts +56 -0
  261. package/lib/cli/src/lib/profile-manager.js +207 -0
  262. package/lib/cli/src/lib/prompts.d.ts +67 -0
  263. package/lib/cli/src/lib/prompts.js +475 -0
  264. package/lib/cli/src/lib/provider-credential-schemas.d.ts +29 -0
  265. package/lib/cli/src/lib/provider-credential-schemas.js +48 -0
  266. package/lib/cli/src/lib/repositories/cli-cluster.repository.d.ts +56 -0
  267. package/lib/cli/src/lib/repositories/cli-cluster.repository.js +216 -0
  268. package/lib/cli/src/lib/repositories/cli-firewall.repository.d.ts +13 -0
  269. package/lib/cli/src/lib/repositories/cli-firewall.repository.js +147 -0
  270. package/lib/cli/src/lib/repositories/cli-node.repository.d.ts +26 -0
  271. package/lib/cli/src/lib/repositories/cli-node.repository.js +164 -0
  272. package/lib/cli/src/lib/repositories/cli-operation.repository.d.ts +57 -0
  273. package/lib/cli/src/lib/repositories/cli-operation.repository.js +226 -0
  274. package/lib/cli/src/lib/repositories/cli-vnet.repository.d.ts +22 -0
  275. package/lib/cli/src/lib/repositories/cli-vnet.repository.js +175 -0
  276. package/lib/cli/src/lib/repositories/index.d.ts +5 -0
  277. package/lib/cli/src/lib/repositories/index.js +21 -0
  278. package/lib/cli/src/lib/resolve-cluster.d.ts +16 -0
  279. package/lib/cli/src/lib/resolve-cluster.js +34 -0
  280. package/lib/cli/src/lib/scaleway-validator.d.ts +5 -0
  281. package/lib/cli/src/lib/scaleway-validator.js +87 -0
  282. package/lib/cli/src/lib/server-utils.d.ts +8 -0
  283. package/lib/cli/src/lib/server-utils.js +19 -0
  284. package/lib/cli/src/lib/services/cli-app.service.d.ts +294 -0
  285. package/lib/cli/src/lib/services/cli-app.service.js +162 -0
  286. package/lib/cli/src/lib/services/cli-node.service.d.ts +43 -0
  287. package/lib/cli/src/lib/services/cli-node.service.js +34 -0
  288. package/lib/cli/src/lib/services/provider-sync.service.d.ts +90 -0
  289. package/lib/cli/src/lib/services/provider-sync.service.js +178 -0
  290. package/lib/cli/src/lib/services/reconciliation.service.d.ts +40 -0
  291. package/lib/cli/src/lib/services/reconciliation.service.js +119 -0
  292. package/lib/cli/src/lib/services/vnet-provisioning.service.d.ts +37 -0
  293. package/lib/cli/src/lib/services/vnet-provisioning.service.js +164 -0
  294. package/lib/cli/src/lib/ssh-key.d.ts +23 -0
  295. package/lib/cli/src/lib/ssh-key.js +126 -0
  296. package/lib/cli/src/lib/template-fetcher.d.ts +25 -0
  297. package/lib/cli/src/lib/template-fetcher.js +48 -0
  298. package/lib/cli/src/lib/templates/firewall-rules.d.ts +8 -0
  299. package/lib/cli/src/lib/templates/firewall-rules.js +17 -0
  300. package/lib/cli/src/lib/typeorm-shim.d.ts +12 -0
  301. package/lib/cli/src/lib/typeorm-shim.js +17 -0
  302. package/lib/cli/src/lib/utils/env-file.d.ts +2 -0
  303. package/lib/cli/src/lib/utils/env-file.js +40 -0
  304. package/lib/cli/src/lib/utils/ip-detection.d.ts +27 -0
  305. package/lib/cli/src/lib/utils/ip-detection.js +144 -0
  306. package/lib/cli/src/modules/cli-infrastructure.module.d.ts +14 -0
  307. package/lib/cli/src/modules/cli-infrastructure.module.js +249 -0
  308. package/lib/cli/src/services/cli-ca.service.d.ts +62 -0
  309. package/lib/cli/src/services/cli-ca.service.js +281 -0
  310. package/lib/cli/src/services/cli-cluster-creator.service.d.ts +78 -0
  311. package/lib/cli/src/services/cli-cluster-creator.service.js +655 -0
  312. package/lib/cli/src/services/cli-clusters.service.d.ts +74 -0
  313. package/lib/cli/src/services/cli-clusters.service.js +762 -0
  314. package/lib/cli/src/services/cli-endpoint-resolver.service.d.ts +33 -0
  315. package/lib/cli/src/services/cli-endpoint-resolver.service.js +195 -0
  316. package/lib/cli/src/services/cli-k3s-script.service.d.ts +114 -0
  317. package/lib/cli/src/services/cli-k3s-script.service.js +288 -0
  318. package/lib/cli/src/services/cli-logger.service.d.ts +56 -0
  319. package/lib/cli/src/services/cli-logger.service.js +188 -0
  320. package/lib/cli/src/services/cli-observability-cluster.service.d.ts +128 -0
  321. package/lib/cli/src/services/cli-observability-cluster.service.js +525 -0
  322. package/lib/cli/src/services/cli-ssh.service.d.ts +90 -0
  323. package/lib/cli/src/services/cli-ssh.service.js +457 -0
  324. package/lib/cli/src/services/server-type-cache.service.d.ts +34 -0
  325. package/lib/cli/src/services/server-type-cache.service.js +156 -0
  326. package/lib/cli/src/services/server-type-validator.service.d.ts +80 -0
  327. package/lib/cli/src/services/server-type-validator.service.js +366 -0
  328. package/lib/cli/src/types/index.d.ts +41 -0
  329. package/lib/cli/src/types/index.js +2 -0
  330. package/lib/src/common/utils/project-root.util.d.ts +22 -0
  331. package/lib/src/common/utils/project-root.util.js +78 -0
  332. package/lib/src/modules/access/access.controller.d.ts +30 -0
  333. package/lib/src/modules/access/access.controller.js +336 -0
  334. package/lib/src/modules/access/access.module.d.ts +2 -0
  335. package/lib/src/modules/access/access.module.js +92 -0
  336. package/lib/src/modules/access/controllers/ca.controller.d.ts +22 -0
  337. package/lib/src/modules/access/controllers/ca.controller.js +242 -0
  338. package/lib/src/modules/access/dto/api-token.dto.d.ts +11 -0
  339. package/lib/src/modules/access/dto/api-token.dto.js +74 -0
  340. package/lib/src/modules/access/dto/bearer-token.dto.d.ts +7 -0
  341. package/lib/src/modules/access/dto/bearer-token.dto.js +36 -0
  342. package/lib/src/modules/access/dto/ca-public-key.dto.d.ts +7 -0
  343. package/lib/src/modules/access/dto/ca-public-key.dto.js +52 -0
  344. package/lib/src/modules/access/dto/create-api-token.dto.d.ts +7 -0
  345. package/lib/src/modules/access/dto/create-api-token.dto.js +64 -0
  346. package/lib/src/modules/access/dto/create-bearer-token.dto.d.ts +9 -0
  347. package/lib/src/modules/access/dto/create-bearer-token.dto.js +58 -0
  348. package/lib/src/modules/access/dto/create-ssh-key.dto.d.ts +7 -0
  349. package/lib/src/modules/access/dto/create-ssh-key.dto.js +61 -0
  350. package/lib/src/modules/access/dto/refresh-token.dto.d.ts +7 -0
  351. package/lib/src/modules/access/dto/refresh-token.dto.js +46 -0
  352. package/lib/src/modules/access/dto/register-ca.dto.d.ts +16 -0
  353. package/lib/src/modules/access/dto/register-ca.dto.js +111 -0
  354. package/lib/src/modules/access/dto/ssh-key.dto.d.ts +20 -0
  355. package/lib/src/modules/access/dto/ssh-key.dto.js +124 -0
  356. package/lib/src/modules/access/dto/update-ssh-key.dto.d.ts +7 -0
  357. package/lib/src/modules/access/dto/update-ssh-key.dto.js +73 -0
  358. package/lib/src/modules/access/entities/api-token.entity.d.ts +30 -0
  359. package/lib/src/modules/access/entities/api-token.entity.js +87 -0
  360. package/lib/src/modules/access/entities/ca-keypair.entity.d.ts +13 -0
  361. package/lib/src/modules/access/entities/ca-keypair.entity.js +63 -0
  362. package/lib/src/modules/access/entities/credentials.entity.d.ts +18 -0
  363. package/lib/src/modules/access/entities/credentials.entity.js +87 -0
  364. package/lib/src/modules/access/entities/ssh-key.entity.d.ts +15 -0
  365. package/lib/src/modules/access/entities/ssh-key.entity.js +81 -0
  366. package/lib/src/modules/access/enums/credential-purpose.enum.d.ts +4 -0
  367. package/lib/src/modules/access/enums/credential-purpose.enum.js +8 -0
  368. package/lib/src/modules/access/interfaces/access.repository.d.ts +11 -0
  369. package/lib/src/modules/access/interfaces/access.repository.js +2 -0
  370. package/lib/src/modules/access/interfaces/ssh-key.interface.d.ts +26 -0
  371. package/lib/src/modules/access/interfaces/ssh-key.interface.js +2 -0
  372. package/lib/src/modules/access/mapper/api-token.mapper.d.ts +6 -0
  373. package/lib/src/modules/access/mapper/api-token.mapper.js +21 -0
  374. package/lib/src/modules/access/mapper/ssh-key.mapper.d.ts +6 -0
  375. package/lib/src/modules/access/mapper/ssh-key.mapper.js +25 -0
  376. package/lib/src/modules/access/providers/contabo-ssh-provider.service.d.ts +13 -0
  377. package/lib/src/modules/access/providers/contabo-ssh-provider.service.js +40 -0
  378. package/lib/src/modules/access/providers/hetzner-ssh-provider.service.d.ts +17 -0
  379. package/lib/src/modules/access/providers/hetzner-ssh-provider.service.js +95 -0
  380. package/lib/src/modules/access/providers/interfaces/ssh-provider.interface.d.ts +8 -0
  381. package/lib/src/modules/access/providers/interfaces/ssh-provider.interface.js +3 -0
  382. package/lib/src/modules/access/providers/ssh-provider.factory.d.ts +13 -0
  383. package/lib/src/modules/access/providers/ssh-provider.factory.js +44 -0
  384. package/lib/src/modules/access/repositories/api-token.repository.d.ts +24 -0
  385. package/lib/src/modules/access/repositories/api-token.repository.js +99 -0
  386. package/lib/src/modules/access/repositories/default-access.repository.d.ts +16 -0
  387. package/lib/src/modules/access/repositories/default-access.repository.js +121 -0
  388. package/lib/src/modules/access/repositories/provider-credentials.repository.d.ts +17 -0
  389. package/lib/src/modules/access/repositories/provider-credentials.repository.js +106 -0
  390. package/lib/src/modules/access/services/access.service.d.ts +180 -0
  391. package/lib/src/modules/access/services/access.service.js +732 -0
  392. package/lib/src/modules/access/services/bearerToken.service.d.ts +15 -0
  393. package/lib/src/modules/access/services/bearerToken.service.js +107 -0
  394. package/lib/src/modules/access/services/ca-manager.service.d.ts +48 -0
  395. package/lib/src/modules/access/services/ca-manager.service.js +293 -0
  396. package/lib/src/modules/access/services/certificate-signer.service.d.ts +36 -0
  397. package/lib/src/modules/access/services/certificate-signer.service.js +155 -0
  398. package/lib/src/modules/access/services/key-storage.service.d.ts +17 -0
  399. package/lib/src/modules/access/services/key-storage.service.js +133 -0
  400. package/lib/src/modules/access/services/ssh-key-generator.service.d.ts +6 -0
  401. package/lib/src/modules/access/services/ssh-key-generator.service.js +51 -0
  402. package/lib/src/modules/app-builds/entities/app-build.entity.d.ts +38 -0
  403. package/lib/src/modules/app-builds/entities/app-build.entity.js +168 -0
  404. package/lib/src/modules/app-builds/enums/app-build-status.enum.d.ts +10 -0
  405. package/lib/src/modules/app-builds/enums/app-build-status.enum.js +14 -0
  406. package/lib/src/modules/app-builds/enums/build-provider.enum.d.ts +6 -0
  407. package/lib/src/modules/app-builds/enums/build-provider.enum.js +10 -0
  408. package/lib/src/modules/app-builds/services/build-job.service.d.ts +178 -0
  409. package/lib/src/modules/app-builds/services/build-job.service.js +1057 -0
  410. package/lib/src/modules/applications/entities/app-resource.entity.d.ts +24 -0
  411. package/lib/src/modules/applications/entities/app-resource.entity.js +117 -0
  412. package/lib/src/modules/applications/entities/app-revision.entity.d.ts +29 -0
  413. package/lib/src/modules/applications/entities/app-revision.entity.js +133 -0
  414. package/lib/src/modules/applications/entities/application.entity.d.ts +121 -0
  415. package/lib/src/modules/applications/entities/application.entity.js +279 -0
  416. package/lib/src/modules/applications/enums/app-event-type.enum.d.ts +24 -0
  417. package/lib/src/modules/applications/enums/app-event-type.enum.js +28 -0
  418. package/lib/src/modules/applications/enums/application-category.enum.d.ts +4 -0
  419. package/lib/src/modules/applications/enums/application-category.enum.js +8 -0
  420. package/lib/src/modules/applications/enums/application-exposure.enum.d.ts +4 -0
  421. package/lib/src/modules/applications/enums/application-exposure.enum.js +8 -0
  422. package/lib/src/modules/applications/enums/application-kind.enum.d.ts +6 -0
  423. package/lib/src/modules/applications/enums/application-kind.enum.js +10 -0
  424. package/lib/src/modules/applications/enums/application-resource-kind.enum.d.ts +17 -0
  425. package/lib/src/modules/applications/enums/application-resource-kind.enum.js +21 -0
  426. package/lib/src/modules/applications/enums/application-resource-status.enum.d.ts +8 -0
  427. package/lib/src/modules/applications/enums/application-resource-status.enum.js +12 -0
  428. package/lib/src/modules/applications/enums/application-source-type.enum.d.ts +6 -0
  429. package/lib/src/modules/applications/enums/application-source-type.enum.js +10 -0
  430. package/lib/src/modules/applications/enums/application-status.enum.d.ts +20 -0
  431. package/lib/src/modules/applications/enums/application-status.enum.js +24 -0
  432. package/lib/src/modules/applications/interfaces/source-config.interface.d.ts +132 -0
  433. package/lib/src/modules/applications/interfaces/source-config.interface.js +2 -0
  434. package/lib/src/modules/auth/decorators/admin.decorator.d.ts +2 -0
  435. package/lib/src/modules/auth/decorators/admin.decorator.js +7 -0
  436. package/lib/src/modules/auth/entities/user.entity.d.ts +19 -0
  437. package/lib/src/modules/auth/entities/user.entity.js +78 -0
  438. package/lib/src/modules/auth/guards/admin.guard.d.ts +7 -0
  439. package/lib/src/modules/auth/guards/admin.guard.js +50 -0
  440. package/lib/src/modules/auth/interfaces/authenticated-user.interface.d.ts +12 -0
  441. package/lib/src/modules/auth/interfaces/authenticated-user.interface.js +2 -0
  442. package/lib/src/modules/common/cache/cache.service.d.ts +77 -0
  443. package/lib/src/modules/common/cache/cache.service.js +232 -0
  444. package/lib/src/modules/common/cache/cache.tokens.d.ts +1 -0
  445. package/lib/src/modules/common/cache/cache.tokens.js +4 -0
  446. package/lib/src/modules/common/cache/enums/cache-category.enum.d.ts +33 -0
  447. package/lib/src/modules/common/cache/enums/cache-category.enum.js +42 -0
  448. package/lib/src/modules/common/common.module.d.ts +2 -0
  449. package/lib/src/modules/common/common.module.js +20 -0
  450. package/lib/src/modules/common/dto/async-operation-response.dto.d.ts +19 -0
  451. package/lib/src/modules/common/dto/async-operation-response.dto.js +65 -0
  452. package/lib/src/modules/common/dto/index.d.ts +1 -0
  453. package/lib/src/modules/common/dto/index.js +17 -0
  454. package/lib/src/modules/common/services/label.service.d.ts +70 -0
  455. package/lib/src/modules/common/services/label.service.js +128 -0
  456. package/lib/src/modules/dns/entities/app-endpoint.entity.d.ts +57 -0
  457. package/lib/src/modules/dns/entities/app-endpoint.entity.js +205 -0
  458. package/lib/src/modules/dns/entities/cluster-dns-zone.entity.d.ts +21 -0
  459. package/lib/src/modules/dns/entities/cluster-dns-zone.entity.js +88 -0
  460. package/lib/src/modules/dns/entities/dns-zone.entity.d.ts +12 -0
  461. package/lib/src/modules/dns/entities/dns-zone.entity.js +53 -0
  462. package/lib/src/modules/dns/entities/san-certificate.entity.d.ts +29 -0
  463. package/lib/src/modules/dns/entities/san-certificate.entity.js +132 -0
  464. package/lib/src/modules/dns/entities/wildcard-certificate.entity.d.ts +26 -0
  465. package/lib/src/modules/dns/entities/wildcard-certificate.entity.js +111 -0
  466. package/lib/src/modules/dns/enums/cert-challenge.enum.d.ts +4 -0
  467. package/lib/src/modules/dns/enums/cert-challenge.enum.js +8 -0
  468. package/lib/src/modules/dns/enums/endpoint-type.enum.d.ts +4 -0
  469. package/lib/src/modules/dns/enums/endpoint-type.enum.js +8 -0
  470. package/lib/src/modules/dns/enums/hostname-mode.enum.d.ts +4 -0
  471. package/lib/src/modules/dns/enums/hostname-mode.enum.js +8 -0
  472. package/lib/src/modules/dns/services/cluster-dns-cleanup.service.d.ts +12 -0
  473. package/lib/src/modules/dns/services/cluster-dns-cleanup.service.js +79 -0
  474. package/lib/src/modules/dns/utils/nip-hostname.util.d.ts +12 -0
  475. package/lib/src/modules/dns/utils/nip-hostname.util.js +27 -0
  476. package/lib/src/modules/dns/utils/nip-token.util.d.ts +2 -0
  477. package/lib/src/modules/dns/utils/nip-token.util.js +94 -0
  478. package/lib/src/modules/frameworks/framework-core/enums/build-stage.enum.d.ts +21 -0
  479. package/lib/src/modules/frameworks/framework-core/enums/build-stage.enum.js +29 -0
  480. package/lib/src/modules/frameworks/framework-core/enums/deploy-strategy.enum.d.ts +22 -0
  481. package/lib/src/modules/frameworks/framework-core/enums/deploy-strategy.enum.js +26 -0
  482. package/lib/src/modules/frameworks/framework-core/enums/framework-type.enum.d.ts +32 -0
  483. package/lib/src/modules/frameworks/framework-core/enums/framework-type.enum.js +47 -0
  484. package/lib/src/modules/grafana/services/grafana-config.service.d.ts +43 -0
  485. package/lib/src/modules/grafana/services/grafana-config.service.js +177 -0
  486. package/lib/src/modules/grafana/services/grafana-datasource.service.d.ts +70 -0
  487. package/lib/src/modules/grafana/services/grafana-datasource.service.js +333 -0
  488. package/lib/src/modules/infrastructure/clusters/clusters.service.d.ts +126 -0
  489. package/lib/src/modules/infrastructure/clusters/clusters.service.js +265 -0
  490. package/lib/src/modules/infrastructure/clusters/constants/storage-conventions.d.ts +60 -0
  491. package/lib/src/modules/infrastructure/clusters/constants/storage-conventions.js +64 -0
  492. package/lib/src/modules/infrastructure/clusters/dto/build-resources.dto.d.ts +19 -0
  493. package/lib/src/modules/infrastructure/clusters/dto/build-resources.dto.js +69 -0
  494. package/lib/src/modules/infrastructure/clusters/dto/cluster-capacity-plan.dto.d.ts +36 -0
  495. package/lib/src/modules/infrastructure/clusters/dto/cluster-capacity-plan.dto.js +149 -0
  496. package/lib/src/modules/infrastructure/clusters/dto/cluster-power-management.dto.d.ts +51 -0
  497. package/lib/src/modules/infrastructure/clusters/dto/cluster-power-management.dto.js +222 -0
  498. package/lib/src/modules/infrastructure/clusters/dto/cluster-response.dto.d.ts +42 -0
  499. package/lib/src/modules/infrastructure/clusters/dto/cluster-response.dto.js +238 -0
  500. package/lib/src/modules/infrastructure/clusters/dto/cluster-storage.dto.d.ts +35 -0
  501. package/lib/src/modules/infrastructure/clusters/dto/cluster-storage.dto.js +122 -0
  502. package/lib/src/modules/infrastructure/clusters/dto/create-cluster.dto.d.ts +43 -0
  503. package/lib/src/modules/infrastructure/clusters/dto/create-cluster.dto.js +334 -0
  504. package/lib/src/modules/infrastructure/clusters/dto/register-cluster.dto.d.ts +30 -0
  505. package/lib/src/modules/infrastructure/clusters/dto/register-cluster.dto.js +190 -0
  506. package/lib/src/modules/infrastructure/clusters/dto/resource-availability.dto.d.ts +15 -0
  507. package/lib/src/modules/infrastructure/clusters/dto/resource-availability.dto.js +91 -0
  508. package/lib/src/modules/infrastructure/clusters/entities/cluster-node.entity.d.ts +28 -0
  509. package/lib/src/modules/infrastructure/clusters/entities/cluster-node.entity.js +104 -0
  510. package/lib/src/modules/infrastructure/clusters/entities/cluster.entity.d.ts +64 -0
  511. package/lib/src/modules/infrastructure/clusters/entities/cluster.entity.js +199 -0
  512. package/lib/src/modules/infrastructure/clusters/entities/node-billable-interval.entity.d.ts +17 -0
  513. package/lib/src/modules/infrastructure/clusters/entities/node-billable-interval.entity.js +86 -0
  514. package/lib/src/modules/infrastructure/clusters/entities/volume-billable-interval.entity.d.ts +18 -0
  515. package/lib/src/modules/infrastructure/clusters/entities/volume-billable-interval.entity.js +79 -0
  516. package/lib/src/modules/infrastructure/clusters/services/billing-intervals.service.d.ts +48 -0
  517. package/lib/src/modules/infrastructure/clusters/services/billing-intervals.service.js +159 -0
  518. package/lib/src/modules/infrastructure/clusters/services/cluster-capacity.service.d.ts +23 -0
  519. package/lib/src/modules/infrastructure/clusters/services/cluster-capacity.service.js +198 -0
  520. package/lib/src/modules/infrastructure/clusters/services/cluster-creation.service.d.ts +25 -0
  521. package/lib/src/modules/infrastructure/clusters/services/cluster-creation.service.js +192 -0
  522. package/lib/src/modules/infrastructure/clusters/services/cluster-deletion.service.d.ts +36 -0
  523. package/lib/src/modules/infrastructure/clusters/services/cluster-deletion.service.js +159 -0
  524. package/lib/src/modules/infrastructure/clusters/services/cluster-firewall-integration.service.d.ts +25 -0
  525. package/lib/src/modules/infrastructure/clusters/services/cluster-firewall-integration.service.js +90 -0
  526. package/lib/src/modules/infrastructure/clusters/services/cluster-mapper.service.d.ts +15 -0
  527. package/lib/src/modules/infrastructure/clusters/services/cluster-mapper.service.js +63 -0
  528. package/lib/src/modules/infrastructure/clusters/services/cluster-node-scaling.service.d.ts +78 -0
  529. package/lib/src/modules/infrastructure/clusters/services/cluster-node-scaling.service.js +644 -0
  530. package/lib/src/modules/infrastructure/clusters/services/cluster-operations.service.d.ts +37 -0
  531. package/lib/src/modules/infrastructure/clusters/services/cluster-operations.service.js +244 -0
  532. package/lib/src/modules/infrastructure/clusters/services/cluster-power-management.service.d.ts +68 -0
  533. package/lib/src/modules/infrastructure/clusters/services/cluster-power-management.service.js +716 -0
  534. package/lib/src/modules/infrastructure/clusters/services/cluster-storage.service.d.ts +15 -0
  535. package/lib/src/modules/infrastructure/clusters/services/cluster-storage.service.js +179 -0
  536. package/lib/src/modules/infrastructure/clusters/services/cluster-validation.service.d.ts +29 -0
  537. package/lib/src/modules/infrastructure/clusters/services/cluster-validation.service.js +100 -0
  538. package/lib/src/modules/infrastructure/firewalls/dto/cluster-firewall.dto.d.ts +62 -0
  539. package/lib/src/modules/infrastructure/firewalls/dto/cluster-firewall.dto.js +252 -0
  540. package/lib/src/modules/infrastructure/firewalls/entities/cluster-firewall.entity.d.ts +20 -0
  541. package/lib/src/modules/infrastructure/firewalls/entities/cluster-firewall.entity.js +83 -0
  542. package/lib/src/modules/infrastructure/firewalls/services/firewall-desired-state.service.d.ts +73 -0
  543. package/lib/src/modules/infrastructure/firewalls/services/firewall-desired-state.service.js +329 -0
  544. package/lib/src/modules/infrastructure/firewalls/services/firewall-reconciliation.service.d.ts +43 -0
  545. package/lib/src/modules/infrastructure/firewalls/services/firewall-reconciliation.service.js +212 -0
  546. package/lib/src/modules/infrastructure/firewalls/templates/firewall-rules.template.d.ts +54 -0
  547. package/lib/src/modules/infrastructure/firewalls/templates/firewall-rules.template.js +167 -0
  548. package/lib/src/modules/infrastructure/operations/helpers/operation-steps.helper.d.ts +34 -0
  549. package/lib/src/modules/infrastructure/operations/helpers/operation-steps.helper.js +401 -0
  550. package/lib/src/modules/infrastructure/servers/dto/create-server.dto.d.ts +40 -0
  551. package/lib/src/modules/infrastructure/servers/dto/create-server.dto.js +157 -0
  552. package/lib/src/modules/infrastructure/servers/dto/delete-server.dto.d.ts +17 -0
  553. package/lib/src/modules/infrastructure/servers/dto/delete-server.dto.js +85 -0
  554. package/lib/src/modules/infrastructure/servers/dto/server-response.dto.d.ts +29 -0
  555. package/lib/src/modules/infrastructure/servers/dto/server-response.dto.js +147 -0
  556. package/lib/src/modules/infrastructure/servers/entities/infrastructure-operations.entity.d.ts +266 -0
  557. package/lib/src/modules/infrastructure/servers/entities/infrastructure-operations.entity.js +348 -0
  558. package/lib/src/modules/infrastructure/shared/enums/reconciliation-status.enum.d.ts +7 -0
  559. package/lib/src/modules/infrastructure/shared/enums/reconciliation-status.enum.js +11 -0
  560. package/lib/src/modules/infrastructure/shared/services/kubernetes.service.d.ts +304 -0
  561. package/lib/src/modules/infrastructure/shared/services/kubernetes.service.js +1164 -0
  562. package/lib/src/modules/infrastructure/shared/services/label.service.d.ts +97 -0
  563. package/lib/src/modules/infrastructure/shared/services/label.service.js +189 -0
  564. package/lib/src/modules/infrastructure/shared/shared-infrastructure.module.d.ts +2 -0
  565. package/lib/src/modules/infrastructure/shared/shared-infrastructure.module.js +24 -0
  566. package/lib/src/modules/infrastructure/vnets/entities/vnet-route.entity.d.ts +10 -0
  567. package/lib/src/modules/infrastructure/vnets/entities/vnet-route.entity.js +51 -0
  568. package/lib/src/modules/infrastructure/vnets/entities/vnet-subnet.entity.d.ts +20 -0
  569. package/lib/src/modules/infrastructure/vnets/entities/vnet-subnet.entity.js +77 -0
  570. package/lib/src/modules/infrastructure/vnets/entities/vnet.entity.d.ts +28 -0
  571. package/lib/src/modules/infrastructure/vnets/entities/vnet.entity.js +88 -0
  572. package/lib/src/modules/instances/entities/instance-status.enum.d.ts +12 -0
  573. package/lib/src/modules/instances/entities/instance-status.enum.js +16 -0
  574. package/lib/src/modules/instances/entities/instance-type.enum.d.ts +6 -0
  575. package/lib/src/modules/instances/entities/instance-type.enum.js +10 -0
  576. package/lib/src/modules/instances/entities/instance.entity.d.ts +41 -0
  577. package/lib/src/modules/instances/entities/instance.entity.js +126 -0
  578. package/lib/src/modules/management/dto/configure-provider.dto.d.ts +8 -0
  579. package/lib/src/modules/management/dto/configure-provider.dto.js +51 -0
  580. package/lib/src/modules/management/dto/credentials.dto.d.ts +15 -0
  581. package/lib/src/modules/management/dto/credentials.dto.js +114 -0
  582. package/lib/src/modules/management/dto/health-status.dto.d.ts +12 -0
  583. package/lib/src/modules/management/dto/health-status.dto.js +40 -0
  584. package/lib/src/modules/management/dto/node-size-option.dto.d.ts +37 -0
  585. package/lib/src/modules/management/dto/node-size-option.dto.js +178 -0
  586. package/lib/src/modules/management/dto/pricing-query.dto.d.ts +5 -0
  587. package/lib/src/modules/management/dto/pricing-query.dto.js +36 -0
  588. package/lib/src/modules/management/dto/pricing-response.dto.d.ts +21 -0
  589. package/lib/src/modules/management/dto/pricing-response.dto.js +80 -0
  590. package/lib/src/modules/management/dto/provider-configuration.dto.d.ts +23 -0
  591. package/lib/src/modules/management/dto/provider-configuration.dto.js +72 -0
  592. package/lib/src/modules/management/dto/provider-filters.dto.d.ts +7 -0
  593. package/lib/src/modules/management/dto/provider-filters.dto.js +45 -0
  594. package/lib/src/modules/management/dto/validation-result.dto.d.ts +16 -0
  595. package/lib/src/modules/management/dto/validation-result.dto.js +35 -0
  596. package/lib/src/modules/management/entities/credentials.entity.d.ts +21 -0
  597. package/lib/src/modules/management/entities/credentials.entity.js +10 -0
  598. package/lib/src/modules/management/entities/provider-capabilities.entity.d.ts +85 -0
  599. package/lib/src/modules/management/entities/provider-capabilities.entity.js +2 -0
  600. package/lib/src/modules/management/entities/provider-configuration.entity.d.ts +14 -0
  601. package/lib/src/modules/management/entities/provider-configuration.entity.js +65 -0
  602. package/lib/src/modules/management/entities/provider-definition.entity.d.ts +19 -0
  603. package/lib/src/modules/management/entities/provider-definition.entity.js +2 -0
  604. package/lib/src/modules/management/entities/provider-region.entity.d.ts +11 -0
  605. package/lib/src/modules/management/entities/provider-region.entity.js +2 -0
  606. package/lib/src/modules/management/entities/provider-status.enum.d.ts +8 -0
  607. package/lib/src/modules/management/entities/provider-status.enum.js +12 -0
  608. package/lib/src/modules/management/interfaces/provider-configuration.repository.interface.d.ts +17 -0
  609. package/lib/src/modules/management/interfaces/provider-configuration.repository.interface.js +2 -0
  610. package/lib/src/modules/management/repositories/provider-configuration.repository.d.ts +21 -0
  611. package/lib/src/modules/management/repositories/provider-configuration.repository.js +89 -0
  612. package/lib/src/modules/management/services/configuration-mode.service.d.ts +20 -0
  613. package/lib/src/modules/management/services/configuration-mode.service.js +54 -0
  614. package/lib/src/modules/management/services/management.service.d.ts +72 -0
  615. package/lib/src/modules/management/services/management.service.js +546 -0
  616. package/lib/src/modules/management/services/provider-definitions.service.d.ts +26 -0
  617. package/lib/src/modules/management/services/provider-definitions.service.js +133 -0
  618. package/lib/src/modules/providers/controllers/provider-firewalls.controller.d.ts +28 -0
  619. package/lib/src/modules/providers/controllers/provider-firewalls.controller.js +277 -0
  620. package/lib/src/modules/providers/core/factories/capabilities-provider.factory.d.ts +10 -0
  621. package/lib/src/modules/providers/core/factories/capabilities-provider.factory.js +39 -0
  622. package/lib/src/modules/providers/core/factories/certificate-provider.factory.d.ts +11 -0
  623. package/lib/src/modules/providers/core/factories/certificate-provider.factory.js +58 -0
  624. package/lib/src/modules/providers/core/factories/dns-provider.factory.d.ts +12 -0
  625. package/lib/src/modules/providers/core/factories/dns-provider.factory.js +65 -0
  626. package/lib/src/modules/providers/core/factories/firewall-provider.factory.d.ts +12 -0
  627. package/lib/src/modules/providers/core/factories/firewall-provider.factory.js +61 -0
  628. package/lib/src/modules/providers/core/factories/provider.factory.d.ts +9 -0
  629. package/lib/src/modules/providers/core/factories/provider.factory.js +47 -0
  630. package/lib/src/modules/providers/core/factories/vm-backup-provider.factory.d.ts +12 -0
  631. package/lib/src/modules/providers/core/factories/vm-backup-provider.factory.js +56 -0
  632. package/lib/src/modules/providers/core/factories/volume-export.factory.d.ts +12 -0
  633. package/lib/src/modules/providers/core/factories/volume-export.factory.js +56 -0
  634. package/lib/src/modules/providers/core/interfaces/certificate-provider.interface.d.ts +1 -0
  635. package/lib/src/modules/providers/core/interfaces/certificate-provider.interface.js +17 -0
  636. package/lib/src/modules/providers/core/interfaces/cloud-provider.interface.d.ts +1 -0
  637. package/lib/src/modules/providers/core/interfaces/cloud-provider.interface.js +17 -0
  638. package/lib/src/modules/providers/core/interfaces/dns-provider.interface.d.ts +1 -0
  639. package/lib/src/modules/providers/core/interfaces/dns-provider.interface.js +17 -0
  640. package/lib/src/modules/providers/core/interfaces/firewall-provider.interface.d.ts +1 -0
  641. package/lib/src/modules/providers/core/interfaces/firewall-provider.interface.js +17 -0
  642. package/lib/src/modules/providers/core/interfaces/provider-bootstrap-seeder.interface.d.ts +54 -0
  643. package/lib/src/modules/providers/core/interfaces/provider-bootstrap-seeder.interface.js +2 -0
  644. package/lib/src/modules/providers/core/tokens.d.ts +59 -0
  645. package/lib/src/modules/providers/core/tokens.js +19 -0
  646. package/lib/src/modules/providers/data/region-coordinates.d.ts +6 -0
  647. package/lib/src/modules/providers/data/region-coordinates.js +25 -0
  648. package/lib/src/modules/providers/dto/firewall.dto.d.ts +30 -0
  649. package/lib/src/modules/providers/dto/firewall.dto.js +105 -0
  650. package/lib/src/modules/providers/dto/node-size.dto.d.ts +46 -0
  651. package/lib/src/modules/providers/dto/node-size.dto.js +22 -0
  652. package/lib/src/modules/providers/dto/pricing.dto.d.ts +24 -0
  653. package/lib/src/modules/providers/dto/pricing.dto.js +19 -0
  654. package/lib/src/modules/providers/dto/provider-firewall-response.dto.d.ts +28 -0
  655. package/lib/src/modules/providers/dto/provider-firewall-response.dto.js +134 -0
  656. package/lib/src/modules/providers/enums/certificate-provider.enum.d.ts +4 -0
  657. package/lib/src/modules/providers/enums/certificate-provider.enum.js +8 -0
  658. package/lib/src/modules/providers/enums/cloud-provider.enum.d.ts +5 -0
  659. package/lib/src/modules/providers/enums/cloud-provider.enum.js +9 -0
  660. package/lib/src/modules/providers/enums/dns-provider.enum.d.ts +5 -0
  661. package/lib/src/modules/providers/enums/dns-provider.enum.js +9 -0
  662. package/lib/src/modules/providers/implementations/contabo/contabo-capabilities.service.d.ts +19 -0
  663. package/lib/src/modules/providers/implementations/contabo/contabo-capabilities.service.js +254 -0
  664. package/lib/src/modules/providers/implementations/contabo/contabo-provider.module.d.ts +10 -0
  665. package/lib/src/modules/providers/implementations/contabo/contabo-provider.module.js +72 -0
  666. package/lib/src/modules/providers/implementations/contabo/generated/api.d.ts +13374 -0
  667. package/lib/src/modules/providers/implementations/contabo/generated/api.js +11341 -0
  668. package/lib/src/modules/providers/implementations/contabo/generated/base.d.ts +66 -0
  669. package/lib/src/modules/providers/implementations/contabo/generated/base.js +66 -0
  670. package/lib/src/modules/providers/implementations/contabo/generated/common.d.ts +65 -0
  671. package/lib/src/modules/providers/implementations/contabo/generated/common.js +152 -0
  672. package/lib/src/modules/providers/implementations/contabo/generated/configuration.d.ts +91 -0
  673. package/lib/src/modules/providers/implementations/contabo/generated/configuration.js +50 -0
  674. package/lib/src/modules/providers/implementations/contabo/generated/index.d.ts +13 -0
  675. package/lib/src/modules/providers/implementations/contabo/generated/index.js +31 -0
  676. package/lib/src/modules/providers/implementations/hetzner/generated/api.d.ts +18419 -0
  677. package/lib/src/modules/providers/implementations/hetzner/generated/api.js +19133 -0
  678. package/lib/src/modules/providers/implementations/hetzner/generated/base.d.ts +66 -0
  679. package/lib/src/modules/providers/implementations/hetzner/generated/base.js +66 -0
  680. package/lib/src/modules/providers/implementations/hetzner/generated/common.d.ts +65 -0
  681. package/lib/src/modules/providers/implementations/hetzner/generated/common.js +152 -0
  682. package/lib/src/modules/providers/implementations/hetzner/generated/configuration.d.ts +91 -0
  683. package/lib/src/modules/providers/implementations/hetzner/generated/configuration.js +50 -0
  684. package/lib/src/modules/providers/implementations/hetzner/generated/index.d.ts +13 -0
  685. package/lib/src/modules/providers/implementations/hetzner/generated/index.js +31 -0
  686. package/lib/src/modules/providers/implementations/hetzner/hetzner-bootstrap-seeder.service.d.ts +19 -0
  687. package/lib/src/modules/providers/implementations/hetzner/hetzner-bootstrap-seeder.service.js +68 -0
  688. package/lib/src/modules/providers/implementations/hetzner/hetzner-capabilities.service.d.ts +29 -0
  689. package/lib/src/modules/providers/implementations/hetzner/hetzner-capabilities.service.js +392 -0
  690. package/lib/src/modules/providers/implementations/hetzner/hetzner-provider.module.d.ts +2 -0
  691. package/lib/src/modules/providers/implementations/hetzner/hetzner-provider.module.js +81 -0
  692. package/lib/src/modules/providers/implementations/hetzner/hetzner-volume-operations.service.d.ts +31 -0
  693. package/lib/src/modules/providers/implementations/hetzner/hetzner-volume-operations.service.js +312 -0
  694. package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage-connection.controller.d.ts +18 -0
  695. package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage-connection.controller.js +67 -0
  696. package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage-connection.service.d.ts +24 -0
  697. package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage-connection.service.js +107 -0
  698. package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.backend.d.ts +7 -0
  699. package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.backend.js +35 -0
  700. package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.module.d.ts +8 -0
  701. package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.module.js +60 -0
  702. package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.provisioner.d.ts +22 -0
  703. package/lib/src/modules/providers/implementations/hetzner/object-storage/hetzner-object-storage.provisioner.js +100 -0
  704. package/lib/src/modules/providers/implementations/hetzner/vm-backup/hetzner-vm-backup.service.d.ts +20 -0
  705. package/lib/src/modules/providers/implementations/hetzner/vm-backup/hetzner-vm-backup.service.js +118 -0
  706. package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/api.d.ts +4227 -0
  707. package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/api.js +3362 -0
  708. package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/base.d.ts +66 -0
  709. package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/base.js +66 -0
  710. package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/common.d.ts +65 -0
  711. package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/common.js +152 -0
  712. package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/configuration.d.ts +91 -0
  713. package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/configuration.js +50 -0
  714. package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/index.d.ts +13 -0
  715. package/lib/src/modules/providers/implementations/scaleway/generated/baremetal/index.js +31 -0
  716. package/lib/src/modules/providers/implementations/scaleway/generated/domain/api.d.ts +2486 -0
  717. package/lib/src/modules/providers/implementations/scaleway/generated/domain/api.js +2424 -0
  718. package/lib/src/modules/providers/implementations/scaleway/generated/domain/base.d.ts +66 -0
  719. package/lib/src/modules/providers/implementations/scaleway/generated/domain/base.js +66 -0
  720. package/lib/src/modules/providers/implementations/scaleway/generated/domain/common.d.ts +65 -0
  721. package/lib/src/modules/providers/implementations/scaleway/generated/domain/common.js +152 -0
  722. package/lib/src/modules/providers/implementations/scaleway/generated/domain/configuration.d.ts +91 -0
  723. package/lib/src/modules/providers/implementations/scaleway/generated/domain/configuration.js +50 -0
  724. package/lib/src/modules/providers/implementations/scaleway/generated/domain/index.d.ts +13 -0
  725. package/lib/src/modules/providers/implementations/scaleway/generated/domain/index.js +31 -0
  726. package/lib/src/modules/providers/implementations/scaleway/generated/iam/api.d.ts +6425 -0
  727. package/lib/src/modules/providers/implementations/scaleway/generated/iam/api.js +6925 -0
  728. package/lib/src/modules/providers/implementations/scaleway/generated/iam/base.d.ts +66 -0
  729. package/lib/src/modules/providers/implementations/scaleway/generated/iam/base.js +66 -0
  730. package/lib/src/modules/providers/implementations/scaleway/generated/iam/common.d.ts +65 -0
  731. package/lib/src/modules/providers/implementations/scaleway/generated/iam/common.js +152 -0
  732. package/lib/src/modules/providers/implementations/scaleway/generated/iam/configuration.d.ts +91 -0
  733. package/lib/src/modules/providers/implementations/scaleway/generated/iam/configuration.js +50 -0
  734. package/lib/src/modules/providers/implementations/scaleway/generated/iam/index.d.ts +13 -0
  735. package/lib/src/modules/providers/implementations/scaleway/generated/iam/index.js +31 -0
  736. package/lib/src/modules/providers/implementations/scaleway/generated/instances/api.d.ts +11187 -0
  737. package/lib/src/modules/providers/implementations/scaleway/generated/instances/api.js +9264 -0
  738. package/lib/src/modules/providers/implementations/scaleway/generated/instances/base.d.ts +66 -0
  739. package/lib/src/modules/providers/implementations/scaleway/generated/instances/base.js +66 -0
  740. package/lib/src/modules/providers/implementations/scaleway/generated/instances/common.d.ts +65 -0
  741. package/lib/src/modules/providers/implementations/scaleway/generated/instances/common.js +152 -0
  742. package/lib/src/modules/providers/implementations/scaleway/generated/instances/configuration.d.ts +91 -0
  743. package/lib/src/modules/providers/implementations/scaleway/generated/instances/configuration.js +50 -0
  744. package/lib/src/modules/providers/implementations/scaleway/generated/instances/index.d.ts +13 -0
  745. package/lib/src/modules/providers/implementations/scaleway/generated/instances/index.js +31 -0
  746. package/lib/src/modules/providers/implementations/scaleway/generated/private-network/api.d.ts +492 -0
  747. package/lib/src/modules/providers/implementations/scaleway/generated/private-network/api.js +531 -0
  748. package/lib/src/modules/providers/implementations/scaleway/generated/private-network/base.d.ts +66 -0
  749. package/lib/src/modules/providers/implementations/scaleway/generated/private-network/base.js +66 -0
  750. package/lib/src/modules/providers/implementations/scaleway/generated/private-network/common.d.ts +65 -0
  751. package/lib/src/modules/providers/implementations/scaleway/generated/private-network/common.js +152 -0
  752. package/lib/src/modules/providers/implementations/scaleway/generated/private-network/configuration.d.ts +91 -0
  753. package/lib/src/modules/providers/implementations/scaleway/generated/private-network/configuration.js +50 -0
  754. package/lib/src/modules/providers/implementations/scaleway/generated/private-network/index.d.ts +13 -0
  755. package/lib/src/modules/providers/implementations/scaleway/generated/private-network/index.js +31 -0
  756. package/lib/src/modules/providers/implementations/scaleway/generated/vpc/api.d.ts +2305 -0
  757. package/lib/src/modules/providers/implementations/scaleway/generated/vpc/api.js +2443 -0
  758. package/lib/src/modules/providers/implementations/scaleway/generated/vpc/base.d.ts +66 -0
  759. package/lib/src/modules/providers/implementations/scaleway/generated/vpc/base.js +66 -0
  760. package/lib/src/modules/providers/implementations/scaleway/generated/vpc/common.d.ts +65 -0
  761. package/lib/src/modules/providers/implementations/scaleway/generated/vpc/common.js +152 -0
  762. package/lib/src/modules/providers/implementations/scaleway/generated/vpc/configuration.d.ts +91 -0
  763. package/lib/src/modules/providers/implementations/scaleway/generated/vpc/configuration.js +50 -0
  764. package/lib/src/modules/providers/implementations/scaleway/generated/vpc/index.d.ts +13 -0
  765. package/lib/src/modules/providers/implementations/scaleway/generated/vpc/index.js +31 -0
  766. package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.backend.d.ts +8 -0
  767. package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.backend.js +49 -0
  768. package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.module.d.ts +9 -0
  769. package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.module.js +56 -0
  770. package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.provisioner.d.ts +27 -0
  771. package/lib/src/modules/providers/implementations/scaleway/object-storage/scaleway-object-storage.provisioner.js +120 -0
  772. package/lib/src/modules/providers/implementations/scaleway/scaleway-baremetal.adapter.d.ts +22 -0
  773. package/lib/src/modules/providers/implementations/scaleway/scaleway-baremetal.adapter.js +140 -0
  774. package/lib/src/modules/providers/implementations/scaleway/scaleway-bootstrap-seeder.service.d.ts +12 -0
  775. package/lib/src/modules/providers/implementations/scaleway/scaleway-bootstrap-seeder.service.js +65 -0
  776. package/lib/src/modules/providers/implementations/scaleway/scaleway-capabilities.service.d.ts +23 -0
  777. package/lib/src/modules/providers/implementations/scaleway/scaleway-capabilities.service.js +319 -0
  778. package/lib/src/modules/providers/implementations/scaleway/scaleway-dns.service.d.ts +24 -0
  779. package/lib/src/modules/providers/implementations/scaleway/scaleway-dns.service.js +189 -0
  780. package/lib/src/modules/providers/implementations/scaleway/scaleway-firewall.service.d.ts +43 -0
  781. package/lib/src/modules/providers/implementations/scaleway/scaleway-firewall.service.js +455 -0
  782. package/lib/src/modules/providers/implementations/scaleway/scaleway-iam.adapter.d.ts +32 -0
  783. package/lib/src/modules/providers/implementations/scaleway/scaleway-iam.adapter.js +108 -0
  784. package/lib/src/modules/providers/implementations/scaleway/scaleway-instances.adapter.d.ts +66 -0
  785. package/lib/src/modules/providers/implementations/scaleway/scaleway-instances.adapter.js +289 -0
  786. package/lib/src/modules/providers/implementations/scaleway/scaleway-provider.module.d.ts +17 -0
  787. package/lib/src/modules/providers/implementations/scaleway/scaleway-provider.module.js +122 -0
  788. package/lib/src/modules/providers/implementations/scaleway/scaleway-provider.service.d.ts +100 -0
  789. package/lib/src/modules/providers/implementations/scaleway/scaleway-provider.service.js +1395 -0
  790. package/lib/src/modules/providers/implementations/scaleway/scaleway-volume-operations.service.d.ts +24 -0
  791. package/lib/src/modules/providers/implementations/scaleway/scaleway-volume-operations.service.js +199 -0
  792. package/lib/src/modules/providers/implementations/scaleway/scaleway-vpc.adapter.d.ts +30 -0
  793. package/lib/src/modules/providers/implementations/scaleway/scaleway-vpc.adapter.js +180 -0
  794. package/lib/src/modules/providers/index.d.ts +17 -0
  795. package/lib/src/modules/providers/index.js +39 -0
  796. package/lib/src/modules/providers/interfaces/certificate-provider.interface.d.ts +38 -0
  797. package/lib/src/modules/providers/interfaces/certificate-provider.interface.js +11 -0
  798. package/lib/src/modules/providers/interfaces/cloud-provider.interface.d.ts +215 -0
  799. package/lib/src/modules/providers/interfaces/cloud-provider.interface.js +2 -0
  800. package/lib/src/modules/providers/interfaces/credential-provider.interface.d.ts +23 -0
  801. package/lib/src/modules/providers/interfaces/credential-provider.interface.js +2 -0
  802. package/lib/src/modules/providers/interfaces/dns-provider.interface.d.ts +55 -0
  803. package/lib/src/modules/providers/interfaces/dns-provider.interface.js +12 -0
  804. package/lib/src/modules/providers/interfaces/firewall-provider.interface.d.ts +47 -0
  805. package/lib/src/modules/providers/interfaces/firewall-provider.interface.js +2 -0
  806. package/lib/src/modules/providers/interfaces/network-provider.interface.d.ts +124 -0
  807. package/lib/src/modules/providers/interfaces/network-provider.interface.js +2 -0
  808. package/lib/src/modules/providers/interfaces/provider-capabilities.interface.d.ts +87 -0
  809. package/lib/src/modules/providers/interfaces/provider-capabilities.interface.js +2 -0
  810. package/lib/src/modules/providers/interfaces/vm-backup-provider.interface.d.ts +39 -0
  811. package/lib/src/modules/providers/interfaces/vm-backup-provider.interface.js +8 -0
  812. package/lib/src/modules/providers/interfaces/volume-export.interface.d.ts +162 -0
  813. package/lib/src/modules/providers/interfaces/volume-export.interface.js +21 -0
  814. package/lib/src/modules/providers/interfaces/volume-operations.interface.d.ts +149 -0
  815. package/lib/src/modules/providers/interfaces/volume-operations.interface.js +17 -0
  816. package/lib/src/modules/providers/mappers/node-size.mapper.d.ts +20 -0
  817. package/lib/src/modules/providers/mappers/node-size.mapper.js +75 -0
  818. package/lib/src/modules/providers/mappers/pricing.mapper.d.ts +14 -0
  819. package/lib/src/modules/providers/mappers/pricing.mapper.js +60 -0
  820. package/lib/src/modules/providers/provider-core.module.d.ts +13 -0
  821. package/lib/src/modules/providers/provider-core.module.js +59 -0
  822. package/lib/src/modules/providers/providers.module.d.ts +2 -0
  823. package/lib/src/modules/providers/providers.module.js +188 -0
  824. package/lib/src/modules/providers/services/acme-certificate.service.d.ts +38 -0
  825. package/lib/src/modules/providers/services/acme-certificate.service.js +144 -0
  826. package/lib/src/modules/providers/services/contabo-firewall.service.d.ts +11 -0
  827. package/lib/src/modules/providers/services/contabo-firewall.service.js +40 -0
  828. package/lib/src/modules/providers/services/contabo-provider.service.d.ts +48 -0
  829. package/lib/src/modules/providers/services/contabo-provider.service.js +194 -0
  830. package/lib/src/modules/providers/services/credential-provider.service.d.ts +17 -0
  831. package/lib/src/modules/providers/services/credential-provider.service.js +78 -0
  832. package/lib/src/modules/providers/services/dns-provider.factory.d.ts +5 -0
  833. package/lib/src/modules/providers/services/dns-provider.factory.js +9 -0
  834. package/lib/src/modules/providers/services/firewall-provider.factory.d.ts +5 -0
  835. package/lib/src/modules/providers/services/firewall-provider.factory.js +9 -0
  836. package/lib/src/modules/providers/services/hetzner-dns.service.d.ts +71 -0
  837. package/lib/src/modules/providers/services/hetzner-dns.service.js +565 -0
  838. package/lib/src/modules/providers/services/hetzner-firewall.service.d.ts +48 -0
  839. package/lib/src/modules/providers/services/hetzner-firewall.service.js +472 -0
  840. package/lib/src/modules/providers/services/hetzner-network.service.d.ts +84 -0
  841. package/lib/src/modules/providers/services/hetzner-network.service.js +408 -0
  842. package/lib/src/modules/providers/services/hetzner-provider.service.d.ts +213 -0
  843. package/lib/src/modules/providers/services/hetzner-provider.service.js +1159 -0
  844. package/lib/src/modules/providers/services/provider.factory.d.ts +5 -0
  845. package/lib/src/modules/providers/services/provider.factory.js +9 -0
  846. package/lib/src/modules/providers/services/volume-export.service.d.ts +50 -0
  847. package/lib/src/modules/providers/services/volume-export.service.js +650 -0
  848. package/lib/src/modules/shared/encryption/encryption.module.d.ts +2 -0
  849. package/lib/src/modules/shared/encryption/encryption.module.js +22 -0
  850. package/lib/src/modules/shared/encryption/services/encryption.service.d.ts +47 -0
  851. package/lib/src/modules/shared/encryption/services/encryption.service.js +199 -0
  852. package/lib/src/modules/storage/enums/storage-backend-provider.enum.d.ts +19 -0
  853. package/lib/src/modules/storage/enums/storage-backend-provider.enum.js +23 -0
  854. package/lib/src/modules/storage/factories/object-storage-provisioner.factory.d.ts +11 -0
  855. package/lib/src/modules/storage/factories/object-storage-provisioner.factory.js +48 -0
  856. package/lib/src/modules/storage/factories/storage-backend.factory.d.ts +12 -0
  857. package/lib/src/modules/storage/factories/storage-backend.factory.js +51 -0
  858. package/lib/src/modules/storage/implementations/generic-s3.backend.d.ts +23 -0
  859. package/lib/src/modules/storage/implementations/generic-s3.backend.js +172 -0
  860. package/lib/src/modules/storage/interfaces/backup-storage-backend.interface.d.ts +48 -0
  861. package/lib/src/modules/storage/interfaces/backup-storage-backend.interface.js +2 -0
  862. package/lib/src/modules/storage/interfaces/object-storage-provisioner.interface.d.ts +55 -0
  863. package/lib/src/modules/storage/interfaces/object-storage-provisioner.interface.js +9 -0
  864. package/lib/src/modules/storage/storage.module.d.ts +2 -0
  865. package/lib/src/modules/storage/storage.module.js +21 -0
  866. package/lib/src/modules/storage/tokens/object-storage-provisioner-registry.token.d.ts +12 -0
  867. package/lib/src/modules/storage/tokens/object-storage-provisioner-registry.token.js +8 -0
  868. package/lib/src/modules/storage/tokens/storage-backend-registry.token.d.ts +12 -0
  869. package/lib/src/modules/storage/tokens/storage-backend-registry.token.js +8 -0
  870. package/lib/src/modules/terminal/services/native-ssh-connection.service.d.ts +48 -0
  871. package/lib/src/modules/terminal/services/native-ssh-connection.service.js +282 -0
  872. package/oclif.manifest.json +5243 -0
  873. package/package.json +125 -0
@@ -0,0 +1,2443 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * VPC API
6
+ * VPC allows you to build your own **V**irtual **P**rivate **C**loud on top of Scaleway’s shared public cloud. VPC currently comprises the regional Private Networks product. Layer 2 regional Private Networks sit inside the layer 3 VPC. Private Networks allows Scaleway resources (Instances, Load Balancers, Managed Databases etc.) within a single region to be interconnected through a dedicated, private, and flexible [L2 network](https://en.wikipedia.org/wiki/Data_link_layer). You can add as many resources to your networks as you want, and add up to eight (8) different networks per resource. This allows you to run services isolated from the public internet and expose them to the rest of your infrastructure without worrying about public network filtering. (switchcolumn) <Message type=\"note\"> VPC v2 is now in **General Availability**. </Message> <Message type=\"tip\"> Check out our [IPAM API](https://www.scaleway.com/en/developers/api/ipam/) to facilitate the management of IP addresses across your different Scaleway resources. </Message> (switchcolumn) ## Concepts Refer to our [dedicated concepts page](https://www.scaleway.com/en/docs/vpc/concepts/) to find definitions of all concepts and terminology related to VPC. (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. See the [Technical information](#technical-information) section below for help choosing an Availability Zone and Region. You can find your Project ID in the [Scaleway console](https://console.scaleway.com/project/settings). </Message> ```bash export SCW_SECRET_KEY=\"<API secret key>\" export SCW_DEFAULT_REGION=\"<Scaleway region>\" export SCW_DEFAULT_ZONE=\"<Scaleway Availability Zone>\" export SCW_PROJECT_ID=\"<Scaleway Project ID>\" ``` 2. **Create a Private Network**. Run the following command to create a Private Network. You can customize the details in the payload (name, tags etc.) to your needs. ```bash curl -X POST \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" \\ -H \"Content-Type: application/json\" \\ \"https://api.scaleway.com/vpc/v2/regions/$SCW_DEFAULT_REGION/private-networks\" \\ -d \'{ \"name\": \"My new Private Network\", \"project_id\": \"\'\"$SCW_PROJECT_ID\"\'\", \"tags\": [\"test\", \"dev\"] }\' ``` <Message type=\"tip\"> Keep the `id` field of the response: it is your Private Network ID, and is useable across all Scaleway products that support Private Networks. It may be useful to you to export the Private Network ID as a new environment variable `export PN_ID=\"<Your Private Network ID>` </Message> <Message type=\"tip\"> If you create a Private Network without specifying a VPC to create it in, the behavior depends on when you created your Scaleway Project. [Find out more](https://www.scaleway.com/en/docs/vpc/concepts/#default-vpc) </Message> 3. **Attach a resource to your Private Network**. Each Scaleway product has its own API to interact with Private Networks. To attach an Instance, Managed Database, Elastic Metal server, Load Balancer or Public Gateway to your Private Network, see instructions in the documentation of the relevant product API. Here, we take the example of an Instance. Use the following call to attach an Instance to your Private Network. Ensure you replace `<Instance ID>` with the ID of your Instance, and `<Private Network ID>` with the ID of your Private Network. Note that the Instance must be in an Availability Zone that is part of the region of your Private Network. ```bash curl -X POST \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" \\ -H \"Content-Type: application/json\" \\ \"https://api.scaleway.com/instance/v1/zones/$SCW_DEFAULT_ZONE/servers/<Instance ID>/private_nics\" \\ -d \'{\"private_network_id\": \"<Private Network ID>\"}\' ``` <Message type=\"tip\"> Keep the `id` field of the response: it is your Private NIC ID. It may be useful to you to export the Private NIC ID as a new environment variable `export NIC_ID=\"<Your Private NIC ID>`. </Message> <Message type=\"tip\"> Keep the `mac_address` field of the response, as it will allow you to identify the Private NIC inside your Instance. If successful, a new network interface will appear inside your Instance, ready to be configured to transmit traffic to other Instances of the same network, with the MAC address returned by the API call. </Message> 4. **Confirm that the network interface has been plugged in**. To do this, connect to your Instance and run `dmseg`. You should see an output similar to the following: ```bash [1579004.592869] pci 0000:00:05.0: [1af4:1000] type 00 class 0x020000 [1579004.594835] pci 0000:00:05.0: reg 0x10: [io 0x0000-0x003f] [1579004.596715] pci 0000:00:05.0: reg 0x14: [mem 0x00000000-0x00000fff] [1579004.598732] pci 0000:00:05.0: reg 0x20: [mem 0x00000000-0x00003fff 64bit pref] [1579004.600765] pci 0000:00:05.0: reg 0x30: [mem 0x00000000-0x0007ffff pref] [1579004.603819] pci 0000:00:05.0: BAR 6: assigned [mem 0xc0100000-0xc017ffff pref] [1579004.604582] pci 0000:00:05.0: BAR 4: assigned [mem 0x100000c000-0x100000ffff 64bit pref] [1579004.605555] pci 0000:00:05.0: BAR 1: assigned [mem 0xc0003000-0xc0003fff] [1579004.606383] pci 0000:00:05.0: BAR 0: assigned [io 0x1000-0x103f] [1579004.607212] virtio-pci 0000:00:05.0: enabling device (0000 -> 0003) [1579004.625149] PCI Interrupt Link [LNKA] enabled at IRQ 11 [1579004.644930] virtio_net virtio3 ens5: renamed from eth0 ``` 5. **Confirm the presence of the network interface, and confirm its name if several networks are plugged into your Instance**. To do this, run `ip -br link`. You should see an output similar to the following: ```bash lo UNKNOWN 00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP> ens2 UP de:1c:94:44:d0:04 <BROADCAST,MULTICAST,UP,LOWER_UP> ens5 DOWN 02:00:00:00:00:31 <BROADCAST,MULTICAST> ens6 DOWN 02:00:00:00:01:5b <BROADCAST,MULTICAST> ens7 DOWN 02:00:00:00:01:5e <BROADCAST,MULTICAST> ``` 6. **Configure the Instance\'s IP address**. DHCP is activated by default on new Private Networks, and automatically assigns IP addresses to resources on the network. If you have an older Private Network, [check whether DHCP is activated](https://www.scaleway.com/en/docs/vpc/reference-content/vpc-migration/) and either activate DHCP for automatic IP configuration, or [manually configure](https://www.scaleway.com/en/docs/instances/reference-content/manual-configuration-private-ips/) the network interface on your Instance if necessary. 7. **Delete your Private NIC**, which equates to unplugging your Instance from the Private Network. Use the following call. Ensure you replace `<Instance ID>` with the ID of your Instance, `<Private Network ID>` with the ID of your Private Network, and `<NIC ID>` with the ID of your Private NIC. ```bash curl -X DELETE \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" \\ -H \"Content-Type: application/json\" \\ \"https://api.scaleway.com/instance/v1/zones/$SCW_DEFAULT_ZONE/servers/<Instance ID>/private_nics/<NIC ID>\" ``` The network interface disappears from your Instance. 8. **Delete your Private Network**. Use the following call. Ensure you replace `<Private Network ID>` with the ID of your Private Network. ```bash curl -X DELETE \\ -H \"X-Auth-Token: $SCW_SECRET_KEY\" \\ -H \"Content-Type: application/json\" \\ \"https://api.scaleway.com/vpc/v2/regions/$SCW_DEFAULT_REGION/private-networks/<Private Network ID>\" ``` <Message type=\"note\"> Private Networks must be empty to be deleted. Ensure you have detached all resources and deleted all reserved IPs from your network prior to deletion. </Message> (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 [installed `curl`](https://curl.se/download.html) </Message> (switchcolumn) ## Technical information VPC and Private Networks are available in the Paris, Amsterdam and Warsaw regions, which are represented by the following path parameters: * `fr-par` * `nl-ams` * `pl-waw` ## Technical limitations The following limitations apply to Scaleway VPC: - Up to 250 resources can be attached to a Private Network. - A resource can be attached to up to 8 Private Networks. - The following resource types can be attached to a Private Network: - Instances - Elastic Metal servers - Apple silicon - Managed Inference - Load Balancers - Public Gateways - Managed Databases for PostgreSQL and MySQL - Managed Databases for Redis (only at the time of resource creation) - Kubernetes Kapsule (only at the time of resource creation) - The MAC address of an Instance in a Private Network cannot be changed. - Broadcast and multicast traffic, while supported, are heavily rate-limited. ## Going further For more help using Scaleway VPC and Private Networks, check out the following resources: - Our [main documentation](https://www.scaleway.com/en/docs/vpc/) - The #virtual-private-cloud channel on our [Slack Community](https://www.scaleway.com/en/docs/tutorials/scaleway-slack-community/) - Our [support ticketing system](https://www.scaleway.com/en/docs/account/how-to/open-a-support-ticket/).
7
+ *
8
+ * The version of the OpenAPI document: v2
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.UpdateVPCRegionEnum = exports.ListVPCsOrderByEnum = exports.ListVPCsRegionEnum = exports.GetVPCRegionEnum = exports.EnableRoutingRegionEnum = exports.DeleteVPCRegionEnum = exports.CreateVPCRegionEnum = exports.VPCsApi = exports.VPCsApiFactory = exports.VPCsApiFp = exports.VPCsApiAxiosParamCreator = exports.ListSubnetsOrderByEnum = exports.ListSubnetsRegionEnum = exports.DeleteSubnetsRegionEnum = exports.AddSubnetsRegionEnum = exports.SubnetsApi = exports.SubnetsApiFactory = exports.SubnetsApiFp = exports.SubnetsApiAxiosParamCreator = exports.UpdateRouteRegionEnum = exports.GetRouteRegionEnum = exports.DeleteRouteRegionEnum = exports.CreateRouteRegionEnum = exports.RoutesApi = exports.RoutesApiFactory = exports.RoutesApiFp = exports.RoutesApiAxiosParamCreator = exports.UpdatePrivateNetworkRegionEnum = exports.ListPrivateNetworksOrderByEnum = exports.ListPrivateNetworksRegionEnum = exports.GetPrivateNetworkRegionEnum = exports.EnableDHCPRegionEnum = exports.DeletePrivateNetworkRegionEnum = exports.CreatePrivateNetworkRegionEnum = exports.PrivateNetworksApi = exports.PrivateNetworksApiFactory = exports.PrivateNetworksApiFp = exports.PrivateNetworksApiAxiosParamCreator = exports.SetAclRegionEnum = exports.GetAclRegionEnum = exports.NetworkACLsApi = exports.NetworkACLsApiFactory = exports.NetworkACLsApiFp = exports.NetworkACLsApiAxiosParamCreator = exports.SetAclRequestDefaultPolicyEnum = exports.ScalewayVpcV2RouteTypeEnum = exports.ScalewayVpcV2Action = exports.ScalewayVpcV2AclRuleActionEnum = exports.ScalewayVpcV2AclRuleProtocolEnum = 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
+ exports.ScalewayVpcV2AclRuleProtocolEnum = {
27
+ Any: 'ANY',
28
+ Tcp: 'TCP',
29
+ Udp: 'UDP',
30
+ Icmp: 'ICMP',
31
+ };
32
+ exports.ScalewayVpcV2AclRuleActionEnum = {
33
+ UnknownAction: 'unknown_action',
34
+ Accept: 'accept',
35
+ Drop: 'drop',
36
+ };
37
+ /**
38
+ *
39
+ * @export
40
+ * @enum {string}
41
+ */
42
+ exports.ScalewayVpcV2Action = {
43
+ UnknownAction: 'unknown_action',
44
+ Accept: 'accept',
45
+ Drop: 'drop',
46
+ };
47
+ exports.ScalewayVpcV2RouteTypeEnum = {
48
+ UnknownRouteType: 'unknown_route_type',
49
+ Subnet: 'subnet',
50
+ Default: 'default',
51
+ Custom: 'custom',
52
+ Interlink: 'interlink',
53
+ S2sVpn: 's2s_vpn',
54
+ };
55
+ exports.SetAclRequestDefaultPolicyEnum = {
56
+ UnknownAction: 'unknown_action',
57
+ Accept: 'accept',
58
+ Drop: 'drop',
59
+ };
60
+ /**
61
+ * NetworkACLsApi - axios parameter creator
62
+ * @export
63
+ */
64
+ const NetworkACLsApiAxiosParamCreator = function (configuration) {
65
+ return {
66
+ /**
67
+ * Retrieve a list of ACL rules for a VPC, specified by its VPC ID.
68
+ * @summary Get ACL Rules for VPC
69
+ * @param {GetAclRegionEnum} region The region you want to target
70
+ * @param {string} vpcId ID of the Network ACL\&#39;s VPC. (UUID format)
71
+ * @param {boolean} isIpv6 Defines whether this set of ACL rules is for IPv6 (false &#x3D; IPv4). Each Network ACL can have rules for only one IP type.
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ getAcl: async (region, vpcId, isIpv6, options = {}) => {
76
+ // verify required parameter 'region' is not null or undefined
77
+ (0, common_1.assertParamExists)('getAcl', 'region', region);
78
+ // verify required parameter 'vpcId' is not null or undefined
79
+ (0, common_1.assertParamExists)('getAcl', 'vpcId', vpcId);
80
+ // verify required parameter 'isIpv6' is not null or undefined
81
+ (0, common_1.assertParamExists)('getAcl', 'isIpv6', isIpv6);
82
+ const localVarPath = `/vpc/v2/regions/{region}/vpcs/{vpc_id}/acl-rules`
83
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
84
+ .replace(`{${'vpc_id'}}`, encodeURIComponent(String(vpcId)));
85
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
86
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
87
+ let baseOptions;
88
+ if (configuration) {
89
+ baseOptions = configuration.baseOptions;
90
+ }
91
+ const localVarRequestOptions = {
92
+ method: 'GET',
93
+ ...baseOptions,
94
+ ...options,
95
+ };
96
+ const localVarHeaderParameter = {};
97
+ const localVarQueryParameter = {};
98
+ // authentication scaleway required
99
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
100
+ if (isIpv6 !== undefined) {
101
+ localVarQueryParameter['is_ipv6'] = isIpv6;
102
+ }
103
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
104
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105
+ localVarRequestOptions.headers = {
106
+ ...localVarHeaderParameter,
107
+ ...headersFromBaseOptions,
108
+ ...options.headers,
109
+ };
110
+ return {
111
+ url: (0, common_1.toPathString)(localVarUrlObj),
112
+ options: localVarRequestOptions,
113
+ };
114
+ },
115
+ /**
116
+ * Set the list of ACL rules and the default routing policy for a VPC.
117
+ * @summary Set VPC ACL rules
118
+ * @param {SetAclRegionEnum} region The region you want to target
119
+ * @param {string} vpcId ID of the Network ACL\&#39;s VPC. (UUID format)
120
+ * @param {SetAclRequest} setAclRequest
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ setAcl: async (region, vpcId, setAclRequest, options = {}) => {
125
+ // verify required parameter 'region' is not null or undefined
126
+ (0, common_1.assertParamExists)('setAcl', 'region', region);
127
+ // verify required parameter 'vpcId' is not null or undefined
128
+ (0, common_1.assertParamExists)('setAcl', 'vpcId', vpcId);
129
+ // verify required parameter 'setAclRequest' is not null or undefined
130
+ (0, common_1.assertParamExists)('setAcl', 'setAclRequest', setAclRequest);
131
+ const localVarPath = `/vpc/v2/regions/{region}/vpcs/{vpc_id}/acl-rules`
132
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
133
+ .replace(`{${'vpc_id'}}`, encodeURIComponent(String(vpcId)));
134
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
135
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
136
+ let baseOptions;
137
+ if (configuration) {
138
+ baseOptions = configuration.baseOptions;
139
+ }
140
+ const localVarRequestOptions = {
141
+ method: 'PUT',
142
+ ...baseOptions,
143
+ ...options,
144
+ };
145
+ const localVarHeaderParameter = {};
146
+ const localVarQueryParameter = {};
147
+ // authentication scaleway required
148
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
149
+ localVarHeaderParameter['Content-Type'] = 'application/json';
150
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152
+ localVarRequestOptions.headers = {
153
+ ...localVarHeaderParameter,
154
+ ...headersFromBaseOptions,
155
+ ...options.headers,
156
+ };
157
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setAclRequest, localVarRequestOptions, configuration);
158
+ return {
159
+ url: (0, common_1.toPathString)(localVarUrlObj),
160
+ options: localVarRequestOptions,
161
+ };
162
+ },
163
+ };
164
+ };
165
+ exports.NetworkACLsApiAxiosParamCreator = NetworkACLsApiAxiosParamCreator;
166
+ /**
167
+ * NetworkACLsApi - functional programming interface
168
+ * @export
169
+ */
170
+ const NetworkACLsApiFp = function (configuration) {
171
+ const localVarAxiosParamCreator = (0, exports.NetworkACLsApiAxiosParamCreator)(configuration);
172
+ return {
173
+ /**
174
+ * Retrieve a list of ACL rules for a VPC, specified by its VPC ID.
175
+ * @summary Get ACL Rules for VPC
176
+ * @param {GetAclRegionEnum} region The region you want to target
177
+ * @param {string} vpcId ID of the Network ACL\&#39;s VPC. (UUID format)
178
+ * @param {boolean} isIpv6 Defines whether this set of ACL rules is for IPv6 (false &#x3D; IPv4). Each Network ACL can have rules for only one IP type.
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ async getAcl(region, vpcId, isIpv6, options) {
183
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAcl(region, vpcId, isIpv6, options);
184
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
185
+ const localVarOperationServerBasePath = base_1.operationServerMap['NetworkACLsApi.getAcl']?.[localVarOperationServerIndex]?.url;
186
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
187
+ },
188
+ /**
189
+ * Set the list of ACL rules and the default routing policy for a VPC.
190
+ * @summary Set VPC ACL rules
191
+ * @param {SetAclRegionEnum} region The region you want to target
192
+ * @param {string} vpcId ID of the Network ACL\&#39;s VPC. (UUID format)
193
+ * @param {SetAclRequest} setAclRequest
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ async setAcl(region, vpcId, setAclRequest, options) {
198
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setAcl(region, vpcId, setAclRequest, options);
199
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
200
+ const localVarOperationServerBasePath = base_1.operationServerMap['NetworkACLsApi.setAcl']?.[localVarOperationServerIndex]?.url;
201
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
202
+ },
203
+ };
204
+ };
205
+ exports.NetworkACLsApiFp = NetworkACLsApiFp;
206
+ /**
207
+ * NetworkACLsApi - factory interface
208
+ * @export
209
+ */
210
+ const NetworkACLsApiFactory = function (configuration, basePath, axios) {
211
+ const localVarFp = (0, exports.NetworkACLsApiFp)(configuration);
212
+ return {
213
+ /**
214
+ * Retrieve a list of ACL rules for a VPC, specified by its VPC ID.
215
+ * @summary Get ACL Rules for VPC
216
+ * @param {GetAclRegionEnum} region The region you want to target
217
+ * @param {string} vpcId ID of the Network ACL\&#39;s VPC. (UUID format)
218
+ * @param {boolean} isIpv6 Defines whether this set of ACL rules is for IPv6 (false &#x3D; IPv4). Each Network ACL can have rules for only one IP type.
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ getAcl(region, vpcId, isIpv6, options) {
223
+ return localVarFp
224
+ .getAcl(region, vpcId, isIpv6, options)
225
+ .then((request) => request(axios, basePath));
226
+ },
227
+ /**
228
+ * Set the list of ACL rules and the default routing policy for a VPC.
229
+ * @summary Set VPC ACL rules
230
+ * @param {SetAclRegionEnum} region The region you want to target
231
+ * @param {string} vpcId ID of the Network ACL\&#39;s VPC. (UUID format)
232
+ * @param {SetAclRequest} setAclRequest
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ setAcl(region, vpcId, setAclRequest, options) {
237
+ return localVarFp
238
+ .setAcl(region, vpcId, setAclRequest, options)
239
+ .then((request) => request(axios, basePath));
240
+ },
241
+ };
242
+ };
243
+ exports.NetworkACLsApiFactory = NetworkACLsApiFactory;
244
+ /**
245
+ * NetworkACLsApi - object-oriented interface
246
+ * @export
247
+ * @class NetworkACLsApi
248
+ * @extends {BaseAPI}
249
+ */
250
+ class NetworkACLsApi extends base_1.BaseAPI {
251
+ /**
252
+ * Retrieve a list of ACL rules for a VPC, specified by its VPC ID.
253
+ * @summary Get ACL Rules for VPC
254
+ * @param {GetAclRegionEnum} region The region you want to target
255
+ * @param {string} vpcId ID of the Network ACL\&#39;s VPC. (UUID format)
256
+ * @param {boolean} isIpv6 Defines whether this set of ACL rules is for IPv6 (false &#x3D; IPv4). Each Network ACL can have rules for only one IP type.
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ * @memberof NetworkACLsApi
260
+ */
261
+ getAcl(region, vpcId, isIpv6, options) {
262
+ return (0, exports.NetworkACLsApiFp)(this.configuration)
263
+ .getAcl(region, vpcId, isIpv6, options)
264
+ .then((request) => request(this.axios, this.basePath));
265
+ }
266
+ /**
267
+ * Set the list of ACL rules and the default routing policy for a VPC.
268
+ * @summary Set VPC ACL rules
269
+ * @param {SetAclRegionEnum} region The region you want to target
270
+ * @param {string} vpcId ID of the Network ACL\&#39;s VPC. (UUID format)
271
+ * @param {SetAclRequest} setAclRequest
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ * @memberof NetworkACLsApi
275
+ */
276
+ setAcl(region, vpcId, setAclRequest, options) {
277
+ return (0, exports.NetworkACLsApiFp)(this.configuration)
278
+ .setAcl(region, vpcId, setAclRequest, options)
279
+ .then((request) => request(this.axios, this.basePath));
280
+ }
281
+ }
282
+ exports.NetworkACLsApi = NetworkACLsApi;
283
+ /**
284
+ * @export
285
+ */
286
+ exports.GetAclRegionEnum = {
287
+ FrPar: 'fr-par',
288
+ NlAms: 'nl-ams',
289
+ PlWaw: 'pl-waw',
290
+ };
291
+ /**
292
+ * @export
293
+ */
294
+ exports.SetAclRegionEnum = {
295
+ FrPar: 'fr-par',
296
+ NlAms: 'nl-ams',
297
+ PlWaw: 'pl-waw',
298
+ };
299
+ /**
300
+ * PrivateNetworksApi - axios parameter creator
301
+ * @export
302
+ */
303
+ const PrivateNetworksApiAxiosParamCreator = function (configuration) {
304
+ return {
305
+ /**
306
+ * Create a new Private Network. Once created, you can attach Scaleway resources which are in the same region.
307
+ * @summary Create a Private Network
308
+ * @param {CreatePrivateNetworkRegionEnum} region The region you want to target
309
+ * @param {CreatePrivateNetworkRequest} createPrivateNetworkRequest
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ createPrivateNetwork: async (region, createPrivateNetworkRequest, options = {}) => {
314
+ // verify required parameter 'region' is not null or undefined
315
+ (0, common_1.assertParamExists)('createPrivateNetwork', 'region', region);
316
+ // verify required parameter 'createPrivateNetworkRequest' is not null or undefined
317
+ (0, common_1.assertParamExists)('createPrivateNetwork', 'createPrivateNetworkRequest', createPrivateNetworkRequest);
318
+ const localVarPath = `/vpc/v2/regions/{region}/private-networks`.replace(`{${'region'}}`, encodeURIComponent(String(region)));
319
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
320
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
321
+ let baseOptions;
322
+ if (configuration) {
323
+ baseOptions = configuration.baseOptions;
324
+ }
325
+ const localVarRequestOptions = {
326
+ method: 'POST',
327
+ ...baseOptions,
328
+ ...options,
329
+ };
330
+ const localVarHeaderParameter = {};
331
+ const localVarQueryParameter = {};
332
+ // authentication scaleway required
333
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
334
+ localVarHeaderParameter['Content-Type'] = 'application/json';
335
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
336
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
337
+ localVarRequestOptions.headers = {
338
+ ...localVarHeaderParameter,
339
+ ...headersFromBaseOptions,
340
+ ...options.headers,
341
+ };
342
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPrivateNetworkRequest, localVarRequestOptions, configuration);
343
+ return {
344
+ url: (0, common_1.toPathString)(localVarUrlObj),
345
+ options: localVarRequestOptions,
346
+ };
347
+ },
348
+ /**
349
+ * Delete an existing Private Network. Note that you must first detach all resources from the network, in order to delete it.
350
+ * @summary Delete a Private Network
351
+ * @param {DeletePrivateNetworkRegionEnum} region The region you want to target
352
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
353
+ * @param {*} [options] Override http request option.
354
+ * @throws {RequiredError}
355
+ */
356
+ deletePrivateNetwork: async (region, privateNetworkId, options = {}) => {
357
+ // verify required parameter 'region' is not null or undefined
358
+ (0, common_1.assertParamExists)('deletePrivateNetwork', 'region', region);
359
+ // verify required parameter 'privateNetworkId' is not null or undefined
360
+ (0, common_1.assertParamExists)('deletePrivateNetwork', 'privateNetworkId', privateNetworkId);
361
+ const localVarPath = `/vpc/v2/regions/{region}/private-networks/{private_network_id}`
362
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
363
+ .replace(`{${'private_network_id'}}`, encodeURIComponent(String(privateNetworkId)));
364
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
365
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
366
+ let baseOptions;
367
+ if (configuration) {
368
+ baseOptions = configuration.baseOptions;
369
+ }
370
+ const localVarRequestOptions = {
371
+ method: 'DELETE',
372
+ ...baseOptions,
373
+ ...options,
374
+ };
375
+ const localVarHeaderParameter = {};
376
+ const localVarQueryParameter = {};
377
+ // authentication scaleway required
378
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
379
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
380
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
381
+ localVarRequestOptions.headers = {
382
+ ...localVarHeaderParameter,
383
+ ...headersFromBaseOptions,
384
+ ...options.headers,
385
+ };
386
+ return {
387
+ url: (0, common_1.toPathString)(localVarUrlObj),
388
+ options: localVarRequestOptions,
389
+ };
390
+ },
391
+ /**
392
+ * Enable DHCP managed on an existing Private Network. Note that you will not be able to deactivate it afterwards.
393
+ * @summary Enable DHCP on a Private Network
394
+ * @param {EnableDHCPRegionEnum} region The region you want to target
395
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
396
+ * @param {object} body
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ enableDHCP: async (region, privateNetworkId, body, options = {}) => {
401
+ // verify required parameter 'region' is not null or undefined
402
+ (0, common_1.assertParamExists)('enableDHCP', 'region', region);
403
+ // verify required parameter 'privateNetworkId' is not null or undefined
404
+ (0, common_1.assertParamExists)('enableDHCP', 'privateNetworkId', privateNetworkId);
405
+ // verify required parameter 'body' is not null or undefined
406
+ (0, common_1.assertParamExists)('enableDHCP', 'body', body);
407
+ const localVarPath = `/vpc/v2/regions/{region}/private-networks/{private_network_id}/enable-dhcp`
408
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
409
+ .replace(`{${'private_network_id'}}`, encodeURIComponent(String(privateNetworkId)));
410
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
411
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
412
+ let baseOptions;
413
+ if (configuration) {
414
+ baseOptions = configuration.baseOptions;
415
+ }
416
+ const localVarRequestOptions = {
417
+ method: 'POST',
418
+ ...baseOptions,
419
+ ...options,
420
+ };
421
+ const localVarHeaderParameter = {};
422
+ const localVarQueryParameter = {};
423
+ // authentication scaleway required
424
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
425
+ localVarHeaderParameter['Content-Type'] = 'application/json';
426
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
427
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
428
+ localVarRequestOptions.headers = {
429
+ ...localVarHeaderParameter,
430
+ ...headersFromBaseOptions,
431
+ ...options.headers,
432
+ };
433
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
434
+ return {
435
+ url: (0, common_1.toPathString)(localVarUrlObj),
436
+ options: localVarRequestOptions,
437
+ };
438
+ },
439
+ /**
440
+ * Retrieve information about an existing Private Network, specified by its Private Network ID. Its full details are returned in the response object.
441
+ * @summary Get a Private Network
442
+ * @param {GetPrivateNetworkRegionEnum} region The region you want to target
443
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
444
+ * @param {*} [options] Override http request option.
445
+ * @throws {RequiredError}
446
+ */
447
+ getPrivateNetwork: async (region, privateNetworkId, options = {}) => {
448
+ // verify required parameter 'region' is not null or undefined
449
+ (0, common_1.assertParamExists)('getPrivateNetwork', 'region', region);
450
+ // verify required parameter 'privateNetworkId' is not null or undefined
451
+ (0, common_1.assertParamExists)('getPrivateNetwork', 'privateNetworkId', privateNetworkId);
452
+ const localVarPath = `/vpc/v2/regions/{region}/private-networks/{private_network_id}`
453
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
454
+ .replace(`{${'private_network_id'}}`, encodeURIComponent(String(privateNetworkId)));
455
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
456
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
457
+ let baseOptions;
458
+ if (configuration) {
459
+ baseOptions = configuration.baseOptions;
460
+ }
461
+ const localVarRequestOptions = {
462
+ method: 'GET',
463
+ ...baseOptions,
464
+ ...options,
465
+ };
466
+ const localVarHeaderParameter = {};
467
+ const localVarQueryParameter = {};
468
+ // authentication scaleway required
469
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
470
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
471
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
472
+ localVarRequestOptions.headers = {
473
+ ...localVarHeaderParameter,
474
+ ...headersFromBaseOptions,
475
+ ...options.headers,
476
+ };
477
+ return {
478
+ url: (0, common_1.toPathString)(localVarUrlObj),
479
+ options: localVarRequestOptions,
480
+ };
481
+ },
482
+ /**
483
+ * List existing Private Networks in the specified region. By default, the Private Networks returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.
484
+ * @summary List Private Networks
485
+ * @param {ListPrivateNetworksRegionEnum} region The region you want to target
486
+ * @param {ListPrivateNetworksOrderByEnum} [orderBy] Sort order of the returned Private Networks.
487
+ * @param {number} [page] Page number to return, from the paginated results.
488
+ * @param {number} [pageSize] Maximum number of Private Networks to return per page.
489
+ * @param {string} [name] Name to filter for. Only Private Networks with names containing this string will be returned.
490
+ * @param {Array<string>} [tags] Tags to filter for. Only Private Networks with one or more matching tags will be returned.
491
+ * @param {string} [organizationId] Organization ID to filter for. Only Private Networks belonging to this Organization will be returned. (UUID format)
492
+ * @param {string} [projectId] Project ID to filter for. Only Private Networks belonging to this Project will be returned. (UUID format)
493
+ * @param {Array<string>} [privateNetworkIds] Private Network IDs to filter for. Only Private Networks with one of these IDs will be returned.
494
+ * @param {string} [vpcId] VPC ID to filter for. Only Private Networks belonging to this VPC will be returned. (UUID format)
495
+ * @param {boolean} [dhcpEnabled] DHCP status to filter for. When true, only Private Networks with managed DHCP enabled will be returned.
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ */
499
+ listPrivateNetworks: async (region, orderBy, page, pageSize, name, tags, organizationId, projectId, privateNetworkIds, vpcId, dhcpEnabled, options = {}) => {
500
+ // verify required parameter 'region' is not null or undefined
501
+ (0, common_1.assertParamExists)('listPrivateNetworks', 'region', region);
502
+ const localVarPath = `/vpc/v2/regions/{region}/private-networks`.replace(`{${'region'}}`, encodeURIComponent(String(region)));
503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
504
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
505
+ let baseOptions;
506
+ if (configuration) {
507
+ baseOptions = configuration.baseOptions;
508
+ }
509
+ const localVarRequestOptions = {
510
+ method: 'GET',
511
+ ...baseOptions,
512
+ ...options,
513
+ };
514
+ const localVarHeaderParameter = {};
515
+ const localVarQueryParameter = {};
516
+ // authentication scaleway required
517
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
518
+ if (orderBy !== undefined) {
519
+ localVarQueryParameter['order_by'] = orderBy;
520
+ }
521
+ if (page !== undefined) {
522
+ localVarQueryParameter['page'] = page;
523
+ }
524
+ if (pageSize !== undefined) {
525
+ localVarQueryParameter['page_size'] = pageSize;
526
+ }
527
+ if (name !== undefined) {
528
+ localVarQueryParameter['name'] = name;
529
+ }
530
+ if (tags) {
531
+ localVarQueryParameter['tags'] = tags;
532
+ }
533
+ if (organizationId !== undefined) {
534
+ localVarQueryParameter['organization_id'] = organizationId;
535
+ }
536
+ if (projectId !== undefined) {
537
+ localVarQueryParameter['project_id'] = projectId;
538
+ }
539
+ if (privateNetworkIds) {
540
+ localVarQueryParameter['private_network_ids'] = privateNetworkIds;
541
+ }
542
+ if (vpcId !== undefined) {
543
+ localVarQueryParameter['vpc_id'] = vpcId;
544
+ }
545
+ if (dhcpEnabled !== undefined) {
546
+ localVarQueryParameter['dhcp_enabled'] = dhcpEnabled;
547
+ }
548
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
549
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
550
+ localVarRequestOptions.headers = {
551
+ ...localVarHeaderParameter,
552
+ ...headersFromBaseOptions,
553
+ ...options.headers,
554
+ };
555
+ return {
556
+ url: (0, common_1.toPathString)(localVarUrlObj),
557
+ options: localVarRequestOptions,
558
+ };
559
+ },
560
+ /**
561
+ * Update parameters (such as name or tags) of an existing Private Network, specified by its Private Network ID.
562
+ * @summary Update Private Network
563
+ * @param {UpdatePrivateNetworkRegionEnum} region The region you want to target
564
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
565
+ * @param {UpdatePrivateNetworkRequest} updatePrivateNetworkRequest
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ */
569
+ updatePrivateNetwork: async (region, privateNetworkId, updatePrivateNetworkRequest, options = {}) => {
570
+ // verify required parameter 'region' is not null or undefined
571
+ (0, common_1.assertParamExists)('updatePrivateNetwork', 'region', region);
572
+ // verify required parameter 'privateNetworkId' is not null or undefined
573
+ (0, common_1.assertParamExists)('updatePrivateNetwork', 'privateNetworkId', privateNetworkId);
574
+ // verify required parameter 'updatePrivateNetworkRequest' is not null or undefined
575
+ (0, common_1.assertParamExists)('updatePrivateNetwork', 'updatePrivateNetworkRequest', updatePrivateNetworkRequest);
576
+ const localVarPath = `/vpc/v2/regions/{region}/private-networks/{private_network_id}`
577
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
578
+ .replace(`{${'private_network_id'}}`, encodeURIComponent(String(privateNetworkId)));
579
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
580
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
581
+ let baseOptions;
582
+ if (configuration) {
583
+ baseOptions = configuration.baseOptions;
584
+ }
585
+ const localVarRequestOptions = {
586
+ method: 'PATCH',
587
+ ...baseOptions,
588
+ ...options,
589
+ };
590
+ const localVarHeaderParameter = {};
591
+ const localVarQueryParameter = {};
592
+ // authentication scaleway required
593
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
594
+ localVarHeaderParameter['Content-Type'] = 'application/json';
595
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
596
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
597
+ localVarRequestOptions.headers = {
598
+ ...localVarHeaderParameter,
599
+ ...headersFromBaseOptions,
600
+ ...options.headers,
601
+ };
602
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePrivateNetworkRequest, localVarRequestOptions, configuration);
603
+ return {
604
+ url: (0, common_1.toPathString)(localVarUrlObj),
605
+ options: localVarRequestOptions,
606
+ };
607
+ },
608
+ };
609
+ };
610
+ exports.PrivateNetworksApiAxiosParamCreator = PrivateNetworksApiAxiosParamCreator;
611
+ /**
612
+ * PrivateNetworksApi - functional programming interface
613
+ * @export
614
+ */
615
+ const PrivateNetworksApiFp = function (configuration) {
616
+ const localVarAxiosParamCreator = (0, exports.PrivateNetworksApiAxiosParamCreator)(configuration);
617
+ return {
618
+ /**
619
+ * Create a new Private Network. Once created, you can attach Scaleway resources which are in the same region.
620
+ * @summary Create a Private Network
621
+ * @param {CreatePrivateNetworkRegionEnum} region The region you want to target
622
+ * @param {CreatePrivateNetworkRequest} createPrivateNetworkRequest
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ */
626
+ async createPrivateNetwork(region, createPrivateNetworkRequest, options) {
627
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPrivateNetwork(region, createPrivateNetworkRequest, options);
628
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
629
+ const localVarOperationServerBasePath = base_1.operationServerMap['PrivateNetworksApi.createPrivateNetwork']?.[localVarOperationServerIndex]?.url;
630
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
631
+ },
632
+ /**
633
+ * Delete an existing Private Network. Note that you must first detach all resources from the network, in order to delete it.
634
+ * @summary Delete a Private Network
635
+ * @param {DeletePrivateNetworkRegionEnum} region The region you want to target
636
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ async deletePrivateNetwork(region, privateNetworkId, options) {
641
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePrivateNetwork(region, privateNetworkId, options);
642
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
643
+ const localVarOperationServerBasePath = base_1.operationServerMap['PrivateNetworksApi.deletePrivateNetwork']?.[localVarOperationServerIndex]?.url;
644
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
645
+ },
646
+ /**
647
+ * Enable DHCP managed on an existing Private Network. Note that you will not be able to deactivate it afterwards.
648
+ * @summary Enable DHCP on a Private Network
649
+ * @param {EnableDHCPRegionEnum} region The region you want to target
650
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
651
+ * @param {object} body
652
+ * @param {*} [options] Override http request option.
653
+ * @throws {RequiredError}
654
+ */
655
+ async enableDHCP(region, privateNetworkId, body, options) {
656
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableDHCP(region, privateNetworkId, body, options);
657
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
658
+ const localVarOperationServerBasePath = base_1.operationServerMap['PrivateNetworksApi.enableDHCP']?.[localVarOperationServerIndex]?.url;
659
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
660
+ },
661
+ /**
662
+ * Retrieve information about an existing Private Network, specified by its Private Network ID. Its full details are returned in the response object.
663
+ * @summary Get a Private Network
664
+ * @param {GetPrivateNetworkRegionEnum} region The region you want to target
665
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ async getPrivateNetwork(region, privateNetworkId, options) {
670
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPrivateNetwork(region, privateNetworkId, options);
671
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
672
+ const localVarOperationServerBasePath = base_1.operationServerMap['PrivateNetworksApi.getPrivateNetwork']?.[localVarOperationServerIndex]?.url;
673
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
674
+ },
675
+ /**
676
+ * List existing Private Networks in the specified region. By default, the Private Networks returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.
677
+ * @summary List Private Networks
678
+ * @param {ListPrivateNetworksRegionEnum} region The region you want to target
679
+ * @param {ListPrivateNetworksOrderByEnum} [orderBy] Sort order of the returned Private Networks.
680
+ * @param {number} [page] Page number to return, from the paginated results.
681
+ * @param {number} [pageSize] Maximum number of Private Networks to return per page.
682
+ * @param {string} [name] Name to filter for. Only Private Networks with names containing this string will be returned.
683
+ * @param {Array<string>} [tags] Tags to filter for. Only Private Networks with one or more matching tags will be returned.
684
+ * @param {string} [organizationId] Organization ID to filter for. Only Private Networks belonging to this Organization will be returned. (UUID format)
685
+ * @param {string} [projectId] Project ID to filter for. Only Private Networks belonging to this Project will be returned. (UUID format)
686
+ * @param {Array<string>} [privateNetworkIds] Private Network IDs to filter for. Only Private Networks with one of these IDs will be returned.
687
+ * @param {string} [vpcId] VPC ID to filter for. Only Private Networks belonging to this VPC will be returned. (UUID format)
688
+ * @param {boolean} [dhcpEnabled] DHCP status to filter for. When true, only Private Networks with managed DHCP enabled will be returned.
689
+ * @param {*} [options] Override http request option.
690
+ * @throws {RequiredError}
691
+ */
692
+ async listPrivateNetworks(region, orderBy, page, pageSize, name, tags, organizationId, projectId, privateNetworkIds, vpcId, dhcpEnabled, options) {
693
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPrivateNetworks(region, orderBy, page, pageSize, name, tags, organizationId, projectId, privateNetworkIds, vpcId, dhcpEnabled, options);
694
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
695
+ const localVarOperationServerBasePath = base_1.operationServerMap['PrivateNetworksApi.listPrivateNetworks']?.[localVarOperationServerIndex]?.url;
696
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
697
+ },
698
+ /**
699
+ * Update parameters (such as name or tags) of an existing Private Network, specified by its Private Network ID.
700
+ * @summary Update Private Network
701
+ * @param {UpdatePrivateNetworkRegionEnum} region The region you want to target
702
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
703
+ * @param {UpdatePrivateNetworkRequest} updatePrivateNetworkRequest
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ */
707
+ async updatePrivateNetwork(region, privateNetworkId, updatePrivateNetworkRequest, options) {
708
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updatePrivateNetwork(region, privateNetworkId, updatePrivateNetworkRequest, options);
709
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
710
+ const localVarOperationServerBasePath = base_1.operationServerMap['PrivateNetworksApi.updatePrivateNetwork']?.[localVarOperationServerIndex]?.url;
711
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
712
+ },
713
+ };
714
+ };
715
+ exports.PrivateNetworksApiFp = PrivateNetworksApiFp;
716
+ /**
717
+ * PrivateNetworksApi - factory interface
718
+ * @export
719
+ */
720
+ const PrivateNetworksApiFactory = function (configuration, basePath, axios) {
721
+ const localVarFp = (0, exports.PrivateNetworksApiFp)(configuration);
722
+ return {
723
+ /**
724
+ * Create a new Private Network. Once created, you can attach Scaleway resources which are in the same region.
725
+ * @summary Create a Private Network
726
+ * @param {CreatePrivateNetworkRegionEnum} region The region you want to target
727
+ * @param {CreatePrivateNetworkRequest} createPrivateNetworkRequest
728
+ * @param {*} [options] Override http request option.
729
+ * @throws {RequiredError}
730
+ */
731
+ createPrivateNetwork(region, createPrivateNetworkRequest, options) {
732
+ return localVarFp
733
+ .createPrivateNetwork(region, createPrivateNetworkRequest, options)
734
+ .then((request) => request(axios, basePath));
735
+ },
736
+ /**
737
+ * Delete an existing Private Network. Note that you must first detach all resources from the network, in order to delete it.
738
+ * @summary Delete a Private Network
739
+ * @param {DeletePrivateNetworkRegionEnum} region The region you want to target
740
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ */
744
+ deletePrivateNetwork(region, privateNetworkId, options) {
745
+ return localVarFp
746
+ .deletePrivateNetwork(region, privateNetworkId, options)
747
+ .then((request) => request(axios, basePath));
748
+ },
749
+ /**
750
+ * Enable DHCP managed on an existing Private Network. Note that you will not be able to deactivate it afterwards.
751
+ * @summary Enable DHCP on a Private Network
752
+ * @param {EnableDHCPRegionEnum} region The region you want to target
753
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
754
+ * @param {object} body
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ */
758
+ enableDHCP(region, privateNetworkId, body, options) {
759
+ return localVarFp
760
+ .enableDHCP(region, privateNetworkId, body, options)
761
+ .then((request) => request(axios, basePath));
762
+ },
763
+ /**
764
+ * Retrieve information about an existing Private Network, specified by its Private Network ID. Its full details are returned in the response object.
765
+ * @summary Get a Private Network
766
+ * @param {GetPrivateNetworkRegionEnum} region The region you want to target
767
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
768
+ * @param {*} [options] Override http request option.
769
+ * @throws {RequiredError}
770
+ */
771
+ getPrivateNetwork(region, privateNetworkId, options) {
772
+ return localVarFp
773
+ .getPrivateNetwork(region, privateNetworkId, options)
774
+ .then((request) => request(axios, basePath));
775
+ },
776
+ /**
777
+ * List existing Private Networks in the specified region. By default, the Private Networks returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.
778
+ * @summary List Private Networks
779
+ * @param {ListPrivateNetworksRegionEnum} region The region you want to target
780
+ * @param {ListPrivateNetworksOrderByEnum} [orderBy] Sort order of the returned Private Networks.
781
+ * @param {number} [page] Page number to return, from the paginated results.
782
+ * @param {number} [pageSize] Maximum number of Private Networks to return per page.
783
+ * @param {string} [name] Name to filter for. Only Private Networks with names containing this string will be returned.
784
+ * @param {Array<string>} [tags] Tags to filter for. Only Private Networks with one or more matching tags will be returned.
785
+ * @param {string} [organizationId] Organization ID to filter for. Only Private Networks belonging to this Organization will be returned. (UUID format)
786
+ * @param {string} [projectId] Project ID to filter for. Only Private Networks belonging to this Project will be returned. (UUID format)
787
+ * @param {Array<string>} [privateNetworkIds] Private Network IDs to filter for. Only Private Networks with one of these IDs will be returned.
788
+ * @param {string} [vpcId] VPC ID to filter for. Only Private Networks belonging to this VPC will be returned. (UUID format)
789
+ * @param {boolean} [dhcpEnabled] DHCP status to filter for. When true, only Private Networks with managed DHCP enabled will be returned.
790
+ * @param {*} [options] Override http request option.
791
+ * @throws {RequiredError}
792
+ */
793
+ listPrivateNetworks(region, orderBy, page, pageSize, name, tags, organizationId, projectId, privateNetworkIds, vpcId, dhcpEnabled, options) {
794
+ return localVarFp
795
+ .listPrivateNetworks(region, orderBy, page, pageSize, name, tags, organizationId, projectId, privateNetworkIds, vpcId, dhcpEnabled, options)
796
+ .then((request) => request(axios, basePath));
797
+ },
798
+ /**
799
+ * Update parameters (such as name or tags) of an existing Private Network, specified by its Private Network ID.
800
+ * @summary Update Private Network
801
+ * @param {UpdatePrivateNetworkRegionEnum} region The region you want to target
802
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
803
+ * @param {UpdatePrivateNetworkRequest} updatePrivateNetworkRequest
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ updatePrivateNetwork(region, privateNetworkId, updatePrivateNetworkRequest, options) {
808
+ return localVarFp
809
+ .updatePrivateNetwork(region, privateNetworkId, updatePrivateNetworkRequest, options)
810
+ .then((request) => request(axios, basePath));
811
+ },
812
+ };
813
+ };
814
+ exports.PrivateNetworksApiFactory = PrivateNetworksApiFactory;
815
+ /**
816
+ * PrivateNetworksApi - object-oriented interface
817
+ * @export
818
+ * @class PrivateNetworksApi
819
+ * @extends {BaseAPI}
820
+ */
821
+ class PrivateNetworksApi extends base_1.BaseAPI {
822
+ /**
823
+ * Create a new Private Network. Once created, you can attach Scaleway resources which are in the same region.
824
+ * @summary Create a Private Network
825
+ * @param {CreatePrivateNetworkRegionEnum} region The region you want to target
826
+ * @param {CreatePrivateNetworkRequest} createPrivateNetworkRequest
827
+ * @param {*} [options] Override http request option.
828
+ * @throws {RequiredError}
829
+ * @memberof PrivateNetworksApi
830
+ */
831
+ createPrivateNetwork(region, createPrivateNetworkRequest, options) {
832
+ return (0, exports.PrivateNetworksApiFp)(this.configuration)
833
+ .createPrivateNetwork(region, createPrivateNetworkRequest, options)
834
+ .then((request) => request(this.axios, this.basePath));
835
+ }
836
+ /**
837
+ * Delete an existing Private Network. Note that you must first detach all resources from the network, in order to delete it.
838
+ * @summary Delete a Private Network
839
+ * @param {DeletePrivateNetworkRegionEnum} region The region you want to target
840
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
841
+ * @param {*} [options] Override http request option.
842
+ * @throws {RequiredError}
843
+ * @memberof PrivateNetworksApi
844
+ */
845
+ deletePrivateNetwork(region, privateNetworkId, options) {
846
+ return (0, exports.PrivateNetworksApiFp)(this.configuration)
847
+ .deletePrivateNetwork(region, privateNetworkId, options)
848
+ .then((request) => request(this.axios, this.basePath));
849
+ }
850
+ /**
851
+ * Enable DHCP managed on an existing Private Network. Note that you will not be able to deactivate it afterwards.
852
+ * @summary Enable DHCP on a Private Network
853
+ * @param {EnableDHCPRegionEnum} region The region you want to target
854
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
855
+ * @param {object} body
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ * @memberof PrivateNetworksApi
859
+ */
860
+ enableDHCP(region, privateNetworkId, body, options) {
861
+ return (0, exports.PrivateNetworksApiFp)(this.configuration)
862
+ .enableDHCP(region, privateNetworkId, body, options)
863
+ .then((request) => request(this.axios, this.basePath));
864
+ }
865
+ /**
866
+ * Retrieve information about an existing Private Network, specified by its Private Network ID. Its full details are returned in the response object.
867
+ * @summary Get a Private Network
868
+ * @param {GetPrivateNetworkRegionEnum} region The region you want to target
869
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
870
+ * @param {*} [options] Override http request option.
871
+ * @throws {RequiredError}
872
+ * @memberof PrivateNetworksApi
873
+ */
874
+ getPrivateNetwork(region, privateNetworkId, options) {
875
+ return (0, exports.PrivateNetworksApiFp)(this.configuration)
876
+ .getPrivateNetwork(region, privateNetworkId, options)
877
+ .then((request) => request(this.axios, this.basePath));
878
+ }
879
+ /**
880
+ * List existing Private Networks in the specified region. By default, the Private Networks returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.
881
+ * @summary List Private Networks
882
+ * @param {ListPrivateNetworksRegionEnum} region The region you want to target
883
+ * @param {ListPrivateNetworksOrderByEnum} [orderBy] Sort order of the returned Private Networks.
884
+ * @param {number} [page] Page number to return, from the paginated results.
885
+ * @param {number} [pageSize] Maximum number of Private Networks to return per page.
886
+ * @param {string} [name] Name to filter for. Only Private Networks with names containing this string will be returned.
887
+ * @param {Array<string>} [tags] Tags to filter for. Only Private Networks with one or more matching tags will be returned.
888
+ * @param {string} [organizationId] Organization ID to filter for. Only Private Networks belonging to this Organization will be returned. (UUID format)
889
+ * @param {string} [projectId] Project ID to filter for. Only Private Networks belonging to this Project will be returned. (UUID format)
890
+ * @param {Array<string>} [privateNetworkIds] Private Network IDs to filter for. Only Private Networks with one of these IDs will be returned.
891
+ * @param {string} [vpcId] VPC ID to filter for. Only Private Networks belonging to this VPC will be returned. (UUID format)
892
+ * @param {boolean} [dhcpEnabled] DHCP status to filter for. When true, only Private Networks with managed DHCP enabled will be returned.
893
+ * @param {*} [options] Override http request option.
894
+ * @throws {RequiredError}
895
+ * @memberof PrivateNetworksApi
896
+ */
897
+ listPrivateNetworks(region, orderBy, page, pageSize, name, tags, organizationId, projectId, privateNetworkIds, vpcId, dhcpEnabled, options) {
898
+ return (0, exports.PrivateNetworksApiFp)(this.configuration)
899
+ .listPrivateNetworks(region, orderBy, page, pageSize, name, tags, organizationId, projectId, privateNetworkIds, vpcId, dhcpEnabled, options)
900
+ .then((request) => request(this.axios, this.basePath));
901
+ }
902
+ /**
903
+ * Update parameters (such as name or tags) of an existing Private Network, specified by its Private Network ID.
904
+ * @summary Update Private Network
905
+ * @param {UpdatePrivateNetworkRegionEnum} region The region you want to target
906
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
907
+ * @param {UpdatePrivateNetworkRequest} updatePrivateNetworkRequest
908
+ * @param {*} [options] Override http request option.
909
+ * @throws {RequiredError}
910
+ * @memberof PrivateNetworksApi
911
+ */
912
+ updatePrivateNetwork(region, privateNetworkId, updatePrivateNetworkRequest, options) {
913
+ return (0, exports.PrivateNetworksApiFp)(this.configuration)
914
+ .updatePrivateNetwork(region, privateNetworkId, updatePrivateNetworkRequest, options)
915
+ .then((request) => request(this.axios, this.basePath));
916
+ }
917
+ }
918
+ exports.PrivateNetworksApi = PrivateNetworksApi;
919
+ /**
920
+ * @export
921
+ */
922
+ exports.CreatePrivateNetworkRegionEnum = {
923
+ FrPar: 'fr-par',
924
+ NlAms: 'nl-ams',
925
+ PlWaw: 'pl-waw',
926
+ };
927
+ /**
928
+ * @export
929
+ */
930
+ exports.DeletePrivateNetworkRegionEnum = {
931
+ FrPar: 'fr-par',
932
+ NlAms: 'nl-ams',
933
+ PlWaw: 'pl-waw',
934
+ };
935
+ /**
936
+ * @export
937
+ */
938
+ exports.EnableDHCPRegionEnum = {
939
+ FrPar: 'fr-par',
940
+ NlAms: 'nl-ams',
941
+ PlWaw: 'pl-waw',
942
+ };
943
+ /**
944
+ * @export
945
+ */
946
+ exports.GetPrivateNetworkRegionEnum = {
947
+ FrPar: 'fr-par',
948
+ NlAms: 'nl-ams',
949
+ PlWaw: 'pl-waw',
950
+ };
951
+ /**
952
+ * @export
953
+ */
954
+ exports.ListPrivateNetworksRegionEnum = {
955
+ FrPar: 'fr-par',
956
+ NlAms: 'nl-ams',
957
+ PlWaw: 'pl-waw',
958
+ };
959
+ /**
960
+ * @export
961
+ */
962
+ exports.ListPrivateNetworksOrderByEnum = {
963
+ CreatedAtAsc: 'created_at_asc',
964
+ CreatedAtDesc: 'created_at_desc',
965
+ NameAsc: 'name_asc',
966
+ NameDesc: 'name_desc',
967
+ };
968
+ /**
969
+ * @export
970
+ */
971
+ exports.UpdatePrivateNetworkRegionEnum = {
972
+ FrPar: 'fr-par',
973
+ NlAms: 'nl-ams',
974
+ PlWaw: 'pl-waw',
975
+ };
976
+ /**
977
+ * RoutesApi - axios parameter creator
978
+ * @export
979
+ */
980
+ const RoutesApiAxiosParamCreator = function (configuration) {
981
+ return {
982
+ /**
983
+ * Create a new custom Route.
984
+ * @summary Create a Route
985
+ * @param {CreateRouteRegionEnum} region The region you want to target
986
+ * @param {CreateRouteRequest} createRouteRequest
987
+ * @param {*} [options] Override http request option.
988
+ * @throws {RequiredError}
989
+ */
990
+ createRoute: async (region, createRouteRequest, options = {}) => {
991
+ // verify required parameter 'region' is not null or undefined
992
+ (0, common_1.assertParamExists)('createRoute', 'region', region);
993
+ // verify required parameter 'createRouteRequest' is not null or undefined
994
+ (0, common_1.assertParamExists)('createRoute', 'createRouteRequest', createRouteRequest);
995
+ const localVarPath = `/vpc/v2/regions/{region}/routes`.replace(`{${'region'}}`, encodeURIComponent(String(region)));
996
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
997
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
998
+ let baseOptions;
999
+ if (configuration) {
1000
+ baseOptions = configuration.baseOptions;
1001
+ }
1002
+ const localVarRequestOptions = {
1003
+ method: 'POST',
1004
+ ...baseOptions,
1005
+ ...options,
1006
+ };
1007
+ const localVarHeaderParameter = {};
1008
+ const localVarQueryParameter = {};
1009
+ // authentication scaleway required
1010
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1011
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1012
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1013
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1014
+ localVarRequestOptions.headers = {
1015
+ ...localVarHeaderParameter,
1016
+ ...headersFromBaseOptions,
1017
+ ...options.headers,
1018
+ };
1019
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createRouteRequest, localVarRequestOptions, configuration);
1020
+ return {
1021
+ url: (0, common_1.toPathString)(localVarUrlObj),
1022
+ options: localVarRequestOptions,
1023
+ };
1024
+ },
1025
+ /**
1026
+ * Delete a Route specified by its Route ID.
1027
+ * @summary Delete a Route
1028
+ * @param {DeleteRouteRegionEnum} region The region you want to target
1029
+ * @param {string} routeId Route ID. (UUID format)
1030
+ * @param {*} [options] Override http request option.
1031
+ * @throws {RequiredError}
1032
+ */
1033
+ deleteRoute: async (region, routeId, options = {}) => {
1034
+ // verify required parameter 'region' is not null or undefined
1035
+ (0, common_1.assertParamExists)('deleteRoute', 'region', region);
1036
+ // verify required parameter 'routeId' is not null or undefined
1037
+ (0, common_1.assertParamExists)('deleteRoute', 'routeId', routeId);
1038
+ const localVarPath = `/vpc/v2/regions/{region}/routes/{route_id}`
1039
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
1040
+ .replace(`{${'route_id'}}`, encodeURIComponent(String(routeId)));
1041
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1042
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1043
+ let baseOptions;
1044
+ if (configuration) {
1045
+ baseOptions = configuration.baseOptions;
1046
+ }
1047
+ const localVarRequestOptions = {
1048
+ method: 'DELETE',
1049
+ ...baseOptions,
1050
+ ...options,
1051
+ };
1052
+ const localVarHeaderParameter = {};
1053
+ const localVarQueryParameter = {};
1054
+ // authentication scaleway required
1055
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1056
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1057
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1058
+ localVarRequestOptions.headers = {
1059
+ ...localVarHeaderParameter,
1060
+ ...headersFromBaseOptions,
1061
+ ...options.headers,
1062
+ };
1063
+ return {
1064
+ url: (0, common_1.toPathString)(localVarUrlObj),
1065
+ options: localVarRequestOptions,
1066
+ };
1067
+ },
1068
+ /**
1069
+ * Retrieve details of an existing Route, specified by its Route ID.
1070
+ * @summary Get a Route
1071
+ * @param {GetRouteRegionEnum} region The region you want to target
1072
+ * @param {string} routeId Route ID. (UUID format)
1073
+ * @param {*} [options] Override http request option.
1074
+ * @throws {RequiredError}
1075
+ */
1076
+ getRoute: async (region, routeId, options = {}) => {
1077
+ // verify required parameter 'region' is not null or undefined
1078
+ (0, common_1.assertParamExists)('getRoute', 'region', region);
1079
+ // verify required parameter 'routeId' is not null or undefined
1080
+ (0, common_1.assertParamExists)('getRoute', 'routeId', routeId);
1081
+ const localVarPath = `/vpc/v2/regions/{region}/routes/{route_id}`
1082
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
1083
+ .replace(`{${'route_id'}}`, encodeURIComponent(String(routeId)));
1084
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1085
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1086
+ let baseOptions;
1087
+ if (configuration) {
1088
+ baseOptions = configuration.baseOptions;
1089
+ }
1090
+ const localVarRequestOptions = {
1091
+ method: 'GET',
1092
+ ...baseOptions,
1093
+ ...options,
1094
+ };
1095
+ const localVarHeaderParameter = {};
1096
+ const localVarQueryParameter = {};
1097
+ // authentication scaleway required
1098
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1099
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1101
+ localVarRequestOptions.headers = {
1102
+ ...localVarHeaderParameter,
1103
+ ...headersFromBaseOptions,
1104
+ ...options.headers,
1105
+ };
1106
+ return {
1107
+ url: (0, common_1.toPathString)(localVarUrlObj),
1108
+ options: localVarRequestOptions,
1109
+ };
1110
+ },
1111
+ /**
1112
+ * Update parameters of the specified Route.
1113
+ * @summary Update Route
1114
+ * @param {UpdateRouteRegionEnum} region The region you want to target
1115
+ * @param {string} routeId Route ID. (UUID format)
1116
+ * @param {UpdateRouteRequest} updateRouteRequest
1117
+ * @param {*} [options] Override http request option.
1118
+ * @throws {RequiredError}
1119
+ */
1120
+ updateRoute: async (region, routeId, updateRouteRequest, options = {}) => {
1121
+ // verify required parameter 'region' is not null or undefined
1122
+ (0, common_1.assertParamExists)('updateRoute', 'region', region);
1123
+ // verify required parameter 'routeId' is not null or undefined
1124
+ (0, common_1.assertParamExists)('updateRoute', 'routeId', routeId);
1125
+ // verify required parameter 'updateRouteRequest' is not null or undefined
1126
+ (0, common_1.assertParamExists)('updateRoute', 'updateRouteRequest', updateRouteRequest);
1127
+ const localVarPath = `/vpc/v2/regions/{region}/routes/{route_id}`
1128
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
1129
+ .replace(`{${'route_id'}}`, encodeURIComponent(String(routeId)));
1130
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1131
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1132
+ let baseOptions;
1133
+ if (configuration) {
1134
+ baseOptions = configuration.baseOptions;
1135
+ }
1136
+ const localVarRequestOptions = {
1137
+ method: 'PATCH',
1138
+ ...baseOptions,
1139
+ ...options,
1140
+ };
1141
+ const localVarHeaderParameter = {};
1142
+ const localVarQueryParameter = {};
1143
+ // authentication scaleway required
1144
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1145
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1146
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1147
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1148
+ localVarRequestOptions.headers = {
1149
+ ...localVarHeaderParameter,
1150
+ ...headersFromBaseOptions,
1151
+ ...options.headers,
1152
+ };
1153
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateRouteRequest, localVarRequestOptions, configuration);
1154
+ return {
1155
+ url: (0, common_1.toPathString)(localVarUrlObj),
1156
+ options: localVarRequestOptions,
1157
+ };
1158
+ },
1159
+ };
1160
+ };
1161
+ exports.RoutesApiAxiosParamCreator = RoutesApiAxiosParamCreator;
1162
+ /**
1163
+ * RoutesApi - functional programming interface
1164
+ * @export
1165
+ */
1166
+ const RoutesApiFp = function (configuration) {
1167
+ const localVarAxiosParamCreator = (0, exports.RoutesApiAxiosParamCreator)(configuration);
1168
+ return {
1169
+ /**
1170
+ * Create a new custom Route.
1171
+ * @summary Create a Route
1172
+ * @param {CreateRouteRegionEnum} region The region you want to target
1173
+ * @param {CreateRouteRequest} createRouteRequest
1174
+ * @param {*} [options] Override http request option.
1175
+ * @throws {RequiredError}
1176
+ */
1177
+ async createRoute(region, createRouteRequest, options) {
1178
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createRoute(region, createRouteRequest, options);
1179
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1180
+ const localVarOperationServerBasePath = base_1.operationServerMap['RoutesApi.createRoute']?.[localVarOperationServerIndex]?.url;
1181
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1182
+ },
1183
+ /**
1184
+ * Delete a Route specified by its Route ID.
1185
+ * @summary Delete a Route
1186
+ * @param {DeleteRouteRegionEnum} region The region you want to target
1187
+ * @param {string} routeId Route ID. (UUID format)
1188
+ * @param {*} [options] Override http request option.
1189
+ * @throws {RequiredError}
1190
+ */
1191
+ async deleteRoute(region, routeId, options) {
1192
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRoute(region, routeId, options);
1193
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1194
+ const localVarOperationServerBasePath = base_1.operationServerMap['RoutesApi.deleteRoute']?.[localVarOperationServerIndex]?.url;
1195
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1196
+ },
1197
+ /**
1198
+ * Retrieve details of an existing Route, specified by its Route ID.
1199
+ * @summary Get a Route
1200
+ * @param {GetRouteRegionEnum} region The region you want to target
1201
+ * @param {string} routeId Route ID. (UUID format)
1202
+ * @param {*} [options] Override http request option.
1203
+ * @throws {RequiredError}
1204
+ */
1205
+ async getRoute(region, routeId, options) {
1206
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRoute(region, routeId, options);
1207
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1208
+ const localVarOperationServerBasePath = base_1.operationServerMap['RoutesApi.getRoute']?.[localVarOperationServerIndex]
1209
+ ?.url;
1210
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1211
+ },
1212
+ /**
1213
+ * Update parameters of the specified Route.
1214
+ * @summary Update Route
1215
+ * @param {UpdateRouteRegionEnum} region The region you want to target
1216
+ * @param {string} routeId Route ID. (UUID format)
1217
+ * @param {UpdateRouteRequest} updateRouteRequest
1218
+ * @param {*} [options] Override http request option.
1219
+ * @throws {RequiredError}
1220
+ */
1221
+ async updateRoute(region, routeId, updateRouteRequest, options) {
1222
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateRoute(region, routeId, updateRouteRequest, options);
1223
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1224
+ const localVarOperationServerBasePath = base_1.operationServerMap['RoutesApi.updateRoute']?.[localVarOperationServerIndex]?.url;
1225
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1226
+ },
1227
+ };
1228
+ };
1229
+ exports.RoutesApiFp = RoutesApiFp;
1230
+ /**
1231
+ * RoutesApi - factory interface
1232
+ * @export
1233
+ */
1234
+ const RoutesApiFactory = function (configuration, basePath, axios) {
1235
+ const localVarFp = (0, exports.RoutesApiFp)(configuration);
1236
+ return {
1237
+ /**
1238
+ * Create a new custom Route.
1239
+ * @summary Create a Route
1240
+ * @param {CreateRouteRegionEnum} region The region you want to target
1241
+ * @param {CreateRouteRequest} createRouteRequest
1242
+ * @param {*} [options] Override http request option.
1243
+ * @throws {RequiredError}
1244
+ */
1245
+ createRoute(region, createRouteRequest, options) {
1246
+ return localVarFp
1247
+ .createRoute(region, createRouteRequest, options)
1248
+ .then((request) => request(axios, basePath));
1249
+ },
1250
+ /**
1251
+ * Delete a Route specified by its Route ID.
1252
+ * @summary Delete a Route
1253
+ * @param {DeleteRouteRegionEnum} region The region you want to target
1254
+ * @param {string} routeId Route ID. (UUID format)
1255
+ * @param {*} [options] Override http request option.
1256
+ * @throws {RequiredError}
1257
+ */
1258
+ deleteRoute(region, routeId, options) {
1259
+ return localVarFp
1260
+ .deleteRoute(region, routeId, options)
1261
+ .then((request) => request(axios, basePath));
1262
+ },
1263
+ /**
1264
+ * Retrieve details of an existing Route, specified by its Route ID.
1265
+ * @summary Get a Route
1266
+ * @param {GetRouteRegionEnum} region The region you want to target
1267
+ * @param {string} routeId Route ID. (UUID format)
1268
+ * @param {*} [options] Override http request option.
1269
+ * @throws {RequiredError}
1270
+ */
1271
+ getRoute(region, routeId, options) {
1272
+ return localVarFp
1273
+ .getRoute(region, routeId, options)
1274
+ .then((request) => request(axios, basePath));
1275
+ },
1276
+ /**
1277
+ * Update parameters of the specified Route.
1278
+ * @summary Update Route
1279
+ * @param {UpdateRouteRegionEnum} region The region you want to target
1280
+ * @param {string} routeId Route ID. (UUID format)
1281
+ * @param {UpdateRouteRequest} updateRouteRequest
1282
+ * @param {*} [options] Override http request option.
1283
+ * @throws {RequiredError}
1284
+ */
1285
+ updateRoute(region, routeId, updateRouteRequest, options) {
1286
+ return localVarFp
1287
+ .updateRoute(region, routeId, updateRouteRequest, options)
1288
+ .then((request) => request(axios, basePath));
1289
+ },
1290
+ };
1291
+ };
1292
+ exports.RoutesApiFactory = RoutesApiFactory;
1293
+ /**
1294
+ * RoutesApi - object-oriented interface
1295
+ * @export
1296
+ * @class RoutesApi
1297
+ * @extends {BaseAPI}
1298
+ */
1299
+ class RoutesApi extends base_1.BaseAPI {
1300
+ /**
1301
+ * Create a new custom Route.
1302
+ * @summary Create a Route
1303
+ * @param {CreateRouteRegionEnum} region The region you want to target
1304
+ * @param {CreateRouteRequest} createRouteRequest
1305
+ * @param {*} [options] Override http request option.
1306
+ * @throws {RequiredError}
1307
+ * @memberof RoutesApi
1308
+ */
1309
+ createRoute(region, createRouteRequest, options) {
1310
+ return (0, exports.RoutesApiFp)(this.configuration)
1311
+ .createRoute(region, createRouteRequest, options)
1312
+ .then((request) => request(this.axios, this.basePath));
1313
+ }
1314
+ /**
1315
+ * Delete a Route specified by its Route ID.
1316
+ * @summary Delete a Route
1317
+ * @param {DeleteRouteRegionEnum} region The region you want to target
1318
+ * @param {string} routeId Route ID. (UUID format)
1319
+ * @param {*} [options] Override http request option.
1320
+ * @throws {RequiredError}
1321
+ * @memberof RoutesApi
1322
+ */
1323
+ deleteRoute(region, routeId, options) {
1324
+ return (0, exports.RoutesApiFp)(this.configuration)
1325
+ .deleteRoute(region, routeId, options)
1326
+ .then((request) => request(this.axios, this.basePath));
1327
+ }
1328
+ /**
1329
+ * Retrieve details of an existing Route, specified by its Route ID.
1330
+ * @summary Get a Route
1331
+ * @param {GetRouteRegionEnum} region The region you want to target
1332
+ * @param {string} routeId Route ID. (UUID format)
1333
+ * @param {*} [options] Override http request option.
1334
+ * @throws {RequiredError}
1335
+ * @memberof RoutesApi
1336
+ */
1337
+ getRoute(region, routeId, options) {
1338
+ return (0, exports.RoutesApiFp)(this.configuration)
1339
+ .getRoute(region, routeId, options)
1340
+ .then((request) => request(this.axios, this.basePath));
1341
+ }
1342
+ /**
1343
+ * Update parameters of the specified Route.
1344
+ * @summary Update Route
1345
+ * @param {UpdateRouteRegionEnum} region The region you want to target
1346
+ * @param {string} routeId Route ID. (UUID format)
1347
+ * @param {UpdateRouteRequest} updateRouteRequest
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ * @memberof RoutesApi
1351
+ */
1352
+ updateRoute(region, routeId, updateRouteRequest, options) {
1353
+ return (0, exports.RoutesApiFp)(this.configuration)
1354
+ .updateRoute(region, routeId, updateRouteRequest, options)
1355
+ .then((request) => request(this.axios, this.basePath));
1356
+ }
1357
+ }
1358
+ exports.RoutesApi = RoutesApi;
1359
+ /**
1360
+ * @export
1361
+ */
1362
+ exports.CreateRouteRegionEnum = {
1363
+ FrPar: 'fr-par',
1364
+ NlAms: 'nl-ams',
1365
+ PlWaw: 'pl-waw',
1366
+ };
1367
+ /**
1368
+ * @export
1369
+ */
1370
+ exports.DeleteRouteRegionEnum = {
1371
+ FrPar: 'fr-par',
1372
+ NlAms: 'nl-ams',
1373
+ PlWaw: 'pl-waw',
1374
+ };
1375
+ /**
1376
+ * @export
1377
+ */
1378
+ exports.GetRouteRegionEnum = {
1379
+ FrPar: 'fr-par',
1380
+ NlAms: 'nl-ams',
1381
+ PlWaw: 'pl-waw',
1382
+ };
1383
+ /**
1384
+ * @export
1385
+ */
1386
+ exports.UpdateRouteRegionEnum = {
1387
+ FrPar: 'fr-par',
1388
+ NlAms: 'nl-ams',
1389
+ PlWaw: 'pl-waw',
1390
+ };
1391
+ /**
1392
+ * SubnetsApi - axios parameter creator
1393
+ * @export
1394
+ */
1395
+ const SubnetsApiAxiosParamCreator = function (configuration) {
1396
+ return {
1397
+ /**
1398
+ * Add new subnets to an existing Private Network.
1399
+ * @summary Add subnets to a Private Network
1400
+ * @param {AddSubnetsRegionEnum} region The region you want to target
1401
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
1402
+ * @param {AddSubnetsRequest} addSubnetsRequest
1403
+ * @param {*} [options] Override http request option.
1404
+ * @throws {RequiredError}
1405
+ */
1406
+ addSubnets: async (region, privateNetworkId, addSubnetsRequest, options = {}) => {
1407
+ // verify required parameter 'region' is not null or undefined
1408
+ (0, common_1.assertParamExists)('addSubnets', 'region', region);
1409
+ // verify required parameter 'privateNetworkId' is not null or undefined
1410
+ (0, common_1.assertParamExists)('addSubnets', 'privateNetworkId', privateNetworkId);
1411
+ // verify required parameter 'addSubnetsRequest' is not null or undefined
1412
+ (0, common_1.assertParamExists)('addSubnets', 'addSubnetsRequest', addSubnetsRequest);
1413
+ const localVarPath = `/vpc/v2/regions/{region}/private-networks/{private_network_id}/subnets`
1414
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
1415
+ .replace(`{${'private_network_id'}}`, encodeURIComponent(String(privateNetworkId)));
1416
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1417
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1418
+ let baseOptions;
1419
+ if (configuration) {
1420
+ baseOptions = configuration.baseOptions;
1421
+ }
1422
+ const localVarRequestOptions = {
1423
+ method: 'POST',
1424
+ ...baseOptions,
1425
+ ...options,
1426
+ };
1427
+ const localVarHeaderParameter = {};
1428
+ const localVarQueryParameter = {};
1429
+ // authentication scaleway required
1430
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1431
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1432
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1433
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1434
+ localVarRequestOptions.headers = {
1435
+ ...localVarHeaderParameter,
1436
+ ...headersFromBaseOptions,
1437
+ ...options.headers,
1438
+ };
1439
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addSubnetsRequest, localVarRequestOptions, configuration);
1440
+ return {
1441
+ url: (0, common_1.toPathString)(localVarUrlObj),
1442
+ options: localVarRequestOptions,
1443
+ };
1444
+ },
1445
+ /**
1446
+ * Delete the specified subnets from a Private Network.
1447
+ * @summary Delete subnets from a Private Network
1448
+ * @param {DeleteSubnetsRegionEnum} region The region you want to target
1449
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
1450
+ * @param {AddSubnetsRequest} addSubnetsRequest
1451
+ * @param {*} [options] Override http request option.
1452
+ * @throws {RequiredError}
1453
+ */
1454
+ deleteSubnets: async (region, privateNetworkId, addSubnetsRequest, options = {}) => {
1455
+ // verify required parameter 'region' is not null or undefined
1456
+ (0, common_1.assertParamExists)('deleteSubnets', 'region', region);
1457
+ // verify required parameter 'privateNetworkId' is not null or undefined
1458
+ (0, common_1.assertParamExists)('deleteSubnets', 'privateNetworkId', privateNetworkId);
1459
+ // verify required parameter 'addSubnetsRequest' is not null or undefined
1460
+ (0, common_1.assertParamExists)('deleteSubnets', 'addSubnetsRequest', addSubnetsRequest);
1461
+ const localVarPath = `/vpc/v2/regions/{region}/private-networks/{private_network_id}/subnets`
1462
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
1463
+ .replace(`{${'private_network_id'}}`, encodeURIComponent(String(privateNetworkId)));
1464
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1465
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1466
+ let baseOptions;
1467
+ if (configuration) {
1468
+ baseOptions = configuration.baseOptions;
1469
+ }
1470
+ const localVarRequestOptions = {
1471
+ method: 'DELETE',
1472
+ ...baseOptions,
1473
+ ...options,
1474
+ };
1475
+ const localVarHeaderParameter = {};
1476
+ const localVarQueryParameter = {};
1477
+ // authentication scaleway required
1478
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1479
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1480
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1481
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1482
+ localVarRequestOptions.headers = {
1483
+ ...localVarHeaderParameter,
1484
+ ...headersFromBaseOptions,
1485
+ ...options.headers,
1486
+ };
1487
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(addSubnetsRequest, localVarRequestOptions, configuration);
1488
+ return {
1489
+ url: (0, common_1.toPathString)(localVarUrlObj),
1490
+ options: localVarRequestOptions,
1491
+ };
1492
+ },
1493
+ /**
1494
+ * List any Private Network\'s subnets. See ListPrivateNetworks to list a specific Private Network\'s subnets.
1495
+ * @summary List subnets
1496
+ * @param {ListSubnetsRegionEnum} region The region you want to target
1497
+ * @param {ListSubnetsOrderByEnum} [orderBy] Sort order of the returned subnets.
1498
+ * @param {number} [page] Page number to return, from the paginated results.
1499
+ * @param {number} [pageSize] Maximum number of Private Networks to return per page.
1500
+ * @param {string} [organizationId] Organization ID to filter for. Only subnets belonging to this Organization will be returned. (UUID format)
1501
+ * @param {string} [projectId] Project ID to filter for. Only subnets belonging to this Project will be returned. (UUID format)
1502
+ * @param {Array<string>} [subnetIds] Subnet IDs to filter for. Only subnets matching the specified IDs will be returned.
1503
+ * @param {string} [vpcId] VPC ID to filter for. Only subnets belonging to this VPC will be returned. (UUID format)
1504
+ * @param {*} [options] Override http request option.
1505
+ * @throws {RequiredError}
1506
+ */
1507
+ listSubnets: async (region, orderBy, page, pageSize, organizationId, projectId, subnetIds, vpcId, options = {}) => {
1508
+ // verify required parameter 'region' is not null or undefined
1509
+ (0, common_1.assertParamExists)('listSubnets', 'region', region);
1510
+ const localVarPath = `/vpc/v2/regions/{region}/subnets`.replace(`{${'region'}}`, encodeURIComponent(String(region)));
1511
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1512
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1513
+ let baseOptions;
1514
+ if (configuration) {
1515
+ baseOptions = configuration.baseOptions;
1516
+ }
1517
+ const localVarRequestOptions = {
1518
+ method: 'GET',
1519
+ ...baseOptions,
1520
+ ...options,
1521
+ };
1522
+ const localVarHeaderParameter = {};
1523
+ const localVarQueryParameter = {};
1524
+ // authentication scaleway required
1525
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1526
+ if (orderBy !== undefined) {
1527
+ localVarQueryParameter['order_by'] = orderBy;
1528
+ }
1529
+ if (page !== undefined) {
1530
+ localVarQueryParameter['page'] = page;
1531
+ }
1532
+ if (pageSize !== undefined) {
1533
+ localVarQueryParameter['page_size'] = pageSize;
1534
+ }
1535
+ if (organizationId !== undefined) {
1536
+ localVarQueryParameter['organization_id'] = organizationId;
1537
+ }
1538
+ if (projectId !== undefined) {
1539
+ localVarQueryParameter['project_id'] = projectId;
1540
+ }
1541
+ if (subnetIds) {
1542
+ localVarQueryParameter['subnet_ids'] = subnetIds;
1543
+ }
1544
+ if (vpcId !== undefined) {
1545
+ localVarQueryParameter['vpc_id'] = vpcId;
1546
+ }
1547
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1548
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1549
+ localVarRequestOptions.headers = {
1550
+ ...localVarHeaderParameter,
1551
+ ...headersFromBaseOptions,
1552
+ ...options.headers,
1553
+ };
1554
+ return {
1555
+ url: (0, common_1.toPathString)(localVarUrlObj),
1556
+ options: localVarRequestOptions,
1557
+ };
1558
+ },
1559
+ };
1560
+ };
1561
+ exports.SubnetsApiAxiosParamCreator = SubnetsApiAxiosParamCreator;
1562
+ /**
1563
+ * SubnetsApi - functional programming interface
1564
+ * @export
1565
+ */
1566
+ const SubnetsApiFp = function (configuration) {
1567
+ const localVarAxiosParamCreator = (0, exports.SubnetsApiAxiosParamCreator)(configuration);
1568
+ return {
1569
+ /**
1570
+ * Add new subnets to an existing Private Network.
1571
+ * @summary Add subnets to a Private Network
1572
+ * @param {AddSubnetsRegionEnum} region The region you want to target
1573
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
1574
+ * @param {AddSubnetsRequest} addSubnetsRequest
1575
+ * @param {*} [options] Override http request option.
1576
+ * @throws {RequiredError}
1577
+ */
1578
+ async addSubnets(region, privateNetworkId, addSubnetsRequest, options) {
1579
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addSubnets(region, privateNetworkId, addSubnetsRequest, options);
1580
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1581
+ const localVarOperationServerBasePath = base_1.operationServerMap['SubnetsApi.addSubnets']?.[localVarOperationServerIndex]?.url;
1582
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1583
+ },
1584
+ /**
1585
+ * Delete the specified subnets from a Private Network.
1586
+ * @summary Delete subnets from a Private Network
1587
+ * @param {DeleteSubnetsRegionEnum} region The region you want to target
1588
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
1589
+ * @param {AddSubnetsRequest} addSubnetsRequest
1590
+ * @param {*} [options] Override http request option.
1591
+ * @throws {RequiredError}
1592
+ */
1593
+ async deleteSubnets(region, privateNetworkId, addSubnetsRequest, options) {
1594
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSubnets(region, privateNetworkId, addSubnetsRequest, options);
1595
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1596
+ const localVarOperationServerBasePath = base_1.operationServerMap['SubnetsApi.deleteSubnets']?.[localVarOperationServerIndex]?.url;
1597
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1598
+ },
1599
+ /**
1600
+ * List any Private Network\'s subnets. See ListPrivateNetworks to list a specific Private Network\'s subnets.
1601
+ * @summary List subnets
1602
+ * @param {ListSubnetsRegionEnum} region The region you want to target
1603
+ * @param {ListSubnetsOrderByEnum} [orderBy] Sort order of the returned subnets.
1604
+ * @param {number} [page] Page number to return, from the paginated results.
1605
+ * @param {number} [pageSize] Maximum number of Private Networks to return per page.
1606
+ * @param {string} [organizationId] Organization ID to filter for. Only subnets belonging to this Organization will be returned. (UUID format)
1607
+ * @param {string} [projectId] Project ID to filter for. Only subnets belonging to this Project will be returned. (UUID format)
1608
+ * @param {Array<string>} [subnetIds] Subnet IDs to filter for. Only subnets matching the specified IDs will be returned.
1609
+ * @param {string} [vpcId] VPC ID to filter for. Only subnets belonging to this VPC will be returned. (UUID format)
1610
+ * @param {*} [options] Override http request option.
1611
+ * @throws {RequiredError}
1612
+ */
1613
+ async listSubnets(region, orderBy, page, pageSize, organizationId, projectId, subnetIds, vpcId, options) {
1614
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSubnets(region, orderBy, page, pageSize, organizationId, projectId, subnetIds, vpcId, options);
1615
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1616
+ const localVarOperationServerBasePath = base_1.operationServerMap['SubnetsApi.listSubnets']?.[localVarOperationServerIndex]?.url;
1617
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1618
+ },
1619
+ };
1620
+ };
1621
+ exports.SubnetsApiFp = SubnetsApiFp;
1622
+ /**
1623
+ * SubnetsApi - factory interface
1624
+ * @export
1625
+ */
1626
+ const SubnetsApiFactory = function (configuration, basePath, axios) {
1627
+ const localVarFp = (0, exports.SubnetsApiFp)(configuration);
1628
+ return {
1629
+ /**
1630
+ * Add new subnets to an existing Private Network.
1631
+ * @summary Add subnets to a Private Network
1632
+ * @param {AddSubnetsRegionEnum} region The region you want to target
1633
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
1634
+ * @param {AddSubnetsRequest} addSubnetsRequest
1635
+ * @param {*} [options] Override http request option.
1636
+ * @throws {RequiredError}
1637
+ */
1638
+ addSubnets(region, privateNetworkId, addSubnetsRequest, options) {
1639
+ return localVarFp
1640
+ .addSubnets(region, privateNetworkId, addSubnetsRequest, options)
1641
+ .then((request) => request(axios, basePath));
1642
+ },
1643
+ /**
1644
+ * Delete the specified subnets from a Private Network.
1645
+ * @summary Delete subnets from a Private Network
1646
+ * @param {DeleteSubnetsRegionEnum} region The region you want to target
1647
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
1648
+ * @param {AddSubnetsRequest} addSubnetsRequest
1649
+ * @param {*} [options] Override http request option.
1650
+ * @throws {RequiredError}
1651
+ */
1652
+ deleteSubnets(region, privateNetworkId, addSubnetsRequest, options) {
1653
+ return localVarFp
1654
+ .deleteSubnets(region, privateNetworkId, addSubnetsRequest, options)
1655
+ .then((request) => request(axios, basePath));
1656
+ },
1657
+ /**
1658
+ * List any Private Network\'s subnets. See ListPrivateNetworks to list a specific Private Network\'s subnets.
1659
+ * @summary List subnets
1660
+ * @param {ListSubnetsRegionEnum} region The region you want to target
1661
+ * @param {ListSubnetsOrderByEnum} [orderBy] Sort order of the returned subnets.
1662
+ * @param {number} [page] Page number to return, from the paginated results.
1663
+ * @param {number} [pageSize] Maximum number of Private Networks to return per page.
1664
+ * @param {string} [organizationId] Organization ID to filter for. Only subnets belonging to this Organization will be returned. (UUID format)
1665
+ * @param {string} [projectId] Project ID to filter for. Only subnets belonging to this Project will be returned. (UUID format)
1666
+ * @param {Array<string>} [subnetIds] Subnet IDs to filter for. Only subnets matching the specified IDs will be returned.
1667
+ * @param {string} [vpcId] VPC ID to filter for. Only subnets belonging to this VPC will be returned. (UUID format)
1668
+ * @param {*} [options] Override http request option.
1669
+ * @throws {RequiredError}
1670
+ */
1671
+ listSubnets(region, orderBy, page, pageSize, organizationId, projectId, subnetIds, vpcId, options) {
1672
+ return localVarFp
1673
+ .listSubnets(region, orderBy, page, pageSize, organizationId, projectId, subnetIds, vpcId, options)
1674
+ .then((request) => request(axios, basePath));
1675
+ },
1676
+ };
1677
+ };
1678
+ exports.SubnetsApiFactory = SubnetsApiFactory;
1679
+ /**
1680
+ * SubnetsApi - object-oriented interface
1681
+ * @export
1682
+ * @class SubnetsApi
1683
+ * @extends {BaseAPI}
1684
+ */
1685
+ class SubnetsApi extends base_1.BaseAPI {
1686
+ /**
1687
+ * Add new subnets to an existing Private Network.
1688
+ * @summary Add subnets to a Private Network
1689
+ * @param {AddSubnetsRegionEnum} region The region you want to target
1690
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
1691
+ * @param {AddSubnetsRequest} addSubnetsRequest
1692
+ * @param {*} [options] Override http request option.
1693
+ * @throws {RequiredError}
1694
+ * @memberof SubnetsApi
1695
+ */
1696
+ addSubnets(region, privateNetworkId, addSubnetsRequest, options) {
1697
+ return (0, exports.SubnetsApiFp)(this.configuration)
1698
+ .addSubnets(region, privateNetworkId, addSubnetsRequest, options)
1699
+ .then((request) => request(this.axios, this.basePath));
1700
+ }
1701
+ /**
1702
+ * Delete the specified subnets from a Private Network.
1703
+ * @summary Delete subnets from a Private Network
1704
+ * @param {DeleteSubnetsRegionEnum} region The region you want to target
1705
+ * @param {string} privateNetworkId Private Network ID. (UUID format)
1706
+ * @param {AddSubnetsRequest} addSubnetsRequest
1707
+ * @param {*} [options] Override http request option.
1708
+ * @throws {RequiredError}
1709
+ * @memberof SubnetsApi
1710
+ */
1711
+ deleteSubnets(region, privateNetworkId, addSubnetsRequest, options) {
1712
+ return (0, exports.SubnetsApiFp)(this.configuration)
1713
+ .deleteSubnets(region, privateNetworkId, addSubnetsRequest, options)
1714
+ .then((request) => request(this.axios, this.basePath));
1715
+ }
1716
+ /**
1717
+ * List any Private Network\'s subnets. See ListPrivateNetworks to list a specific Private Network\'s subnets.
1718
+ * @summary List subnets
1719
+ * @param {ListSubnetsRegionEnum} region The region you want to target
1720
+ * @param {ListSubnetsOrderByEnum} [orderBy] Sort order of the returned subnets.
1721
+ * @param {number} [page] Page number to return, from the paginated results.
1722
+ * @param {number} [pageSize] Maximum number of Private Networks to return per page.
1723
+ * @param {string} [organizationId] Organization ID to filter for. Only subnets belonging to this Organization will be returned. (UUID format)
1724
+ * @param {string} [projectId] Project ID to filter for. Only subnets belonging to this Project will be returned. (UUID format)
1725
+ * @param {Array<string>} [subnetIds] Subnet IDs to filter for. Only subnets matching the specified IDs will be returned.
1726
+ * @param {string} [vpcId] VPC ID to filter for. Only subnets belonging to this VPC will be returned. (UUID format)
1727
+ * @param {*} [options] Override http request option.
1728
+ * @throws {RequiredError}
1729
+ * @memberof SubnetsApi
1730
+ */
1731
+ listSubnets(region, orderBy, page, pageSize, organizationId, projectId, subnetIds, vpcId, options) {
1732
+ return (0, exports.SubnetsApiFp)(this.configuration)
1733
+ .listSubnets(region, orderBy, page, pageSize, organizationId, projectId, subnetIds, vpcId, options)
1734
+ .then((request) => request(this.axios, this.basePath));
1735
+ }
1736
+ }
1737
+ exports.SubnetsApi = SubnetsApi;
1738
+ /**
1739
+ * @export
1740
+ */
1741
+ exports.AddSubnetsRegionEnum = {
1742
+ FrPar: 'fr-par',
1743
+ NlAms: 'nl-ams',
1744
+ PlWaw: 'pl-waw',
1745
+ };
1746
+ /**
1747
+ * @export
1748
+ */
1749
+ exports.DeleteSubnetsRegionEnum = {
1750
+ FrPar: 'fr-par',
1751
+ NlAms: 'nl-ams',
1752
+ PlWaw: 'pl-waw',
1753
+ };
1754
+ /**
1755
+ * @export
1756
+ */
1757
+ exports.ListSubnetsRegionEnum = {
1758
+ FrPar: 'fr-par',
1759
+ NlAms: 'nl-ams',
1760
+ PlWaw: 'pl-waw',
1761
+ };
1762
+ /**
1763
+ * @export
1764
+ */
1765
+ exports.ListSubnetsOrderByEnum = {
1766
+ CreatedAtAsc: 'created_at_asc',
1767
+ CreatedAtDesc: 'created_at_desc',
1768
+ };
1769
+ /**
1770
+ * VPCsApi - axios parameter creator
1771
+ * @export
1772
+ */
1773
+ const VPCsApiAxiosParamCreator = function (configuration) {
1774
+ return {
1775
+ /**
1776
+ * Create a new VPC in the specified region.
1777
+ * @summary Create a VPC
1778
+ * @param {CreateVPCRegionEnum} region The region you want to target
1779
+ * @param {CreateVPCRequest} createVPCRequest
1780
+ * @param {*} [options] Override http request option.
1781
+ * @throws {RequiredError}
1782
+ */
1783
+ createVPC: async (region, createVPCRequest, options = {}) => {
1784
+ // verify required parameter 'region' is not null or undefined
1785
+ (0, common_1.assertParamExists)('createVPC', 'region', region);
1786
+ // verify required parameter 'createVPCRequest' is not null or undefined
1787
+ (0, common_1.assertParamExists)('createVPC', 'createVPCRequest', createVPCRequest);
1788
+ const localVarPath = `/vpc/v2/regions/{region}/vpcs`.replace(`{${'region'}}`, encodeURIComponent(String(region)));
1789
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1790
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1791
+ let baseOptions;
1792
+ if (configuration) {
1793
+ baseOptions = configuration.baseOptions;
1794
+ }
1795
+ const localVarRequestOptions = {
1796
+ method: 'POST',
1797
+ ...baseOptions,
1798
+ ...options,
1799
+ };
1800
+ const localVarHeaderParameter = {};
1801
+ const localVarQueryParameter = {};
1802
+ // authentication scaleway required
1803
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1804
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1805
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1806
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1807
+ localVarRequestOptions.headers = {
1808
+ ...localVarHeaderParameter,
1809
+ ...headersFromBaseOptions,
1810
+ ...options.headers,
1811
+ };
1812
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVPCRequest, localVarRequestOptions, configuration);
1813
+ return {
1814
+ url: (0, common_1.toPathString)(localVarUrlObj),
1815
+ options: localVarRequestOptions,
1816
+ };
1817
+ },
1818
+ /**
1819
+ * Delete a VPC specified by its VPC ID.
1820
+ * @summary Delete a VPC
1821
+ * @param {DeleteVPCRegionEnum} region The region you want to target
1822
+ * @param {string} vpcId VPC ID. (UUID format)
1823
+ * @param {*} [options] Override http request option.
1824
+ * @throws {RequiredError}
1825
+ */
1826
+ deleteVPC: async (region, vpcId, options = {}) => {
1827
+ // verify required parameter 'region' is not null or undefined
1828
+ (0, common_1.assertParamExists)('deleteVPC', 'region', region);
1829
+ // verify required parameter 'vpcId' is not null or undefined
1830
+ (0, common_1.assertParamExists)('deleteVPC', 'vpcId', vpcId);
1831
+ const localVarPath = `/vpc/v2/regions/{region}/vpcs/{vpc_id}`
1832
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
1833
+ .replace(`{${'vpc_id'}}`, encodeURIComponent(String(vpcId)));
1834
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1835
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1836
+ let baseOptions;
1837
+ if (configuration) {
1838
+ baseOptions = configuration.baseOptions;
1839
+ }
1840
+ const localVarRequestOptions = {
1841
+ method: 'DELETE',
1842
+ ...baseOptions,
1843
+ ...options,
1844
+ };
1845
+ const localVarHeaderParameter = {};
1846
+ const localVarQueryParameter = {};
1847
+ // authentication scaleway required
1848
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1849
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1850
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1851
+ localVarRequestOptions.headers = {
1852
+ ...localVarHeaderParameter,
1853
+ ...headersFromBaseOptions,
1854
+ ...options.headers,
1855
+ };
1856
+ return {
1857
+ url: (0, common_1.toPathString)(localVarUrlObj),
1858
+ options: localVarRequestOptions,
1859
+ };
1860
+ },
1861
+ /**
1862
+ * Enable routing on an existing VPC. Note that you will not be able to deactivate it afterwards.
1863
+ * @summary Enable routing on a VPC
1864
+ * @param {EnableRoutingRegionEnum} region The region you want to target
1865
+ * @param {string} vpcId VPC ID. (UUID format)
1866
+ * @param {object} body
1867
+ * @param {*} [options] Override http request option.
1868
+ * @throws {RequiredError}
1869
+ */
1870
+ enableRouting: async (region, vpcId, body, options = {}) => {
1871
+ // verify required parameter 'region' is not null or undefined
1872
+ (0, common_1.assertParamExists)('enableRouting', 'region', region);
1873
+ // verify required parameter 'vpcId' is not null or undefined
1874
+ (0, common_1.assertParamExists)('enableRouting', 'vpcId', vpcId);
1875
+ // verify required parameter 'body' is not null or undefined
1876
+ (0, common_1.assertParamExists)('enableRouting', 'body', body);
1877
+ const localVarPath = `/vpc/v2/regions/{region}/vpcs/{vpc_id}/enable-routing`
1878
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
1879
+ .replace(`{${'vpc_id'}}`, encodeURIComponent(String(vpcId)));
1880
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1881
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1882
+ let baseOptions;
1883
+ if (configuration) {
1884
+ baseOptions = configuration.baseOptions;
1885
+ }
1886
+ const localVarRequestOptions = {
1887
+ method: 'POST',
1888
+ ...baseOptions,
1889
+ ...options,
1890
+ };
1891
+ const localVarHeaderParameter = {};
1892
+ const localVarQueryParameter = {};
1893
+ // authentication scaleway required
1894
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1895
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1896
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1897
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1898
+ localVarRequestOptions.headers = {
1899
+ ...localVarHeaderParameter,
1900
+ ...headersFromBaseOptions,
1901
+ ...options.headers,
1902
+ };
1903
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1904
+ return {
1905
+ url: (0, common_1.toPathString)(localVarUrlObj),
1906
+ options: localVarRequestOptions,
1907
+ };
1908
+ },
1909
+ /**
1910
+ * Retrieve details of an existing VPC, specified by its VPC ID.
1911
+ * @summary Get a VPC
1912
+ * @param {GetVPCRegionEnum} region The region you want to target
1913
+ * @param {string} vpcId VPC ID. (UUID format)
1914
+ * @param {*} [options] Override http request option.
1915
+ * @throws {RequiredError}
1916
+ */
1917
+ getVPC: async (region, vpcId, options = {}) => {
1918
+ // verify required parameter 'region' is not null or undefined
1919
+ (0, common_1.assertParamExists)('getVPC', 'region', region);
1920
+ // verify required parameter 'vpcId' is not null or undefined
1921
+ (0, common_1.assertParamExists)('getVPC', 'vpcId', vpcId);
1922
+ const localVarPath = `/vpc/v2/regions/{region}/vpcs/{vpc_id}`
1923
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
1924
+ .replace(`{${'vpc_id'}}`, encodeURIComponent(String(vpcId)));
1925
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1926
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1927
+ let baseOptions;
1928
+ if (configuration) {
1929
+ baseOptions = configuration.baseOptions;
1930
+ }
1931
+ const localVarRequestOptions = {
1932
+ method: 'GET',
1933
+ ...baseOptions,
1934
+ ...options,
1935
+ };
1936
+ const localVarHeaderParameter = {};
1937
+ const localVarQueryParameter = {};
1938
+ // authentication scaleway required
1939
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1940
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1941
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1942
+ localVarRequestOptions.headers = {
1943
+ ...localVarHeaderParameter,
1944
+ ...headersFromBaseOptions,
1945
+ ...options.headers,
1946
+ };
1947
+ return {
1948
+ url: (0, common_1.toPathString)(localVarUrlObj),
1949
+ options: localVarRequestOptions,
1950
+ };
1951
+ },
1952
+ /**
1953
+ * List existing VPCs in the specified region.
1954
+ * @summary List VPCs
1955
+ * @param {ListVPCsRegionEnum} region The region you want to target
1956
+ * @param {ListVPCsOrderByEnum} [orderBy] Sort order of the returned VPCs.
1957
+ * @param {number} [page] Page number to return, from the paginated results.
1958
+ * @param {number} [pageSize] Maximum number of VPCs to return per page.
1959
+ * @param {string} [name] Name to filter for. Only VPCs with names containing this string will be returned.
1960
+ * @param {Array<string>} [tags] Tags to filter for. Only VPCs with one or more matching tags will be returned.
1961
+ * @param {string} [organizationId] Organization ID to filter for. Only VPCs belonging to this Organization will be returned. (UUID format)
1962
+ * @param {string} [projectId] Project ID to filter for. Only VPCs belonging to this Project will be returned. (UUID format)
1963
+ * @param {boolean} [isDefault] Defines whether to filter only for VPCs which are the default one for their Project.
1964
+ * @param {boolean} [routingEnabled] Defines whether to filter only for VPCs which route traffic between their Private Networks.
1965
+ * @param {*} [options] Override http request option.
1966
+ * @throws {RequiredError}
1967
+ */
1968
+ listVPCs: async (region, orderBy, page, pageSize, name, tags, organizationId, projectId, isDefault, routingEnabled, options = {}) => {
1969
+ // verify required parameter 'region' is not null or undefined
1970
+ (0, common_1.assertParamExists)('listVPCs', 'region', region);
1971
+ const localVarPath = `/vpc/v2/regions/{region}/vpcs`.replace(`{${'region'}}`, encodeURIComponent(String(region)));
1972
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1973
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1974
+ let baseOptions;
1975
+ if (configuration) {
1976
+ baseOptions = configuration.baseOptions;
1977
+ }
1978
+ const localVarRequestOptions = {
1979
+ method: 'GET',
1980
+ ...baseOptions,
1981
+ ...options,
1982
+ };
1983
+ const localVarHeaderParameter = {};
1984
+ const localVarQueryParameter = {};
1985
+ // authentication scaleway required
1986
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
1987
+ if (orderBy !== undefined) {
1988
+ localVarQueryParameter['order_by'] = orderBy;
1989
+ }
1990
+ if (page !== undefined) {
1991
+ localVarQueryParameter['page'] = page;
1992
+ }
1993
+ if (pageSize !== undefined) {
1994
+ localVarQueryParameter['page_size'] = pageSize;
1995
+ }
1996
+ if (name !== undefined) {
1997
+ localVarQueryParameter['name'] = name;
1998
+ }
1999
+ if (tags) {
2000
+ localVarQueryParameter['tags'] = tags;
2001
+ }
2002
+ if (organizationId !== undefined) {
2003
+ localVarQueryParameter['organization_id'] = organizationId;
2004
+ }
2005
+ if (projectId !== undefined) {
2006
+ localVarQueryParameter['project_id'] = projectId;
2007
+ }
2008
+ if (isDefault !== undefined) {
2009
+ localVarQueryParameter['is_default'] = isDefault;
2010
+ }
2011
+ if (routingEnabled !== undefined) {
2012
+ localVarQueryParameter['routing_enabled'] = routingEnabled;
2013
+ }
2014
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2016
+ localVarRequestOptions.headers = {
2017
+ ...localVarHeaderParameter,
2018
+ ...headersFromBaseOptions,
2019
+ ...options.headers,
2020
+ };
2021
+ return {
2022
+ url: (0, common_1.toPathString)(localVarUrlObj),
2023
+ options: localVarRequestOptions,
2024
+ };
2025
+ },
2026
+ /**
2027
+ * Update parameters including name and tags of the specified VPC.
2028
+ * @summary Update VPC
2029
+ * @param {UpdateVPCRegionEnum} region The region you want to target
2030
+ * @param {string} vpcId VPC ID. (UUID format)
2031
+ * @param {UpdateVPCRequest} updateVPCRequest
2032
+ * @param {*} [options] Override http request option.
2033
+ * @throws {RequiredError}
2034
+ */
2035
+ updateVPC: async (region, vpcId, updateVPCRequest, options = {}) => {
2036
+ // verify required parameter 'region' is not null or undefined
2037
+ (0, common_1.assertParamExists)('updateVPC', 'region', region);
2038
+ // verify required parameter 'vpcId' is not null or undefined
2039
+ (0, common_1.assertParamExists)('updateVPC', 'vpcId', vpcId);
2040
+ // verify required parameter 'updateVPCRequest' is not null or undefined
2041
+ (0, common_1.assertParamExists)('updateVPC', 'updateVPCRequest', updateVPCRequest);
2042
+ const localVarPath = `/vpc/v2/regions/{region}/vpcs/{vpc_id}`
2043
+ .replace(`{${'region'}}`, encodeURIComponent(String(region)))
2044
+ .replace(`{${'vpc_id'}}`, encodeURIComponent(String(vpcId)));
2045
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2046
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2047
+ let baseOptions;
2048
+ if (configuration) {
2049
+ baseOptions = configuration.baseOptions;
2050
+ }
2051
+ const localVarRequestOptions = {
2052
+ method: 'PATCH',
2053
+ ...baseOptions,
2054
+ ...options,
2055
+ };
2056
+ const localVarHeaderParameter = {};
2057
+ const localVarQueryParameter = {};
2058
+ // authentication scaleway required
2059
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, 'X-Auth-Token', configuration);
2060
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2061
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2062
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2063
+ localVarRequestOptions.headers = {
2064
+ ...localVarHeaderParameter,
2065
+ ...headersFromBaseOptions,
2066
+ ...options.headers,
2067
+ };
2068
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVPCRequest, localVarRequestOptions, configuration);
2069
+ return {
2070
+ url: (0, common_1.toPathString)(localVarUrlObj),
2071
+ options: localVarRequestOptions,
2072
+ };
2073
+ },
2074
+ };
2075
+ };
2076
+ exports.VPCsApiAxiosParamCreator = VPCsApiAxiosParamCreator;
2077
+ /**
2078
+ * VPCsApi - functional programming interface
2079
+ * @export
2080
+ */
2081
+ const VPCsApiFp = function (configuration) {
2082
+ const localVarAxiosParamCreator = (0, exports.VPCsApiAxiosParamCreator)(configuration);
2083
+ return {
2084
+ /**
2085
+ * Create a new VPC in the specified region.
2086
+ * @summary Create a VPC
2087
+ * @param {CreateVPCRegionEnum} region The region you want to target
2088
+ * @param {CreateVPCRequest} createVPCRequest
2089
+ * @param {*} [options] Override http request option.
2090
+ * @throws {RequiredError}
2091
+ */
2092
+ async createVPC(region, createVPCRequest, options) {
2093
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVPC(region, createVPCRequest, options);
2094
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2095
+ const localVarOperationServerBasePath = base_1.operationServerMap['VPCsApi.createVPC']?.[localVarOperationServerIndex]
2096
+ ?.url;
2097
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2098
+ },
2099
+ /**
2100
+ * Delete a VPC specified by its VPC ID.
2101
+ * @summary Delete a VPC
2102
+ * @param {DeleteVPCRegionEnum} region The region you want to target
2103
+ * @param {string} vpcId VPC ID. (UUID format)
2104
+ * @param {*} [options] Override http request option.
2105
+ * @throws {RequiredError}
2106
+ */
2107
+ async deleteVPC(region, vpcId, options) {
2108
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteVPC(region, vpcId, options);
2109
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2110
+ const localVarOperationServerBasePath = base_1.operationServerMap['VPCsApi.deleteVPC']?.[localVarOperationServerIndex]
2111
+ ?.url;
2112
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2113
+ },
2114
+ /**
2115
+ * Enable routing on an existing VPC. Note that you will not be able to deactivate it afterwards.
2116
+ * @summary Enable routing on a VPC
2117
+ * @param {EnableRoutingRegionEnum} region The region you want to target
2118
+ * @param {string} vpcId VPC ID. (UUID format)
2119
+ * @param {object} body
2120
+ * @param {*} [options] Override http request option.
2121
+ * @throws {RequiredError}
2122
+ */
2123
+ async enableRouting(region, vpcId, body, options) {
2124
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableRouting(region, vpcId, body, options);
2125
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2126
+ const localVarOperationServerBasePath = base_1.operationServerMap['VPCsApi.enableRouting']?.[localVarOperationServerIndex]?.url;
2127
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2128
+ },
2129
+ /**
2130
+ * Retrieve details of an existing VPC, specified by its VPC ID.
2131
+ * @summary Get a VPC
2132
+ * @param {GetVPCRegionEnum} region The region you want to target
2133
+ * @param {string} vpcId VPC ID. (UUID format)
2134
+ * @param {*} [options] Override http request option.
2135
+ * @throws {RequiredError}
2136
+ */
2137
+ async getVPC(region, vpcId, options) {
2138
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVPC(region, vpcId, options);
2139
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2140
+ const localVarOperationServerBasePath = base_1.operationServerMap['VPCsApi.getVPC']?.[localVarOperationServerIndex]
2141
+ ?.url;
2142
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2143
+ },
2144
+ /**
2145
+ * List existing VPCs in the specified region.
2146
+ * @summary List VPCs
2147
+ * @param {ListVPCsRegionEnum} region The region you want to target
2148
+ * @param {ListVPCsOrderByEnum} [orderBy] Sort order of the returned VPCs.
2149
+ * @param {number} [page] Page number to return, from the paginated results.
2150
+ * @param {number} [pageSize] Maximum number of VPCs to return per page.
2151
+ * @param {string} [name] Name to filter for. Only VPCs with names containing this string will be returned.
2152
+ * @param {Array<string>} [tags] Tags to filter for. Only VPCs with one or more matching tags will be returned.
2153
+ * @param {string} [organizationId] Organization ID to filter for. Only VPCs belonging to this Organization will be returned. (UUID format)
2154
+ * @param {string} [projectId] Project ID to filter for. Only VPCs belonging to this Project will be returned. (UUID format)
2155
+ * @param {boolean} [isDefault] Defines whether to filter only for VPCs which are the default one for their Project.
2156
+ * @param {boolean} [routingEnabled] Defines whether to filter only for VPCs which route traffic between their Private Networks.
2157
+ * @param {*} [options] Override http request option.
2158
+ * @throws {RequiredError}
2159
+ */
2160
+ async listVPCs(region, orderBy, page, pageSize, name, tags, organizationId, projectId, isDefault, routingEnabled, options) {
2161
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listVPCs(region, orderBy, page, pageSize, name, tags, organizationId, projectId, isDefault, routingEnabled, options);
2162
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2163
+ const localVarOperationServerBasePath = base_1.operationServerMap['VPCsApi.listVPCs']?.[localVarOperationServerIndex]
2164
+ ?.url;
2165
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2166
+ },
2167
+ /**
2168
+ * Update parameters including name and tags of the specified VPC.
2169
+ * @summary Update VPC
2170
+ * @param {UpdateVPCRegionEnum} region The region you want to target
2171
+ * @param {string} vpcId VPC ID. (UUID format)
2172
+ * @param {UpdateVPCRequest} updateVPCRequest
2173
+ * @param {*} [options] Override http request option.
2174
+ * @throws {RequiredError}
2175
+ */
2176
+ async updateVPC(region, vpcId, updateVPCRequest, options) {
2177
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateVPC(region, vpcId, updateVPCRequest, options);
2178
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2179
+ const localVarOperationServerBasePath = base_1.operationServerMap['VPCsApi.updateVPC']?.[localVarOperationServerIndex]
2180
+ ?.url;
2181
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2182
+ },
2183
+ };
2184
+ };
2185
+ exports.VPCsApiFp = VPCsApiFp;
2186
+ /**
2187
+ * VPCsApi - factory interface
2188
+ * @export
2189
+ */
2190
+ const VPCsApiFactory = function (configuration, basePath, axios) {
2191
+ const localVarFp = (0, exports.VPCsApiFp)(configuration);
2192
+ return {
2193
+ /**
2194
+ * Create a new VPC in the specified region.
2195
+ * @summary Create a VPC
2196
+ * @param {CreateVPCRegionEnum} region The region you want to target
2197
+ * @param {CreateVPCRequest} createVPCRequest
2198
+ * @param {*} [options] Override http request option.
2199
+ * @throws {RequiredError}
2200
+ */
2201
+ createVPC(region, createVPCRequest, options) {
2202
+ return localVarFp
2203
+ .createVPC(region, createVPCRequest, options)
2204
+ .then((request) => request(axios, basePath));
2205
+ },
2206
+ /**
2207
+ * Delete a VPC specified by its VPC ID.
2208
+ * @summary Delete a VPC
2209
+ * @param {DeleteVPCRegionEnum} region The region you want to target
2210
+ * @param {string} vpcId VPC ID. (UUID format)
2211
+ * @param {*} [options] Override http request option.
2212
+ * @throws {RequiredError}
2213
+ */
2214
+ deleteVPC(region, vpcId, options) {
2215
+ return localVarFp
2216
+ .deleteVPC(region, vpcId, options)
2217
+ .then((request) => request(axios, basePath));
2218
+ },
2219
+ /**
2220
+ * Enable routing on an existing VPC. Note that you will not be able to deactivate it afterwards.
2221
+ * @summary Enable routing on a VPC
2222
+ * @param {EnableRoutingRegionEnum} region The region you want to target
2223
+ * @param {string} vpcId VPC ID. (UUID format)
2224
+ * @param {object} body
2225
+ * @param {*} [options] Override http request option.
2226
+ * @throws {RequiredError}
2227
+ */
2228
+ enableRouting(region, vpcId, body, options) {
2229
+ return localVarFp
2230
+ .enableRouting(region, vpcId, body, options)
2231
+ .then((request) => request(axios, basePath));
2232
+ },
2233
+ /**
2234
+ * Retrieve details of an existing VPC, specified by its VPC ID.
2235
+ * @summary Get a VPC
2236
+ * @param {GetVPCRegionEnum} region The region you want to target
2237
+ * @param {string} vpcId VPC ID. (UUID format)
2238
+ * @param {*} [options] Override http request option.
2239
+ * @throws {RequiredError}
2240
+ */
2241
+ getVPC(region, vpcId, options) {
2242
+ return localVarFp
2243
+ .getVPC(region, vpcId, options)
2244
+ .then((request) => request(axios, basePath));
2245
+ },
2246
+ /**
2247
+ * List existing VPCs in the specified region.
2248
+ * @summary List VPCs
2249
+ * @param {ListVPCsRegionEnum} region The region you want to target
2250
+ * @param {ListVPCsOrderByEnum} [orderBy] Sort order of the returned VPCs.
2251
+ * @param {number} [page] Page number to return, from the paginated results.
2252
+ * @param {number} [pageSize] Maximum number of VPCs to return per page.
2253
+ * @param {string} [name] Name to filter for. Only VPCs with names containing this string will be returned.
2254
+ * @param {Array<string>} [tags] Tags to filter for. Only VPCs with one or more matching tags will be returned.
2255
+ * @param {string} [organizationId] Organization ID to filter for. Only VPCs belonging to this Organization will be returned. (UUID format)
2256
+ * @param {string} [projectId] Project ID to filter for. Only VPCs belonging to this Project will be returned. (UUID format)
2257
+ * @param {boolean} [isDefault] Defines whether to filter only for VPCs which are the default one for their Project.
2258
+ * @param {boolean} [routingEnabled] Defines whether to filter only for VPCs which route traffic between their Private Networks.
2259
+ * @param {*} [options] Override http request option.
2260
+ * @throws {RequiredError}
2261
+ */
2262
+ listVPCs(region, orderBy, page, pageSize, name, tags, organizationId, projectId, isDefault, routingEnabled, options) {
2263
+ return localVarFp
2264
+ .listVPCs(region, orderBy, page, pageSize, name, tags, organizationId, projectId, isDefault, routingEnabled, options)
2265
+ .then((request) => request(axios, basePath));
2266
+ },
2267
+ /**
2268
+ * Update parameters including name and tags of the specified VPC.
2269
+ * @summary Update VPC
2270
+ * @param {UpdateVPCRegionEnum} region The region you want to target
2271
+ * @param {string} vpcId VPC ID. (UUID format)
2272
+ * @param {UpdateVPCRequest} updateVPCRequest
2273
+ * @param {*} [options] Override http request option.
2274
+ * @throws {RequiredError}
2275
+ */
2276
+ updateVPC(region, vpcId, updateVPCRequest, options) {
2277
+ return localVarFp
2278
+ .updateVPC(region, vpcId, updateVPCRequest, options)
2279
+ .then((request) => request(axios, basePath));
2280
+ },
2281
+ };
2282
+ };
2283
+ exports.VPCsApiFactory = VPCsApiFactory;
2284
+ /**
2285
+ * VPCsApi - object-oriented interface
2286
+ * @export
2287
+ * @class VPCsApi
2288
+ * @extends {BaseAPI}
2289
+ */
2290
+ class VPCsApi extends base_1.BaseAPI {
2291
+ /**
2292
+ * Create a new VPC in the specified region.
2293
+ * @summary Create a VPC
2294
+ * @param {CreateVPCRegionEnum} region The region you want to target
2295
+ * @param {CreateVPCRequest} createVPCRequest
2296
+ * @param {*} [options] Override http request option.
2297
+ * @throws {RequiredError}
2298
+ * @memberof VPCsApi
2299
+ */
2300
+ createVPC(region, createVPCRequest, options) {
2301
+ return (0, exports.VPCsApiFp)(this.configuration)
2302
+ .createVPC(region, createVPCRequest, options)
2303
+ .then((request) => request(this.axios, this.basePath));
2304
+ }
2305
+ /**
2306
+ * Delete a VPC specified by its VPC ID.
2307
+ * @summary Delete a VPC
2308
+ * @param {DeleteVPCRegionEnum} region The region you want to target
2309
+ * @param {string} vpcId VPC ID. (UUID format)
2310
+ * @param {*} [options] Override http request option.
2311
+ * @throws {RequiredError}
2312
+ * @memberof VPCsApi
2313
+ */
2314
+ deleteVPC(region, vpcId, options) {
2315
+ return (0, exports.VPCsApiFp)(this.configuration)
2316
+ .deleteVPC(region, vpcId, options)
2317
+ .then((request) => request(this.axios, this.basePath));
2318
+ }
2319
+ /**
2320
+ * Enable routing on an existing VPC. Note that you will not be able to deactivate it afterwards.
2321
+ * @summary Enable routing on a VPC
2322
+ * @param {EnableRoutingRegionEnum} region The region you want to target
2323
+ * @param {string} vpcId VPC ID. (UUID format)
2324
+ * @param {object} body
2325
+ * @param {*} [options] Override http request option.
2326
+ * @throws {RequiredError}
2327
+ * @memberof VPCsApi
2328
+ */
2329
+ enableRouting(region, vpcId, body, options) {
2330
+ return (0, exports.VPCsApiFp)(this.configuration)
2331
+ .enableRouting(region, vpcId, body, options)
2332
+ .then((request) => request(this.axios, this.basePath));
2333
+ }
2334
+ /**
2335
+ * Retrieve details of an existing VPC, specified by its VPC ID.
2336
+ * @summary Get a VPC
2337
+ * @param {GetVPCRegionEnum} region The region you want to target
2338
+ * @param {string} vpcId VPC ID. (UUID format)
2339
+ * @param {*} [options] Override http request option.
2340
+ * @throws {RequiredError}
2341
+ * @memberof VPCsApi
2342
+ */
2343
+ getVPC(region, vpcId, options) {
2344
+ return (0, exports.VPCsApiFp)(this.configuration)
2345
+ .getVPC(region, vpcId, options)
2346
+ .then((request) => request(this.axios, this.basePath));
2347
+ }
2348
+ /**
2349
+ * List existing VPCs in the specified region.
2350
+ * @summary List VPCs
2351
+ * @param {ListVPCsRegionEnum} region The region you want to target
2352
+ * @param {ListVPCsOrderByEnum} [orderBy] Sort order of the returned VPCs.
2353
+ * @param {number} [page] Page number to return, from the paginated results.
2354
+ * @param {number} [pageSize] Maximum number of VPCs to return per page.
2355
+ * @param {string} [name] Name to filter for. Only VPCs with names containing this string will be returned.
2356
+ * @param {Array<string>} [tags] Tags to filter for. Only VPCs with one or more matching tags will be returned.
2357
+ * @param {string} [organizationId] Organization ID to filter for. Only VPCs belonging to this Organization will be returned. (UUID format)
2358
+ * @param {string} [projectId] Project ID to filter for. Only VPCs belonging to this Project will be returned. (UUID format)
2359
+ * @param {boolean} [isDefault] Defines whether to filter only for VPCs which are the default one for their Project.
2360
+ * @param {boolean} [routingEnabled] Defines whether to filter only for VPCs which route traffic between their Private Networks.
2361
+ * @param {*} [options] Override http request option.
2362
+ * @throws {RequiredError}
2363
+ * @memberof VPCsApi
2364
+ */
2365
+ listVPCs(region, orderBy, page, pageSize, name, tags, organizationId, projectId, isDefault, routingEnabled, options) {
2366
+ return (0, exports.VPCsApiFp)(this.configuration)
2367
+ .listVPCs(region, orderBy, page, pageSize, name, tags, organizationId, projectId, isDefault, routingEnabled, options)
2368
+ .then((request) => request(this.axios, this.basePath));
2369
+ }
2370
+ /**
2371
+ * Update parameters including name and tags of the specified VPC.
2372
+ * @summary Update VPC
2373
+ * @param {UpdateVPCRegionEnum} region The region you want to target
2374
+ * @param {string} vpcId VPC ID. (UUID format)
2375
+ * @param {UpdateVPCRequest} updateVPCRequest
2376
+ * @param {*} [options] Override http request option.
2377
+ * @throws {RequiredError}
2378
+ * @memberof VPCsApi
2379
+ */
2380
+ updateVPC(region, vpcId, updateVPCRequest, options) {
2381
+ return (0, exports.VPCsApiFp)(this.configuration)
2382
+ .updateVPC(region, vpcId, updateVPCRequest, options)
2383
+ .then((request) => request(this.axios, this.basePath));
2384
+ }
2385
+ }
2386
+ exports.VPCsApi = VPCsApi;
2387
+ /**
2388
+ * @export
2389
+ */
2390
+ exports.CreateVPCRegionEnum = {
2391
+ FrPar: 'fr-par',
2392
+ NlAms: 'nl-ams',
2393
+ PlWaw: 'pl-waw',
2394
+ };
2395
+ /**
2396
+ * @export
2397
+ */
2398
+ exports.DeleteVPCRegionEnum = {
2399
+ FrPar: 'fr-par',
2400
+ NlAms: 'nl-ams',
2401
+ PlWaw: 'pl-waw',
2402
+ };
2403
+ /**
2404
+ * @export
2405
+ */
2406
+ exports.EnableRoutingRegionEnum = {
2407
+ FrPar: 'fr-par',
2408
+ NlAms: 'nl-ams',
2409
+ PlWaw: 'pl-waw',
2410
+ };
2411
+ /**
2412
+ * @export
2413
+ */
2414
+ exports.GetVPCRegionEnum = {
2415
+ FrPar: 'fr-par',
2416
+ NlAms: 'nl-ams',
2417
+ PlWaw: 'pl-waw',
2418
+ };
2419
+ /**
2420
+ * @export
2421
+ */
2422
+ exports.ListVPCsRegionEnum = {
2423
+ FrPar: 'fr-par',
2424
+ NlAms: 'nl-ams',
2425
+ PlWaw: 'pl-waw',
2426
+ };
2427
+ /**
2428
+ * @export
2429
+ */
2430
+ exports.ListVPCsOrderByEnum = {
2431
+ CreatedAtAsc: 'created_at_asc',
2432
+ CreatedAtDesc: 'created_at_desc',
2433
+ NameAsc: 'name_asc',
2434
+ NameDesc: 'name_desc',
2435
+ };
2436
+ /**
2437
+ * @export
2438
+ */
2439
+ exports.UpdateVPCRegionEnum = {
2440
+ FrPar: 'fr-par',
2441
+ NlAms: 'nl-ams',
2442
+ PlWaw: 'pl-waw',
2443
+ };