@scaleway/sdk 2.72.0 → 2.73.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 (146) 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/types.gen.d.ts +187 -85
  5. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
  6. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
  7. package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
  8. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
  9. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
  10. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
  11. package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
  12. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
  13. package/dist/api/baremetal/v1/api.gen.cjs +28 -61
  14. package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
  15. package/dist/api/baremetal/v1/api.gen.js +28 -61
  16. package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
  17. package/dist/api/baremetal/v3/api.gen.cjs +7 -14
  18. package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
  19. package/dist/api/baremetal/v3/api.gen.js +7 -14
  20. package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
  21. package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
  22. package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
  23. package/dist/api/billing/v2beta1/api.gen.js +11 -20
  24. package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
  25. package/dist/api/block/v1/api.gen.cjs +37 -55
  26. package/dist/api/block/v1/api.gen.d.ts +19 -37
  27. package/dist/api/block/v1/api.gen.js +37 -55
  28. package/dist/api/block/v1/types.gen.d.ts +306 -125
  29. package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
  30. package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
  31. package/dist/api/block/v1alpha1/api.gen.js +45 -64
  32. package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
  33. package/dist/api/cockpit/v1/api.gen.cjs +100 -156
  34. package/dist/api/cockpit/v1/api.gen.d.ts +53 -112
  35. package/dist/api/cockpit/v1/api.gen.js +100 -156
  36. package/dist/api/cockpit/v1/types.gen.d.ts +567 -246
  37. package/dist/api/container/v1beta1/api.gen.cjs +7 -14
  38. package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
  39. package/dist/api/container/v1beta1/api.gen.js +7 -14
  40. package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
  41. package/dist/api/dedibox/v1/api.gen.cjs +45 -69
  42. package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
  43. package/dist/api/dedibox/v1/api.gen.js +45 -69
  44. package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
  45. package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
  46. package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
  47. package/dist/api/domain/v2beta1/api.gen.js +119 -178
  48. package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
  49. package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
  50. package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
  51. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
  52. package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
  53. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
  54. package/dist/api/inference/v1/api.gen.cjs +8 -11
  55. package/dist/api/inference/v1/api.gen.d.ts +6 -9
  56. package/dist/api/inference/v1/api.gen.js +8 -11
  57. package/dist/api/inference/v1/types.gen.d.ts +330 -150
  58. package/dist/api/inference/v1beta1/api.gen.cjs +8 -11
  59. package/dist/api/inference/v1beta1/api.gen.d.ts +6 -9
  60. package/dist/api/inference/v1beta1/api.gen.js +8 -11
  61. package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
  62. package/dist/api/instance/v1/api.gen.cjs +64 -113
  63. package/dist/api/instance/v1/api.gen.d.ts +54 -103
  64. package/dist/api/instance/v1/api.gen.js +64 -113
  65. package/dist/api/instance/v1/types.gen.d.ts +1351 -598
  66. package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
  67. package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
  68. package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
  69. package/dist/api/interlink/v1beta1/api.gen.js +21 -67
  70. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
  71. package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
  72. package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
  73. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
  74. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
  75. package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
  76. package/dist/api/iot/v1/api.gen.cjs +37 -70
  77. package/dist/api/iot/v1/api.gen.d.ts +34 -67
  78. package/dist/api/iot/v1/api.gen.js +37 -70
  79. package/dist/api/iot/v1/types.gen.d.ts +566 -321
  80. package/dist/api/ipam/v1/api.gen.cjs +6 -26
  81. package/dist/api/ipam/v1/api.gen.d.ts +8 -29
  82. package/dist/api/ipam/v1/api.gen.js +6 -26
  83. package/dist/api/ipam/v1/types.gen.d.ts +146 -105
  84. package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
  85. package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
  86. package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
  87. package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
  88. package/dist/api/k8s/v1/api.gen.cjs +33 -78
  89. package/dist/api/k8s/v1/api.gen.d.ts +27 -72
  90. package/dist/api/k8s/v1/api.gen.js +33 -78
  91. package/dist/api/k8s/v1/types.gen.d.ts +743 -506
  92. package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
  93. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
  94. package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
  95. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
  96. package/dist/api/marketplace/v2/api.gen.cjs +8 -21
  97. package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
  98. package/dist/api/marketplace/v2/api.gen.js +8 -21
  99. package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
  100. package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
  101. package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
  102. package/dist/api/mnq/v1beta1/api.gen.js +24 -76
  103. package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
  104. package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
  105. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
  106. package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
  107. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
  108. package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
  109. package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
  110. package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
  111. package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
  112. package/dist/api/rdb/v1/api.gen.cjs +62 -202
  113. package/dist/api/rdb/v1/api.gen.d.ts +60 -201
  114. package/dist/api/rdb/v1/api.gen.js +62 -202
  115. package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
  116. package/dist/api/redis/v1/api.gen.cjs +23 -83
  117. package/dist/api/redis/v1/api.gen.d.ts +25 -85
  118. package/dist/api/redis/v1/api.gen.js +23 -83
  119. package/dist/api/redis/v1/types.gen.d.ts +447 -170
  120. package/dist/api/registry/v1/api.gen.cjs +12 -40
  121. package/dist/api/registry/v1/api.gen.d.ts +14 -42
  122. package/dist/api/registry/v1/api.gen.js +12 -40
  123. package/dist/api/registry/v1/types.gen.d.ts +200 -116
  124. package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
  125. package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
  126. package/dist/api/secret/v1beta1/api.gen.js +19 -47
  127. package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
  128. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
  129. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
  130. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
  131. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
  132. package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
  133. package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
  134. package/dist/api/tem/v1alpha1/api.gen.js +22 -58
  135. package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
  136. package/dist/api/test/v1/api.gen.cjs +8 -11
  137. package/dist/api/test/v1/api.gen.d.ts +6 -9
  138. package/dist/api/test/v1/api.gen.js +8 -11
  139. package/dist/api/test/v1/types.gen.d.ts +21 -10
  140. package/dist/client/dist/package.json.cjs +1 -1
  141. package/dist/client/dist/package.json.js +1 -1
  142. package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
  143. package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
  144. package/node_modules/@scaleway/sdk-client/package.json +1 -2
  145. package/package.json +2 -2
  146. package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
