@scaleway/sdk 2.72.0 → 2.74.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 (209) hide show
  1. package/dist/api/account/v3/api.gen.cjs +13 -32
  2. package/dist/api/account/v3/api.gen.d.ts +17 -36
  3. package/dist/api/account/v3/api.gen.js +13 -32
  4. package/dist/api/account/v3/index.gen.d.ts +1 -1
  5. package/dist/api/account/v3/marshalling.gen.cjs +94 -65
  6. package/dist/api/account/v3/marshalling.gen.js +94 -65
  7. package/dist/api/account/v3/types.gen.d.ts +224 -104
  8. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
  9. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
  10. package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
  11. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
  12. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
  13. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
  14. package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
  15. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
  16. package/dist/api/baremetal/v1/api.gen.cjs +28 -61
  17. package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
  18. package/dist/api/baremetal/v1/api.gen.js +28 -61
  19. package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
  20. package/dist/api/baremetal/v3/api.gen.cjs +7 -14
  21. package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
  22. package/dist/api/baremetal/v3/api.gen.js +7 -14
  23. package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
  24. package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
  25. package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
  26. package/dist/api/billing/v2beta1/api.gen.js +11 -20
  27. package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
  28. package/dist/api/block/v1/api.gen.cjs +37 -55
  29. package/dist/api/block/v1/api.gen.d.ts +19 -37
  30. package/dist/api/block/v1/api.gen.js +37 -55
  31. package/dist/api/block/v1/types.gen.d.ts +306 -125
  32. package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
  33. package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
  34. package/dist/api/block/v1alpha1/api.gen.js +45 -64
  35. package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
  36. package/dist/api/cockpit/v1/api.gen.cjs +132 -156
  37. package/dist/api/cockpit/v1/api.gen.d.ts +66 -113
  38. package/dist/api/cockpit/v1/api.gen.js +133 -157
  39. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  40. package/dist/api/cockpit/v1/marshalling.gen.cjs +23 -0
  41. package/dist/api/cockpit/v1/marshalling.gen.d.ts +3 -1
  42. package/dist/api/cockpit/v1/marshalling.gen.js +23 -0
  43. package/dist/api/cockpit/v1/types.gen.d.ts +628 -246
  44. package/dist/api/container/v1beta1/api.gen.cjs +7 -14
  45. package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
  46. package/dist/api/container/v1beta1/api.gen.js +7 -14
  47. package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
  48. package/dist/api/dedibox/v1/api.gen.cjs +45 -69
  49. package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
  50. package/dist/api/dedibox/v1/api.gen.js +45 -69
  51. package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
  52. package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
  53. package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
  54. package/dist/api/domain/v2beta1/api.gen.js +119 -178
  55. package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
  56. package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
  57. package/dist/api/edge_services/v1beta1/api.gen.cjs +41 -22
  58. package/dist/api/edge_services/v1beta1/api.gen.d.ts +3 -2
  59. package/dist/api/edge_services/v1beta1/api.gen.js +41 -22
  60. package/dist/api/edge_services/v1beta1/index.gen.d.ts +1 -1
  61. package/dist/api/edge_services/v1beta1/types.gen.d.ts +7 -0
  62. package/dist/api/file/index.gen.cjs +4 -0
  63. package/dist/api/file/index.gen.d.ts +5 -0
  64. package/dist/api/file/index.gen.js +4 -0
  65. package/dist/api/file/v1alpha1/api.gen.cjs +142 -0
  66. package/dist/api/file/v1alpha1/api.gen.d.ts +73 -0
  67. package/dist/api/file/v1alpha1/api.gen.js +142 -0
  68. package/dist/api/file/v1alpha1/content.gen.cjs +7 -0
  69. package/dist/api/file/v1alpha1/content.gen.d.ts +3 -0
  70. package/dist/api/file/v1alpha1/content.gen.js +7 -0
  71. package/dist/api/file/v1alpha1/index.gen.cjs +8 -0
  72. package/dist/api/file/v1alpha1/index.gen.d.ts +4 -0
  73. package/dist/api/file/v1alpha1/index.gen.js +8 -0
  74. package/dist/api/file/v1alpha1/marshalling.gen.cjs +77 -0
  75. package/dist/api/file/v1alpha1/marshalling.gen.d.ts +7 -0
  76. package/dist/api/file/v1alpha1/marshalling.gen.js +77 -0
  77. package/dist/api/file/v1alpha1/types.gen.d.ts +239 -0
  78. package/dist/api/file/v1alpha1/validation-rules.gen.cjs +40 -0
  79. package/dist/api/file/v1alpha1/validation-rules.gen.d.ts +34 -0
  80. package/dist/api/file/v1alpha1/validation-rules.gen.js +40 -0
  81. package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
  82. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
  83. package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
  84. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
  85. package/dist/api/function/v1beta1/types.gen.d.ts +6 -6
  86. package/dist/api/iam/v1alpha1/api.gen.cjs +4 -4
  87. package/dist/api/iam/v1alpha1/api.gen.d.ts +4 -4
  88. package/dist/api/iam/v1alpha1/api.gen.js +4 -4
  89. package/dist/api/iam/v1alpha1/types.gen.d.ts +1 -1
  90. package/dist/api/index.gen.d.ts +3 -1
  91. package/dist/api/inference/v1/api.gen.cjs +8 -11
  92. package/dist/api/inference/v1/api.gen.d.ts +6 -9
  93. package/dist/api/inference/v1/api.gen.js +8 -11
  94. package/dist/api/inference/v1/types.gen.d.ts +330 -150
  95. package/dist/api/inference/v1beta1/api.gen.cjs +9 -12
  96. package/dist/api/inference/v1beta1/api.gen.d.ts +7 -10
  97. package/dist/api/inference/v1beta1/api.gen.js +9 -12
  98. package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
  99. package/dist/api/instance/v1/api.gen.cjs +64 -113
  100. package/dist/api/instance/v1/api.gen.d.ts +54 -103
  101. package/dist/api/instance/v1/api.gen.js +64 -113
  102. package/dist/api/instance/v1/marshalling.gen.cjs +4 -1
  103. package/dist/api/instance/v1/marshalling.gen.js +4 -1
  104. package/dist/api/instance/v1/types.gen.d.ts +1368 -600
  105. package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
  106. package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
  107. package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
  108. package/dist/api/interlink/v1beta1/api.gen.js +21 -67
  109. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
  110. package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
  111. package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
  112. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
  113. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
  114. package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
  115. package/dist/api/iot/v1/api.gen.cjs +37 -70
  116. package/dist/api/iot/v1/api.gen.d.ts +34 -67
  117. package/dist/api/iot/v1/api.gen.js +37 -70
  118. package/dist/api/iot/v1/types.gen.d.ts +566 -321
  119. package/dist/api/ipam/v1/api.gen.cjs +6 -26
  120. package/dist/api/ipam/v1/api.gen.d.ts +8 -29
  121. package/dist/api/ipam/v1/api.gen.js +6 -26
  122. package/dist/api/ipam/v1/types.gen.d.ts +146 -105
  123. package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
  124. package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
  125. package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
  126. package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
  127. package/dist/api/k8s/v1/api.gen.cjs +33 -78
  128. package/dist/api/k8s/v1/api.gen.d.ts +27 -72
  129. package/dist/api/k8s/v1/api.gen.js +33 -78
  130. package/dist/api/k8s/v1/types.gen.d.ts +743 -506
  131. package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
  132. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
  133. package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
  134. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
  135. package/dist/api/lb/v1/marshalling.gen.cjs +4 -2
  136. package/dist/api/lb/v1/marshalling.gen.js +4 -2
  137. package/dist/api/lb/v1/types.gen.d.ts +4 -0
  138. package/dist/api/marketplace/v2/api.gen.cjs +8 -21
  139. package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
  140. package/dist/api/marketplace/v2/api.gen.js +8 -21
  141. package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
  142. package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
  143. package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
  144. package/dist/api/mnq/v1beta1/api.gen.js +24 -76
  145. package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
  146. package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
  147. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
  148. package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
  149. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
  150. package/dist/api/product_catalog/index.gen.cjs +4 -0
  151. package/dist/api/product_catalog/index.gen.d.ts +5 -0
  152. package/dist/api/product_catalog/index.gen.js +4 -0
  153. package/dist/api/product_catalog/v2alpha1/api.gen.cjs +36 -0
  154. package/dist/api/product_catalog/v2alpha1/api.gen.d.ts +18 -0
  155. package/dist/api/product_catalog/v2alpha1/api.gen.js +36 -0
  156. package/dist/api/product_catalog/v2alpha1/index.gen.cjs +6 -0
  157. package/dist/api/product_catalog/v2alpha1/index.gen.d.ts +3 -0
  158. package/dist/api/product_catalog/v2alpha1/index.gen.js +6 -0
  159. package/dist/api/product_catalog/v2alpha1/marshalling.gen.cjs +230 -0
  160. package/dist/api/product_catalog/v2alpha1/marshalling.gen.d.ts +2 -0
  161. package/dist/api/product_catalog/v2alpha1/marshalling.gen.js +230 -0
  162. package/dist/api/product_catalog/v2alpha1/types.gen.d.ts +293 -0
  163. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.cjs +11 -0
  164. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.d.ts +8 -0
  165. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.js +11 -0
  166. package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
  167. package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
  168. package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
  169. package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
  170. package/dist/api/rdb/v1/api.gen.cjs +62 -202
  171. package/dist/api/rdb/v1/api.gen.d.ts +60 -201
  172. package/dist/api/rdb/v1/api.gen.js +62 -202
  173. package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
  174. package/dist/api/redis/v1/api.gen.cjs +23 -83
  175. package/dist/api/redis/v1/api.gen.d.ts +25 -85
  176. package/dist/api/redis/v1/api.gen.js +23 -83
  177. package/dist/api/redis/v1/types.gen.d.ts +447 -170
  178. package/dist/api/registry/v1/api.gen.cjs +12 -40
  179. package/dist/api/registry/v1/api.gen.d.ts +14 -42
  180. package/dist/api/registry/v1/api.gen.js +12 -40
  181. package/dist/api/registry/v1/types.gen.d.ts +200 -116
  182. package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
  183. package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
  184. package/dist/api/secret/v1beta1/api.gen.js +19 -47
  185. package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
  186. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
  187. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
  188. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
  189. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
  190. package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
  191. package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
  192. package/dist/api/tem/v1alpha1/api.gen.js +22 -58
  193. package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
  194. package/dist/api/test/v1/api.gen.cjs +8 -11
  195. package/dist/api/test/v1/api.gen.d.ts +6 -9
  196. package/dist/api/test/v1/api.gen.js +8 -11
  197. package/dist/api/test/v1/types.gen.d.ts +21 -10
  198. package/dist/api/vpcgw/v1/api.gen.cjs +37 -0
  199. package/dist/api/vpcgw/v1/api.gen.d.ts +37 -0
  200. package/dist/api/vpcgw/v1/api.gen.js +37 -0
  201. package/dist/client/dist/package.json.cjs +1 -1
  202. package/dist/client/dist/package.json.js +1 -1
  203. package/dist/index.cjs +36 -32
  204. package/dist/index.js +36 -32
  205. package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
  206. package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
  207. package/node_modules/@scaleway/sdk-client/package.json +1 -2
  208. package/package.json +2 -2
  209. package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
