@scaleway/sdk 2.65.0 → 2.67.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 (100) hide show
  1. package/dist/api/applesilicon/v1alpha1/index.gen.d.ts +1 -1
  2. package/dist/api/applesilicon/v1alpha1/marshalling.gen.cjs +17 -0
  3. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +17 -0
  4. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +21 -0
  5. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +2 -2
  6. package/dist/api/audit_trail/v1alpha1/index.gen.d.ts +1 -1
  7. package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +9 -0
  8. package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +9 -0
  9. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +24 -16
  10. package/dist/api/baremetal/v1/api.gen.d.ts +3 -3
  11. package/dist/api/baremetal/v1/types.gen.d.ts +33 -33
  12. package/dist/api/baremetal/v3/api.gen.d.ts +2 -2
  13. package/dist/api/baremetal/v3/types.gen.d.ts +5 -5
  14. package/dist/api/block/v1alpha1/api.gen.d.ts +2 -2
  15. package/dist/api/block/v1alpha1/types.gen.d.ts +17 -17
  16. package/dist/api/cockpit/v1/api.gen.cjs +14 -17
  17. package/dist/api/cockpit/v1/api.gen.d.ts +6 -9
  18. package/dist/api/cockpit/v1/api.gen.js +15 -18
  19. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  20. package/dist/api/cockpit/v1/marshalling.gen.cjs +29 -26
  21. package/dist/api/cockpit/v1/marshalling.gen.d.ts +2 -2
  22. package/dist/api/cockpit/v1/marshalling.gen.js +29 -26
  23. package/dist/api/cockpit/v1/types.gen.d.ts +49 -34
  24. package/dist/api/cockpit/v1/validation-rules.gen.cjs +0 -10
  25. package/dist/api/cockpit/v1/validation-rules.gen.d.ts +0 -9
  26. package/dist/api/cockpit/v1/validation-rules.gen.js +0 -10
  27. package/dist/api/container/v1beta1/api.gen.cjs +5 -1
  28. package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
  29. package/dist/api/container/v1beta1/api.gen.js +5 -1
  30. package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
  31. package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
  32. package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
  33. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
  34. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
  35. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
  36. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
  37. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
  38. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
  39. package/dist/api/function/v1beta1/api.gen.cjs +5 -1
  40. package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
  41. package/dist/api/function/v1beta1/api.gen.js +5 -1
  42. package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
  43. package/dist/api/iot/v1/api.gen.d.ts +2 -2
  44. package/dist/api/iot/v1/types.gen.d.ts +38 -38
  45. package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
  46. package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
  47. package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
  48. package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
  49. package/dist/api/k8s/v1/api.gen.cjs +5 -1
  50. package/dist/api/k8s/v1/api.gen.d.ts +2 -2
  51. package/dist/api/k8s/v1/api.gen.js +5 -1
  52. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  53. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  54. package/dist/api/k8s/v1/types.gen.d.ts +42 -41
  55. package/dist/api/lb/v1/marshalling.gen.cjs +5 -0
  56. package/dist/api/lb/v1/marshalling.gen.js +5 -0
  57. package/dist/api/lb/v1/types.gen.d.ts +25 -0
  58. package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
  59. package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
  60. package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
  61. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
  62. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
  63. package/dist/api/rdb/v1/api.gen.cjs +5 -1
  64. package/dist/api/rdb/v1/api.gen.d.ts +2 -2
  65. package/dist/api/rdb/v1/api.gen.js +5 -1
  66. package/dist/api/rdb/v1/types.gen.d.ts +67 -67
  67. package/dist/api/redis/v1/api.gen.d.ts +2 -2
  68. package/dist/api/redis/v1/types.gen.d.ts +28 -28
  69. package/dist/api/registry/v1/api.gen.cjs +5 -1
  70. package/dist/api/registry/v1/api.gen.d.ts +2 -2
  71. package/dist/api/registry/v1/api.gen.js +5 -1
  72. package/dist/api/registry/v1/types.gen.d.ts +14 -14
  73. package/dist/api/secret/v1beta1/api.gen.cjs +38 -1
  74. package/dist/api/secret/v1beta1/api.gen.d.ts +19 -3
  75. package/dist/api/secret/v1beta1/api.gen.js +38 -1
  76. package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
  77. package/dist/api/secret/v1beta1/marshalling.gen.cjs +2 -0
  78. package/dist/api/secret/v1beta1/marshalling.gen.js +2 -0
  79. package/dist/api/secret/v1beta1/types.gen.d.ts +52 -25
  80. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
  81. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
  82. package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
  83. package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
  84. package/dist/api/vpcgw/v1/api.gen.cjs +6 -0
  85. package/dist/api/vpcgw/v1/api.gen.d.ts +4 -3
  86. package/dist/api/vpcgw/v1/api.gen.js +6 -0
  87. package/dist/api/vpcgw/v1/index.gen.d.ts +1 -1
  88. package/dist/api/vpcgw/v1/types.gen.d.ts +49 -44
  89. package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
  90. package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
  91. package/dist/api/webhosting/v1/marshalling.gen.cjs +7 -3
  92. package/dist/api/webhosting/v1/marshalling.gen.js +7 -3
  93. package/dist/api/webhosting/v1/types.gen.d.ts +14 -6
  94. package/dist/scw/client-settings.cjs +2 -2
  95. package/dist/scw/client-settings.d.ts +2 -2
  96. package/dist/scw/client-settings.js +2 -2
  97. package/dist/scw/constants.cjs +1 -1
  98. package/dist/scw/constants.d.ts +2 -2
  99. package/dist/scw/constants.js +1 -1
  100. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import type { Zone } from '../../../bridge';