@@ -10,262 +10,391 @@ export type ListDiscountsRequestOrderBy = 'creation_date_desc' | 'creation_date_
10
10
  export type ListInvoicesRequestOrderBy = 'invoice_number_desc' | 'invoice_number_asc' | 'start_date_desc' | 'start_date_asc' | 'issued_date_desc' | 'issued_date_asc' | 'due_date_desc' | 'due_date_asc' | 'total_untaxed_desc' | 'total_untaxed_asc' | 'total_taxed_desc' | 'total_taxed_asc' | 'invoice_type_desc' | 'invoice_type_asc';
11
11
  export type ListTaxesRequestOrderBy = 'updated_at_desc' | 'updated_at_asc' | 'category_name_desc' | 'category_name_asc';
12
12
  export interface DiscountCoupon {
13
- /** The description of the coupon. */
13
+ /**
14
+ * The description of the coupon.
15
+ */
14
16
  description?: string;
15
17
  }
16
18
  export interface DiscountFilter {
17
19
  /**
18
- * Type of the filter (category name, product name, product range, resource
19
- * name, region or zone).
20
+ * Type of the filter (category name, product name, product range, resource name, region or zone).
20
21
  */
21
22
  type: DiscountFilterType;
22
- /** Value of filter. */
23
+ /**
24
+ * Value of filter.
25
+ */
23
26
  value: string;
24
- /** Boolean to describe if filter is an excluding filter. */
27
+ /**
28
+ * Boolean to describe if filter is an excluding filter.
29
+ */
25
30
  exclude: boolean;
26
31
  }
