@scaleway/sdk 2.65.0 → 2.66.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/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/container/v1beta1/api.gen.cjs +5 -1
  17. package/dist/api/container/v1beta1/api.gen.d.ts +2 -2
  18. package/dist/api/container/v1beta1/api.gen.js +5 -1
  19. package/dist/api/container/v1beta1/types.gen.d.ts +32 -32
  20. package/dist/api/dedibox/v1/api.gen.d.ts +2 -2
  21. package/dist/api/dedibox/v1/types.gen.d.ts +51 -51
  22. package/dist/api/edge_services/v1alpha1/index.gen.d.ts +1 -1
  23. package/dist/api/edge_services/v1alpha1/marshalling.gen.cjs +21 -2
  24. package/dist/api/edge_services/v1alpha1/marshalling.gen.js +22 -3
  25. package/dist/api/edge_services/v1alpha1/types.gen.d.ts +34 -0
  26. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +2 -2
  27. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +14 -14
  28. package/dist/api/function/v1beta1/api.gen.cjs +5 -1
  29. package/dist/api/function/v1beta1/api.gen.d.ts +2 -2
  30. package/dist/api/function/v1beta1/api.gen.js +5 -1
  31. package/dist/api/function/v1beta1/types.gen.d.ts +35 -35
  32. package/dist/api/iot/v1/api.gen.d.ts +2 -2
  33. package/dist/api/iot/v1/types.gen.d.ts +38 -38
  34. package/dist/api/jobs/v1alpha1/api.gen.cjs +5 -1
  35. package/dist/api/jobs/v1alpha1/api.gen.d.ts +2 -2
  36. package/dist/api/jobs/v1alpha1/api.gen.js +5 -1
  37. package/dist/api/jobs/v1alpha1/types.gen.d.ts +19 -19
  38. package/dist/api/k8s/v1/api.gen.cjs +5 -1
  39. package/dist/api/k8s/v1/api.gen.d.ts +2 -2
  40. package/dist/api/k8s/v1/api.gen.js +5 -1
  41. package/dist/api/k8s/v1/marshalling.gen.cjs +1 -0
  42. package/dist/api/k8s/v1/marshalling.gen.js +1 -0
  43. package/dist/api/k8s/v1/types.gen.d.ts +42 -41
  44. package/dist/api/marketplace/v2/types.gen.d.ts +3 -3
  45. package/dist/api/mnq/v1beta1/api.gen.d.ts +4 -4
  46. package/dist/api/mnq/v1beta1/types.gen.d.ts +31 -31
  47. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +3 -3
  48. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +24 -24
  49. package/dist/api/rdb/v1/api.gen.cjs +5 -1
  50. package/dist/api/rdb/v1/api.gen.d.ts +2 -2
  51. package/dist/api/rdb/v1/api.gen.js +5 -1
  52. package/dist/api/rdb/v1/types.gen.d.ts +67 -67
  53. package/dist/api/redis/v1/api.gen.d.ts +2 -2
  54. package/dist/api/redis/v1/types.gen.d.ts +28 -28
  55. package/dist/api/registry/v1/api.gen.cjs +5 -1
  56. package/dist/api/registry/v1/api.gen.d.ts +2 -2
  57. package/dist/api/registry/v1/api.gen.js +5 -1
  58. package/dist/api/registry/v1/types.gen.d.ts +14 -14
  59. package/dist/api/secret/v1beta1/api.gen.cjs +5 -1
  60. package/dist/api/secret/v1beta1/api.gen.d.ts +2 -2
  61. package/dist/api/secret/v1beta1/api.gen.js +5 -1
  62. package/dist/api/secret/v1beta1/types.gen.d.ts +22 -22
  63. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +2 -2
  64. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +12 -12
  65. package/dist/api/tem/v1alpha1/api.gen.d.ts +2 -2
  66. package/dist/api/tem/v1alpha1/types.gen.d.ts +25 -25
  67. package/dist/api/vpcgw/v1/api.gen.d.ts +2 -2
  68. package/dist/api/vpcgw/v1/types.gen.d.ts +44 -44
  69. package/dist/api/vpcgw/v2/api.gen.d.ts +2 -2
  70. package/dist/api/vpcgw/v2/types.gen.d.ts +33 -33
  71. package/dist/scw/client-settings.cjs +2 -2
  72. package/dist/scw/client-settings.d.ts +2 -2
  73. package/dist/scw/client-settings.js +2 -2
  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,3 +1,3 @@
1
1
  export { API, PrivateNetworkAPI } from './api.gen.js';
2
2
  export * from './content.gen.js';