1
+ import type { Zone as ScwZone } from '../../../bridge';
2
2
  export type FlexibleIPStatus = 'unknown' | 'ready' | 'updating' | 'attached' | 'error' | 'detaching' | 'locked';
3
3
  export type ListFlexibleIPsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
4
4
  export type MACAddressStatus = 'unknown' | 'ready' | 'updating' | 'used' | 'error' | 'deleting';
@@ -17,7 +17,7 @@ export interface MACAddress {
17
17
  /** Date on which the virtual MAC was created. */
18
18
  createdAt?: Date;
19
19
  /** MAC address IP Availability Zone. */
20
- zone: Zone;
20
+ zone: ScwZone;
21
21
  }
22
22
  export interface FlexibleIP {
23
23
  /** ID of the flexible IP. */
@@ -54,11 +54,11 @@ export interface FlexibleIP {
54
54
  /** Reverse DNS value. */
55
55
  reverse: string;
56
56
  /** Availability Zone of the flexible IP. */
57
- zone: Zone;
57
+ zone: ScwZone;
58
58
  }
59
59
  export type AttachFlexibleIPRequest = {
60
60
  /** Zone to target. If none is passed will use default zone from the config. */
61
- zone?: Zone;
61
+ zone?: ScwZone;
62
62
  /**
63
63
  * Multiple IDs can be provided, but note that flexible IPs must belong to the
64
64
  * same MAC group (see details about MAC groups).
@@ -75,7 +75,7 @@ export interface AttachFlexibleIPsResponse {
75
75
  }
76
76
  export type CreateFlexibleIPRequest = {
77
77
  /** Zone to target. If none is passed will use default zone from the config. */
78
- zone?: Zone;
78
+ zone?: ScwZone;
79
79
  /** ID of the project to associate with the Flexible IP. */
80
80
  projectId?: string;
81
81
  /** Flexible IP description (max. of 255 characters). */
@@ -91,13 +91,13 @@ export type CreateFlexibleIPRequest = {
91
91
  };
92
92
  export type DeleteFlexibleIPRequest = {
93
93
  /** Zone to target. If none is passed will use default zone from the config. */
94
- zone?: Zone;
94
+ zone?: ScwZone;
95
95
  /** ID of the flexible IP to delete. */
96
96
  fipId: string;
97
97
  };
98
98
  export type DeleteMACAddrRequest = {
99
99
  /** Zone to target. If none is passed will use default zone from the config. */
100
- zone?: Zone;
100
+ zone?: ScwZone;
101
101
  /**
102
102
  * If the flexible IP belongs to a MAC group, the MAC will be removed from
103
103
  * both the MAC group and flexible IP.
@@ -106,7 +106,7 @@ export type DeleteMACAddrRequest = {
106
106
  };
107
107
  export type DetachFlexibleIPRequest = {
108
108
  /** Zone to target. If none is passed will use default zone from the config. */
109
- zone?: Zone;
109
+ zone?: ScwZone;
110
110
  /**
111
111
  * List of flexible IP IDs to detach from a server. Multiple IDs can be
112
112
  * provided. Note that flexible IPs must belong to the same MAC group.
@@ -121,7 +121,7 @@ export interface DetachFlexibleIPsResponse {
121
121
  }
122
122
  export type DuplicateMACAddrRequest = {
123
123
  /** Zone to target. If none is passed will use default zone from the config. */
124
- zone?: Zone;
124
+ zone?: ScwZone;
125
125
  /** Note that the flexible IPs need to be attached to the same server. */
126
126
  fipId: string;
127
127
  /** Note that flexible IPs need to be attached to the same server. */
@@ -129,7 +129,7 @@ export type DuplicateMACAddrRequest = {
129
129
  };
130
130
  export type GenerateMACAddrRequest = {
131
131
  /** Zone to target. If none is passed will use default zone from the config. */
132
- zone?: Zone;
132
+ zone?: ScwZone;
133
133
  /** ID of the flexible IP for which to generate a virtual MAC. */
134
134
  fipId: string;
135
135
  /** TODO. */
@@ -137,13 +137,13 @@ export type GenerateMACAddrRequest = {
137
137
  };
138
138
  export type GetFlexibleIPRequest = {
139
139
  /** Zone to target. If none is passed will use default zone from the config. */
140
- zone?: Zone;
140
+ zone?: ScwZone;
141
141
  /** ID of the flexible IP. */
142
142
  fipId: string;
143
143
  };
144
144
  export type ListFlexibleIPsRequest = {
145
145
  /** Zone to target. If none is passed will use default zone from the config. */
146
- zone?: Zone;
146
+ zone?: ScwZone;
147
147
  /** Sort order of the returned flexible IPs. */
148
148
  orderBy?: ListFlexibleIPsRequestOrderBy;
149
149
  /** Page number. */
@@ -178,13 +178,13 @@ export interface ListFlexibleIPsResponse {
178
178
  }
179
179
  export type MoveMACAddrRequest = {
180
180
  /** Zone to target. If none is passed will use default zone from the config. */
181
- zone?: Zone;
181
+ zone?: ScwZone;
182
182
  fipId: string;
183
183
  dstFipId: string;
184
184
  };
185
185
  export type UpdateFlexibleIPRequest = {
186
186
  /** Zone to target. If none is passed will use default zone from the config. */
187
- zone?: Zone;
187
+ zone?: ScwZone;
188
188
  /** ID of the flexible IP to update. */
189
189
  fipId: string;
190
190
  /** Flexible IP description (max. 255 characters). */
@@ -12,7 +12,11 @@ const jsonContentHeaders = {
12
12
  };
13
13
  class API extends api.API {
14
14
  /** Lists the available regions of the API. */
15
- static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
15
+ static LOCALITIES = [
16
+ "fr-par",
17
+ "nl-ams",
18
+ "pl-waw"
19
+ ];
16
20
  pageOfListNamespaces = (request = {}) => this.client.fetch(
17
21
  {
18
22
  method: "GET",
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { Region, WaitForOptions } from '../../../bridge';
2
+ import type { Region as ScwRegion, WaitForOptions } from '../../../bridge';
3
3
  import type { CreateCronRequest, CreateDomainRequest, CreateFunctionRequest, CreateNamespaceRequest, CreateTokenRequest, CreateTriggerRequest, Cron, DeleteCronRequest, DeleteDomainRequest, DeleteFunctionRequest, DeleteNamespaceRequest, DeleteTokenRequest, DeleteTriggerRequest, DeployFunctionRequest, Domain, DownloadURL, Function, GetCronRequest, GetDomainRequest, GetFunctionDownloadURLRequest, GetFunctionRequest, GetFunctionUploadURLRequest, GetNamespaceRequest, GetTokenRequest, GetTriggerRequest, ListCronsRequest, ListCronsResponse, ListDomainsRequest, ListDomainsResponse, ListFunctionRuntimesRequest, ListFunctionRuntimesResponse, ListFunctionsRequest, ListFunctionsResponse, ListNamespacesRequest, ListNamespacesResponse, ListTokensRequest, ListTokensResponse, ListTriggersRequest, ListTriggersResponse, Namespace, Token, Trigger, UpdateCronRequest, UpdateFunctionRequest, UpdateNamespaceRequest, UpdateTriggerRequest, UploadURL } from './types.gen';
4
4
  /**
5
5
  * Serverless Functions API.
@@ -8,7 +8,7 @@ import type { CreateCronRequest, CreateDomainRequest, CreateFunctionRequest, Cre
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
10
  /** Lists the available regions of the API. */
11
- static readonly LOCALITIES: Region[];
11
+ static readonly LOCALITIES: ScwRegion[];
12
12
  protected pageOfListNamespaces: (request?: Readonly<ListNamespacesRequest>) => Promise<ListNamespacesResponse>;
13
13
  /**
14
14
  * List all your namespaces. List all existing namespaces in the specified
@@ -10,7 +10,11 @@ const jsonContentHeaders = {
10
10
  };
11
11
  class API extends API$1 {
12
12
  /** Lists the available regions of the API. */
13
- static LOCALITIES = ["fr-par", "nl-ams", "pl-waw"];
13
+ static LOCALITIES = [
14
+ "fr-par",
15
+ "nl-ams",
16
+ "pl-waw"
17
+ ];
14
18
  pageOfListNamespaces = (request = {}) => this.client.fetch(
15
19
  {
16
20
  method: "GET",
@@ -1,4 +1,4 @@
1
- import type { Region } from '../../../bridge';
1
+ import type { Region as ScwRegion } from '../../../bridge';
2
2
  export type CronStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'locked' | 'creating' | 'pending';
3
3
  export type DomainStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'creating' | 'pending';
4
4
  export type FunctionHttpOption = 'unknown_http_option' | 'enabled' | 'redirected';
@@ -161,7 +161,7 @@ export interface Function {
161
161
  /** Secret environment variables of the function. */
162
162
  secretEnvironmentVariables: SecretHashedValue[];
163
163
  /** Region in which the function is deployed. */
164
- region: Region;
164
+ region: ScwRegion;
165
165
  /**
166
166
  * Possible values:
167
167
  *
@@ -204,7 +204,7 @@ export interface Namespace {
204
204
  /** Secret environment variables of the namespace. */
205
205
  secretEnvironmentVariables: SecretHashedValue[];
206
206
  /** Region in which the namespace is located. */
207
- region: Region;
207
+ region: ScwRegion;
208
208
  /** [ALPHA] List of tags applied to the Serverless Function Namespace. */
209
209
  tags: string[];
210
210
  /** Creation date of the namespace. */
@@ -284,7 +284,7 @@ export type CreateCronRequest = {
284
284
  * Region to target. If none is passed will use default region from the
285
285
  * config.
286
286
  */
287
- region?: Region;
287
+ region?: ScwRegion;
288
288
  /** UUID of the function to use the cron with. */
289
289
  functionId: string;
290
290
  /** Schedule of the cron in UNIX cron format. */
@@ -299,7 +299,7 @@ export type CreateDomainRequest = {
299
299
  * Region to target. If none is passed will use default region from the
300
300
  * config.
301
301
  */
302
- region?: Region;
302
+ region?: ScwRegion;
303
303
  /** Hostame to create. */
304
304
  hostname: string;
305
305
  /** UUID of the function to associate the domain with. */
@@ -310,7 +310,7 @@ export type CreateFunctionRequest = {
310
310
  * Region to target. If none is passed will use default region from the
311
311
  * config.
312
312
  */
313
- region?: Region;
313
+ region?: ScwRegion;
314
314
  /** Name of the function to create. */
315
315
  name?: string;
316
316
  /** UUID of the namespace the function will be created in. */
@@ -350,7 +350,7 @@ export type CreateNamespaceRequest = {
350
350
  * Region to target. If none is passed will use default region from the
351
351
  * config.
352
352
  */
353
- region?: Region;
353
+ region?: ScwRegion;
354
354
  name?: string;
355
355
  /** Environment variables of the namespace. */
356
356
  environmentVariables?: Record<string, string>;
@@ -368,7 +368,7 @@ export type CreateTokenRequest = {
368
368
  * Region to target. If none is passed will use default region from the
369
369
  * config.
370
370
  */
371
- region?: Region;
371
+ region?: ScwRegion;
372
372
  /**
373
373
  * UUID of the function to associate the token with.
374
374
  *
@@ -391,7 +391,7 @@ export type CreateTriggerRequest = {
391
391
  * Region to target. If none is passed will use default region from the
392
392
  * config.
393
393
  */
394
- region?: Region;
394
+ region?: ScwRegion;
395
395
  /** Name of the trigger. */
396
396
  name: string;
397
397
  /** ID of the function to trigger. */
@@ -425,7 +425,7 @@ export type DeleteCronRequest = {
425
425
  * Region to target. If none is passed will use default region from the
426
426
  * config.
427
427
  */
428
- region?: Region;
428
+ region?: ScwRegion;
429
429
  /** UUID of the cron to delete. */
430
430
  cronId: string;
431
431
  };
@@ -434,7 +434,7 @@ export type DeleteDomainRequest = {
434
434
  * Region to target. If none is passed will use default region from the
435
435
  * config.
436
436
  */
437
- region?: Region;
437
+ region?: ScwRegion;
438
438
  /** UUID of the domain to delete. */
439
439
  domainId: string;
440
440
  };
@@ -443,7 +443,7 @@ export type DeleteFunctionRequest = {
443
443
  * Region to target. If none is passed will use default region from the
444
444
  * config.
445
445
  */
446
- region?: Region;
446
+ region?: ScwRegion;
447
447
  /** UUID of the function to delete. */
448
448
  functionId: string;
449
449
  };
@@ -452,7 +452,7 @@ export type DeleteNamespaceRequest = {
452
452
  * Region to target. If none is passed will use default region from the
453
453
  * config.
454
454
  */
455
- region?: Region;
455
+ region?: ScwRegion;
456
456
  /** UUID of the namespace. */
457
457
  namespaceId: string;
458
458
  };
@@ -461,7 +461,7 @@ export type DeleteTokenRequest = {
461
461
  * Region to target. If none is passed will use default region from the
462
462
  * config.
463
463
  */
464
- region?: Region;
464
+ region?: ScwRegion;
465
465
  /** UUID of the token to delete. */
466
466
  tokenId: string;
467
467
  };
@@ -470,7 +470,7 @@ export type DeleteTriggerRequest = {
470
470
  * Region to target. If none is passed will use default region from the
471
471
  * config.
472
472
  */
473
- region?: Region;
473
+ region?: ScwRegion;
474
474
  /** ID of the trigger to delete. */
475
475
  triggerId: string;
476
476
  };
@@ -479,7 +479,7 @@ export type DeployFunctionRequest = {
479
479
  * Region to target. If none is passed will use default region from the
480
480
  * config.
481
481
  */
482
- region?: Region;
482
+ region?: ScwRegion;
483
483
  /** UUID of the function to deploy. */
484
484
  functionId: string;
485
485
  };
@@ -492,7 +492,7 @@ export type GetCronRequest = {
492
492
  * Region to target. If none is passed will use default region from the
493
493
  * config.
494
494
  */
495
- region?: Region;
495
+ region?: ScwRegion;
496
496
  /** UUID of the cron to get. */
497
497
  cronId: string;
498
498
  };
@@ -501,7 +501,7 @@ export type GetDomainRequest = {
501
501
  * Region to target. If none is passed will use default region from the
502
502
  * config.
503
503
  */
504
- region?: Region;
504
+ region?: ScwRegion;
505
505
  /** UUID of the domain to get. */
506
506
  domainId: string;
507
507
  };
@@ -510,7 +510,7 @@ export type GetFunctionDownloadURLRequest = {
510
510
  * Region to target. If none is passed will use default region from the
511
511
  * config.
512
512
  */
513
- region?: Region;
513
+ region?: ScwRegion;
514
514
  /** UUID of the function to get the the download URL for. */
515
515
  functionId: string;
516
516
  };
@@ -519,7 +519,7 @@ export type GetFunctionRequest = {
519
519
  * Region to target. If none is passed will use default region from the
520
520
  * config.
521
521
  */
522
- region?: Region;
522
+ region?: ScwRegion;
523
523
  /** UUID of the function. */
524
524
  functionId: string;
525
525
  };
@@ -528,7 +528,7 @@ export type GetFunctionUploadURLRequest = {
528
528
  * Region to target. If none is passed will use default region from the
529
529
  * config.
530
530
  */
531
- region?: Region;
531
+ region?: ScwRegion;
532
532
  /** UUID of the function to get the upload URL for. */
533
533
  functionId: string;
534
534
  /** Size of the archive to upload in bytes. */
@@ -539,7 +539,7 @@ export type GetNamespaceRequest = {
539
539
  * Region to target. If none is passed will use default region from the
540
540
  * config.
541
541
  */
542
- region?: Region;
542
+ region?: ScwRegion;
543
543
  /** UUID of the namespace. */
544
544
  namespaceId: string;
545
545
  };
@@ -548,7 +548,7 @@ export type GetTokenRequest = {
548
548
  * Region to target. If none is passed will use default region from the
549
549
  * config.
550
550
  */
551
- region?: Region;
551
+ region?: ScwRegion;
552
552
  /** UUID of the token to get. */
553
553
  tokenId: string;
554
554
  };
@@ -557,7 +557,7 @@ export type GetTriggerRequest = {
557
557
  * Region to target. If none is passed will use default region from the
558
558
  * config.
559
559
  */
560
- region?: Region;
560
+ region?: ScwRegion;
561
561
  /** ID of the trigger to get. */
562
562
  triggerId: string;
563
563
  };
@@ -566,7 +566,7 @@ export type ListCronsRequest = {
566
566
  * Region to target. If none is passed will use default region from the
567
567
  * config.
568
568
  */
569
- region?: Region;
569
+ region?: ScwRegion;
570
570
  /** Page number. */
571
571
  page?: number;
572
572
  /** Number of crons per page. */
@@ -587,7 +587,7 @@ export type ListDomainsRequest = {
587
587
  * Region to target. If none is passed will use default region from the
588
588
  * config.
589
589
  */
590
- region?: Region;
590
+ region?: ScwRegion;
591
591
  /** Page number. */
592
592
  page?: number;
593
593
  /** Number of domains per page. */
@@ -608,7 +608,7 @@ export type ListFunctionRuntimesRequest = {
608
608
  * Region to target. If none is passed will use default region from the
609
609
  * config.
610
610
  */
611
- region?: Region;
611
+ region?: ScwRegion;
612
612
  };
613
613
  export interface ListFunctionRuntimesResponse {
614
614
  /** Array of runtimes available. */
@@ -621,7 +621,7 @@ export type ListFunctionsRequest = {
621
621
  * Region to target. If none is passed will use default region from the
622
622
  * config.
623
623
  */
624
- region?: Region;
624
+ region?: ScwRegion;
625
625
  /** Page number. */
626
626
  page?: number;
627
627
  /** Number of functions per page. */
@@ -648,7 +648,7 @@ export type ListNamespacesRequest = {
648
648
  * Region to target. If none is passed will use default region from the
649
649
  * config.
650
650
  */
651
- region?: Region;
651
+ region?: ScwRegion;
652
652
  /** Page number. */
653
653
  page?: number;
654
654
  /** Number of namespaces per page. */
@@ -672,7 +672,7 @@ export type ListTokensRequest = {
672
672
  * Region to target. If none is passed will use default region from the
673
673
  * config.
674
674
  */
675
- region?: Region;
675
+ region?: ScwRegion;
676
676
  /** Page number. */
677
677
  page?: number;
678
678
  /** Number of tokens per page. */
@@ -693,7 +693,7 @@ export type ListTriggersRequest = {
693
693
  * Region to target. If none is passed will use default region from the
694
694
  * config.
695
695
  */
696
- region?: Region;
696
+ region?: ScwRegion;
697
697
  /** Page number to return. */
698
698
  page?: number;
699
699
  /** Maximum number of triggers to return per page. */
@@ -733,7 +733,7 @@ export type UpdateCronRequest = {
733
733
  * Region to target. If none is passed will use default region from the
734
734
  * config.
735
735
  */
736
- region?: Region;
736
+ region?: ScwRegion;
737
737
  /** UUID of the cron to update. */
738
738
  cronId: string;
739
739
  /** UUID of the function to use the cron with. */
@@ -750,7 +750,7 @@ export type UpdateFunctionRequest = {
750
750
  * Region to target. If none is passed will use default region from the
751
751
  * config.
752
752
  */
753
- region?: Region;
753
+ region?: ScwRegion;
754
754
  /** UUID of the function to update. */
755
755
  functionId: string;
756
756
  /** Environment variables of the function to update. */
@@ -791,7 +791,7 @@ export type UpdateNamespaceRequest = {
791
791
  * Region to target. If none is passed will use default region from the
792
792
  * config.
793
793
  */
794
- region?: Region;
794
+ region?: ScwRegion;
795
795
  /** UUID of the namespapce. */
796
796
  namespaceId: string;
797
797
  /** Environment variables of the namespace. */
@@ -808,7 +808,7 @@ export type UpdateTriggerRequest = {
808
808
  * Region to target. If none is passed will use default region from the
809
809
  * config.
810
810
  */
811
- region?: Region;
811
+ region?: ScwRegion;
812
812
  /** ID of the trigger to update. */
813
813
  triggerId: string;
814
814
  /** Name of the trigger. */
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { Region, WaitForOptions } from '../../../bridge';
2
+ import type { Region as ScwRegion, WaitForOptions } from '../../../bridge';
3
3
  import type { CreateDeviceRequest, CreateDeviceResponse, CreateHubRequest, CreateNetworkRequest, CreateNetworkResponse, CreateRouteRequest, DeleteDeviceRequest, DeleteHubRequest, DeleteNetworkRequest, DeleteRouteRequest, DeleteTwinDocumentRequest, DeleteTwinDocumentsRequest, Device, DisableDeviceRequest, DisableHubRequest, EnableDeviceRequest, EnableHubRequest, GetDeviceCertificateRequest, GetDeviceCertificateResponse, GetDeviceMetricsRequest, GetDeviceMetricsResponse, GetDeviceRequest, GetHubCARequest, GetHubCAResponse, GetHubMetricsRequest, GetHubMetricsResponse, GetHubRequest, GetNetworkRequest, GetRouteRequest, GetTwinDocumentRequest, Hub, ListDevicesRequest, ListDevicesResponse, ListHubsRequest, ListHubsResponse, ListNetworksRequest, ListNetworksResponse, ListRoutesRequest, ListRoutesResponse, ListTwinDocumentsRequest, ListTwinDocumentsResponse, Network, PatchTwinDocumentRequest, PutTwinDocumentRequest, RenewDeviceCertificateRequest, RenewDeviceCertificateResponse, Route, SetDeviceCertificateRequest, SetDeviceCertificateResponse, SetHubCARequest, TwinDocument, UpdateDeviceRequest, UpdateHubRequest, UpdateRouteRequest } from './types.gen';
4
4
  /**
5
5
  * IoT Hub API.
@@ -8,7 +8,7 @@ import type { CreateDeviceRequest, CreateDeviceResponse, CreateHubRequest, Creat
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
10
  /** Lists the available regions of the API. */
11
- static readonly LOCALITIES: Region[];
11
+ static readonly LOCALITIES: ScwRegion[];
12
12
  protected pageOfListHubs: (request?: Readonly<ListHubsRequest>) => Promise<ListHubsResponse>;
13
13
  /**
14
14
  * List hubs. List all Hubs in the specified zone. By default, returned Hubs