27
32
  export interface ListConsumptionsResponseConsumption {
28
- /** Monetary value of the consumption. */
33
+ /**
34
+ * Monetary value of the consumption.
35
+ */
29
36
  value?: Money;
30
37
  /**
31
- * The product name. For example, "VPC Public Gateway S", "VPC Public Gateway
32
- * M" for the VPC product.
38
+ * The product name. For example, "VPC Public Gateway S", "VPC Public Gateway M" for the VPC product.
33
39
  */
34
40
  productName: string;
35
- /** Identifies the reference based on the category. */
41
+ /**
42
+ * Identifies the reference based on the category.
43
+ */
36
44
  resourceName: string;
37
- /** Unique identifier of the product. */
45
+ /**
46
+ * Unique identifier of the product.
47
+ */
38
48
  sku: string;
39
- /** Project ID of the consumption. */
49
+ /**
50
+ * Project ID of the consumption.
51
+ */
40
52
  projectId: string;
41
- /** Name of consumption category. */
53
+ /**
54
+ * Name of consumption category.
55
+ */
42
56
  categoryName: string;
43
- /** Unit of consumed quantity. */
57
+ /**
58
+ * Unit of consumed quantity.
59
+ */
44
60
  unit: string;
45
- /** Consumed quantity. */
61
+ /**
62
+ * Consumed quantity.
63
+ */
46
64
  billedQuantity: string;
47
65
  }
48
66
  export interface Discount {
49
- /** The ID of the discount. */
67
+ /**
68
+ * The ID of the discount.
69
+ */
50
70
  id: string;
51
- /** The creation date of the discount. */
71
+ /**
72
+ * The creation date of the discount.
73
+ */
52
74
  creationDate?: Date;
53
- /** The Organization ID of the discount. */
75
+ /**
76
+ * The Organization ID of the discount.
77
+ */
54
78
  organizationId: string;
55
- /** The description of the discount. */
79
+ /**
80
+ * The description of the discount.
81
+ */
56
82
  description: string;
57
- /** The initial value of the discount. */
83
+ /**
84
+ * The initial value of the discount.
85
+ */
58
86
  value: number;
59
- /** The value indicating how much of the discount has been used. */
87
+ /**
88
+ * The value indicating how much of the discount has been used.
89
+ */
60
90
  valueUsed: number;
61
- /** The remaining value of the discount. */
91
+ /**
92
+ * The remaining value of the discount.
93
+ */
62
94
  valueRemaining: number;
63
- /** The mode of the discount. */
95
+ /**
96
+ * The mode of the discount.
97
+ */
64
98
  mode: DiscountDiscountMode;
65
- /** The start date of the discount. */
99
+ /**
100
+ * The start date of the discount.
101
+ */
66
102
  startDate?: Date;
67
- /** The stop date of the discount. */
103
+ /**
104
+ * The stop date of the discount.
105
+ */
68
106
  stopDate?: Date;
69
- /** The description of the coupon. */
107
+ /**
108
+ * The description of the coupon.
109
+ */
70
110
  coupon?: DiscountCoupon;
71
- /** List of the discount scopes. */
111
+ /**
112
+ * List of the discount scopes.
113
+ */
72
114
  filters: DiscountFilter[];
73
115
  }