3
- export type { ConnectivityDiagnostic, ConnectivityDiagnosticActionType, ConnectivityDiagnosticDiagnosticStatus, ConnectivityDiagnosticServerHealth, CreateServerRequest, DeleteServerRequest, GetConnectivityDiagnosticRequest, GetOSRequest, GetServerRequest, GetServerTypeRequest, ListOSRequest, ListOSResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServerTypesRequest, ListServerTypesResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, OS, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiGetServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, ReinstallServerRequest, Server, ServerPrivateNetwork, ServerPrivateNetworkServerStatus, ServerPrivateNetworkStatus, ServerStatus, ServerType, ServerTypeCPU, ServerTypeDisk, ServerTypeGPU, ServerTypeMemory, ServerTypeNetwork, ServerTypeStock, SetServerPrivateNetworksResponse, StartConnectivityDiagnosticRequest, StartConnectivityDiagnosticResponse, UpdateServerRequest, } from './types.gen';
3
+ export type { Commitment, CommitmentType, CommitmentTypeValue, ConnectivityDiagnostic, ConnectivityDiagnosticActionType, ConnectivityDiagnosticDiagnosticStatus, ConnectivityDiagnosticServerHealth, CreateServerRequest, DeleteServerRequest, GetConnectivityDiagnosticRequest, GetOSRequest, GetServerRequest, GetServerTypeRequest, ListOSRequest, ListOSResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServerTypesRequest, ListServerTypesResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, OS, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiGetServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, ReinstallServerRequest, Server, ServerPrivateNetwork, ServerPrivateNetworkServerStatus, ServerPrivateNetworkStatus, ServerStatus, ServerType, ServerTypeCPU, ServerTypeDisk, ServerTypeGPU, ServerTypeMemory, ServerTypeNetwork, ServerTypeStock, SetServerPrivateNetworksResponse, StartConnectivityDiagnosticRequest, StartConnectivityDiagnosticResponse, UpdateServerRequest, } from './types.gen';
@@ -112,6 +112,17 @@ const unmarshalServerType = (data) => {
112
112
  stock: data.stock
113
113
  };
114
114
  };
