@scaleway/sdk 2.59.0 → 2.61.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 (77) hide show
  1. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +117 -0
  2. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +54 -1
  3. package/dist/api/applesilicon/v1alpha1/api.gen.js +120 -3
  4. package/dist/api/applesilicon/v1alpha1/content.gen.cjs +4 -0
  5. package/dist/api/applesilicon/v1alpha1/content.gen.d.ts +5 -1
  6. package/dist/api/applesilicon/v1alpha1/content.gen.js +4 -0
  7. package/dist/api/applesilicon/v1alpha1/index.gen.cjs +3 -0
  8. package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +2 -2
  9. package/dist/api/applesilicon/v1alpha1/index.gen.js +5 -2
  10. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +60 -0
  11. package/dist/api/applesilicon/v1alpha1/marshalling.gen.d.ts +6 -1
  12. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +60 -0
  13. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +100 -0
  14. package/dist/api/container/v1beta1/api.gen.cjs +6 -8
  15. package/dist/api/container/v1beta1/api.gen.d.ts +6 -8
  16. package/dist/api/container/v1beta1/api.gen.js +6 -8
  17. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +4 -4
  18. package/dist/api/index.gen.d.ts +2 -1
  19. package/dist/api/interlink/index.gen.cjs +4 -0
  20. package/dist/api/interlink/index.gen.d.ts +5 -0
  21. package/dist/api/interlink/index.gen.js +4 -0
  22. package/dist/api/interlink/v1beta1/api.gen.cjs +405 -0
  23. package/dist/api/interlink/v1beta1/api.gen.d.ts +208 -0
  24. package/dist/api/interlink/v1beta1/api.gen.js +405 -0
  25. package/dist/api/interlink/v1beta1/index.gen.cjs +6 -0
  26. package/dist/api/interlink/v1beta1/index.gen.d.ts +3 -0
  27. package/dist/api/interlink/v1beta1/index.gen.js +6 -0
  28. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +180 -0
  29. package/dist/api/interlink/v1beta1/marshalling.gen.d.ts +16 -0
  30. package/dist/api/interlink/v1beta1/marshalling.gen.js +180 -0
  31. package/dist/api/interlink/v1beta1/types.gen.d.ts +455 -0
  32. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +107 -0
  33. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +93 -0
  34. package/dist/api/interlink/v1beta1/validation-rules.gen.js +107 -0
  35. package/dist/api/ipam/v1/api.gen.cjs +1 -0
  36. package/dist/api/ipam/v1/api.gen.js +1 -0
  37. package/dist/api/ipam/v1/types.gen.d.ts +12 -10
  38. package/dist/api/k8s/v1/api.gen.cjs +22 -20
  39. package/dist/api/k8s/v1/api.gen.d.ts +22 -20
  40. package/dist/api/k8s/v1/api.gen.js +22 -20
  41. package/dist/api/k8s/v1/marshalling.gen.cjs +2 -5
  42. package/dist/api/k8s/v1/marshalling.gen.js +2 -5
  43. package/dist/api/k8s/v1/types.gen.d.ts +65 -49
  44. package/dist/api/lb/v1/types.gen.d.ts +6 -6
  45. package/dist/api/mongodb/v1alpha1/api.gen.cjs +13 -1
  46. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +8 -1
  47. package/dist/api/mongodb/v1alpha1/api.gen.js +13 -1
  48. package/dist/api/mongodb/v1alpha1/index.gen.d.ts +1 -1
  49. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +11 -0
  50. package/dist/api/mongodb/v1alpha1/validation-rules.gen.cjs +8 -0
  51. package/dist/api/mongodb/v1alpha1/validation-rules.gen.d.ts +7 -0
  52. package/dist/api/mongodb/v1alpha1/validation-rules.gen.js +8 -0
  53. package/dist/api/secret/v1beta1/marshalling.gen.cjs +1 -0
  54. package/dist/api/secret/v1beta1/marshalling.gen.js +1 -0
  55. package/dist/api/secret/v1beta1/types.gen.d.ts +2 -0
  56. package/dist/api/vpcgw/v2/api.gen.cjs +49 -1
  57. package/dist/api/vpcgw/v2/api.gen.d.ts +25 -1
  58. package/dist/api/vpcgw/v2/api.gen.js +50 -2
  59. package/dist/api/vpcgw/v2/index.gen.d.ts +1 -1
  60. package/dist/api/vpcgw/v2/marshalling.gen.cjs +31 -0
  61. package/dist/api/vpcgw/v2/marshalling.gen.d.ts +5 -1
  62. package/dist/api/vpcgw/v2/marshalling.gen.js +31 -0
  63. package/dist/api/vpcgw/v2/types.gen.d.ts +39 -0
  64. package/dist/api/webhosting/v1/api.gen.cjs +20 -0
  65. package/dist/api/webhosting/v1/api.gen.d.ts +8 -1
  66. package/dist/api/webhosting/v1/api.gen.js +21 -1
  67. package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
  68. package/dist/api/webhosting/v1/marshalling.gen.cjs +16 -1
  69. package/dist/api/webhosting/v1/marshalling.gen.d.ts +2 -1
  70. package/dist/api/webhosting/v1/marshalling.gen.js +16 -1
  71. package/dist/api/webhosting/v1/types.gen.d.ts +30 -2
  72. package/dist/index.cjs +26 -24
  73. package/dist/index.js +26 -24
  74. package/dist/scw/constants.cjs +1 -1
  75. package/dist/scw/constants.d.ts +2 -2
  76. package/dist/scw/constants.js +1 -1
  77. package/package.json +2 -2