74
116
  export interface Invoice {
75
- /** Invoice ID. */
117
+ /**
118
+ * Invoice ID.
119
+ */
76
120
  id: string;
77
121
  organizationId: string;
78
122
  organizationName: string;
79
- /** Start date of the billing period. */
123
+ /**
124
+ * Start date of the billing period.
125
+ */
80
126
  startDate?: Date;
81
127
  stopDate?: Date;
82
- /** The billing period of the invoice in the YYYY-MM format. */
128
+ /**
129
+ * The billing period of the invoice in the YYYY-MM format.
130
+ */
83
131
  billingPeriod?: Date;
84
- /** Date when the invoice was sent to the customer. */
132
+ /**
133
+ * Date when the invoice was sent to the customer.
134
+ */
85
135
  issuedDate?: Date;
86
- /** Payment time limit, set according to the Organization's payment conditions. */
136
+ /**
137
+ * Payment time limit, set according to the Organization's payment conditions.
138
+ */
87
139
  dueDate?: Date;
88
- /** Total amount, untaxed. */
140
+ /**
141
+ * Total amount, untaxed.
142
+ */
89
143
  totalUntaxed?: Money;
90
- /** Total amount, taxed. */
144
+ /**
145
+ * Total amount, taxed.
146
+ */
91
147
  totalTaxed?: Money;
92
- /** The total tax amount of the invoice. */
148
+ /**
149
+ * The total tax amount of the invoice.
150
+ */
93
151
  totalTax?: Money;
94
- /** The total discount amount of the invoice. */
152
+ /**
153
+ * The total discount amount of the invoice.
154
+ */
95
155
  totalDiscount?: Money;
96
- /** The total amount of the invoice before applying the discount. */
156
+ /**
157
+ * The total amount of the invoice before applying the discount.
158
+ */
97
159
  totalUndiscount?: Money;
98
- /** Type of invoice, either periodic or purchase. */
160
+ /**
161
+ * Type of invoice, either periodic or purchase.
162
+ */
99
163
  type: InvoiceType;
100
- /** The state of the Invoice. */
164
+ /**
165
+ * The state of the Invoice.
166
+ */
101
167
  state: string;
102
- /** Invoice number. */
168
+ /**
169
+ * Invoice number.
170
+ */
103
171
  number: number;
104
- /** The name of the seller (Scaleway). */
172
+ /**
173
+ * The name of the seller (Scaleway).
174
+ */
105
175
  sellerName: string;
106
176
  }
107
177
  export interface ListTaxesResponseTax {
108
- /** Description of the tax applied. */
178
+ /**
179
+ * Description of the tax applied.
180
+ */
109
181
  description: string;
110
- /** The three-letter currency code. */
182
+ /**
183
+ * The three-letter currency code.
184
+ */
111
185
  currency: string;
112
- /** Applied tax rate (0.2 means a VAT of 20%). */
186
+ /**
187
+ * Applied tax rate (0.2 means a VAT of 20%).
188
+ */
113
189
  rate?: number;
114
- /** The total tax value of the consumption. */
190
+ /**
191
+ * The total tax value of the consumption.
192
+ */
115
193
  totalTaxValue?: number;
116
194
  }
117
195
  export type DownloadInvoiceRequest = {
118
- /** Invoice ID. */
196
+ /**
197
+ * Invoice ID.
198
+ */
119
199
  invoiceId: string;
120
- /** File type. PDF by default. */
200
+ /**
201
+ * File type. PDF by default.
202
+ */
121
203
  fileType?: DownloadInvoiceRequestFileType;
122
204
  };
123
205
  export type ExportInvoicesRequest = {
124
206
  /**
125
- * Organization ID. If specified, only invoices from this Organization will be
126
- * returned.
207
+ * Organization ID. If specified, only invoices from this Organization will be returned.
127
208
  */
128
209
  organizationId?: string;
129
- /** Return only invoice with start date greater than billing_period_start. */
210
+ /**
211
+ * Return only invoice with start date greater than billing_period_start.
212
+ */
130
213
  billingPeriodStartAfter?: Date;
131
- /** Return only invoice with start date less than billing_period_start. */
214
+ /**
215
+ * Return only invoice with start date less than billing_period_start.
216
+ */
132
217
  billingPeriodStartBefore?: Date;
133
- /** Invoice type. It can either be `periodic` or `purchase`. */
218
+ /**
219
+ * Invoice type. It can either be `periodic` or `purchase`.
220
+ */
134
221
  invoiceType?: InvoiceType;
135
- /** Page number. */
222
+ /**
223
+ * Page number.
224
+ */
136
225
  page?: number;
137
226
  /**
138
- * Positive integer lower or equal to 100 to select the number of items to
139
- * return.
227
+ * Positive integer lower or equal to 100 to select the number of items to return.
140
228
  */
141
229
  pageSize?: number;
142
- /** How invoices are ordered in the response. */
230
+ /**
231
+ * How invoices are ordered in the response.
232
+ */
143
233
  orderBy?: ExportInvoicesRequestOrderBy;
144
- /** File format for exporting the invoice list. */
234
+ /**
235
+ * File format for exporting the invoice list.
236
+ */
145
237
  fileType?: ExportInvoicesRequestFileType;
146
238
  };