115
+ const unmarshalCommitment = (data) => {
116
+ if (!json.isJSONObject(data)) {
117
+ throw new TypeError(
118
+ `Unmarshalling the type 'Commitment' failed as data isn't a dictionary.`
119
+ );
120
+ }
121
+ return {
122
+ cancelled: data.cancelled,
123
+ type: data.type
124
+ };
125
+ };
115
126
  const unmarshalServer = (data) => {
116
127
  if (!json.isJSONObject(data)) {
117
128
  throw new TypeError(
@@ -119,6 +130,7 @@ const unmarshalServer = (data) => {
119
130
  );
120
131
  }
121
132
  return {
133
+ commitment: data.commitment ? unmarshalCommitment(data.commitment) : void 0,
122
134
  createdAt: marshalling.unmarshalDate(data.created_at),
123
135
  deletableAt: marshalling.unmarshalDate(data.deletable_at),
124
136
  deletionScheduled: data.deletion_scheduled,
@@ -240,6 +252,7 @@ const unmarshalStartConnectivityDiagnosticResponse = (data) => {
240
252
  };
241
253
  };
242
254
  const marshalCreateServerRequest = (request, defaults) => ({
255
+ commitment_type: request.commitmentType,
243
256
  enable_vpc: request.enableVpc,
244
257
  name: request.name || randomName("as"),
245
258
  os_id: request.osId,
@@ -259,7 +272,11 @@ const marshalReinstallServerRequest = (request, defaults) => ({
259
272
  const marshalStartConnectivityDiagnosticRequest = (request, defaults) => ({
260
273
  server_id: request.serverId
261
274
  });
275
+ const marshalCommitmentTypeValue = (request, defaults) => ({
276
+ commitment_type: request.commitmentType
277
+ });
262
278
  const marshalUpdateServerRequest = (request, defaults) => ({
279
+ commitment_type: request.commitmentType !== void 0 ? marshalCommitmentTypeValue(request.commitmentType) : void 0,
263
280
  enable_vpc: request.enableVpc,
264
281
  name: request.name,
265
282
  schedule_deletion: request.scheduleDeletion
@@ -110,6 +110,17 @@ const unmarshalServerType = (data) => {
110
110
  stock: data.stock
111
111
  };
112
112
  };
113
+ const unmarshalCommitment = (data) => {
114
+ if (!isJSONObject(data)) {
115
+ throw new TypeError(
116
+ `Unmarshalling the type 'Commitment' failed as data isn't a dictionary.`
117
+ );
118
+ }
119
+ return {
120
+ cancelled: data.cancelled,
121
+ type: data.type
122
+ };
123
+ };
113
124
  const unmarshalServer = (data) => {
114
125
  if (!isJSONObject(data)) {
115
126
  throw new TypeError(
@@ -117,6 +128,7 @@ const unmarshalServer = (data) => {
117
128
  );
118
129
  }
119
130
  return {
131
+ commitment: data.commitment ? unmarshalCommitment(data.commitment) : void 0,
120
132
  createdAt: unmarshalDate(data.created_at),
121
133
  deletableAt: unmarshalDate(data.deletable_at),
122
134
  deletionScheduled: data.deletion_scheduled,
@@ -238,6 +250,7 @@ const unmarshalStartConnectivityDiagnosticResponse = (data) => {
238
250
  };
239
251
  };
240
252
  const marshalCreateServerRequest = (request, defaults) => ({
253
+ commitment_type: request.commitmentType,
241
254
  enable_vpc: request.enableVpc,
242
255
  name: request.name || randomName("as"),
243
256
  os_id: request.osId,
@@ -257,7 +270,11 @@ const marshalReinstallServerRequest = (request, defaults) => ({
257
270
  const marshalStartConnectivityDiagnosticRequest = (request, defaults) => ({
258
271
  server_id: request.serverId
259
272
  });
273
+ const marshalCommitmentTypeValue = (request, defaults) => ({
274
+ commitment_type: request.commitmentType
275
+ });
260
276
  const marshalUpdateServerRequest = (request, defaults) => ({
277
+ commitment_type: request.commitmentType !== void 0 ? marshalCommitmentTypeValue(request.commitmentType) : void 0,
261
278
  enable_vpc: request.enableVpc,
262
279
  name: request.name,
263
280
  schedule_deletion: request.scheduleDeletion
@@ -1,4 +1,5 @@
1
1
  import type { Zone as ScwZone } from '../../../bridge';
2
+ export type CommitmentType = 'duration_24h' | 'renewed_monthly' | 'none';
2
3
  export type ConnectivityDiagnosticActionType = 'reboot_server' | 'reinstall_server';
3
4
  export type ConnectivityDiagnosticDiagnosticStatus = 'unknown_status' | 'processing' | 'error' | 'completed';
4
5
  export type ListServerPrivateNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
@@ -46,6 +47,10 @@ export interface ServerTypeMemory {
46
47
  export interface ServerTypeNetwork {
47
48
  publicBandwidthBps: number;
48
49
  }
50
+ export interface Commitment {
51
+ type: CommitmentType;
52
+ cancelled: boolean;
53
+ }
49
54
  export interface ConnectivityDiagnosticServerHealth {
50
55
  lastCheckinDate?: Date;
51
56
  isServerAlive: boolean;
@@ -149,6 +154,11 @@ export interface Server {
149
154
  * server.
150
155
  */
151
156
  vpcStatus: ServerPrivateNetworkStatus;
157
+ /** Commitment scheme applied to this server. */
158
+ commitment?: Commitment;
159
+ }
160
+ export interface CommitmentTypeValue {
161
+ commitmentType: CommitmentType;
152
162
  }
153
163
  export interface ConnectivityDiagnostic {
154
164
  id: string;
@@ -178,6 +188,12 @@ export type CreateServerRequest = {
178
188
  * configured through the Apple Silicon - Private Networks API.
179
189
  */
180
190
  enableVpc: boolean;
191
+ /**
192
+ * Activate commitment for this server. If not specified, there is a 24h
193
+ * commitment due to Apple licensing. It can be updated with the Update Server
194
+ * request. Available commitment depends on server type.
195
+ */
196
+ commitmentType?: CommitmentType;
181
197
  };
182
198
  export type DeleteServerRequest = {
183
199
  /** Zone to target. If none is passed will use default zone from the config. */
@@ -364,4 +380,9 @@ export type UpdateServerRequest = {
364
380
  scheduleDeletion?: boolean;
365
381
  /** Activate or deactivate Private Network support for this server. */
366
382
  enableVpc?: boolean;
383
+ /**
384
+ * Change commitment. Use 'none' to automatically cancel a renewing
385
+ * commitment.
386
+ */
387
+ commitmentType?: CommitmentTypeValue;
367
388
  };
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { Region } from '../../../bridge';
2
+ import type { Region as ScwRegion } from '../../../bridge';
3
3
  import type { ListEventsRequest, ListEventsResponse, ListProductsRequest, ListProductsResponse } from './types.gen';
4
4
  /**
5
5
  * Audit Trail API.
@@ -9,7 +9,7 @@ import type { ListEventsRequest, ListEventsResponse, ListProductsRequest, ListPr
9
9
  */
10
10
  export declare class API extends ParentAPI {
11
11
  /** Lists the available regions of the API. */
12
- static readonly LOCALITIES: Region[];
12
+ static readonly LOCALITIES: ScwRegion[];
13
13
  /**
14
14
  * List events. Retrieve the list of Audit Trail events for a Scaleway
15
15
  * Organization and/or Project. You must specify the `organization_id` and
@@ -1,3 +1,3 @@
1
1
  export { API } from './api.gen.js';
2
- export type { Event, EventPrincipal, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListProductsRequest, ListProductsResponse, Product, ProductService, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, } from './types.gen';
2
+ export type { Event, EventPrincipal, KeyManagerKeyInfo, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListProductsRequest, ListProductsResponse, Product, ProductService, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, } from './types.gen';
3
3
  export * as ValidationRules from './validation-rules.gen.js';
@@ -3,6 +3,14 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const json = require("../../../helpers/json.cjs");
4
4
  const marshalling = require("../../../helpers/marshalling.cjs");
5
5
  require("../../../vendor/base64/index.cjs");
6
+ const unmarshalKeyManagerKeyInfo = (data) => {
7
+ if (!json.isJSONObject(data)) {
8
+ throw new TypeError(
9
+ `Unmarshalling the type 'KeyManagerKeyInfo' failed as data isn't a dictionary.`
10
+ );
11
+ }
12
+ return {};
13
+ };
6
14
  const unmarshalKubernetesACLInfo = (data) => {
7
15
  if (!json.isJSONObject(data)) {
8
16
  throw new TypeError(
@@ -81,6 +89,7 @@ const unmarshalResource = (data) => {
81
89
  createdAt: marshalling.unmarshalDate(data.created_at),
82
90
  deletedAt: marshalling.unmarshalDate(data.deleted_at),
83
91
  id: data.id,
92
+ keymKeyInfo: data.keym_key_info ? unmarshalKeyManagerKeyInfo(data.keym_key_info) : void 0,
84
93
  kubeAclInfo: data.kube_acl_info ? unmarshalKubernetesACLInfo(data.kube_acl_info) : void 0,
85
94
  kubeClusterInfo: data.kube_cluster_info ? unmarshalKubernetesClusterInfo(data.kube_cluster_info) : void 0,
86
95
  kubeNodeInfo: data.kube_node_info ? unmarshalKubernetesNodeInfo(data.kube_node_info) : void 0,
@@ -1,6 +1,14 @@
1
1
  import { isJSONObject } from "../../../helpers/json.js";
2
2
  import { unmarshalArrayOfObject, unmarshalDate } from "../../../helpers/marshalling.js";
3
3
  import "../../../vendor/base64/index.js";
4
+ const unmarshalKeyManagerKeyInfo = (data) => {
5
+ if (!isJSONObject(data)) {
6
+ throw new TypeError(
7
+ `Unmarshalling the type 'KeyManagerKeyInfo' failed as data isn't a dictionary.`
8
+ );
9
+ }
10
+ return {};
11
+ };
4
12
  const unmarshalKubernetesACLInfo = (data) => {
5
13
  if (!isJSONObject(data)) {
6
14
  throw new TypeError(
@@ -79,6 +87,7 @@ const unmarshalResource = (data) => {
79
87
  createdAt: unmarshalDate(data.created_at),
80
88
  deletedAt: unmarshalDate(data.deleted_at),
81
89
  id: data.id,
90
+ keymKeyInfo: data.keym_key_info ? unmarshalKeyManagerKeyInfo(data.keym_key_info) : void 0,
82
91
  kubeAclInfo: data.kube_acl_info ? unmarshalKubernetesACLInfo(data.kube_acl_info) : void 0,
83
92
  kubeClusterInfo: data.kube_cluster_info ? unmarshalKubernetesClusterInfo(data.kube_cluster_info) : void 0,
84
93
  kubeNodeInfo: data.kube_node_info ? unmarshalKubernetesNodeInfo(data.kube_node_info) : void 0,
@@ -1,6 +1,8 @@
1
- import type { Region } from '../../../bridge';
1
+ import type { Region as ScwRegion } from '../../../bridge';
2
2
  export type ListEventsRequestOrderBy = 'recorded_at_desc' | 'recorded_at_asc';
3
- export type ResourceType = 'unknown_type' | 'secm_secret' | 'secm_secret_version' | 'kube_cluster' | 'kube_pool' | 'kube_node' | 'kube_acl';
3
+ export type ResourceType = 'unknown_type' | 'secm_secret' | 'secm_secret_version' | 'kube_cluster' | 'kube_pool' | 'kube_node' | 'kube_acl' | 'keym_key';
4
+ export interface KeyManagerKeyInfo {
5
+ }
4
6
  export interface KubernetesACLInfo {
5
7
  }
6
8
  export interface KubernetesClusterInfo {
@@ -31,40 +33,46 @@ export interface Resource {
31
33
  name?: string;
32
34
  /**
33
35
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
34
- * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo' could be
35
- * set.
36
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
37
+ * 'keymKeyInfo' could be set.
36
38
  */
37
39
  secmSecretInfo?: SecretManagerSecretInfo;
38
40
  /**
39
41
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
40
- * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo' could be
41
- * set.
42
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
43
+ * 'keymKeyInfo' could be set.
42
44
  */
43
45
  secmSecretVersionInfo?: SecretManagerSecretVersionInfo;
44
46
  /**
45
47
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
46
- * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo' could be
47
- * set.
48
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
49
+ * 'keymKeyInfo' could be set.
48
50
  */
49
51
  kubeClusterInfo?: KubernetesClusterInfo;
50
52
  /**
51
53
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
52
- * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo' could be
53
- * set.
54
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
55
+ * 'keymKeyInfo' could be set.
54
56
  */
55
57
  kubePoolInfo?: KubernetesPoolInfo;
56
58
  /**
57
59
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
58
- * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo' could be
59
- * set.
60
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
61
+ * 'keymKeyInfo' could be set.
60
62
  */
61
63
  kubeNodeInfo?: KubernetesNodeInfo;
62
64
  /**
63
65
  * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
64
- * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo' could be
65
- * set.
66
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
67
+ * 'keymKeyInfo' could be set.
66
68
  */
67
69
  kubeAclInfo?: KubernetesACLInfo;
70
+ /**
71
+ * One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
72
+ * 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
73
+ * 'keymKeyInfo' could be set.
74
+ */
75
+ keymKeyInfo?: KeyManagerKeyInfo;
68
76
  }
69
77
  export interface ProductService {
70
78
  name: string;
@@ -118,7 +126,7 @@ export type ListEventsRequest = {
118
126
  * Region to target. If none is passed will use default region from the
119
127
  * config.
120
128
  */
121
- region?: Region;
129
+ region?: ScwRegion;
122
130
  /** (Optional) ID of the Project containing the Audit Trail events. */
123
131
  projectId?: string;
124
132
  /** ID of the Organization containing the Audit Trail events. */
@@ -160,7 +168,7 @@ export type ListProductsRequest = {
160
168
  * Region to target. If none is passed will use default region from the
161
169
  * config.
162
170
  */
163
- region?: Region;
171
+ region?: ScwRegion;
164
172
  };
165
173
  export interface ListProductsResponse {
166
174
  /** List of all products integrated with Audit Trail. */
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { WaitForOptions, Zone } from '../../../bridge';
2
+ import type { Zone as ScwZone, WaitForOptions } from '../../../bridge';
3
3
  import type { AddOptionServerRequest, BMCAccess, CreateServerRequest, DeleteOptionServerRequest, DeleteServerRequest, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, InstallServerRequest, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersRequest, ListServersResponse, ListSettingsRequest, ListSettingsResponse, OS, Offer, Option, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, Schema, Server, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest } from './types.gen';
4
4
  /**
5
5
  * Elastic Metal API.
@@ -8,7 +8,7 @@ import type { AddOptionServerRequest, BMCAccess, CreateServerRequest, DeleteOpti
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
10
  /** Lists the available zones of the API. */
11
- static readonly LOCALITIES: Zone[];
11
+ static readonly LOCALITIES: ScwZone[];
12
12
  protected pageOfListServers: (request?: Readonly<ListServersRequest>) => Promise<ListServersResponse>;
13
13
  /**
14
14
  * List Elastic Metal servers for an Organization. List Elastic Metal servers
@@ -264,7 +264,7 @@ export declare class API extends ParentAPI {
264
264
  /** Elastic Metal - Private Network API. */
265
265
  export declare class PrivateNetworkAPI extends ParentAPI {
266
266
  /** Lists the available zones of the API. */
267
- static readonly LOCALITIES: Zone[];
267
+ static readonly LOCALITIES: ScwZone[];
268
268
  /**
269
269
  * Add a server to a Private Network.
270
270
  *
@@ -1,4 +1,4 @@
1
- import type { Money, TimeSeries, Zone } from '../../../bridge';
1
+ import type { Money, Zone as ScwZone, TimeSeries } from '../../../bridge';
2
2
  export type IPReverseStatus = 'unknown' | 'pending' | 'active' | 'error';
3
3
  export type IPVersion = 'IPv4' | 'IPv6';
4
4
  export type ListServerEventsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
@@ -468,7 +468,7 @@ export interface Server {
468
468
  /** Boot type of the server. */
469
469
  bootType: ServerBootType;
470
470
  /** Zone in which is the server located. */
471
- zone: Zone;
471
+ zone: ScwZone;
472
472
  /** Configuration of the installation. */
473
473
  install?: ServerInstall;
474
474
  /** Status of server ping. */
@@ -490,7 +490,7 @@ export interface Setting {
490
490
  }
491
491
  export type AddOptionServerRequest = {
492
492
  /** Zone to target. If none is passed will use default zone from the config. */
493
- zone?: Zone;
493
+ zone?: ScwZone;
494
494
  /** ID of the server. */
495
495
  serverId: string;
496
496
  /** ID of the option to add. */
@@ -519,7 +519,7 @@ export interface BMCAccess {
519
519
  }
520
520
  export type CreateServerRequest = {
521
521
  /** Zone to target. If none is passed will use default zone from the config. */
522
- zone?: Zone;
522
+ zone?: ScwZone;
523
523
  /** Offer ID of the new server. */
524
524
  offerId: string;
525
525
  /**
@@ -552,7 +552,7 @@ export type CreateServerRequest = {
552
552
  };
553
553
  export type DeleteOptionServerRequest = {
554
554
  /** Zone to target. If none is passed will use default zone from the config. */
555
- zone?: Zone;
555
+ zone?: ScwZone;
556
556
  /** ID of the server. */
557
557
  serverId: string;
558
558
  /** ID of the option to delete. */
@@ -560,19 +560,19 @@ export type DeleteOptionServerRequest = {
560
560
  };
561
561
  export type DeleteServerRequest = {
562
562
  /** Zone to target. If none is passed will use default zone from the config. */
563
- zone?: Zone;
563
+ zone?: ScwZone;
564
564
  /** ID of the server to delete. */
565
565
  serverId: string;
566
566
  };
567
567
  export type GetBMCAccessRequest = {
568
568
  /** Zone to target. If none is passed will use default zone from the config. */
569
- zone?: Zone;
569
+ zone?: ScwZone;
570
570
  /** ID of the server. */
571
571
  serverId: string;
572
572
  };
573
573
  export type GetDefaultPartitioningSchemaRequest = {
574
574
  /** Zone to target. If none is passed will use default zone from the config. */
575
- zone?: Zone;
575
+ zone?: ScwZone;
576
576
  /** ID of the offer. */
577
577
  offerId: string;
578
578
  /** ID of the OS. */
@@ -580,25 +580,25 @@ export type GetDefaultPartitioningSchemaRequest = {
580
580
  };
581
581
  export type GetOSRequest = {
582
582
  /** Zone to target. If none is passed will use default zone from the config. */
583
- zone?: Zone;
583
+ zone?: ScwZone;
584
584
  /** ID of the OS. */
585
585
  osId: string;
586
586
  };
587
587
  export type GetOfferRequest = {
588
588
  /** Zone to target. If none is passed will use default zone from the config. */
589
- zone?: Zone;
589
+ zone?: ScwZone;
590
590
  /** ID of the researched Offer. */
591
591
  offerId: string;
592
592
  };
593
593
  export type GetOptionRequest = {
594
594
  /** Zone to target. If none is passed will use default zone from the config. */
595
- zone?: Zone;
595
+ zone?: ScwZone;
596
596
  /** ID of the option. */
597
597
  optionId: string;
598
598
  };
599
599
  export type GetServerMetricsRequest = {
600
600
  /** Zone to target. If none is passed will use default zone from the config. */
601
- zone?: Zone;
601
+ zone?: ScwZone;
602
602
  /** Server ID to get the metrics. */
603
603
  serverId: string;
604
604
  };
@@ -608,13 +608,13 @@ export interface GetServerMetricsResponse {
608
608
  }
609
609
  export type GetServerRequest = {
610
610
  /** Zone to target. If none is passed will use default zone from the config. */
611
- zone?: Zone;
611
+ zone?: ScwZone;
612
612
  /** ID of the server. */
613
613
  serverId: string;
614
614
  };
615
615
  export type InstallServerRequest = {
616
616
  /** Zone to target. If none is passed will use default zone from the config. */
617
- zone?: Zone;
617
+ zone?: ScwZone;
618
618
  /** Server ID to install. */
619
619
  serverId: string;
620
620
  /** ID of the OS to installation on the server. */
@@ -636,7 +636,7 @@ export type InstallServerRequest = {
636
636
  };
637
637
  export type ListOSRequest = {
638
638
  /** Zone to target. If none is passed will use default zone from the config. */
639
- zone?: Zone;
639
+ zone?: ScwZone;
640
640
  /** Page number. */
641
641
  page?: number;
642
642
  /** Number of OS per page. */
@@ -652,7 +652,7 @@ export interface ListOSResponse {
652
652
  }
653
653
  export type ListOffersRequest = {
654
654
  /** Zone to target. If none is passed will use default zone from the config. */
655
- zone?: Zone;
655
+ zone?: ScwZone;
656
656
  /** Page number. */
657
657
  page?: number;
658
658
  /** Number of offers per page. */
@@ -670,7 +670,7 @@ export interface ListOffersResponse {
670
670
  }
671
671
  export type ListOptionsRequest = {
672
672
  /** Zone to target. If none is passed will use default zone from the config. */
673
- zone?: Zone;
673
+ zone?: ScwZone;
674
674
  /** Page number. */
675
675
  page?: number;
676
676
  /** Number of options per page. */
@@ -688,7 +688,7 @@ export interface ListOptionsResponse {
688
688
  }
689
689
  export type ListServerEventsRequest = {
690
690
  /** Zone to target. If none is passed will use default zone from the config. */
691
- zone?: Zone;
691
+ zone?: ScwZone;
692
692
  /** ID of the server events searched. */
693
693
  serverId: string;
694
694
  /** Page number. */
@@ -710,7 +710,7 @@ export interface ListServerPrivateNetworksResponse {
710
710
  }
711
711
  export type ListServersRequest = {
712
712
  /** Zone to target. If none is passed will use default zone from the config. */
713
- zone?: Zone;
713
+ zone?: ScwZone;
714
714
  /** Page number. */
715
715
  page?: number;
716
716
  /** Number of servers per page. */
@@ -738,7 +738,7 @@ export interface ListServersResponse {
738
738
  }
739
739
  export type ListSettingsRequest = {
740
740
  /** Zone to target. If none is passed will use default zone from the config. */
741
- zone?: Zone;
741
+ zone?: ScwZone;
742
742
  /** Page number. */
743
743
  page?: number;
744
744
  /** Set the maximum list size. */
@@ -756,7 +756,7 @@ export interface ListSettingsResponse {
756
756
  }
757
757
  export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
758
758
  /** Zone to target. If none is passed will use default zone from the config. */
759
- zone?: Zone;
759
+ zone?: ScwZone;
760
760
  /** The ID of the server. */
761
761
  serverId: string;
762
762
  /** The ID of the Private Network. */
@@ -764,7 +764,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
764
764
  };
765
765
  export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
766
766
  /** Zone to target. If none is passed will use default zone from the config. */
767
- zone?: Zone;
767
+ zone?: ScwZone;
768
768
  /** The ID of the server. */
769
769
  serverId: string;
770
770
  /** The ID of the Private Network. */
@@ -772,7 +772,7 @@ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
772
772
  };
773
773
  export type PrivateNetworkApiListServerPrivateNetworksRequest = {
774
774
  /** Zone to target. If none is passed will use default zone from the config. */
775
- zone?: Zone;
775
+ zone?: ScwZone;
776
776
  /** The sort order for the returned Private Networks. */
777
777
  orderBy?: ListServerPrivateNetworksRequestOrderBy;
778
778
  /** The page number for the returned Private Networks. */
@@ -790,7 +790,7 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = {
790
790
  };
791
791
  export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
792
792
  /** Zone to target. If none is passed will use default zone from the config. */
793
- zone?: Zone;
793
+ zone?: ScwZone;
794
794
  /** The ID of the server. */
795
795
  serverId: string;
796
796
  /** The IDs of the Private Networks. */
@@ -798,7 +798,7 @@ export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
798
798
  };
799
799
  export type RebootServerRequest = {
800
800
  /** Zone to target. If none is passed will use default zone from the config. */
801
- zone?: Zone;
801
+ zone?: ScwZone;
802
802
  /** ID of the server to reboot. */
803
803
  serverId: string;
804
804
  /** The type of boot. */
@@ -809,7 +809,7 @@ export interface SetServerPrivateNetworksResponse {
809
809
  }
810
810
  export type StartBMCAccessRequest = {
811
811
  /** Zone to target. If none is passed will use default zone from the config. */
812
- zone?: Zone;
812
+ zone?: ScwZone;
813
813
  /** ID of the server. */
814
814
  serverId: string;
815
815
  /** The IP authorized to connect to the server. */
@@ -817,7 +817,7 @@ export type StartBMCAccessRequest = {
817
817
  };
818
818
  export type StartServerRequest = {
819
819
  /** Zone to target. If none is passed will use default zone from the config. */
820
- zone?: Zone;
820
+ zone?: ScwZone;
821
821
  /** ID of the server to start. */
822
822
  serverId: string;
823
823
  /** The type of boot. */
@@ -825,19 +825,19 @@ export type StartServerRequest = {
825
825
  };
826
826
  export type StopBMCAccessRequest = {
827
827
  /** Zone to target. If none is passed will use default zone from the config. */
828
- zone?: Zone;
828
+ zone?: ScwZone;
829
829
  /** ID of the server. */
830
830
  serverId: string;
831
831
  };
832
832
  export type StopServerRequest = {
833
833
  /** Zone to target. If none is passed will use default zone from the config. */
834
- zone?: Zone;
834
+ zone?: ScwZone;
835
835
  /** ID of the server to stop. */
836
836
  serverId: string;
837
837
  };
838
838
  export type UpdateIPRequest = {
839
839
  /** Zone to target. If none is passed will use default zone from the config. */
840
- zone?: Zone;
840
+ zone?: ScwZone;
841
841
  /** ID of the server. */
842
842
  serverId: string;
843
843
  /** ID of the IP to update. */
@@ -847,7 +847,7 @@ export type UpdateIPRequest = {
847
847
  };
848
848
  export type UpdateServerRequest = {
849
849
  /** Zone to target. If none is passed will use default zone from the config. */
850
- zone?: Zone;
850
+ zone?: ScwZone;
851
851
  /** ID of the server to update. */
852
852
  serverId: string;
853
853
  /** Name of the server (≠hostname), not updated if null. */
@@ -862,7 +862,7 @@ export type UpdateServerRequest = {
862
862
  };
863
863
  export type UpdateSettingRequest = {
864
864
  /** Zone to target. If none is passed will use default zone from the config. */
865
- zone?: Zone;
865
+ zone?: ScwZone;
866
866
  /** ID of the setting. */
867
867
  settingId: string;
868
868
  /** Defines whether the setting is enabled. */
@@ -870,7 +870,7 @@ export type UpdateSettingRequest = {
870
870
  };
871
871
  export type ValidatePartitioningSchemaRequest = {
872
872
  /** Zone to target. If none is passed will use default zone from the config. */
873
- zone?: Zone;
873
+ zone?: ScwZone;
874
874
  /** Partitioning schema. */
875
875
  partitioningSchema?: Schema;
876
876
  /** Offer ID of the server. */
@@ -1,10 +1,10 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
- import type { Zone } from '../../../bridge';
2
+ import type { Zone as ScwZone } from '../../../bridge';
3
3
  import type { ListServerPrivateNetworksResponse, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, ServerPrivateNetwork, SetServerPrivateNetworksResponse } from './types.gen';
4
4
  /** Elastic Metal - Private Networks API. */
5
5
  export declare class PrivateNetworkAPI extends ParentAPI {
6
6
  /** Lists the available zones of the API. */
7
- static readonly LOCALITIES: Zone[];
7
+ static readonly LOCALITIES: ScwZone[];
8
8
  /**
9
9
  * Add a server to a Private Network. Add an Elastic Metal server to a Private
10
10
  * Network.
@@ -1,4 +1,4 @@
1
- import type { Zone } from '../../../bridge';
1
+ import type { Zone as ScwZone } from '../../../bridge';
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 {
@@ -27,7 +27,7 @@ export interface ListServerPrivateNetworksResponse {
27
27
  }
28
28
  export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
29
29
  /** Zone to target. If none is passed will use default zone from the config. */
30
- zone?: Zone;
30
+ zone?: ScwZone;
31
31
  /** UUID of the server. */
32
32
  serverId: string;
33
33
  /** UUID of the Private Network. */
@@ -37,7 +37,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
37
37
  };
38
38
  export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
39
39
  /** Zone to target. If none is passed will use default zone from the config. */
40
- zone?: Zone;
40
+ zone?: ScwZone;
41
41
  /** UUID of the server. */
42
42
  serverId: string;
43
43
  /** UUID of the Private Network. */
@@ -45,7 +45,7 @@ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
45
45
  };
46
46
  export type PrivateNetworkApiListServerPrivateNetworksRequest = {
47
47
  /** Zone to target. If none is passed will use default zone from the config. */
48
- zone?: Zone;
48
+ zone?: ScwZone;
49
49
  /** Sort order for the returned Private Networks. */
50
50
  orderBy?: ListServerPrivateNetworksRequestOrderBy;
51
51
  /** Page number for the returned Private Networks. */
@@ -65,7 +65,7 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = {
65
65
  };
66
66
  export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
67
67
  /** Zone to target. If none is passed will use default zone from the config. */
68
- zone?: Zone;
68
+ zone?: ScwZone;
69
69
  /** UUID of the server. */
70
70
  serverId: string;
71
71
  /**