@@ -20,11 +20,9 @@ class PrivateNetworkAPI extends api.API {
20
20
  "pl-waw-3"
21
21
  ];
22
22
  /**
23
- * Add a server to a Private Network. Add an Elastic Metal server to a Private
24
- * Network.
23
+ * Add a server to a Private Network. Add an Elastic Metal server to a Private Network.
25
24
  *
26
- * @param request - The request
27
- * {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
25
+ * @param request - The request {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
28
26
  * @returns A Promise of ServerPrivateNetwork
29
27
  */
30
28
  addServerPrivateNetwork = (request) => this.client.fetch(
@@ -42,11 +40,9 @@ class PrivateNetworkAPI extends api.API {
42
40
  marshalling_gen.unmarshalServerPrivateNetwork
43
41
  );
44
42
  /**
45
- * Set multiple Private Networks on a server. Configure multiple Private
46
- * Networks on an Elastic Metal server.
43
+ * Set multiple Private Networks on a server. Configure multiple Private Networks on an Elastic Metal server.
47
44
  *
48
- * @param request - The request
49
- * {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
45
+ * @param request - The request {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
50
46
  * @returns A Promise of SetServerPrivateNetworksResponse
51
47
  */
52
48
  setServerPrivateNetworks = (request) => this.client.fetch(
@@ -84,11 +80,9 @@ class PrivateNetworkAPI extends api.API {
84
80
  marshalling_gen.unmarshalListServerPrivateNetworksResponse
85
81
  );
86
82
  /**
87
- * List the Private Networks of a server. List the Private Networks of an
88
- * Elastic Metal server.
83
+ * List the Private Networks of a server. List the Private Networks of an Elastic Metal server.
89
84
  *
90
- * @param request - The request
91
- * {@link PrivateNetworkApiListServerPrivateNetworksRequest}
85
+ * @param request - The request {@link PrivateNetworkApiListServerPrivateNetworksRequest}
92
86
  * @returns A Promise of ListServerPrivateNetworksResponse
93
87
  */
94
88
  listServerPrivateNetworks = (request = {}) => resourcePaginator.enrichForPagination(
@@ -99,8 +93,7 @@ class PrivateNetworkAPI extends api.API {
99
93
  /**
100
94
  * Delete a Private Network.
101
95
  *
102
- * @param request - The request
103
- * {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
96
+ * @param request - The request {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
104
97
  */
105
98
  deleteServerPrivateNetwork = (request) => this.client.fetch({
106
99
  method: "DELETE",
@@ -1,35 +1,31 @@
1
1
  import { API as ParentAPI } from '@scaleway/sdk-client';
2
2
  import type { Zone as ScwZone } from '@scaleway/sdk-client';
3
3
  import type { ListServerPrivateNetworksResponse, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, ServerPrivateNetwork, SetServerPrivateNetworksResponse } from './types.gen';
4
- /** Elastic Metal - Private Networks API. */
4
+ /**
5
+ * Elastic Metal - Private Networks API.
6
+ */
5
7
  export declare class PrivateNetworkAPI extends ParentAPI {
6
8
  /** Lists the available zones of the API. */
7
9
  static readonly LOCALITIES: ScwZone[];
8
10
  /**
9
- * Add a server to a Private Network. Add an Elastic Metal server to a Private
10
- * Network.
11
+ * Add a server to a Private Network. Add an Elastic Metal server to a Private Network.
11
12
  *
12
- * @param request - The request
13
- * {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
13
+ * @param request - The request {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
14
14
  * @returns A Promise of ServerPrivateNetwork
15
15
  */
16
16
  addServerPrivateNetwork: (request: Readonly<PrivateNetworkApiAddServerPrivateNetworkRequest>) => Promise<ServerPrivateNetwork>;
17
17
  /**
18
- * Set multiple Private Networks on a server. Configure multiple Private
19
- * Networks on an Elastic Metal server.
18
+ * Set multiple Private Networks on a server. Configure multiple Private Networks on an Elastic Metal server.
20
19
  *
21
- * @param request - The request
22
- * {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
20
+ * @param request - The request {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
23
21
  * @returns A Promise of SetServerPrivateNetworksResponse
24
22
  */
25
23
  setServerPrivateNetworks: (request: Readonly<PrivateNetworkApiSetServerPrivateNetworksRequest>) => Promise<SetServerPrivateNetworksResponse>;
26
24
  protected pageOfListServerPrivateNetworks: (request?: Readonly<PrivateNetworkApiListServerPrivateNetworksRequest>) => Promise<ListServerPrivateNetworksResponse>;
27
25
  /**
28
- * List the Private Networks of a server. List the Private Networks of an
29
- * Elastic Metal server.
26
+ * List the Private Networks of a server. List the Private Networks of an Elastic Metal server.
30
27
  *
31
- * @param request - The request
32
- * {@link PrivateNetworkApiListServerPrivateNetworksRequest}
28
+ * @param request - The request {@link PrivateNetworkApiListServerPrivateNetworksRequest}
33
29
  * @returns A Promise of ListServerPrivateNetworksResponse
34
30
  */
35
31
  listServerPrivateNetworks: (request?: Readonly<PrivateNetworkApiListServerPrivateNetworksRequest>) => Promise<ListServerPrivateNetworksResponse> & {
@@ -39,8 +35,7 @@ export declare class PrivateNetworkAPI extends ParentAPI {
39
35
  /**
40
36
  * Delete a Private Network.
41
37
  *
42
- * @param request - The request
43
- * {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
38
+ * @param request - The request {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
44
39
  */
45
40
  deleteServerPrivateNetwork: (request: Readonly<PrivateNetworkApiDeleteServerPrivateNetworkRequest>) => Promise<void>;
46
41
  }
@@ -18,11 +18,9 @@ class PrivateNetworkAPI extends API$1 {
18
18
  "pl-waw-3"
19
19
  ];
20
20
  /**
21
- * Add a server to a Private Network. Add an Elastic Metal server to a Private
22
- * Network.
21
+ * Add a server to a Private Network. Add an Elastic Metal server to a Private Network.
23
22
  *
24
- * @param request - The request
25
- * {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
23
+ * @param request - The request {@link PrivateNetworkApiAddServerPrivateNetworkRequest}
26
24
  * @returns A Promise of ServerPrivateNetwork
27
25
  */
28
26
  addServerPrivateNetwork = (request) => this.client.fetch(
@@ -40,11 +38,9 @@ class PrivateNetworkAPI extends API$1 {
40
38
  unmarshalServerPrivateNetwork
41
39
  );
42
40
  /**
43
- * Set multiple Private Networks on a server. Configure multiple Private
44
- * Networks on an Elastic Metal server.
41
+ * Set multiple Private Networks on a server. Configure multiple Private Networks on an Elastic Metal server.
45
42
  *
46
- * @param request - The request
47
- * {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
43
+ * @param request - The request {@link PrivateNetworkApiSetServerPrivateNetworksRequest}
48
44
  * @returns A Promise of SetServerPrivateNetworksResponse
49
45
  */
50
46
  setServerPrivateNetworks = (request) => this.client.fetch(
@@ -82,11 +78,9 @@ class PrivateNetworkAPI extends API$1 {
82
78
  unmarshalListServerPrivateNetworksResponse
83
79
  );
84
80
  /**
85
- * List the Private Networks of a server. List the Private Networks of an
86
- * Elastic Metal server.
81
+ * List the Private Networks of a server. List the Private Networks of an Elastic Metal server.
87
82
  *
88
- * @param request - The request
89
- * {@link PrivateNetworkApiListServerPrivateNetworksRequest}
83
+ * @param request - The request {@link PrivateNetworkApiListServerPrivateNetworksRequest}
90
84
  * @returns A Promise of ListServerPrivateNetworksResponse
91
85
  */
92
86
  listServerPrivateNetworks = (request = {}) => enrichForPagination(
@@ -97,8 +91,7 @@ class PrivateNetworkAPI extends API$1 {
97
91
  /**
98
92
  * Delete a Private Network.
99
93
  *
100
- * @param request - The request
101
- * {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
94
+ * @param request - The request {@link PrivateNetworkApiDeleteServerPrivateNetworkRequest}
102
95
  */
103
96
  deleteServerPrivateNetwork = (request) => this.client.fetch({
104
97
  method: "DELETE",
@@ -2,23 +2,41 @@ import type { Zone as ScwZone } from '@scaleway/sdk-client';
2
2
  export type ListServerPrivateNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
3
3
  export type ServerPrivateNetworkStatus = 'unknown_status' | 'attaching' | 'attached' | 'error' | 'detaching' | 'locked';
4
4
  export interface ServerPrivateNetwork {
5
- /** UUID of the Server-to-Private Network mapping. */
5
+ /**
6
+ * UUID of the Server-to-Private Network mapping.
7
+ */
6
8
  id: string;
7
- /** Private Network Project UUID. */
9
+ /**
10
+ * Private Network Project UUID.
11
+ */
8
12
  projectId: string;
9
- /** Server UUID. */
13
+ /**
14
+ * Server UUID.
15
+ */
10
16
  serverId: string;
11
- /** Private Network UUID. */
17
+ /**
18
+ * Private Network UUID.
19
+ */
12
20
  privateNetworkId: string;
13
- /** VLAN UUID associated with the Private Network. */
21
+ /**
22
+ * VLAN UUID associated with the Private Network.
23
+ */
14
24
  vlan?: number;
15
- /** Configuration status of the Private Network. */
25
+ /**
26
+ * Configuration status of the Private Network.
27
+ */
16
28
  status: ServerPrivateNetworkStatus;
17
- /** Private Network creation date. */
29
+ /**
30
+ * Private Network creation date.
31
+ */
18
32
  createdAt?: Date;
19
- /** Date the Private Network was last modified. */
33
+ /**
34
+ * Date the Private Network was last modified.
35
+ */
20
36
  updatedAt?: Date;
21
- /** IPAM IP IDs of the server, if it has any. */
37
+ /**
38
+ * IPAM IP IDs of the server, if it has any.
39
+ */
22
40
  ipamIpIds: string[];
23
41
  }
24
42
  export interface ListServerPrivateNetworksResponse {
@@ -26,54 +44,86 @@ export interface ListServerPrivateNetworksResponse {
26
44
  totalCount: number;
27
45
  }
28
46
  export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
29
- /** Zone to target. If none is passed will use default zone from the config. */
47
+ /**
48
+ * Zone to target. If none is passed will use default zone from the config.
49
+ */
30
50
  zone?: ScwZone;
31
- /** UUID of the server. */
51
+ /**
52
+ * UUID of the server.
53
+ */
32
54
  serverId: string;
33
- /** UUID of the Private Network. */
55
+ /**
56
+ * UUID of the Private Network.
57
+ */
34
58
  privateNetworkId: string;
35
- /** IPAM IDs of an IPs to attach to the server. */
59
+ /**
60
+ * IPAM IDs of an IPs to attach to the server.
61
+ */
36
62
  ipamIpIds?: string[];
37
63
  };
38
64
  export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
39
- /** Zone to target. If none is passed will use default zone from the config. */
65
+ /**
66
+ * Zone to target. If none is passed will use default zone from the config.
67
+ */
40
68
  zone?: ScwZone;
41
- /** UUID of the server. */
69
+ /**
70
+ * UUID of the server.
71
+ */
42
72
  serverId: string;
43
- /** UUID of the Private Network. */
73
+ /**
74
+ * UUID of the Private Network.
75
+ */
44
76
  privateNetworkId: string;
45
77
  };
46
78
  export type PrivateNetworkApiListServerPrivateNetworksRequest = {
47
- /** Zone to target. If none is passed will use default zone from the config. */
79
+ /**
80
+ * Zone to target. If none is passed will use default zone from the config.
81
+ */
48
82
  zone?: ScwZone;
49
- /** Sort order for the returned Private Networks. */
83
+ /**
84
+ * Sort order for the returned Private Networks.
85
+ */
50
86
  orderBy?: ListServerPrivateNetworksRequestOrderBy;
51
- /** Page number for the returned Private Networks. */
87
+ /**
88
+ * Page number for the returned Private Networks.
89
+ */
52
90
  page?: number;
53
- /** Maximum number of Private Networks per page. */
91
+ /**
92
+ * Maximum number of Private Networks per page.
93
+ */
54
94
  pageSize?: number;
55
- /** Filter Private Networks by server UUID. */
95
+ /**
96
+ * Filter Private Networks by server UUID.
97
+ */
56
98
  serverId?: string;
57
- /** Filter Private Networks by Private Network UUID. */
99
+ /**
100
+ * Filter Private Networks by Private Network UUID.
101
+ */
58
102
  privateNetworkId?: string;
59
- /** Filter Private Networks by organization UUID. */
103
+ /**
104
+ * Filter Private Networks by organization UUID.
105
+ */
60
106
  organizationId?: string;
61
- /** Filter Private Networks by project UUID. */
107
+ /**
108
+ * Filter Private Networks by project UUID.
109
+ */
62
110
  projectId?: string;
63
- /** Filter Private Networks by IPAM IP UUIDs. */
111
+ /**
112
+ * Filter Private Networks by IPAM IP UUIDs.
113
+ */
64
114
  ipamIpIds?: string[];
65
115
  };
66
116
  export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
67
- /** Zone to target. If none is passed will use default zone from the config. */
117
+ /**
118
+ * Zone to target. If none is passed will use default zone from the config.
119
+ */
68
120
  zone?: ScwZone;
69
- /** UUID of the server. */
121
+ /**
122
+ * UUID of the server.
123
+ */
70
124
  serverId: string;
71
125
  /**
72
- * Object where the keys are the UUIDs of Private Networks and the values are
73
- * arrays of IPAM IDs representing the IPs to assign to this Elastic Metal
74
- * server on the Private Network. If the array supplied for a Private Network
75
- * is empty, the next available IP from the Private Network's CIDR block will
76
- * automatically be used for attachment.
126
+ * Object where the keys are the UUIDs of Private Networks and the values are arrays of IPAM IDs representing the IPs to assign to this Elastic Metal server on the Private Network. If the array supplied for a Private Network is empty, the next available IP from the Private Network's CIDR block will automatically be used for attachment.
77
127
  */
78
128
  perPrivateNetworkIpamIpIds: Record<string, string[]>;
79
129
  };
@@ -39,8 +39,7 @@ class API extends api.API {
39
39
  marshalling_gen.unmarshalListConsumptionsResponse
40
40
  );
41
41
  /**
42
- * Get monthly consumption. Consumption allows you to retrieve your past or
43
- * current consumption cost, by project or category.
42
+ * Get monthly consumption. Consumption allows you to retrieve your past or current consumption cost, by project or category.
44
43
  *
45
44
  * @param request - The request {@link ListConsumptionsRequest}
46
45
  * @returns A Promise of ListConsumptionsResponse
@@ -67,8 +66,7 @@ class API extends api.API {
67
66
  marshalling_gen.unmarshalListTaxesResponse
68
67
  );
69
68
  /**
70
- * Get monthly consumption taxes. Consumption Tax allows you to retrieve your
71
- * past or current tax charges, by project or category.
69
+ * Get monthly consumption taxes. Consumption Tax allows you to retrieve your past or current tax charges, by project or category.
72
70
  *
73
71
  * @param request - The request {@link ListTaxesRequest}
74
72
  * @returns A Promise of ListTaxesResponse
@@ -94,8 +92,7 @@ class API extends api.API {
94
92
  marshalling_gen.unmarshalListInvoicesResponse
95
93
  );
96
94
  /**
97
- * List invoices. List all your invoices, filtering by `start_date` and
98
- * `invoice_type`. Each invoice has its own ID.
95
+ * List invoices. List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
99
96
  *
100
97
  * @param request - The request {@link ListInvoicesRequest}
101
98
  * @returns A Promise of ListInvoicesResponse
@@ -165,20 +162,14 @@ class API extends api.API {
165
162
  marshalling_gen.unmarshalListDiscountsResponse
166
163
  );
167
164
  /**
168
- * List discounts. List all discounts for your Organization and usable
169
- * categories, products, offers, references, regions and zones where the
170
- * discount can be applied. As a reseller:
171
- *
172
- * - If you do not specify an `organization_id` you will list the discounts
173
- * applied to your own Organization and your customers
174
- * - If you indicate your `organization_id` you will list only the discounts
175
- * applied to your Organization
176
- * - If you indicate `the organization_id` of one of your customers, you will
177
- * list the discounts applied to their Organization.
178
- *
179
- * @param request - The request {@link ListDiscountsRequest}
180
- * @returns A Promise of ListDiscountsResponse
181
- */
165
+ * List discounts. List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
166
+ - If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
167
+ - If you indicate your `organization_id` you will list only the discounts applied to your Organization
168
+ - If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
169
+ *
170
+ * @param request - The request {@link ListDiscountsRequest}
171
+ * @returns A Promise of ListDiscountsResponse
172
+ */
182
173
  listDiscounts = (request = {}) => resourcePaginator.enrichForPagination("discounts", this.pageOfListDiscounts, request);
183
174
  }
184
175
  exports.API = API;
@@ -2,15 +2,13 @@ import { API as ParentAPI } from '@scaleway/sdk-client';
2
2
  import type { DownloadInvoiceRequest, ExportInvoicesRequest, GetInvoiceRequest, Invoice, ListConsumptionsRequest, ListConsumptionsResponse, ListDiscountsRequest, ListDiscountsResponse, ListInvoicesRequest, ListInvoicesResponse, ListTaxesRequest, ListTaxesResponse } from './types.gen';
3
3
  /**
4
4
  * Billing API.
5
- *
6
- * This API allows you to manage and query your Scaleway billing and
7
- * consumption.
5
+
6
+ This API allows you to manage and query your Scaleway billing and consumption.
8
7
  */
9
8
  export declare class API extends ParentAPI {
10
9
  protected pageOfListConsumptions: (request?: Readonly<ListConsumptionsRequest>) => Promise<ListConsumptionsResponse>;
11
10
  /**
12
- * Get monthly consumption. Consumption allows you to retrieve your past or
13
- * current consumption cost, by project or category.
11
+ * Get monthly consumption. Consumption allows you to retrieve your past or current consumption cost, by project or category.
14
12
  *
15
13
  * @param request - The request {@link ListConsumptionsRequest}
16
14
  * @returns A Promise of ListConsumptionsResponse
@@ -21,8 +19,7 @@ export declare class API extends ParentAPI {
21
19
  };
22
20
  protected pageOfListTaxes: (request?: Readonly<ListTaxesRequest>) => Promise<ListTaxesResponse>;
23
21
  /**
24
- * Get monthly consumption taxes. Consumption Tax allows you to retrieve your
25
- * past or current tax charges, by project or category.
22
+ * Get monthly consumption taxes. Consumption Tax allows you to retrieve your past or current tax charges, by project or category.
26
23
  *
27
24
  * @param request - The request {@link ListTaxesRequest}
28
25
  * @returns A Promise of ListTaxesResponse
@@ -33,8 +30,7 @@ export declare class API extends ParentAPI {
33
30
  };
34
31
  protected pageOfListInvoices: (request?: Readonly<ListInvoicesRequest>) => Promise<ListInvoicesResponse>;
35
32
  /**
36
- * List invoices. List all your invoices, filtering by `start_date` and
37
- * `invoice_type`. Each invoice has its own ID.
33
+ * List invoices. List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
38
34
  *
39
35
  * @param request - The request {@link ListInvoicesRequest}
40
36
  * @returns A Promise of ListInvoicesResponse
@@ -66,16 +62,10 @@ export declare class API extends ParentAPI {
66
62
  downloadInvoice: (request: Readonly<DownloadInvoiceRequest>) => Promise<Blob>;
67
63
  protected pageOfListDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse>;
68
64
  /**
69
- * List discounts. List all discounts for your Organization and usable
70
- * categories, products, offers, references, regions and zones where the
71
- * discount can be applied. As a reseller:
72
- *
73
- * - If you do not specify an `organization_id` you will list the discounts
74
- * applied to your own Organization and your customers
75
- * - If you indicate your `organization_id` you will list only the discounts
76
- * applied to your Organization
77
- * - If you indicate `the organization_id` of one of your customers, you will
78
- * list the discounts applied to their Organization.
65
+ * List discounts. List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
66
+ - If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
67
+ - If you indicate your `organization_id` you will list only the discounts applied to your Organization
68
+ - If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
79
69
  *
80
70
  * @param request - The request {@link ListDiscountsRequest}
81
71
  * @returns A Promise of ListDiscountsResponse
@@ -37,8 +37,7 @@ class API extends API$1 {
37
37
  unmarshalListConsumptionsResponse
38
38
  );
39
39
  /**
40
- * Get monthly consumption. Consumption allows you to retrieve your past or
41
- * current consumption cost, by project or category.
40
+ * Get monthly consumption. Consumption allows you to retrieve your past or current consumption cost, by project or category.
42
41
  *
43
42
  * @param request - The request {@link ListConsumptionsRequest}
44
43
  * @returns A Promise of ListConsumptionsResponse
@@ -65,8 +64,7 @@ class API extends API$1 {
65
64
  unmarshalListTaxesResponse
66
65
  );
67
66
  /**
68
- * Get monthly consumption taxes. Consumption Tax allows you to retrieve your
69
- * past or current tax charges, by project or category.
67
+ * Get monthly consumption taxes. Consumption Tax allows you to retrieve your past or current tax charges, by project or category.
70
68
  *
71
69
  * @param request - The request {@link ListTaxesRequest}
72
70
  * @returns A Promise of ListTaxesResponse
@@ -92,8 +90,7 @@ class API extends API$1 {
92
90
  unmarshalListInvoicesResponse
93
91
  );
94
92
  /**
95
- * List invoices. List all your invoices, filtering by `start_date` and
96
- * `invoice_type`. Each invoice has its own ID.
93
+ * List invoices. List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
97
94
  *
98
95
  * @param request - The request {@link ListInvoicesRequest}
99
96
  * @returns A Promise of ListInvoicesResponse
@@ -163,20 +160,14 @@ class API extends API$1 {
163
160
  unmarshalListDiscountsResponse
164
161
  );
165
162
  /**
166
- * List discounts. List all discounts for your Organization and usable
167
- * categories, products, offers, references, regions and zones where the
168
- * discount can be applied. As a reseller:
169
- *
170
- * - If you do not specify an `organization_id` you will list the discounts
171
- * applied to your own Organization and your customers
172
- * - If you indicate your `organization_id` you will list only the discounts
173
- * applied to your Organization
174
- * - If you indicate `the organization_id` of one of your customers, you will
175
- * list the discounts applied to their Organization.
176
- *
177
- * @param request - The request {@link ListDiscountsRequest}
178
- * @returns A Promise of ListDiscountsResponse
179
- */
163
+ * List discounts. List all discounts for your Organization and usable categories, products, offers, references, regions and zones where the discount can be applied. As a reseller:
164
+ - If you do not specify an `organization_id` you will list the discounts applied to your own Organization and your customers
165
+ - If you indicate your `organization_id` you will list only the discounts applied to your Organization
166
+ - If you indicate `the organization_id` of one of your customers, you will list the discounts applied to their Organization.
167
+ *
168
+ * @param request - The request {@link ListDiscountsRequest}
169
+ * @returns A Promise of ListDiscountsResponse
170
+ */
180
171
  listDiscounts = (request = {}) => enrichForPagination("discounts", this.pageOfListDiscounts, request);
181
172
  }
182
173
  export {