147
239
  export type GetInvoiceRequest = {
148
- /** Invoice ID. */
240
+ /**
241
+ * Invoice ID.
242
+ */
149
243
  invoiceId: string;
150
244
  };
151
245
  export type ListConsumptionsRequest = {
152
- /** Order consumptions list in the response by their update date. */
246
+ /**
247
+ * Order consumptions list in the response by their update date.
248
+ */
153
249
  orderBy?: ListConsumptionsRequestOrderBy;
154
- /** Positive integer to choose the page to return. */
250
+ /**
251
+ * Positive integer to choose the page to return.
252
+ */
155
253
  page?: number;
156
254
  /**
157
- * Positive integer lower or equal to 100 to select the number of items to
158
- * return.
255
+ * Positive integer lower or equal to 100 to select the number of items to return.
159
256
  */
160
257
  pageSize?: number;
161
258
  /**
162
259
  * Filter by Organization ID.
163
260
  *
164
- * One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId'
165
- * could be set.
261
+ * One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId' could be set.
166
262
  */
167
263
  organizationId?: string;
168
264
  /**
169
265
  * Filter by Project ID.
170
266
  *
171
- * One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId'
172
- * could be set.
267
+ * One-of ('projectIdentifier'): at most one of 'organizationId', 'projectId' could be set.
173
268
  */
174
269
  projectId?: string;
175
270
  /**
176
- * Filter by name of a Category as they are shown in the invoice (Compute,
177
- * Network, Observability).
271
+ * Filter by name of a Category as they are shown in the invoice (Compute, Network, Observability).
178
272
  */
179
273
  categoryName?: string;
180
274
  /**
181
- * Filter by the billing period in the YYYY-MM format. If it is empty the
182
- * current billing period will be used as default.
275
+ * Filter by the billing period in the YYYY-MM format. If it is empty the current billing period will be used as default.
183
276
  */
184
277
  billingPeriod?: string;
185
278
  };
186
279
  export interface ListConsumptionsResponse {
187
- /** Detailed consumption list. */
280
+ /**
281
+ * Detailed consumption list.
282
+ */
188
283
  consumptions: ListConsumptionsResponseConsumption[];
189
- /** Total number of returned items. */
284
+ /**
285
+ * Total number of returned items.
286
+ */
190
287
  totalCount: number;
191
288
  /**
192
- * Sum of all discounts, displayed only when no category or project ID filter
193
- * is applied.
289
+ * Sum of all discounts, displayed only when no category or project ID filter is applied.
194
290
  */
195
291
  totalDiscountUntaxedValue: number;
196
- /** Last consumption update date. */
292
+ /**
293
+ * Last consumption update date.
294
+ */
197
295
  updatedAt?: Date;
198
296
  }
199
297
  export type ListDiscountsRequest = {
200
- /** Order discounts in the response by their description. */
298
+ /**
299
+ * Order discounts in the response by their description.
300
+ */
201
301
  orderBy?: ListDiscountsRequestOrderBy;
202
- /** Positive integer to choose the page to return. */
302
+ /**
303
+ * Positive integer to choose the page to return.
304
+ */
203
305
  page?: number;
204
306
  /**
205
- * Positive integer lower or equal to 100 to select the number of items to
206
- * return.
307
+ * Positive integer lower or equal to 100 to select the number of items to return.
207
308
  */
208
309
  pageSize?: number;
209
- /** ID of the organization. */
310
+ /**
311
+ * ID of the organization.
312
+ */
210
313
  organizationId?: string;
211
314
  };
212
315
  export interface ListDiscountsResponse {
213
- /** Total number of discounts. */
316
+ /**
317
+ * Total number of discounts.
318
+ */
214
319
  totalCount: number;
215
- /** Paginated returned discounts. */
320
+ /**
321
+ * Paginated returned discounts.
322
+ */
216
323
  discounts: Discount[];
217
324
  }