@@ -1,7 +1,10 @@
1
1
  import type { Zone } from '../../../bridge';
2
2
  export type ConnectivityDiagnosticActionType = 'reboot_server' | 'reinstall_server';
3
3
  export type ConnectivityDiagnosticDiagnosticStatus = 'unknown_status' | 'processing' | 'error' | 'completed';
4
+ export type ListServerPrivateNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
4
5
  export type ListServersRequestOrderBy = 'created_at_asc' | 'created_at_desc';
6
+ export type ServerPrivateNetworkServerStatus = 'unknown_status' | 'attaching' | 'attached' | 'error' | 'detaching' | 'locked';
7
+ export type ServerPrivateNetworkStatus = 'vpc_unknown_status' | 'vpc_enabled' | 'vpc_updating' | 'vpc_disabled';
5
8
  export type ServerStatus = 'unknown_status' | 'starting' | 'ready' | 'error' | 'rebooting' | 'updating' | 'locking' | 'locked' | 'unlocking' | 'reinstalling' | 'busy';
6
9
  export type ServerTypeStock = 'unknown_stock' | 'no_stock' | 'low_stock' | 'high_stock';
7
10
  export interface OS {
@@ -51,6 +54,26 @@ export interface ConnectivityDiagnosticServerHealth {
51
54
  isSshPortUp: boolean;
52
55
  isVncPortUp: boolean;
53
56
  }
57
+ export interface ServerPrivateNetwork {
58
+ /** ID of the Server-to-Private Network mapping. */
59
+ id: string;
60
+ /** Private Network Project ID. */
61
+ projectId: string;
62
+ /** Apple silicon server ID. */
63
+ serverId: string;
64
+ /** Private Network ID. */
65
+ privateNetworkId: string;
66
+ /** ID of the VLAN associated with the Private Network. */
67
+ vlan?: number;
68
+ /** Configuration status of the Private Network. */
69
+ status: ServerPrivateNetworkServerStatus;
70
+ /** Private Network creation date. */
71
+ createdAt?: Date;
72
+ /** Date the Private Network was last modified. */
73
+ updatedAt?: Date;
74
+ /** IPAM IP IDs of the server, if it has any. */
75
+ ipamIpIds: string[];
76
+ }
54
77
  export interface ServerType {
55
78
  /** CPU description. */
56
79
  cpu?: ServerTypeCPU;
@@ -121,6 +144,11 @@ export interface Server {
121
144
  * using the server status.
122
145
  */
123
146
  delivered: boolean;
147
+ /**
148
+ * Activation status of optional Private Network feature support for this
149
+ * server.
150
+ */
151
+ vpcStatus: ServerPrivateNetworkStatus;
124
152
  }
125
153
  export interface ConnectivityDiagnostic {
126
154
  id: string;
@@ -145,6 +173,11 @@ export type CreateServerRequest = {
145
173
  * induce an extended delivery time.
146
174
  */
147
175
  osId?: string;
176
+ /**
177
+ * Activate the Private Network feature for this server. This feature is
178
+ * configured through the Apple Silicon - Private Networks API.
179
+ */
180
+ enableVpc: boolean;
148
181
  };
149
182
  export type DeleteServerRequest = {
150
183
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -199,6 +232,10 @@ export interface ListOSResponse {
199
232
  /** List of OS. */
200
233
  os: OS[];
201
234
  }
235
+ export interface ListServerPrivateNetworksResponse {
236
+ serverPrivateNetworks: ServerPrivateNetwork[];
237
+ totalCount: number;
238
+ }
202
239
  export type ListServerTypesRequest = {
203
240
  /** Zone to target. If none is passed will use default zone from the config. */
204
241
  zone?: Zone;
@@ -230,6 +267,64 @@ export interface ListServersResponse {
230
267
  /** Paginated returned servers. */
231
268
  servers: Server[];
232
269
  }
270
+ export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
271
+ /** Zone to target. If none is passed will use default zone from the config. */
272
+ zone?: Zone;
273
+ /** ID of the server. */
274
+ serverId: string;
275
+ /** ID of the Private Network. */
276
+ privateNetworkId: string;
277
+ /** IPAM IDs of IPs to attach to the server. */
278
+ ipamIpIds?: string[];
279
+ };
280
+ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
281
+ /** Zone to target. If none is passed will use default zone from the config. */
282
+ zone?: Zone;
283
+ /** ID of the server. */
284
+ serverId: string;
285
+ /** ID of the Private Network. */
286
+ privateNetworkId: string;
287
+ };
288
+ export type PrivateNetworkApiGetServerPrivateNetworkRequest = {
289
+ /** Zone to target. If none is passed will use default zone from the config. */
290
+ zone?: Zone;
291
+ serverId: string;
292
+ privateNetworkId: string;
293
+ };
294
+ export type PrivateNetworkApiListServerPrivateNetworksRequest = {
295
+ /** Zone to target. If none is passed will use default zone from the config. */
296
+ zone?: Zone;
297
+ /** Sort order for the returned Private Networks. */
298
+ orderBy?: ListServerPrivateNetworksRequestOrderBy;
299
+ /** Page number for the returned Private Networks. */
300
+ page?: number;
301
+ /** Maximum number of Private Networks per page. */
302
+ pageSize?: number;
303
+ /** Filter Private Networks by server ID. */
304
+ serverId?: string;
305
+ /** Filter Private Networks by Private Network ID. */
306
+ privateNetworkId?: string;
307
+ /** Filter Private Networks by Organization ID. */
308
+ organizationId?: string;
309
+ /** Filter Private Networks by Project ID. */
310
+ projectId?: string;
311
+ /** Filter Private Networks by IPAM IP IDs. */
312
+ ipamIpIds?: string[];
313
+ };
314
+ export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
315
+ /** Zone to target. If none is passed will use default zone from the config. */
316
+ zone?: Zone;
317
+ /** ID of the server. */
318
+ serverId: string;
319
+ /**
320
+ * Object where the keys are the IDs of Private Networks and the values are
321
+ * arrays of IPAM IDs representing the IPs to assign to this Apple silicon
322
+ * server on the Private Network. If the array supplied for a Private Network
323
+ * is empty, the next available IP from the Private Network's CIDR block will
324
+ * automatically be used for attachment.
325
+ */
326
+ perPrivateNetworkIpamIpIds: Record<string, string[]>;
327
+ };
233
328
  export type RebootServerRequest = {
234
329
  /** Zone to target. If none is passed will use default zone from the config. */
235
330
  zone?: Zone;
@@ -247,6 +342,9 @@ export type ReinstallServerRequest = {
247
342
  */
248
343
  osId?: string;
249
344
  };
345
+ export interface SetServerPrivateNetworksResponse {
346
+ serverPrivateNetworks: ServerPrivateNetwork[];
347
+ }
250
348
  export type StartConnectivityDiagnosticRequest = {
251
349
  /** Zone to target. If none is passed will use default zone from the config. */
252
350
  zone?: Zone;
@@ -264,4 +362,6 @@ export type UpdateServerRequest = {
264
362
  name?: string;
265
363
  /** Specify whether the server should be flagged for automatic deletion. */
266
364
  scheduleDeletion?: boolean;
365
+ /** Activate or deactivate Private Network support for this server. */
366
+ enableVpc?: boolean;
267
367
  };
@@ -341,16 +341,15 @@ class API extends api.API {
341
341
  marshalling_gen.unmarshalListDomainsResponse
342
342
  );
343
343
  /**
344
- * List all domain name bindings. List all domain name bindings in a specified
345
- * region.
344
+ * List all custom domains. List all custom domains in a specified region.
346
345
  *
347
346
  * @param request - The request {@link ListDomainsRequest}
348
347
  * @returns A Promise of ListDomainsResponse
349
348
  */
350
349
  listDomains = (request) => resourcePaginator.enrichForPagination("domains", this.pageOfListDomains, request);
351
350
  /**
352
- * Get a domain name binding. Get a domain name binding for the container with
353
- * the specified ID.
351
+ * Get a custom domain. Get a custom domain for the container with the
352
+ * specified ID.
354
353
  *
355
354
  * @param request - The request {@link GetDomainRequest}
356
355
  * @returns A Promise of Domain
@@ -376,8 +375,8 @@ class API extends api.API {
376
375
  options
377
376
  );
378
377
  /**
379
- * Create a domain name binding. Create a domain name binding for the
380
- * container with the specified ID.
378
+ * Create a custom domain. Create a custom domain for the container with the
379
+ * specified ID.
381
380
  *
382
381
  * @param request - The request {@link CreateDomainRequest}
383
382
  * @returns A Promise of Domain
@@ -394,8 +393,7 @@ class API extends api.API {
394
393
  marshalling_gen.unmarshalDomain
395
394
  );
396
395
  /**
397
- * Delete a domain name binding. Delete the domain name binding with the
398
- * specific ID.
396
+ * Delete a custom domain. Delete the custom domain with the specific ID.
399
397
  *
400
398
  * @param request - The request {@link DeleteDomainRequest}
401
399
  * @returns A Promise of Domain
@@ -162,8 +162,7 @@ export declare class API extends ParentAPI {
162
162
  deleteCron: (request: Readonly<DeleteCronRequest>) => Promise<Cron>;
163
163
  protected pageOfListDomains: (request: Readonly<ListDomainsRequest>) => Promise<ListDomainsResponse>;
164
164
  /**
165
- * List all domain name bindings. List all domain name bindings in a specified
166
- * region.
165
+ * List all custom domains. List all custom domains in a specified region.
167
166
  *
168
167
  * @param request - The request {@link ListDomainsRequest}
169
168
  * @returns A Promise of ListDomainsResponse
@@ -173,8 +172,8 @@ export declare class API extends ParentAPI {
173
172
  [Symbol.asyncIterator]: () => AsyncGenerator<Domain[], void, void>;
174
173
  };
175
174
  /**
176
- * Get a domain name binding. Get a domain name binding for the container with
177
- * the specified ID.
175
+ * Get a custom domain. Get a custom domain for the container with the
176
+ * specified ID.
178
177
  *
179
178
  * @param request - The request {@link GetDomainRequest}
180
179
  * @returns A Promise of Domain
@@ -189,16 +188,15 @@ export declare class API extends ParentAPI {
189
188
  */
190
189
  waitForDomain: (request: Readonly<GetDomainRequest>, options?: Readonly<WaitForOptions<Domain>>) => Promise<Domain>;
191
190
  /**
192
- * Create a domain name binding. Create a domain name binding for the
193
- * container with the specified ID.
191
+ * Create a custom domain. Create a custom domain for the container with the
192
+ * specified ID.
194
193
  *
195
194
  * @param request - The request {@link CreateDomainRequest}
196
195
  * @returns A Promise of Domain
197
196
  */
198
197
  createDomain: (request: Readonly<CreateDomainRequest>) => Promise<Domain>;
199
198
  /**
200
- * Delete a domain name binding. Delete the domain name binding with the
201
- * specific ID.
199
+ * Delete a custom domain. Delete the custom domain with the specific ID.
202
200
  *
203
201
  * @param request - The request {@link DeleteDomainRequest}
204
202
  * @returns A Promise of Domain
@@ -339,16 +339,15 @@ class API extends API$1 {
339
339
  unmarshalListDomainsResponse
340
340
  );
341
341
  /**
342
- * List all domain name bindings. List all domain name bindings in a specified
343
- * region.
342
+ * List all custom domains. List all custom domains in a specified region.
344
343
  *
345
344
  * @param request - The request {@link ListDomainsRequest}
346
345
  * @returns A Promise of ListDomainsResponse
347
346
  */
348
347
  listDomains = (request) => enrichForPagination("domains", this.pageOfListDomains, request);
349
348
  /**
350
- * Get a domain name binding. Get a domain name binding for the container with
351
- * the specified ID.
349
+ * Get a custom domain. Get a custom domain for the container with the
350
+ * specified ID.
352
351
  *
353
352
  * @param request - The request {@link GetDomainRequest}
354
353
  * @returns A Promise of Domain
@@ -374,8 +373,8 @@ class API extends API$1 {
374
373
  options
375
374
  );
376
375
  /**
377
- * Create a domain name binding. Create a domain name binding for the
378
- * container with the specified ID.
376
+ * Create a custom domain. Create a custom domain for the container with the
377
+ * specified ID.
379
378
  *
380
379
  * @param request - The request {@link CreateDomainRequest}
381
380
  * @returns A Promise of Domain
@@ -392,8 +391,7 @@ class API extends API$1 {
392
391
  unmarshalDomain
393
392
  );
394
393
  /**
395
- * Delete a domain name binding. Delete the domain name binding with the
396
- * specific ID.
394
+ * Delete a custom domain. Delete the custom domain with the specific ID.
397
395
  *
398
396
  * @param request - The request {@link DeleteDomainRequest}
399
397
  * @returns A Promise of Domain
@@ -433,22 +433,22 @@ export interface GetBillingResponse {
433
433
  pipelineNumber: number;
434
434
  /**
435
435
  * Cost to date (this month) of pipelines not included in the subscription
436
- * plan.
436
+ * plans.
437
437
  */
438
438
  extraPipelinesCost?: Money;
439
439
  /**
440
440
  * Total amount of data egressed from the cache in gigabytes from the
441
- * beginning of the month, included in the active subscription plan.
441
+ * beginning of the month, for the active subscription plan.
442
442
  */
443
443
  currentPlanCacheUsage: number;
444
444
  /**
445
445
  * Total amount of extra data egressed from cache in gigabytes from the
446
- * beginning of the month, not included in the active subscription plan.
446
+ * beginning of the month, not included in the subscription plans.
447
447
  */
448
448
  extraCacheUsage: number;
449
449
  /**
450
450
  * Cost to date (this month) of the data egressed from the cache that is not
451
- * included in the active subscription plan.
451
+ * included in the subscription plans.
452
452
  */
453
453
  extraCacheCost?: Money;
454
454
  /**
@@ -19,6 +19,7 @@ import * as Function from './function/index.gen';
19
19
  import * as Iam from './iam/index.gen';
20
20
  import * as Inference from './inference/index.gen';
21
21
  import * as Instance from './instance/index.gen';
22
+ import * as Interlink from './interlink/index.gen';
22
23
  import * as Iot from './iot/index.gen';
23
24
  import * as Ipam from './ipam/index.gen';
24
25
  import * as Ipfs from './ipfs/index.gen';
@@ -42,4 +43,4 @@ import * as Test from './test/index.gen';
42
43
  import * as Vpc from './vpc/index.gen';
43
44
  import * as Vpcgw from './vpcgw/index.gen';
44
45
  import * as Webhosting from './webhosting/index.gen';
45
- export { Account, Applesilicon, AuditTrail, Baremetal, Billing, Block, Cockpit, Container, Dedibox, DocumentDb, Domain, EdgeServices, Flexibleip, Function, Iam, Inference, Instance, Iot, Ipam, Ipfs, Jobs, K8s, KeyManager, Lb, LlmInference, Marketplace, Mnq, Mongodb, Qaas, Rdb, Redis, Registry, Secret, ServerlessSqldb, Std, Tem, Test, Vpc, Vpcgw, Webhosting, };
46
+ export { Account, Applesilicon, AuditTrail, Baremetal, Billing, Block, Cockpit, Container, Dedibox, DocumentDb, Domain, EdgeServices, Flexibleip, Function, Iam, Inference, Instance, Interlink, Iot, Ipam, Ipfs, Jobs, K8s, KeyManager, Lb, LlmInference, Marketplace, Mnq, Mongodb, Qaas, Rdb, Redis, Registry, Secret, ServerlessSqldb, Std, Tem, Test, Vpc, Vpcgw, Webhosting, };
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const index_gen = require("./v1beta1/index.gen.cjs");
4
+ exports.v1beta1 = index_gen;
@@ -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,4 @@
1
+ import * as index_gen from "./v1beta1/index.gen.js";
2
+ export {
3
+ index_gen as v1beta1
4
+ };