@scaleway/sdk 2.45.0 → 2.47.0

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 (275) hide show
  1. package/dist/api/account/index.gen.d.ts +6 -0
  2. package/dist/api/applesilicon/index.gen.d.ts +5 -0
  3. package/dist/api/baremetal/index.gen.d.ts +5 -0
  4. package/dist/api/baremetal/v1/api.gen.cjs +3 -1
  5. package/dist/api/baremetal/v1/api.gen.js +3 -1
  6. package/dist/api/baremetal/v1/index.gen.d.ts +1 -1
  7. package/dist/api/baremetal/v1/marshalling.gen.cjs +61 -1
  8. package/dist/api/baremetal/v1/marshalling.gen.js +61 -1
  9. package/dist/api/baremetal/v1/types.gen.d.ts +120 -1
  10. package/dist/api/billing/index.gen.d.ts +6 -0
  11. package/dist/api/block/index.gen.d.ts +5 -0
  12. package/dist/api/cockpit/index.gen.d.ts +6 -0
  13. package/dist/api/cockpit/v1/types.gen.d.ts +1 -1
  14. package/dist/api/container/index.gen.d.ts +5 -0
  15. package/dist/api/container/v1beta1/api.gen.cjs +0 -23
  16. package/dist/api/container/v1beta1/api.gen.d.ts +1 -9
  17. package/dist/api/container/v1beta1/api.gen.js +1 -24
  18. package/dist/api/container/v1beta1/index.gen.d.ts +1 -1
  19. package/dist/api/container/v1beta1/types.gen.d.ts +0 -12
  20. package/dist/api/dedibox/index.gen.d.ts +5 -0
  21. package/dist/api/document_db/index.gen.d.ts +5 -0
  22. package/dist/api/domain/index.gen.d.ts +5 -0
  23. package/dist/api/edge_services/index.gen.d.ts +5 -0
  24. package/dist/api/edge_services/v1alpha1/api.gen.cjs +599 -0
  25. package/dist/api/edge_services/v1alpha1/api.gen.js +599 -0
  26. package/dist/api/edge_services/v1alpha1/content.gen.cjs +8 -0
  27. package/dist/api/edge_services/v1alpha1/content.gen.js +8 -0
  28. package/dist/api/edge_services/v1alpha1/index.gen.cjs +7 -0
  29. package/dist/api/edge_services/v1alpha1/index.gen.js +7 -0
  30. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +434 -0
  31. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +434 -0
  32. package/dist/api/flexibleip/index.gen.d.ts +5 -0
  33. package/dist/api/function/index.gen.d.ts +5 -0
  34. package/dist/api/function/v1beta1/api.gen.cjs +0 -23
  35. package/dist/api/function/v1beta1/api.gen.d.ts +1 -9
  36. package/dist/api/function/v1beta1/api.gen.js +1 -24
  37. package/dist/api/function/v1beta1/index.gen.d.ts +1 -1
  38. package/dist/api/function/v1beta1/types.gen.d.ts +0 -12
  39. package/dist/api/iam/index.gen.d.ts +5 -0
  40. package/dist/api/iam/v1alpha1/api.gen.cjs +1 -1
  41. package/dist/api/iam/v1alpha1/api.gen.d.ts +1 -1
  42. package/dist/api/iam/v1alpha1/api.gen.js +1 -1
  43. package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
  44. package/dist/api/iam/v1alpha1/marshalling.gen.cjs +17 -3
  45. package/dist/api/iam/v1alpha1/marshalling.gen.js +17 -3
  46. package/dist/api/iam/v1alpha1/types.gen.d.ts +27 -3
  47. package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +12 -0
  48. package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +11 -0
  49. package/dist/api/iam/v1alpha1/validation-rules.gen.js +12 -0
  50. package/dist/api/index.d.ts +65 -35
  51. package/dist/api/index.gen.d.ts +43 -0
  52. package/dist/api/inference/index.gen.d.ts +5 -0
  53. package/dist/api/inference/v1beta1/api.gen.cjs +306 -0
  54. package/dist/api/inference/v1beta1/api.gen.js +306 -0
  55. package/dist/api/inference/v1beta1/content.gen.cjs +8 -0
  56. package/dist/api/inference/v1beta1/content.gen.js +8 -0
  57. package/dist/api/inference/v1beta1/index.gen.cjs +8 -0
  58. package/dist/api/inference/v1beta1/index.gen.js +8 -0
  59. package/dist/api/inference/v1beta1/marshalling.gen.cjs +273 -0
  60. package/dist/api/inference/v1beta1/marshalling.gen.js +273 -0
  61. package/dist/api/inference/v1beta1/validation-rules.gen.cjs +56 -0
  62. package/dist/api/inference/v1beta1/validation-rules.gen.js +56 -0
  63. package/dist/api/instance/index.gen.d.ts +5 -0
  64. package/dist/api/instance/v1/marshalling.gen.cjs +1 -0
  65. package/dist/api/instance/v1/marshalling.gen.js +1 -0
  66. package/dist/api/instance/v1/types.gen.d.ts +22 -8
  67. package/dist/api/instance/v1/types.private.gen.d.ts +2 -2
  68. package/dist/api/iot/index.gen.d.ts +5 -0
  69. package/dist/api/ipam/index.gen.d.ts +5 -0
  70. package/dist/api/ipam/v1/api.gen.cjs +67 -2
  71. package/dist/api/ipam/v1/api.gen.d.ts +38 -3
  72. package/dist/api/ipam/v1/api.gen.js +68 -3
  73. package/dist/api/ipam/v1/index.gen.d.ts +1 -1
  74. package/dist/api/ipam/v1/marshalling.gen.cjs +18 -0
  75. package/dist/api/ipam/v1/marshalling.gen.d.ts +4 -1
  76. package/dist/api/ipam/v1/marshalling.gen.js +18 -0
  77. package/dist/api/ipam/v1/types.gen.d.ts +59 -5
  78. package/dist/api/ipfs/index.gen.d.ts +5 -0
  79. package/dist/api/jobs/index.gen.d.ts +5 -0
  80. package/dist/api/k8s/index.gen.d.ts +5 -0
  81. package/dist/api/k8s/v1/api.gen.cjs +17 -0
  82. package/dist/api/k8s/v1/api.gen.d.ts +10 -1
  83. package/dist/api/k8s/v1/api.gen.js +17 -0
  84. package/dist/api/k8s/v1/index.gen.d.ts +1 -1
  85. package/dist/api/k8s/v1/types.gen.d.ts +13 -0
  86. package/dist/api/k8s/v1/validation-rules.gen.cjs +65 -0
  87. package/dist/api/k8s/v1/validation-rules.gen.d.ts +62 -0
  88. package/dist/api/k8s/v1/validation-rules.gen.js +66 -1
  89. package/dist/api/key_manager/index.gen.d.ts +5 -0
  90. package/dist/api/key_manager/v1alpha1/api.gen.cjs +31 -0
  91. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +17 -1
  92. package/dist/api/key_manager/v1alpha1/api.gen.js +32 -1
  93. package/dist/api/key_manager/v1alpha1/index.gen.d.ts +1 -1
  94. package/dist/api/key_manager/v1alpha1/marshalling.gen.cjs +7 -0
  95. package/dist/api/key_manager/v1alpha1/marshalling.gen.d.ts +2 -1
  96. package/dist/api/key_manager/v1alpha1/marshalling.gen.js +7 -0
  97. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +33 -0
  98. package/dist/api/lb/index.gen.d.ts +5 -0
  99. package/dist/api/llm_inference/index.gen.d.ts +5 -0
  100. package/dist/api/marketplace/index.gen.d.ts +5 -0
  101. package/dist/api/mnq/index.gen.cjs +4 -0
  102. package/dist/api/mnq/index.gen.d.ts +5 -0
  103. package/dist/api/mnq/index.gen.js +4 -0
  104. package/dist/api/qaas/index.gen.d.ts +5 -0
  105. package/dist/api/qaas/v1alpha1/api.gen.cjs +527 -0
  106. package/dist/api/qaas/v1alpha1/api.gen.d.ts +256 -0
  107. package/dist/api/qaas/v1alpha1/api.gen.js +527 -0
  108. package/dist/api/qaas/v1alpha1/content.gen.cjs +19 -0
  109. package/dist/api/qaas/v1alpha1/content.gen.d.ts +7 -0
  110. package/dist/api/qaas/v1alpha1/content.gen.js +19 -0
  111. package/dist/api/qaas/v1alpha1/index.gen.cjs +10 -0
  112. package/dist/api/qaas/v1alpha1/index.gen.d.ts +4 -0
  113. package/dist/api/qaas/v1alpha1/index.gen.js +10 -0
  114. package/dist/api/qaas/v1alpha1/marshalling.gen.cjs +320 -0
  115. package/dist/api/qaas/v1alpha1/marshalling.gen.d.ts +22 -0
  116. package/dist/api/qaas/v1alpha1/marshalling.gen.js +320 -0
  117. package/dist/api/qaas/v1alpha1/types.gen.d.ts +470 -0
  118. package/dist/api/qaas/v1alpha1/validation-rules.gen.cjs +14 -0
  119. package/dist/api/qaas/v1alpha1/validation-rules.gen.d.ts +10 -0
  120. package/dist/api/qaas/v1alpha1/validation-rules.gen.js +14 -0
  121. package/dist/api/rdb/index.gen.d.ts +5 -0
  122. package/dist/api/redis/index.gen.d.ts +5 -0
  123. package/dist/api/registry/index.gen.d.ts +5 -0
  124. package/dist/api/secret/index.gen.d.ts +6 -0
  125. package/dist/api/serverless_sqldb/index.gen.d.ts +5 -0
  126. package/dist/api/tem/index.gen.cjs +4 -0
  127. package/dist/api/tem/index.gen.d.ts +5 -0
  128. package/dist/api/tem/index.gen.js +4 -0
  129. package/dist/api/tem/v1alpha1/api.gen.cjs +32 -0
  130. package/dist/api/tem/v1alpha1/api.gen.d.ts +17 -1
  131. package/dist/api/tem/v1alpha1/api.gen.js +33 -1
  132. package/dist/api/tem/v1alpha1/content.gen.cjs +4 -1
  133. package/dist/api/tem/v1alpha1/content.gen.js +4 -1
  134. package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
  135. package/dist/api/tem/v1alpha1/marshalling.gen.cjs +36 -0
  136. package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +3 -1
  137. package/dist/api/tem/v1alpha1/marshalling.gen.js +36 -0
  138. package/dist/api/tem/v1alpha1/types.gen.d.ts +52 -1
  139. package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +11 -0
  140. package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +10 -0
  141. package/dist/api/tem/v1alpha1/validation-rules.gen.js +11 -0
  142. package/dist/api/test/index.gen.d.ts +5 -0
  143. package/dist/api/vpc/index.gen.d.ts +6 -0
  144. package/dist/api/vpc/v2/marshalling.gen.cjs +1 -0
  145. package/dist/api/vpc/v2/marshalling.gen.js +1 -0
  146. package/dist/api/vpc/v2/types.gen.d.ts +3 -0
  147. package/dist/api/vpcgw/index.gen.d.ts +5 -0
  148. package/dist/api/webhosting/index.gen.cjs +6 -0
  149. package/dist/api/webhosting/index.gen.d.ts +6 -0
  150. package/dist/api/webhosting/index.gen.js +6 -0
  151. package/dist/api/webhosting/v1/api.gen.cjs +620 -0
  152. package/dist/api/webhosting/v1/api.gen.d.ts +326 -0
  153. package/dist/api/webhosting/v1/api.gen.js +620 -0
  154. package/dist/api/webhosting/v1/content.gen.cjs +14 -0
  155. package/dist/api/webhosting/v1/content.gen.d.ts +5 -0
  156. package/dist/api/webhosting/v1/content.gen.js +14 -0
  157. package/dist/api/webhosting/v1/index.gen.cjs +15 -0
  158. package/dist/api/webhosting/v1/index.gen.d.ts +4 -0
  159. package/dist/api/webhosting/v1/index.gen.js +15 -0
  160. package/dist/api/webhosting/v1/marshalling.gen.cjs +391 -0
  161. package/dist/api/webhosting/v1/marshalling.gen.d.ts +29 -0
  162. package/dist/api/webhosting/v1/marshalling.gen.js +391 -0
  163. package/dist/api/webhosting/v1/types.gen.d.ts +698 -0
  164. package/dist/api/webhosting/v1/validation-rules.gen.cjs +82 -0
  165. package/dist/api/webhosting/v1/validation-rules.gen.d.ts +72 -0
  166. package/dist/api/webhosting/v1/validation-rules.gen.js +82 -0
  167. package/dist/index.cjs +92 -70
  168. package/dist/index.js +92 -70
  169. package/dist/scw/constants.cjs +1 -1
  170. package/dist/scw/constants.d.ts +2 -2
  171. package/dist/scw/constants.js +1 -1
  172. package/package.json +2 -2
  173. package/dist/api/account/index.d.ts +0 -2
  174. package/dist/api/applesilicon/index.d.ts +0 -1
  175. package/dist/api/baremetal/index.d.ts +0 -1
  176. package/dist/api/billing/index.d.ts +0 -2
  177. package/dist/api/block/index.d.ts +0 -1
  178. package/dist/api/cockpit/index.d.ts +0 -2
  179. package/dist/api/container/index.d.ts +0 -1
  180. package/dist/api/dedibox/index.d.ts +0 -1
  181. package/dist/api/document_db/index.d.ts +0 -1
  182. package/dist/api/domain/index.d.ts +0 -1
  183. package/dist/api/edge_services/index.d.ts +0 -1
  184. package/dist/api/flexibleip/index.d.ts +0 -1
  185. package/dist/api/function/index.d.ts +0 -1
  186. package/dist/api/iam/index.d.ts +0 -1
  187. package/dist/api/instance/index.d.ts +0 -1
  188. package/dist/api/iot/index.d.ts +0 -1
  189. package/dist/api/ipam/index.d.ts +0 -1
  190. package/dist/api/ipfs/index.d.ts +0 -1
  191. package/dist/api/jobs/index.d.ts +0 -1
  192. package/dist/api/k8s/index.d.ts +0 -1
  193. package/dist/api/key_manager/index.d.ts +0 -1
  194. package/dist/api/lb/index.d.ts +0 -1
  195. package/dist/api/llm_inference/index.d.ts +0 -1
  196. package/dist/api/marketplace/index.d.ts +0 -1
  197. package/dist/api/mnq/index.d.ts +0 -1
  198. package/dist/api/rdb/index.d.ts +0 -1
  199. package/dist/api/redis/index.d.ts +0 -1
  200. package/dist/api/registry/index.d.ts +0 -1
  201. package/dist/api/secret/index.d.ts +0 -2
  202. package/dist/api/serverless_sqldb/index.d.ts +0 -1
  203. package/dist/api/tem/index.d.ts +0 -1
  204. package/dist/api/test/index.d.ts +0 -1
  205. package/dist/api/vpc/index.d.ts +0 -2
  206. package/dist/api/vpcgw/index.d.ts +0 -1
  207. package/dist/api/webhosting/index.d.ts +0 -1
  208. /package/dist/api/account/{index.cjs → index.gen.cjs} +0 -0
  209. /package/dist/api/account/{index.js → index.gen.js} +0 -0
  210. /package/dist/api/applesilicon/{index.cjs → index.gen.cjs} +0 -0
  211. /package/dist/api/applesilicon/{index.js → index.gen.js} +0 -0
  212. /package/dist/api/baremetal/{index.cjs → index.gen.cjs} +0 -0
  213. /package/dist/api/baremetal/{index.js → index.gen.js} +0 -0
  214. /package/dist/api/billing/{index.cjs → index.gen.cjs} +0 -0
  215. /package/dist/api/billing/{index.js → index.gen.js} +0 -0
  216. /package/dist/api/block/{index.cjs → index.gen.cjs} +0 -0
  217. /package/dist/api/block/{index.js → index.gen.js} +0 -0
  218. /package/dist/api/cockpit/{index.cjs → index.gen.cjs} +0 -0
  219. /package/dist/api/cockpit/{index.js → index.gen.js} +0 -0
  220. /package/dist/api/container/{index.cjs → index.gen.cjs} +0 -0
  221. /package/dist/api/container/{index.js → index.gen.js} +0 -0
  222. /package/dist/api/dedibox/{index.cjs → index.gen.cjs} +0 -0
  223. /package/dist/api/dedibox/{index.js → index.gen.js} +0 -0
  224. /package/dist/api/document_db/{index.cjs → index.gen.cjs} +0 -0
  225. /package/dist/api/document_db/{index.js → index.gen.js} +0 -0
  226. /package/dist/api/domain/{index.cjs → index.gen.cjs} +0 -0
  227. /package/dist/api/domain/{index.js → index.gen.js} +0 -0
  228. /package/dist/api/{flexibleip/index.cjs → edge_services/index.gen.cjs} +0 -0
  229. /package/dist/api/{flexibleip/index.js → edge_services/index.gen.js} +0 -0
  230. /package/dist/api/{iam/index.cjs → flexibleip/index.gen.cjs} +0 -0
  231. /package/dist/api/{iam/index.js → flexibleip/index.gen.js} +0 -0
  232. /package/dist/api/function/{index.cjs → index.gen.cjs} +0 -0
  233. /package/dist/api/function/{index.js → index.gen.js} +0 -0
  234. /package/dist/api/{ipfs/index.cjs → iam/index.gen.cjs} +0 -0
  235. /package/dist/api/{ipfs/index.js → iam/index.gen.js} +0 -0
  236. /package/dist/api/{llm_inference/index.cjs → inference/index.gen.cjs} +0 -0
  237. /package/dist/api/{llm_inference/index.js → inference/index.gen.js} +0 -0
  238. /package/dist/api/instance/{index.cjs → index.gen.cjs} +0 -0
  239. /package/dist/api/instance/{index.js → index.gen.js} +0 -0
  240. /package/dist/api/iot/{index.cjs → index.gen.cjs} +0 -0
  241. /package/dist/api/iot/{index.js → index.gen.js} +0 -0
  242. /package/dist/api/ipam/{index.cjs → index.gen.cjs} +0 -0
  243. /package/dist/api/ipam/{index.js → index.gen.js} +0 -0
  244. /package/dist/api/{jobs/index.cjs → ipfs/index.gen.cjs} +0 -0
  245. /package/dist/api/{jobs/index.js → ipfs/index.gen.js} +0 -0
  246. /package/dist/api/{key_manager/index.cjs → jobs/index.gen.cjs} +0 -0
  247. /package/dist/api/{key_manager/index.js → jobs/index.gen.js} +0 -0
  248. /package/dist/api/k8s/{index.cjs → index.gen.cjs} +0 -0
  249. /package/dist/api/k8s/{index.js → index.gen.js} +0 -0
  250. /package/dist/api/{serverless_sqldb/index.cjs → key_manager/index.gen.cjs} +0 -0
  251. /package/dist/api/{serverless_sqldb/index.js → key_manager/index.gen.js} +0 -0
  252. /package/dist/api/lb/{index.cjs → index.gen.cjs} +0 -0
  253. /package/dist/api/lb/{index.js → index.gen.js} +0 -0
  254. /package/dist/api/{mnq/index.cjs → llm_inference/index.gen.cjs} +0 -0
  255. /package/dist/api/{mnq/index.js → llm_inference/index.gen.js} +0 -0
  256. /package/dist/api/marketplace/{index.cjs → index.gen.cjs} +0 -0
  257. /package/dist/api/marketplace/{index.js → index.gen.js} +0 -0
  258. /package/dist/api/{tem/index.cjs → qaas/index.gen.cjs} +0 -0
  259. /package/dist/api/{tem/index.js → qaas/index.gen.js} +0 -0
  260. /package/dist/api/rdb/{index.cjs → index.gen.cjs} +0 -0
  261. /package/dist/api/rdb/{index.js → index.gen.js} +0 -0
  262. /package/dist/api/redis/{index.cjs → index.gen.cjs} +0 -0
  263. /package/dist/api/redis/{index.js → index.gen.js} +0 -0
  264. /package/dist/api/registry/{index.cjs → index.gen.cjs} +0 -0
  265. /package/dist/api/registry/{index.js → index.gen.js} +0 -0
  266. /package/dist/api/secret/{index.cjs → index.gen.cjs} +0 -0
  267. /package/dist/api/secret/{index.js → index.gen.js} +0 -0
  268. /package/dist/api/{webhosting/index.cjs → serverless_sqldb/index.gen.cjs} +0 -0
  269. /package/dist/api/{webhosting/index.js → serverless_sqldb/index.gen.js} +0 -0
  270. /package/dist/api/test/{index.cjs → index.gen.cjs} +0 -0
  271. /package/dist/api/test/{index.js → index.gen.js} +0 -0
  272. /package/dist/api/vpc/{index.cjs → index.gen.cjs} +0 -0
  273. /package/dist/api/vpc/{index.js → index.gen.js} +0 -0
  274. /package/dist/api/vpcgw/{index.cjs → index.gen.cjs} +0 -0
  275. /package/dist/api/vpcgw/{index.js → index.gen.js} +0 -0
