@scaleway/sdk-applesilicon 1.0.4 → 1.2.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.
@@ -7,8 +7,13 @@ const jsonContentHeaders = {
7
7
  "Content-Type": "application/json; charset=utf-8"
8
8
  };
9
9
  class API extends sdkClient.API {
10
- /** Lists the available zones of the API. */
11
- static LOCALITIES = ["fr-par-3"];
10
+ /**
11
+ * Locality of this API.
12
+ * type ∈ {'zone','region','global','unspecified'}
13
+ */
14
+ static LOCALITY = sdkClient.toApiLocality({
15
+ zones: ["fr-par-3"]
16
+ });
12
17
  /**
13
18
  * List server types. List all technical details about Apple silicon server types available in the specified zone. Since there is only one Availability Zone for Apple silicon servers, the targeted value is `fr-par-3`.
14
19
  *
@@ -221,8 +226,13 @@ class API extends sdkClient.API {
221
226
  );
222
227
  }
223
228
  class PrivateNetworkAPI extends sdkClient.API {
224
- /** Lists the available zones of the API. */
225
- static LOCALITIES = ["fr-par-1", "fr-par-3"];
229
+ /**
230
+ * Locality of this API.
231
+ * type ∈ {'zone','region','global','unspecified'}
232
+ */
233
+ static LOCALITY = sdkClient.toApiLocality({
234
+ zones: ["fr-par-1", "fr-par-3"]
235
+ });
226
236
  getServerPrivateNetwork = (request) => this.client.fetch(
227
237
  {
228
238
  method: "GET",
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '@scaleway/sdk-client';
2
- import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client';
2
+ import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
3
3
  import type { ConnectivityDiagnostic, CreateServerRequest, DeleteServerRequest, GetConnectivityDiagnosticRequest, GetOSRequest, GetServerRequest, GetServerTypeRequest, ListOSRequest, ListOSResponse, ListServerPrivateNetworksResponse, ListServerTypesRequest, ListServerTypesResponse, ListServersRequest, ListServersResponse, OS, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiGetServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, ReinstallServerRequest, Server, ServerPrivateNetwork, ServerType, SetServerPrivateNetworksResponse, StartConnectivityDiagnosticRequest, StartConnectivityDiagnosticResponse, UpdateServerRequest } from './types.gen';
4
4
  /**
5
5
  * Apple silicon API.
@@ -7,8 +7,11 @@ import type { ConnectivityDiagnostic, CreateServerRequest, DeleteServerRequest,
7
7
  This API allows you to manage your Apple silicon machines.
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
- /** Lists the available zones of the API. */
11
- static readonly LOCALITIES: ScwZone[];
10
+ /**
11
+ * Locality of this API.
12
+ * type ∈ {'zone','region','global','unspecified'}
13
+ */
14
+ static readonly LOCALITY: ApiLocality;
12
15
  /**
13
16
  * List server types. List all technical details about Apple silicon server types available in the specified zone. Since there is only one Availability Zone for Apple silicon servers, the targeted value is `fr-par-3`.
14
17
  *
@@ -108,8 +111,11 @@ export declare class API extends ParentAPI {
108
111
  * Apple silicon - Private Networks API.
109
112
  */
110
113
  export declare class PrivateNetworkAPI extends ParentAPI {
111
- /** Lists the available zones of the API. */
112
- static readonly LOCALITIES: ScwZone[];
114
+ /**
115
+ * Locality of this API.
116
+ * type ∈ {'zone','region','global','unspecified'}
117
+ */
118
+ static readonly LOCALITY: ApiLocality;
113
119
  getServerPrivateNetwork: (request: Readonly<PrivateNetworkApiGetServerPrivateNetworkRequest>) => Promise<ServerPrivateNetwork>;
114
120
  /**
115
121
  * Waits for {@link ServerPrivateNetwork} to be in a final state.
@@ -1,12 +1,17 @@
1
- import { API as API$1, validatePathParam, urlParams, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
1
+ import { API as API$1, toApiLocality, validatePathParam, urlParams, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
2
2
  import { SERVER_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { unmarshalListServerTypesResponse, unmarshalServerType, marshalCreateServerRequest, unmarshalServer, unmarshalListServersResponse, unmarshalListOSResponse, unmarshalOS, marshalUpdateServerRequest, marshalReinstallServerRequest, marshalStartConnectivityDiagnosticRequest, unmarshalStartConnectivityDiagnosticResponse, unmarshalConnectivityDiagnostic, unmarshalServerPrivateNetwork, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, unmarshalSetServerPrivateNetworksResponse, unmarshalListServerPrivateNetworksResponse } from "./marshalling.gen.js";
4
4
  const jsonContentHeaders = {
5
5
  "Content-Type": "application/json; charset=utf-8"
6
6
  };
7
7
  class API extends API$1 {
8
- /** Lists the available zones of the API. */
9
- static LOCALITIES = ["fr-par-3"];
8
+ /**
9
+ * Locality of this API.
10
+ * type ∈ {'zone','region','global','unspecified'}
11
+ */
12
+ static LOCALITY = toApiLocality({
13
+ zones: ["fr-par-3"]
14
+ });
10
15
  /**
11
16
  * List server types. List all technical details about Apple silicon server types available in the specified zone. Since there is only one Availability Zone for Apple silicon servers, the targeted value is `fr-par-3`.
12
17
  *
@@ -219,8 +224,13 @@ class API extends API$1 {
219
224
  );
220
225
  }
221
226
  class PrivateNetworkAPI extends API$1 {
222
- /** Lists the available zones of the API. */
223
- static LOCALITIES = ["fr-par-1", "fr-par-3"];
227
+ /**
228
+ * Locality of this API.
229
+ * type ∈ {'zone','region','global','unspecified'}
230
+ */
231
+ static LOCALITY = toApiLocality({
232
+ zones: ["fr-par-1", "fr-par-3"]
233
+ });
224
234
  getServerPrivateNetwork = (request) => this.client.fetch(
225
235
  {
226
236
  method: "GET",
@@ -20,6 +20,47 @@ const unmarshalOS = (data) => {
20
20
  xcodeVersion: data.xcode_version
21
21
  };
22
22
  };
23
+ const unmarshalCommitment = (data) => {
24
+ if (!sdkClient.isJSONObject(data)) {
25
+ throw new TypeError(
26
+ `Unmarshalling the type 'Commitment' failed as data isn't a dictionary.`
27
+ );
28
+ }
29
+ return {
30
+ cancelled: data.cancelled,
31
+ type: data.type
32
+ };
33
+ };
34
+ const unmarshalServer = (data) => {
35
+ if (!sdkClient.isJSONObject(data)) {
36
+ throw new TypeError(
37
+ `Unmarshalling the type 'Server' failed as data isn't a dictionary.`
38
+ );
39
+ }
40
+ return {
41
+ commitment: data.commitment ? unmarshalCommitment(data.commitment) : void 0,
42
+ createdAt: sdkClient.unmarshalDate(data.created_at),
43
+ deletableAt: sdkClient.unmarshalDate(data.deletable_at),
44
+ deletionScheduled: data.deletion_scheduled,
45
+ delivered: data.delivered,
46
+ id: data.id,
47
+ ip: data.ip,
48
+ name: data.name,
49
+ organizationId: data.organization_id,
50
+ os: data.os ? unmarshalOS(data.os) : void 0,
51
+ projectId: data.project_id,
52
+ publicBandwidthBps: data.public_bandwidth_bps,
53
+ sshUsername: data.ssh_username,
54
+ status: data.status,
55
+ sudoPassword: data.sudo_password,
56
+ type: data.type,
57
+ updatedAt: sdkClient.unmarshalDate(data.updated_at),
58
+ vncPort: data.vnc_port,
59
+ vncUrl: data.vnc_url,
60
+ vpcStatus: data.vpc_status,
61
+ zone: data.zone
62
+ };
63
+ };
23
64
  const unmarshalServerPrivateNetwork = (data) => {
24
65
  if (!sdkClient.isJSONObject(data)) {
25
66
  throw new TypeError(
@@ -89,7 +130,8 @@ const unmarshalServerTypeNetwork = (data) => {
89
130
  );
90
131
  }
91
132
  return {
92
- publicBandwidthBps: data.public_bandwidth_bps
133
+ publicBandwidthBps: data.public_bandwidth_bps,
134
+ supportedBandwidth: data.supported_bandwidth
93
135
  };
94
136
  };
95
137
  const unmarshalServerType = (data) => {
@@ -110,46 +152,6 @@ const unmarshalServerType = (data) => {
110
152
  stock: data.stock
111
153
  };
112
154
  };
113
- const unmarshalCommitment = (data) => {
114
- if (!sdkClient.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
- };
124
- const unmarshalServer = (data) => {
125
- if (!sdkClient.isJSONObject(data)) {
126
- throw new TypeError(
127
- `Unmarshalling the type 'Server' failed as data isn't a dictionary.`
128
- );
129
- }
130
- return {
131
- commitment: data.commitment ? unmarshalCommitment(data.commitment) : void 0,
132
- createdAt: sdkClient.unmarshalDate(data.created_at),
133
- deletableAt: sdkClient.unmarshalDate(data.deletable_at),
134
- deletionScheduled: data.deletion_scheduled,
135
- delivered: data.delivered,
136
- id: data.id,
137
- ip: data.ip,
138
- name: data.name,
139
- organizationId: data.organization_id,
140
- os: data.os ? unmarshalOS(data.os) : void 0,
141
- projectId: data.project_id,
142
- sshUsername: data.ssh_username,
143
- status: data.status,
144
- sudoPassword: data.sudo_password,
145
- type: data.type,
146
- updatedAt: sdkClient.unmarshalDate(data.updated_at),
147
- vncPort: data.vnc_port,
148
- vncUrl: data.vnc_url,
149
- vpcStatus: data.vpc_status,
150
- zone: data.zone
151
- };
152
- };
153
155
  const unmarshalConnectivityDiagnosticServerHealth = (data) => {
154
156
  if (!sdkClient.isJSONObject(data)) {
155
157
  throw new TypeError(
@@ -255,6 +257,7 @@ const marshalCreateServerRequest = (request, defaults) => ({
255
257
  name: request.name || randomName("as"),
256
258
  os_id: request.osId,
257
259
  project_id: request.projectId ?? defaults.defaultProjectId,
260
+ public_bandwidth_bps: request.publicBandwidthBps,
258
261
  type: request.type
259
262
  });
260
263
  const marshalPrivateNetworkApiAddServerPrivateNetworkRequest = (request, defaults) => ({
@@ -277,6 +280,7 @@ const marshalUpdateServerRequest = (request, defaults) => ({
277
280
  commitment_type: request.commitmentType !== void 0 ? marshalCommitmentTypeValue(request.commitmentType) : void 0,
278
281
  enable_vpc: request.enableVpc,
279
282
  name: request.name,
283
+ public_bandwidth_bps: request.publicBandwidthBps,
280
284
  schedule_deletion: request.scheduleDeletion
281
285
  });
282
286
  exports.marshalCreateServerRequest = marshalCreateServerRequest;
@@ -1,9 +1,9 @@
1
1
  import type { DefaultValues } from '@scaleway/sdk-client';
2
2
  import type { ConnectivityDiagnostic, CreateServerRequest, ListOSResponse, ListServerPrivateNetworksResponse, ListServerTypesResponse, ListServersResponse, OS, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, ReinstallServerRequest, Server, ServerPrivateNetwork, ServerType, SetServerPrivateNetworksResponse, StartConnectivityDiagnosticRequest, StartConnectivityDiagnosticResponse, UpdateServerRequest } from './types.gen';
3
3
  export declare const unmarshalOS: (data: unknown) => OS;
4
+ export declare const unmarshalServer: (data: unknown) => Server;
4
5
  export declare const unmarshalServerPrivateNetwork: (data: unknown) => ServerPrivateNetwork;
5
6
  export declare const unmarshalServerType: (data: unknown) => ServerType;
6
- export declare const unmarshalServer: (data: unknown) => Server;
7
7
  export declare const unmarshalConnectivityDiagnostic: (data: unknown) => ConnectivityDiagnostic;
8
8
  export declare const unmarshalListOSResponse: (data: unknown) => ListOSResponse;
9
9
  export declare const unmarshalListServerPrivateNetworksResponse: (data: unknown) => ListServerPrivateNetworksResponse;
@@ -1,5 +1,5 @@
1
1
  import randomName from "@scaleway/random-name";
2
- import { isJSONObject, unmarshalDate, unmarshalArrayOfObject } from "@scaleway/sdk-client";
2
+ import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
3
3
  const unmarshalOS = (data) => {
4
4
  if (!isJSONObject(data)) {
5
5
  throw new TypeError(
@@ -18,6 +18,47 @@ const unmarshalOS = (data) => {
18
18
  xcodeVersion: data.xcode_version
19
19
  };
20
20
  };
21
+ const unmarshalCommitment = (data) => {
22
+ if (!isJSONObject(data)) {
23
+ throw new TypeError(
24
+ `Unmarshalling the type 'Commitment' failed as data isn't a dictionary.`
25
+ );
26
+ }
27
+ return {
28
+ cancelled: data.cancelled,
29
+ type: data.type
30
+ };
31
+ };
32
+ const unmarshalServer = (data) => {
33
+ if (!isJSONObject(data)) {
34
+ throw new TypeError(
35
+ `Unmarshalling the type 'Server' failed as data isn't a dictionary.`
36
+ );
37
+ }
38
+ return {
39
+ commitment: data.commitment ? unmarshalCommitment(data.commitment) : void 0,
40
+ createdAt: unmarshalDate(data.created_at),
41
+ deletableAt: unmarshalDate(data.deletable_at),
42
+ deletionScheduled: data.deletion_scheduled,
43
+ delivered: data.delivered,
44
+ id: data.id,
45
+ ip: data.ip,
46
+ name: data.name,
47
+ organizationId: data.organization_id,
48
+ os: data.os ? unmarshalOS(data.os) : void 0,
49
+ projectId: data.project_id,
50
+ publicBandwidthBps: data.public_bandwidth_bps,
51
+ sshUsername: data.ssh_username,
52
+ status: data.status,
53
+ sudoPassword: data.sudo_password,
54
+ type: data.type,
55
+ updatedAt: unmarshalDate(data.updated_at),
56
+ vncPort: data.vnc_port,
57
+ vncUrl: data.vnc_url,
58
+ vpcStatus: data.vpc_status,
59
+ zone: data.zone
60
+ };
61
+ };
21
62
  const unmarshalServerPrivateNetwork = (data) => {
22
63
  if (!isJSONObject(data)) {
23
64
  throw new TypeError(
@@ -87,7 +128,8 @@ const unmarshalServerTypeNetwork = (data) => {
87
128
  );
88
129
  }
89
130
  return {
90
- publicBandwidthBps: data.public_bandwidth_bps
131
+ publicBandwidthBps: data.public_bandwidth_bps,
132
+ supportedBandwidth: data.supported_bandwidth
91
133
  };
92
134
  };
93
135
  const unmarshalServerType = (data) => {
@@ -108,46 +150,6 @@ const unmarshalServerType = (data) => {
108
150
  stock: data.stock
109
151
  };
110
152
  };
111
- const unmarshalCommitment = (data) => {
112
- if (!isJSONObject(data)) {
113
- throw new TypeError(
114
- `Unmarshalling the type 'Commitment' failed as data isn't a dictionary.`
115
- );
116
- }
117
- return {
118
- cancelled: data.cancelled,
119
- type: data.type
120
- };
121
- };
122
- const unmarshalServer = (data) => {
123
- if (!isJSONObject(data)) {
124
- throw new TypeError(
125
- `Unmarshalling the type 'Server' failed as data isn't a dictionary.`
126
- );
127
- }
128
- return {
129
- commitment: data.commitment ? unmarshalCommitment(data.commitment) : void 0,
130
- createdAt: unmarshalDate(data.created_at),
131
- deletableAt: unmarshalDate(data.deletable_at),
132
- deletionScheduled: data.deletion_scheduled,
133
- delivered: data.delivered,
134
- id: data.id,
135
- ip: data.ip,
136
- name: data.name,
137
- organizationId: data.organization_id,
138
- os: data.os ? unmarshalOS(data.os) : void 0,
139
- projectId: data.project_id,
140
- sshUsername: data.ssh_username,
141
- status: data.status,
142
- sudoPassword: data.sudo_password,
143
- type: data.type,
144
- updatedAt: unmarshalDate(data.updated_at),
145
- vncPort: data.vnc_port,
146
- vncUrl: data.vnc_url,
147
- vpcStatus: data.vpc_status,
148
- zone: data.zone
149
- };
150
- };
151
153
  const unmarshalConnectivityDiagnosticServerHealth = (data) => {
152
154
  if (!isJSONObject(data)) {
153
155
  throw new TypeError(
@@ -253,6 +255,7 @@ const marshalCreateServerRequest = (request, defaults) => ({
253
255
  name: request.name || randomName("as"),
254
256
  os_id: request.osId,
255
257
  project_id: request.projectId ?? defaults.defaultProjectId,
258
+ public_bandwidth_bps: request.publicBandwidthBps,
256
259
  type: request.type
257
260
  });
258
261
  const marshalPrivateNetworkApiAddServerPrivateNetworkRequest = (request, defaults) => ({
@@ -275,6 +278,7 @@ const marshalUpdateServerRequest = (request, defaults) => ({
275
278
  commitment_type: request.commitmentType !== void 0 ? marshalCommitmentTypeValue(request.commitmentType) : void 0,
276
279
  enable_vpc: request.enableVpc,
277
280
  name: request.name,
281
+ public_bandwidth_bps: request.publicBandwidthBps,
278
282
  schedule_deletion: request.scheduleDeletion
279
283
  });
280
284
  export {
@@ -8,6 +8,10 @@ export type ServerPrivateNetworkServerStatus = 'unknown_status' | 'attaching' |
8
8
  export type ServerPrivateNetworkStatus = 'vpc_unknown_status' | 'vpc_enabled' | 'vpc_updating' | 'vpc_disabled';
9
9
  export type ServerStatus = 'unknown_status' | 'starting' | 'ready' | 'error' | 'rebooting' | 'updating' | 'locking' | 'locked' | 'unlocking' | 'reinstalling' | 'busy';
10
10
  export type ServerTypeStock = 'unknown_stock' | 'no_stock' | 'low_stock' | 'high_stock';
11
+ export interface Commitment {
12
+ type: CommitmentType;
13
+ cancelled: boolean;
14
+ }
11
15
  export interface OS {
12
16
  /**
13
17
  * Unique ID of the OS.
@@ -64,10 +68,93 @@ export interface ServerTypeMemory {
64
68
  }
65
69
  export interface ServerTypeNetwork {
66
70
  publicBandwidthBps: number;
71
+ supportedBandwidth: number[];
67
72
  }
68
- export interface Commitment {
69
- type: CommitmentType;
70
- cancelled: boolean;
73
+ export interface Server {
74
+ /**
75
+ * UUID of the server.
76
+ */
77
+ id: string;
78
+ /**
79
+ * Type of the server.
80
+ */
81
+ type: string;
82
+ /**
83
+ * Name of the server.
84
+ */
85
+ name: string;
86
+ /**
87
+ * Project this server is associated with.
88
+ */
89
+ projectId: string;
90
+ /**
91
+ * Organization this server is associated with.
92
+ */
93
+ organizationId: string;
94
+ /**
95
+ * IPv4 address of the server.
96
+ */
97
+ ip: string;
98
+ /**
99
+ * Vnc:// URL to access Apple Remote Desktop.
100
+ */
101
+ vncUrl: string;
102
+ /**
103
+ * SSH Username for remote shell.
104
+ */
105
+ sshUsername: string;
106
+ /**
107
+ * Admin password required to execute commands.
108
+ */
109
+ sudoPassword: string;
110
+ /**
111
+ * VNC port to use for remote desktop connection.
112
+ */
113
+ vncPort: number;
114
+ /**
115
+ * Initially installed OS, this does not necessarily reflect the current OS version.
116
+ */
117
+ os?: OS;
118
+ /**
119
+ * Current status of the server.
120
+ */
121
+ status: ServerStatus;
122
+ /**
123
+ * Date on which the server was created.
124
+ */
125
+ createdAt?: Date;
126
+ /**
127
+ * Date on which the server was last updated.
128
+ */
129
+ updatedAt?: Date;
130
+ /**
131
+ * Date from which the server can be deleted.
132
+ */
133
+ deletableAt?: Date;
134
+ /**
135
+ * Set to true to mark the server for automatic deletion depending on `deletable_at` date. Set to false to cancel an existing deletion schedule. Leave unset otherwise.
136
+ */
137
+ deletionScheduled: boolean;
138
+ /**
139
+ * Zone of the server.
140
+ */
141
+ zone: ScwZone;
142
+ /**
143
+ * Set to true once the server has completed its provisioning steps and is ready to use. Some OS configurations might require a reinstallation of the server before delivery depending on the available stock. A reinstallation after the initial delivery will not change this flag and can be tracked using the server status.
144
+ */
145
+ delivered: boolean;
146
+ /**
147
+ * Activation status of optional Private Network feature support for this server.
148
+ */
149
+ vpcStatus: ServerPrivateNetworkStatus;
150
+ /**
151
+ * Commitment scheme applied to this server.
152
+ */
153
+ commitment?: Commitment;
154
+ /**
155
+ * Public bandwidth configured for this server. Expressed in bits per second.
156
+ */
157
+ publicBandwidthBps: number;
71
158
  }
72
159
  export interface ConnectivityDiagnosticServerHealth {
73
160
  lastCheckinDate?: Date;
@@ -153,88 +240,6 @@ export interface ServerType {
153
240
  */
154
241
  defaultOs?: OS;
155
242
  }
156
- export interface Server {
157
- /**
158
- * UUID of the server.
159
- */
160
- id: string;
161
- /**
162
- * Type of the server.
163
- */
164
- type: string;
165
- /**
166
- * Name of the server.
167
- */
168
- name: string;
169
- /**
170
- * Project this server is associated with.
171
- */
172
- projectId: string;
173
- /**
174
- * Organization this server is associated with.
175
- */
176
- organizationId: string;
177
- /**
178
- * IPv4 address of the server.
179
- */
180
- ip: string;
181
- /**
182
- * Vnc:// URL to access Apple Remote Desktop.
183
- */
184
- vncUrl: string;
185
- /**
186
- * SSH Username for remote shell.
187
- */
188
- sshUsername: string;
189
- /**
190
- * Admin password required to execute commands.
191
- */
192
- sudoPassword: string;
193
- /**
194
- * VNC port to use for remote desktop connection.
195
- */
196
- vncPort: number;
197
- /**
198
- * Initially installed OS, this does not necessarily reflect the current OS version.
199
- */
200
- os?: OS;
201
- /**
202
- * Current status of the server.
203
- */
204
- status: ServerStatus;
205
- /**
206
- * Date on which the server was created.
207
- */
208
- createdAt?: Date;
209
- /**
210
- * Date on which the server was last updated.
211
- */
212
- updatedAt?: Date;
213
- /**
214
- * Date from which the server can be deleted.
215
- */
216
- deletableAt?: Date;
217
- /**
218
- * Set to true to mark the server for automatic deletion depending on `deletable_at` date. Set to false to cancel an existing deletion schedule. Leave unset otherwise.
219
- */
220
- deletionScheduled: boolean;
221
- /**
222
- * Zone of the server.
223
- */
224
- zone: ScwZone;
225
- /**
226
- * Set to true once the server has completed its provisioning steps and is ready to use. Some OS configurations might require a reinstallation of the server before delivery depending on the available stock. A reinstallation after the initial delivery will not change this flag and can be tracked using the server status.
227
- */
228
- delivered: boolean;
229
- /**
230
- * Activation status of optional Private Network feature support for this server.
231
- */
232
- vpcStatus: ServerPrivateNetworkStatus;
233
- /**
234
- * Commitment scheme applied to this server.
235
- */
236
- commitment?: Commitment;
237
- }
238
243
  export interface CommitmentTypeValue {
239
244
  commitmentType: CommitmentType;
240
245
  }
@@ -275,6 +280,10 @@ export type CreateServerRequest = {
275
280
  * Activate commitment for this server. If not specified, there is a 24h commitment due to Apple licensing (commitment_type `duration_24h`). It can be updated with the Update Server request. Available commitment depends on server type.
276
281
  */
277
282
  commitmentType?: CommitmentType;
283
+ /**
284
+ * Public bandwidth to configure for this server. This defaults to the minimum bandwidth for this server type. For compatible server types, the bandwidth can be increased which incurs additional costs.
285
+ */
286
+ publicBandwidthBps: number;
278
287
  };
279
288
  export type DeleteServerRequest = {
280
289
  /**
@@ -561,4 +570,8 @@ export type UpdateServerRequest = {
561
570
  * Change commitment. Use 'none' to automatically cancel a renewing commitment.
562
571
  */
563
572
  commitmentType?: CommitmentTypeValue;
573
+ /**
574
+ * Public bandwidth to configure for this server. Setting an higher bandwidth incurs additional costs. Supported bandwidth levels depends on server type and can be queried using the `/server-types` endpoint.
575
+ */
576
+ publicBandwidthBps?: number;
564
577
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-applesilicon",
3
- "version": "1.0.4",
3
+ "version": "1.2.0",
4
4
  "description": "Scaleway SDK applesilicon",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -30,13 +30,13 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@scaleway/random-name": "5.1.1",
33
- "@scaleway/sdk-std": "1.0.4"
33
+ "@scaleway/sdk-std": "1.0.5"
34
34
  },
35
35
  "peerDependencies": {
36
- "@scaleway/sdk-client": "^1.2.3"
36
+ "@scaleway/sdk-client": "^1.3.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@scaleway/sdk-client": "^1.2.3"
39
+ "@scaleway/sdk-client": "^1.3.0"
40
40
  },
41
41
  "scripts": {
42
42
  "package:check": "pnpm publint",