218
325
  export type ListInvoicesRequest = {
219
326
  /**
220
- * Organization ID. If specified, only invoices from this Organization will be
221
- * returned.
327
+ * Organization ID. If specified, only invoices from this Organization will be returned.
222
328
  */
223
329
  organizationId?: string;
224
- /** Return only invoice with start date greater than billing_period_start. */
330
+ /**
331
+ * Return only invoice with start date greater than billing_period_start.
332
+ */
225
333
  billingPeriodStartAfter?: Date;
226
- /** Return only invoice with start date less than billing_period_start. */
334
+ /**
335
+ * Return only invoice with start date less than billing_period_start.
336
+ */
227
337
  billingPeriodStartBefore?: Date;
228
- /** Invoice type. It can either be `periodic` or `purchase`. */
338
+ /**
339
+ * Invoice type. It can either be `periodic` or `purchase`.
340
+ */
229
341
  invoiceType?: InvoiceType;
230
- /** Page number. */
342
+ /**
343
+ * Page number.
344
+ */
231
345
  page?: number;
232
346
  /**
233
- * Positive integer lower or equal to 100 to select the number of items to
234
- * return.
347
+ * Positive integer lower or equal to 100 to select the number of items to return.
235
348
  */
236
349
  pageSize?: number;
237
- /** How invoices are ordered in the response. */
350
+ /**
351
+ * How invoices are ordered in the response.
352
+ */
238
353
  orderBy?: ListInvoicesRequestOrderBy;
239
354
  };
240
355
  export interface ListInvoicesResponse {
241
- /** Total number of invoices. */
356
+ /**
357
+ * Total number of invoices.
358
+ */
242
359
  totalCount: number;
243
- /** Paginated returned invoices. */
360
+ /**
361
+ * Paginated returned invoices.
362
+ */
244
363
  invoices: Invoice[];
245
364
  }
246
365
  export type ListTaxesRequest = {
247
- /** Order consumed taxes list in the response by their update date. */
366
+ /**
367
+ * Order consumed taxes list in the response by their update date.
368
+ */
248
369
  orderBy?: ListTaxesRequestOrderBy;
249
- /** Page number. */
370
+ /**
371
+ * Page number.
372
+ */
250
373
  page?: number;
251
374
  /**
252
- * Positive integer lower or equal to 100 to select the number of items to
253
- * return.
375
+ * Positive integer lower or equal to 100 to select the number of items to return.
254
376
  */
255
377
  pageSize?: number;
256
- /** Filter by Organization ID. */
378
+ /**
379
+ * Filter by Organization ID.
380
+ */
257
381
  organizationId?: string;
258
382
  /**
259
- * Filter by the billing period in the YYYY-MM format. If it is empty the
260
- * current billing period will be used as default.
383
+ * Filter by the billing period in the YYYY-MM format. If it is empty the current billing period will be used as default.
261
384
  */
262
385
  billingPeriod?: string;
263
386
  };
264
387
  export interface ListTaxesResponse {
265
- /** Detailed consumption tax. */
388
+ /**
389
+ * Detailed consumption tax.
390
+ */
266
391
  taxes: ListTaxesResponseTax[];
267
- /** Total number of returned items. */
392
+ /**
393
+ * Total number of returned items.
394
+ */
268
395
  totalCount: number;
269
- /** Last consumption update date. */
396
+ /**
397
+ * Last consumption update date.
398
+ */
270
399
  updatedAt?: Date;
271
400
  }
@@ -39,8 +39,7 @@ class API extends api.API {
39
39
  marshalling_gen.unmarshalListVolumeTypesResponse
40
40
  );