@@ -163,13 +163,15 @@ const unmarshalUser = (data) => {
163
163
  email: data.email,
164
164
  id: data.id,
165
165
  lastLoginAt: unmarshalDate(data.last_login_at),
166
+ locked: data.locked,
166
167
  mfa: data.mfa,
167
168
  organizationId: data.organization_id,
168
169
  status: data.status,
169
170
  tags: data.tags,
170
171
  twoFactorEnabled: data.two_factor_enabled,
171
172
  type: data.type,
172
- updatedAt: unmarshalDate(data.updated_at)
173
+ updatedAt: unmarshalDate(data.updated_at),
174
+ username: data.username
173
175
  };
174
176
  };
175
177
  const unmarshalEncodedJWT = (data) => {
@@ -412,10 +414,22 @@ const marshalCreateSSHKeyRequest = (request, defaults) => ({
412
414
  project_id: request.projectId ?? defaults.defaultProjectId,
413
415
  public_key: request.publicKey
414
416
  });
415
- const marshalCreateUserRequest = (request, defaults) => ({
417
+ const marshalCreateUserRequestMember = (request, defaults) => ({
416
418
  email: request.email,
419
+ password: request.password,
420
+ send_password_email: request.sendPasswordEmail,
421
+ username: request.username
422
+ });
423
+ const marshalCreateUserRequest = (request, defaults) => ({
417
424
  organization_id: request.organizationId ?? defaults.defaultOrganizationId,
418
- tags: request.tags
425
+ tags: request.tags,
426
+ ...resolveOneOf([
427
+ { param: "email", value: request.email },
428
+ {
429
+ param: "member",
430
+ value: request.member !== void 0 ? marshalCreateUserRequestMember(request.member) : void 0
431
+ }
432
+ ])
419
433
  });
420
434
  const marshalRemoveGroupMemberRequest = (request, defaults) => ({
421
435
  ...resolveOneOf([
@@ -13,7 +13,7 @@ export type LogAction = 'unknown_action' | 'created' | 'updated' | 'deleted';
13
13
  export type LogResourceType = 'unknown_resource_type' | 'api_key' | 'user' | 'application' | 'group' | 'policy';
14
14
  export type PermissionSetScopeType = 'unknown_scope_type' | 'projects' | 'organization' | 'account_root_user';
15
15
  export type UserStatus = 'unknown_status' | 'invitation_pending' | 'activated';
16
- export type UserType = 'unknown_type' | 'guest' | 'owner';
16
+ export type UserType = 'unknown_type' | 'guest' | 'owner' | 'member';
17
17
  export interface RuleSpecs {
18
18
  /** Names of permission sets bound to the rule. */
19
19
  permissionSetNames?: string[];
@@ -34,6 +34,16 @@ export interface RuleSpecs {
34
34
  */
35
35
  organizationId?: string;
36
36
  }
37
+ export interface CreateUserRequestMember {
38
+ /** Email of the user to create. */
39
+ email: string;
40
+ /** Whether or not to send an email containing the member's password. */
41
+ sendPasswordEmail: boolean;
42
+ /** The member's username. */
43
+ username: string;
44
+ /** The member's password. */
45
+ password: string;
46
+ }
37
47
  export interface JWT {
38
48
  /** JWT ID. */
39
49
  jti: string;
@@ -286,6 +296,8 @@ export interface User {
286
296
  id: string;
287
297
  /** Email of user. */
288
298
  email: string;
299
+ /** User identifier unique to the Organization. */
300
+ username: string;
289
301
  /** Date user was created. */
290
302
  createdAt?: Date;
291
303
  /** Date of last user update. */
@@ -308,6 +320,8 @@ export interface User {
308
320
  accountRootUserId: string;
309
321
  /** Tags associated with the user. */
310
322
  tags: string[];
323
+ /** Defines whether the user is locked. */
324
+ locked: boolean;
311
325
  }
312
326
  export type AddGroupMemberRequest = {
313
327
  /** ID of the group. */
@@ -439,10 +453,20 @@ export type CreateSSHKeyRequest = {
439
453
  export type CreateUserRequest = {
440
454
  /** ID of the Organization. */
441
455
  organizationId?: string;
442
- /** Email of the user. */
443
- email: string;
456
+ /**
457
+ * Email of the user.
458
+ *
459
+ * One-of ('type'): at most one of 'email', 'member' could be set.
460
+ */
461
+ email?: string;
444
462
  /** Tags associated with the user. */
445
463
  tags?: string[];
464
+ /**
465
+ * A new IAM Member to create.
466
+ *
467
+ * One-of ('type'): at most one of 'email', 'member' could be set.
468
+ */
469
+ member?: CreateUserRequestMember;
446
470
  };
447
471
  export type DeleteAPIKeyRequest = {
448
472
  /** Access key to delete. */
@@ -49,6 +49,17 @@ const CreateSSHKeyRequest = {
49
49
  minLength: 1
50
50
  }
51
51
  };
52
+ const CreateUserRequestMember = {
53
+ password: {
54
+ ignoreEmpty: true,
55
+ maxLength: 72
56
+ },
57
+ username: {
58
+ maxLength: 64,
59
+ minLength: 2,
60
+ pattern: /^[a-zA-Z0-9._-]+$/
61
+ }
62
+ };
52
63
  const GetQuotumRequest = {
53
64
  quotumName: {
54
65
  minLength: 1
@@ -221,6 +232,7 @@ exports.CreateApplicationRequest = CreateApplicationRequest;
221
232
  exports.CreateGroupRequest = CreateGroupRequest;
222
233
  exports.CreatePolicyRequest = CreatePolicyRequest;
223
234
  exports.CreateSSHKeyRequest = CreateSSHKeyRequest;
235
+ exports.CreateUserRequestMember = CreateUserRequestMember;
224
236
  exports.GetQuotumRequest = GetQuotumRequest;
225
237
  exports.ListAPIKeysRequest = ListAPIKeysRequest;
226
238
  exports.ListApplicationsRequest = ListApplicationsRequest;
@@ -47,6 +47,17 @@ export declare const CreateSSHKeyRequest: {
47
47
  minLength: number;
48
48
  };
49
49
  };
50
+ export declare const CreateUserRequestMember: {
51
+ password: {
52
+ ignoreEmpty: boolean;
53
+ maxLength: number;
54
+ };
55
+ username: {
56
+ maxLength: number;
57
+ minLength: number;
58
+ pattern: RegExp;
59
+ };
60
+ };
50
61
  export declare const GetQuotumRequest: {
51
62
  quotumName: {
52
63
  minLength: number;
@@ -47,6 +47,17 @@ const CreateSSHKeyRequest = {
47
47
  minLength: 1
48
48
  }
49
49
  };
50
+ const CreateUserRequestMember = {
51
+ password: {
52
+ ignoreEmpty: true,
53
+ maxLength: 72
54
+ },
55
+ username: {
56
+ maxLength: 64,
57
+ minLength: 2,
58
+ pattern: /^[a-zA-Z0-9._-]+$/
59
+ }
60
+ };
50
61
  const GetQuotumRequest = {
51
62
  quotumName: {
52
63
  minLength: 1
@@ -220,6 +231,7 @@ export {
220
231
  CreateGroupRequest,
221
232
  CreatePolicyRequest,
222
233
  CreateSSHKeyRequest,
234
+ CreateUserRequestMember,
223
235
  GetQuotumRequest,
224
236
  ListAPIKeysRequest,
225
237
  ListApplicationsRequest,
@@ -1,35 +1,65 @@
1
- export * as Account from './account';
2
- export * as AppleSilicon from './applesilicon';
3
- export * as BareMetal from './baremetal';
4
- export * as Billing from './billing';
5
- export * as Block from './block';
6
- export * as Cockpit from './cockpit';
7
- export * as Container from './container';
8
- export * as Dedibox from './dedibox';
9
- export * as DocumentDB from './document_db';
10
- export * as Domain from './domain';
11
- export * as FlexibleIP from './flexibleip';
12
- export * as Function from './function';
13
- export * as IAM from './iam';
14
- export * as Instance from './instance';
15
- export * as IOT from './iot';
16
- export * as IPAM from './ipam';
17
- export * as IPFS from './ipfs';
18
- export * as Jobs from './jobs';
19
- export * as K8S from './k8s';
20
- export * as KeyManager from './key_manager';
21
- export * as LB from './lb';
22
- export * as LLMInference from './llm_inference';
23
- export * as Marketplace from './marketplace';
24
- export * as MNQ from './mnq';
25
- export * as RDB from './rdb';
26
- export * as Redis from './redis';
27
- export * as Registry from './registry';
28
- export * as Secret from './secret';
29
- export * as ServerlessSQLDB from './serverless_sqldb';
30
- export * as Std from './std/index.gen';
31
- export * as Test from './test';
32
- export * as TransactionalEmail from './tem';
33
- export * as VPC from './vpc';
34
- export * as VPCGW from './vpcgw';
35
- export * as Webhosting from './webhosting';
1
+ export * from './index.gen';
2
+ /**
3
+ * @deprecated use Applesilicon namespace
4
+ */
5
+ export * as AppleSilicon from './applesilicon/index.gen';
6
+ /**
7
+ * @deprecated use Baremetal namespace
8
+ */
9
+ export * as BareMetal from './baremetal/index.gen';
10
+ /**
11
+ * @deprecated use DocumentDb namespace
12
+ */
13
+ export * as DocumentDB from './document_db/index.gen';
14
+ /**
15
+ * @deprecated use Flexibleip namespace
16
+ */
17
+ export * as FlexibleIP from './flexibleip/index.gen';
18
+ /**
19
+ * @deprecated use Iam namespace
20
+ */
21
+ export * as IAM from './iam/index.gen';
22
+ /**
23
+ * @deprecated use Iot namespace
24
+ */
25
+ export * as IOT from './iot/index.gen';
26
+ /**
27
+ * @deprecated use Ipam namespace
28
+ */
29
+ export * as IPAM from './ipam/index.gen';
30
+ /**
31
+ * @deprecated use Ipfs namespace
32
+ */
33
+ export * as IPFS from './ipfs/index.gen';
34
+ /**
35
+ * @deprecated use Lb namespace
36
+ */
37
+ export * as LB from './lb/index.gen';
38
+ /**
39
+ * @deprecated use Llm_Inference namespace
40
+ */
41
+ export * as LLMInference from './llm_inference/index.gen';
42
+ /**
43
+ * @deprecated use Mnq namespace
44
+ */
45
+ export * as MNQ from './mnq/index.gen';
46
+ /**
47
+ * @deprecated use Rdb namespace
48
+ */
49
+ export * as RDB from './rdb/index.gen';
50
+ /**
51
+ * @deprecated use ServerlessSqldb namespace
52
+ */
53
+ export * as ServerlessSQLDB from './serverless_sqldb/index.gen';
54
+ /**
55
+ * @deprecated use Tem namespace
56
+ */
57
+ export * as TransactionalEmail from './tem/index.gen';
58
+ /**
59
+ * @deprecated use Vpc namespace
60
+ */
61
+ export * as VPC from './vpc/index.gen';
62
+ /**
63
+ * @deprecated use Vpcgw namespace
64
+ */
65
+ export * as VPCGW from './vpcgw/index.gen';
@@ -0,0 +1,43 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ import * as Account from './account/index.gen';
6
+ import * as Applesilicon from './applesilicon/index.gen';
7
+ import * as Baremetal from './baremetal/index.gen';
8
+ import * as Billing from './billing/index.gen';
9
+ import * as Block from './block/index.gen';
10
+ import * as Cockpit from './cockpit/index.gen';
11
+ import * as Container from './container/index.gen';
12
+ import * as Dedibox from './dedibox/index.gen';
13
+ import * as DocumentDb from './document_db/index.gen';
14
+ import * as Domain from './domain/index.gen';
15
+ import * as EdgeServices from './edge_services/index.gen';
16
+ import * as Flexibleip from './flexibleip/index.gen';
17
+ import * as Function from './function/index.gen';
18
+ import * as Iam from './iam/index.gen';
19
+ import * as Inference from './inference/index.gen';
20
+ import * as Instance from './instance/index.gen';
21
+ import * as Iot from './iot/index.gen';
22
+ import * as Ipam from './ipam/index.gen';
23
+ import * as Ipfs from './ipfs/index.gen';
24
+ import * as Jobs from './jobs/index.gen';
25
+ import * as K8s from './k8s/index.gen';
26
+ import * as KeyManager from './key_manager/index.gen';
27
+ import * as Lb from './lb/index.gen';
28
+ import * as LlmInference from './llm_inference/index.gen';
29
+ import * as Marketplace from './marketplace/index.gen';
30
+ import * as Mnq from './mnq/index.gen';
31
+ import * as Qaas from './qaas/index.gen';
32
+ import * as Rdb from './rdb/index.gen';
33
+ import * as Redis from './redis/index.gen';
34
+ import * as Registry from './registry/index.gen';
35
+ import * as Secret from './secret/index.gen';
36
+ import * as ServerlessSqldb from './serverless_sqldb/index.gen';
37
+ import * as Std from './std/index.gen';
38
+ import * as Tem from './tem/index.gen';
39
+ import * as Test from './test/index.gen';
40
+ import * as Vpc from './vpc/index.gen';
41
+ import * as Vpcgw from './vpcgw/index.gen';
42
+ import * as Webhosting from './webhosting/index.gen';
43
+ export { Account, Applesilicon, Baremetal, Billing, Block, Cockpit, Container, Dedibox, DocumentDb, Domain, EdgeServices, Flexibleip, Function, Iam, Inference, Instance, Iot, Ipam, Ipfs, Jobs, K8s, KeyManager, Lb, LlmInference, Marketplace, Mnq, Qaas, Rdb, Redis, Registry, Secret, ServerlessSqldb, Std, Tem, Test, Vpc, Vpcgw, Webhosting, };
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file is automatically generated from /scripts/generate.js PLEASE DO NOT
3
+ * EDIT HERE
4
+ */
5
+ export * as v1beta1 from './v1beta1/index.gen';
@@ -0,0 +1,306 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const intervalRetrier = require("../../../internal/async/interval-retrier.cjs");
4
+ const api = require("../../../scw/api.cjs");
5
+ const marshalling = require("../../../helpers/marshalling.cjs");
6
+ require("../../../vendor/base64/index.cjs");
7
+ const resourcePaginator = require("../../../scw/fetch/resource-paginator.cjs");
8
+ const content_gen = require("./content.gen.cjs");
9
+ const marshalling_gen = require("./marshalling.gen.cjs");
10
+ const jsonContentHeaders = {
11
+ "Content-Type": "application/json; charset=utf-8"
12
+ };
13
+ class API extends api.API {
14
+ /** Lists the available regions of the API. */
15
+ static LOCALITIES = ["fr-par"];
16
+ pageOfListDeployments = (request = {}) => this.client.fetch(
17
+ {
18
+ method: "GET",
19
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments`,
20
+ urlParams: marshalling.urlParams(
21
+ ["name", request.name],
22
+ ["order_by", request.orderBy],
23
+ ["organization_id", request.organizationId],
24
+ ["page", request.page],
25
+ [
26
+ "page_size",
27
+ request.pageSize ?? this.client.settings.defaultPageSize
28
+ ],
29
+ ["project_id", request.projectId],
30
+ ["tags", request.tags]
31
+ )
32
+ },
33
+ marshalling_gen.unmarshalListDeploymentsResponse
34
+ );
35
+ /**
36
+ * List inference deployments. List all your inference deployments.
37
+ *
38
+ * @param request - The request {@link ListDeploymentsRequest}
39
+ * @returns A Promise of ListDeploymentsResponse
40
+ */
41
+ listDeployments = (request = {}) => resourcePaginator.enrichForPagination("deployments", this.pageOfListDeployments, request);
42
+ /**
43
+ * Get a deployment. Get the deployment for the given ID.
44
+ *
45
+ * @param request - The request {@link GetDeploymentRequest}
46
+ * @returns A Promise of Deployment
47
+ */
48
+ getDeployment = (request) => this.client.fetch(
49
+ {
50
+ method: "GET",
51
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${marshalling.validatePathParam("deploymentId", request.deploymentId)}`
52
+ },
53
+ marshalling_gen.unmarshalDeployment
54
+ );
55
+ /**
56
+ * Waits for {@link Deployment} to be in a final state.
57
+ *
58
+ * @param request - The request {@link GetDeploymentRequest}
59
+ * @param options - The waiting options
60
+ * @returns A Promise of Deployment
61
+ */
62
+ waitForDeployment = (request, options) => intervalRetrier.waitForResource(
63
+ options?.stop ?? ((res) => Promise.resolve(!content_gen.DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status))),
64
+ this.getDeployment,
65
+ request,
66
+ options
67
+ );
68
+ /**
69
+ * Create a deployment. Create a new inference deployment related to a
70
+ * specific model.
71
+ *
72
+ * @param request - The request {@link CreateDeploymentRequest}
73
+ * @returns A Promise of Deployment
74
+ */
75
+ createDeployment = (request) => this.client.fetch(
76
+ {
77
+ body: JSON.stringify(
78
+ marshalling_gen.marshalCreateDeploymentRequest(request, this.client.settings)
79
+ ),
80
+ headers: jsonContentHeaders,
81
+ method: "POST",
82
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments`
83
+ },
84
+ marshalling_gen.unmarshalDeployment
85
+ );
86
+ /**
87
+ * Update a deployment. Update an existing inference deployment.
88
+ *
89
+ * @param request - The request {@link UpdateDeploymentRequest}
90
+ * @returns A Promise of Deployment
91
+ */
92
+ updateDeployment = (request) => this.client.fetch(
93
+ {
94
+ body: JSON.stringify(
95
+ marshalling_gen.marshalUpdateDeploymentRequest(request, this.client.settings)
96
+ ),
97
+ headers: jsonContentHeaders,
98
+ method: "PATCH",
99
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${marshalling.validatePathParam("deploymentId", request.deploymentId)}`
100
+ },
101
+ marshalling_gen.unmarshalDeployment
102
+ );
103
+ /**
104
+ * Delete a deployment. Delete an existing inference deployment.
105
+ *
106
+ * @param request - The request {@link DeleteDeploymentRequest}
107
+ * @returns A Promise of Deployment
108
+ */
109
+ deleteDeployment = (request) => this.client.fetch(
110
+ {
111
+ method: "DELETE",
112
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${marshalling.validatePathParam("deploymentId", request.deploymentId)}`
113
+ },
114
+ marshalling_gen.unmarshalDeployment
115
+ );
116
+ /**
117
+ * Get the CA certificate. Get the CA certificate used for the deployment of
118
+ * private endpoints. The CA certificate will be returned as a PEM file.
119
+ *
120
+ * @param request - The request {@link GetDeploymentCertificateRequest}
121
+ * @returns A Promise of Blob
122
+ */
123
+ getDeploymentCertificate = (request) => this.client.fetch({
124
+ method: "GET",
125
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${marshalling.validatePathParam("deploymentId", request.deploymentId)}/certificate`,
126
+ urlParams: marshalling.urlParams(["dl", 1]),
127
+ responseType: "blob"
128
+ });
129
+ /**
130
+ * Create an endpoint. Create a new Endpoint related to a specific deployment.
131
+ *
132
+ * @param request - The request {@link CreateEndpointRequest}
133
+ * @returns A Promise of Endpoint
134
+ */
135
+ createEndpoint = (request) => this.client.fetch(
136
+ {
137
+ body: JSON.stringify(
138
+ marshalling_gen.marshalCreateEndpointRequest(request, this.client.settings)
139
+ ),
140
+ headers: jsonContentHeaders,
141
+ method: "POST",
142
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints`
143
+ },
144
+ marshalling_gen.unmarshalEndpoint
145
+ );
146
+ /**
147
+ * Update an endpoint. Update an existing Endpoint.
148
+ *
149
+ * @param request - The request {@link UpdateEndpointRequest}
150
+ * @returns A Promise of Endpoint
151
+ */
152
+ updateEndpoint = (request) => this.client.fetch(
153
+ {
154
+ body: JSON.stringify(
155
+ marshalling_gen.marshalUpdateEndpointRequest(request, this.client.settings)
156
+ ),
157
+ headers: jsonContentHeaders,
158
+ method: "PATCH",
159
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints/${marshalling.validatePathParam("endpointId", request.endpointId)}`
160
+ },
161
+ marshalling_gen.unmarshalEndpoint
162
+ );
163
+ /**
164
+ * Delete an endpoint. Delete an existing Endpoint.
165
+ *
166
+ * @param request - The request {@link DeleteEndpointRequest}
167
+ */
168
+ deleteEndpoint = (request) => this.client.fetch({
169
+ method: "DELETE",
170
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints/${marshalling.validatePathParam("endpointId", request.endpointId)}`
171
+ });
172
+ pageOfListDeploymentACLRules = (request) => this.client.fetch(
173
+ {
174
+ method: "GET",
175
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${marshalling.validatePathParam("deploymentId", request.deploymentId)}/acls`,
176
+ urlParams: marshalling.urlParams(
177
+ ["page", request.page],
178
+ [
179
+ "page_size",
180
+ request.pageSize ?? this.client.settings.defaultPageSize
181
+ ]
182
+ )
183
+ },
184
+ marshalling_gen.unmarshalListDeploymentACLRulesResponse
185
+ );
186
+ /**
187
+ * List your ACLs. List ACLs for a specific deployment.
188
+ *
189
+ * @param request - The request {@link ListDeploymentACLRulesRequest}
190
+ * @returns A Promise of ListDeploymentACLRulesResponse
191
+ */
192
+ listDeploymentACLRules = (request) => resourcePaginator.enrichForPagination("rules", this.pageOfListDeploymentACLRules, request);
193
+ /**
194
+ * Add new ACLs. Add new ACL rules for a specific deployment.
195
+ *
196
+ * @param request - The request {@link AddDeploymentACLRulesRequest}
197
+ * @returns A Promise of AddDeploymentACLRulesResponse
198
+ */
199
+ addDeploymentACLRules = (request) => this.client.fetch(
200
+ {
201
+ body: JSON.stringify(
202
+ marshalling_gen.marshalAddDeploymentACLRulesRequest(request, this.client.settings)
203
+ ),
204
+ headers: jsonContentHeaders,
205
+ method: "POST",
206
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${marshalling.validatePathParam("deploymentId", request.deploymentId)}/acls`
207
+ },
208
+ marshalling_gen.unmarshalAddDeploymentACLRulesResponse
209
+ );
210
+ /**
211
+ * Set new ACL. Set new ACL rules for a specific deployment.
212
+ *
213
+ * @param request - The request {@link SetDeploymentACLRulesRequest}
214
+ * @returns A Promise of SetDeploymentACLRulesResponse
215
+ */
216
+ setDeploymentACLRules = (request) => this.client.fetch(
217
+ {
218
+ body: JSON.stringify(
219
+ marshalling_gen.marshalSetDeploymentACLRulesRequest(request, this.client.settings)
220
+ ),
221
+ headers: jsonContentHeaders,
222
+ method: "PUT",
223
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/deployments/${marshalling.validatePathParam("deploymentId", request.deploymentId)}/acls`
224
+ },
225
+ marshalling_gen.unmarshalSetDeploymentACLRulesResponse
226
+ );
227
+ /**
228
+ * Delete an exising ACL.
229
+ *
230
+ * @param request - The request {@link DeleteDeploymentACLRuleRequest}
231
+ */
232
+ deleteDeploymentACLRule = (request) => this.client.fetch({
233
+ method: "DELETE",
234
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/acls/${marshalling.validatePathParam("aclId", request.aclId)}`
235
+ });
236
+ pageOfListModels = (request = {}) => this.client.fetch(
237
+ {
238
+ method: "GET",
239
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models`,
240
+ urlParams: marshalling.urlParams(
241
+ ["name", request.name],
242
+ ["order_by", request.orderBy],
243
+ ["page", request.page],
244
+ [
245
+ "page_size",
246
+ request.pageSize ?? this.client.settings.defaultPageSize
247
+ ],
248
+ ["project_id", request.projectId],
249
+ ["tags", request.tags]
250
+ )
251
+ },
252
+ marshalling_gen.unmarshalListModelsResponse
253
+ );
254
+ /**
255
+ * List models. List all available models.
256
+ *
257
+ * @param request - The request {@link ListModelsRequest}
258
+ * @returns A Promise of ListModelsResponse
259
+ */
260
+ listModels = (request = {}) => resourcePaginator.enrichForPagination("models", this.pageOfListModels, request);
261
+ /**
262
+ * Get a model. Get the model for the given ID.
263
+ *
264
+ * @param request - The request {@link GetModelRequest}
265
+ * @returns A Promise of Model
266
+ */
267
+ getModel = (request) => this.client.fetch(
268
+ {
269
+ method: "GET",
270
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models/${marshalling.validatePathParam("modelId", request.modelId)}`
271
+ },
272
+ marshalling_gen.unmarshalModel
273
+ );
274
+ getModelEula = (request) => this.client.fetch(
275
+ {
276
+ method: "GET",
277
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/models/${marshalling.validatePathParam("modelId", request.modelId)}/eula`
278
+ },
279
+ marshalling_gen.unmarshalEula
280
+ );
281
+ pageOfListNodeTypes = (request) => this.client.fetch(
282
+ {
283
+ method: "GET",
284
+ path: `/inference/v1beta1/regions/${marshalling.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/node-types`,
285
+ urlParams: marshalling.urlParams(
286
+ ["include_disabled_types", request.includeDisabledTypes],
287
+ ["page", request.page],
288
+ [
289
+ "page_size",
290
+ request.pageSize ?? this.client.settings.defaultPageSize
291
+ ]
292
+ )
293
+ },
294
+ marshalling_gen.unmarshalListNodeTypesResponse
295
+ );
296
+ /**
297
+ * List available node types. List all available node types. By default, the
298
+ * node types returned in the list are ordered by creation date in ascending
299
+ * order, though this can be modified via the `order_by` field.
300
+ *
301
+ * @param request - The request {@link ListNodeTypesRequest}
302
+ * @returns A Promise of ListNodeTypesResponse
303
+ */
304
+ listNodeTypes = (request) => resourcePaginator.enrichForPagination("nodeTypes", this.pageOfListNodeTypes, request);
305
+ }
306
+ exports.API = API;