41
41
  /**
42
- * List volume types. List all available volume types in a specified zone. The
43
- * volume types listed are ordered by name in ascending order.
42
+ * List volume types. List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order.
44
43
  *
45
44
  * @param request - The request {@link ListVolumeTypesRequest}
46
45
  * @returns A Promise of ListVolumeTypesResponse
@@ -67,25 +66,19 @@ class API extends api.API {
67
66
  marshalling_gen.unmarshalListVolumesResponse
68
67
  );
69
68
  /**
70
- * List volumes. List all existing volumes in a specified zone. By default,
71
- * the volumes listed are ordered by creation date in ascending order. This
72
- * can be modified via the `order_by` field.
69
+ * List volumes. List all existing volumes in a specified zone. By default, the volumes listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
73
70
  *
74
71
  * @param request - The request {@link ListVolumesRequest}
75
72
  * @returns A Promise of ListVolumesResponse
76
73
  */
77
74
  listVolumes = (request = {}) => resourcePaginator.enrichForPagination("volumes", this.pageOfListVolumes, request);
78
75
  /**
79
- * Create a volume. To create a new volume from scratch, you must specify
80
- * `from_empty` and the `size`. To create a volume from an existing snapshot,
81
- * specify `from_snapshot` and the `snapshot_id` in the request payload
82
- * instead, size is optional and can be specified if you need to extend the
83
- * original size. The volume will take on the same volume class and underlying
84
- * IOPS limitations as the original snapshot.
85
- *
86
- * @param request - The request {@link CreateVolumeRequest}
87
- * @returns A Promise of Volume
88
- */
76
+ * Create a volume. To create a new volume from scratch, you must specify `from_empty` and the `size`.
77
+ To create a volume from an existing snapshot, specify `from_snapshot` and the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size. The volume will take on the same volume class and underlying IOPS limitations as the original snapshot.
78
+ *
79
+ * @param request - The request {@link CreateVolumeRequest}
80
+ * @returns A Promise of Volume
81
+ */
89
82
  createVolume = (request = {}) => this.client.fetch(
90
83
  {
91
84
  body: JSON.stringify(
@@ -98,8 +91,7 @@ class API extends api.API {
98
91
  marshalling_gen.unmarshalVolume
99
92
  );
100
93
  /**
101
- * Get a volume. Retrieve technical information about a specific volume.
102
- * Details such as size, type, and status are returned in the response.
94
+ * Get a volume. Retrieve technical information about a specific volume. Details such as size, type, and status are returned in the response.
103
95
  *
104
96
  * @param request - The request {@link GetVolumeRequest}
105
97
  * @returns A Promise of Volume
@@ -127,8 +119,7 @@ class API extends api.API {
127
119
  options
128
120
  );
129
121
  /**
130
- * Delete a detached volume. You must specify the `volume_id` of the volume
131
- * you want to delete. The volume must not be in the `in_use` status.
122
+ * Delete a detached volume. You must specify the `volume_id` of the volume you want to delete. The volume must not be in the `in_use` status.
132
123
  *
133
124
  * @param request - The request {@link DeleteVolumeRequest}
134
125
  */
@@ -137,14 +128,12 @@ class API extends api.API {
137
128
  path: `/block/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${marshalling.validatePathParam("volumeId", request.volumeId)}`
138
129
  });
139
130
  /**
140
- * Update a volume. Update the technical details of a volume, such as its
141
- * name, tags, or its new size and `volume_type` (within the same Block
142
- * Storage class). You can only resize a volume to a larger size. It is
143
- * currently not possible to change your Block Storage Class.
144
- *
145
- * @param request - The request {@link UpdateVolumeRequest}
146
- * @returns A Promise of Volume
147
- */
131
+ * Update a volume. Update the technical details of a volume, such as its name, tags, or its new size and `volume_type` (within the same Block Storage class).
132
+ You can only resize a volume to a larger size. It is currently not possible to change your Block Storage Class.
133
+ *
134
+ * @param request - The request {@link UpdateVolumeRequest}
135
+ * @returns A Promise of Volume
136
+ */
148
137
  updateVolume = (request) => this.client.fetch(
149
138
  {
150
139
  body: JSON.stringify(
@@ -177,18 +166,14 @@ class API extends api.API {
177
166
  marshalling_gen.unmarshalListSnapshotsResponse
178
167
  );
179
168
  /**
180
- * List all snapshots. List all available snapshots in a specified zone. By
181
- * default, the snapshots listed are ordered by creation date in ascending
182
- * order. This can be modified via the `order_by` field.
169
+ * List all snapshots. List all available snapshots in a specified zone. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
183
170
  *
184
171
  * @param request - The request {@link ListSnapshotsRequest}
185
172
  * @returns A Promise of ListSnapshotsResponse
186
173
  */
187
174
  listSnapshots = (request = {}) => resourcePaginator.enrichForPagination("snapshots", this.pageOfListSnapshots, request);
188
175
  /**
189
- * Get a snapshot. Retrieve technical information about a specific snapshot.
190
- * Details such as size, volume type, and status are returned in the
191
- * response.
176
+ * Get a snapshot. Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response.
192
177
  *
193
178
  * @param request - The request {@link GetSnapshotRequest}
194
179
  * @returns A Promise of Snapshot
@@ -216,13 +201,12 @@ class API extends api.API {
216
201
  options
217
202
  );
218
203
  /**
219
- * Create a snapshot of a volume. To create a snapshot, the volume must be in
220
- * the `in_use` or the `available` status. If your volume is in a transient
221
- * state, you need to wait until the end of the current operation.
222
- *
223
- * @param request - The request {@link CreateSnapshotRequest}
224
- * @returns A Promise of Snapshot
225
- */
204
+ * Create a snapshot of a volume. To create a snapshot, the volume must be in the `in_use` or the `available` status.
205
+ If your volume is in a transient state, you need to wait until the end of the current operation.
206
+ *
207
+ * @param request - The request {@link CreateSnapshotRequest}
208
+ * @returns A Promise of Snapshot
209
+ */
226
210
  createSnapshot = (request) => this.client.fetch(
227
211
  {
228
212
  body: JSON.stringify(
@@ -235,13 +219,12 @@ class API extends api.API {
235
219
  marshalling_gen.unmarshalSnapshot
236
220
  );
237
221
  /**
238
- * Import a snapshot from a Scaleway Object Storage bucket. The bucket must
239
- * contain a QCOW2 image. The bucket can be imported into any Availability
240
- * Zone as long as it is in the same region as the bucket.
241
- *
242
- * @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
243
- * @returns A Promise of Snapshot
244
- */
222
+ * Import a snapshot from a Scaleway Object Storage bucket. The bucket must contain a QCOW2 image.
223
+ The bucket can be imported into any Availability Zone as long as it is in the same region as the bucket.
224
+ *
225
+ * @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
226
+ * @returns A Promise of Snapshot
227
+ */
245
228
  importSnapshotFromObjectStorage = (request) => this.client.fetch(
246
229
  {
247
230
  body: JSON.stringify(
@@ -257,12 +240,12 @@ class API extends api.API {
257
240
  marshalling_gen.unmarshalSnapshot
258
241
  );
259
242
  /**
260
- * Export a snapshot to a Scaleway Object Storage bucket. The snapshot is
261
- * exported in QCOW2 format. The snapshot must not be in transient state.
262
- *
263
- * @param request - The request {@link ExportSnapshotToObjectStorageRequest}
264
- * @returns A Promise of Snapshot
265
- */
243
+ * Export a snapshot to a Scaleway Object Storage bucket. The snapshot is exported in QCOW2 format.
244
+ The snapshot must not be in transient state.
245
+ *
246
+ * @param request - The request {@link ExportSnapshotToObjectStorageRequest}
247
+ * @returns A Promise of Snapshot
248
+ */
266
249
  exportSnapshotToObjectStorage = (request) => this.client.fetch(
267
250
  {
268
251
  body: JSON.stringify(
@@ -278,8 +261,7 @@ class API extends api.API {
278
261
  marshalling_gen.unmarshalSnapshot
279
262
  );
280
263
  /**
281
- * Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
282
- * want to delete. The snapshot must not be in use.
264
+ * Delete a snapshot. You must specify the `snapshot_id` of the snapshot you want to delete. The snapshot must not be in use.
283
265
  *
284
266
  * @param request - The request {@link DeleteSnapshotRequest}
285
267
  */