@scaleway/sdk 2.31.0 → 2.33.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 (61) hide show
  1. package/dist/api/baremetal/v1/api.gen.cjs +1 -0
  2. package/dist/api/baremetal/v1/api.gen.js +1 -0
  3. package/dist/api/baremetal/v1/types.gen.d.ts +2 -0
  4. package/dist/api/block/v1alpha1/api.gen.cjs +44 -0
  5. package/dist/api/block/v1alpha1/api.gen.d.ts +19 -1
  6. package/dist/api/block/v1alpha1/api.gen.js +45 -1
  7. package/dist/api/block/v1alpha1/content.gen.cjs +2 -1
  8. package/dist/api/block/v1alpha1/content.gen.js +2 -1
  9. package/dist/api/block/v1alpha1/index.gen.d.ts +1 -1
  10. package/dist/api/block/v1alpha1/marshalling.gen.cjs +14 -0
  11. package/dist/api/block/v1alpha1/marshalling.gen.d.ts +3 -1
  12. package/dist/api/block/v1alpha1/marshalling.gen.js +14 -0
  13. package/dist/api/block/v1alpha1/types.gen.d.ts +27 -1
  14. package/dist/api/block/v1alpha1/validation-rules.gen.cjs +6 -0
  15. package/dist/api/block/v1alpha1/validation-rules.gen.d.ts +5 -0
  16. package/dist/api/block/v1alpha1/validation-rules.gen.js +6 -0
  17. package/dist/api/function/v1beta1/types.gen.d.ts +1 -1
  18. package/dist/api/instance/v1/api.gen.cjs +0 -25
  19. package/dist/api/instance/v1/api.gen.d.ts +1 -17
  20. package/dist/api/instance/v1/api.gen.js +1 -26
  21. package/dist/api/instance/v1/index.gen.d.ts +1 -1
  22. package/dist/api/instance/v1/marshalling.gen.cjs +5 -13
  23. package/dist/api/instance/v1/marshalling.gen.d.ts +1 -2
  24. package/dist/api/instance/v1/marshalling.gen.js +5 -13
  25. package/dist/api/instance/v1/types.gen.d.ts +26 -25
  26. package/dist/api/instance/v1/types.private.gen.d.ts +7 -0
  27. package/dist/api/jobs/v1alpha1/api.gen.cjs +13 -0
  28. package/dist/api/jobs/v1alpha1/api.gen.d.ts +8 -1
  29. package/dist/api/jobs/v1alpha1/api.gen.js +14 -1
  30. package/dist/api/jobs/v1alpha1/index.gen.d.ts +1 -1
  31. package/dist/api/jobs/v1alpha1/marshalling.gen.cjs +22 -0
  32. package/dist/api/jobs/v1alpha1/marshalling.gen.d.ts +2 -1
  33. package/dist/api/jobs/v1alpha1/marshalling.gen.js +22 -0
  34. package/dist/api/jobs/v1alpha1/types.gen.d.ts +14 -0
  35. package/dist/api/k8s/v1/api.gen.cjs +0 -22
  36. package/dist/api/k8s/v1/api.gen.d.ts +1 -10
  37. package/dist/api/k8s/v1/api.gen.js +1 -23
  38. package/dist/api/k8s/v1/index.gen.d.ts +1 -1
  39. package/dist/api/k8s/v1/marshalling.gen.cjs +0 -4
  40. package/dist/api/k8s/v1/marshalling.gen.d.ts +1 -2
  41. package/dist/api/k8s/v1/marshalling.gen.js +0 -4
  42. package/dist/api/k8s/v1/types.gen.d.ts +0 -11
  43. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +6 -2
  44. package/dist/api/secret/v1beta1/types.gen.d.ts +4 -4
  45. package/dist/api/tem/v1alpha1/api.gen.cjs +50 -0
  46. package/dist/api/tem/v1alpha1/api.gen.d.ts +13 -1
  47. package/dist/api/tem/v1alpha1/api.gen.js +51 -1
  48. package/dist/api/tem/v1alpha1/index.gen.cjs +2 -0
  49. package/dist/api/tem/v1alpha1/index.gen.d.ts +2 -1
  50. package/dist/api/tem/v1alpha1/index.gen.js +3 -1
  51. package/dist/api/tem/v1alpha1/marshalling.gen.cjs +71 -0
  52. package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +5 -1
  53. package/dist/api/tem/v1alpha1/marshalling.gen.js +72 -1
  54. package/dist/api/tem/v1alpha1/types.gen.d.ts +117 -0
  55. package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +33 -0
  56. package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +28 -0
  57. package/dist/api/tem/v1alpha1/validation-rules.gen.js +33 -0
  58. package/dist/scw/constants.cjs +1 -1
  59. package/dist/scw/constants.d.ts +2 -2
  60. package/dist/scw/constants.js +1 -1
  61. package/package.json +2 -2
@@ -338,6 +338,7 @@ class API extends api.API {
338
338
  method: "GET",
339
339
  path: `/baremetal/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/offers`,
340
340
  urlParams: marshalling.urlParams(
341
+ ["name", request.name],
341
342
  ["page", request.page],
342
343
  [
343
344
  "page_size",
@@ -336,6 +336,7 @@ class API extends API$1 {
336
336
  method: "GET",
337
337
  path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/offers`,
338
338
  urlParams: urlParams(
339
+ ["name", request.name],
339
340
  ["page", request.page],
340
341
  [
341
342
  "page_size",
@@ -478,6 +478,8 @@ export type ListOffersRequest = {
478
478
  pageSize?: number;
479
479
  /** Subscription period type to filter offers by. */
480
480
  subscriptionPeriod?: OfferSubscriptionPeriod;
481
+ /** Offer name to filter offers by. */
482
+ name?: string;
481
483
  };
482
484
  export interface ListOffersResponse {
483
485
  /** Total count of matching offers. */
@@ -227,6 +227,7 @@ class API extends api.API {
227
227
  * contain a QCOW2 image. The bucket can be imported into any Availability
228
228
  * Zone as long as it is in the same region as the bucket.
229
229
  *
230
+ * @deprecated
230
231
  * @param request - The request {@link ImportSnapshotFromS3Request}
231
232
  * @returns A Promise of Snapshot
232
233
  */
@@ -241,6 +242,49 @@ class API extends api.API {
241
242
  },
242
243
  marshalling_gen.unmarshalSnapshot
243
244
  );
245
+ /**
246
+ * Import a snapshot from a Scaleway Object Storage bucket. The bucket must
247
+ * contain a QCOW2 image. The bucket can be imported into any Availability
248
+ * Zone as long as it is in the same region as the bucket.
249
+ *
250
+ * @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
251
+ * @returns A Promise of Snapshot
252
+ */
253
+ importSnapshotFromObjectStorage = (request) => this.client.fetch(
254
+ {
255
+ body: JSON.stringify(
256
+ marshalling_gen.marshalImportSnapshotFromObjectStorageRequest(
257
+ request,
258
+ this.client.settings
259
+ )
260
+ ),
261
+ headers: jsonContentHeaders,
262
+ method: "POST",
263
+ path: `/block/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-object-storage`
264
+ },
265
+ marshalling_gen.unmarshalSnapshot
266
+ );
267
+ /**
268
+ * Export a snapshot to a Scaleway Object Storage bucket. The snapshot is
269
+ * exported in QCOW2 format. The snapshot must not be in transient state.
270
+ *
271
+ * @param request - The request {@link ExportSnapshotToObjectStorageRequest}
272
+ * @returns A Promise of Snapshot
273
+ */
274
+ exportSnapshotToObjectStorage = (request) => this.client.fetch(
275
+ {
276
+ body: JSON.stringify(
277
+ marshalling_gen.marshalExportSnapshotToObjectStorageRequest(
278
+ request,
279
+ this.client.settings
280
+ )
281
+ ),
282
+ headers: jsonContentHeaders,
283
+ method: "POST",
284
+ path: `/block/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${marshalling.validatePathParam("snapshotId", request.snapshotId)}/export-to-object-storage`
285
+ },
286
+ marshalling_gen.unmarshalSnapshot
287
+ );
244
288
  /**
245
289
  * Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
246
290
  * want to delete. The snapshot must not be in use.
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { WaitForOptions, Zone } from '../../../bridge';
3
- import type { CreateSnapshotRequest, CreateVolumeRequest, DeleteSnapshotRequest, DeleteVolumeRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromS3Request, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
3
+ import type { CreateSnapshotRequest, CreateVolumeRequest, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
4
4
  /**
5
5
  * Scaleway Block Storage API.
6
6
  *
@@ -123,10 +123,28 @@ export declare class API extends ParentAPI {
123
123
  * contain a QCOW2 image. The bucket can be imported into any Availability
124
124
  * Zone as long as it is in the same region as the bucket.
125
125
  *
126
+ * @deprecated
126
127
  * @param request - The request {@link ImportSnapshotFromS3Request}
127
128
  * @returns A Promise of Snapshot
128
129
  */
129
130
  importSnapshotFromS3: (request: Readonly<ImportSnapshotFromS3Request>) => Promise<Snapshot>;
131
+ /**
132
+ * Import a snapshot from a Scaleway Object Storage bucket. The bucket must
133
+ * contain a QCOW2 image. The bucket can be imported into any Availability
134
+ * Zone as long as it is in the same region as the bucket.
135
+ *
136
+ * @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
137
+ * @returns A Promise of Snapshot
138
+ */
139
+ importSnapshotFromObjectStorage: (request: Readonly<ImportSnapshotFromObjectStorageRequest>) => Promise<Snapshot>;
140
+ /**
141
+ * Export a snapshot to a Scaleway Object Storage bucket. The snapshot is
142
+ * exported in QCOW2 format. The snapshot must not be in transient state.
143
+ *
144
+ * @param request - The request {@link ExportSnapshotToObjectStorageRequest}
145
+ * @returns A Promise of Snapshot
146
+ */
147
+ exportSnapshotToObjectStorage: (request: Readonly<ExportSnapshotToObjectStorageRequest>) => Promise<Snapshot>;
130
148
  /**
131
149
  * Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
132
150
  * want to delete. The snapshot must not be in use.
@@ -3,7 +3,7 @@ import { API as API$1 } from "../../../scw/api.js";
3
3
  import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
4
4
  import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
5
5
  import { VOLUME_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES } from "./content.gen.js";
6
- import { unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalVolume, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalSnapshot, marshalCreateSnapshotRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest } from "./marshalling.gen.js";
6
+ import { unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalVolume, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalSnapshot, marshalCreateSnapshotRequest, marshalImportSnapshotFromS3Request, marshalImportSnapshotFromObjectStorageRequest, marshalExportSnapshotToObjectStorageRequest, marshalUpdateSnapshotRequest } from "./marshalling.gen.js";
7
7
  const jsonContentHeaders = {
8
8
  "Content-Type": "application/json; charset=utf-8"
9
9
  };
@@ -225,6 +225,7 @@ class API extends API$1 {
225
225
  * contain a QCOW2 image. The bucket can be imported into any Availability
226
226
  * Zone as long as it is in the same region as the bucket.
227
227
  *
228
+ * @deprecated
228
229
  * @param request - The request {@link ImportSnapshotFromS3Request}
229
230
  * @returns A Promise of Snapshot
230
231
  */
@@ -239,6 +240,49 @@ class API extends API$1 {
239
240
  },
240
241
  unmarshalSnapshot
241
242
  );
243
+ /**
244
+ * Import a snapshot from a Scaleway Object Storage bucket. The bucket must
245
+ * contain a QCOW2 image. The bucket can be imported into any Availability
246
+ * Zone as long as it is in the same region as the bucket.
247
+ *
248
+ * @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
249
+ * @returns A Promise of Snapshot
250
+ */
251
+ importSnapshotFromObjectStorage = (request) => this.client.fetch(
252
+ {
253
+ body: JSON.stringify(
254
+ marshalImportSnapshotFromObjectStorageRequest(
255
+ request,
256
+ this.client.settings
257
+ )
258
+ ),
259
+ headers: jsonContentHeaders,
260
+ method: "POST",
261
+ path: `/block/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-object-storage`
262
+ },
263
+ unmarshalSnapshot
264
+ );
265
+ /**
266
+ * Export a snapshot to a Scaleway Object Storage bucket. The snapshot is
267
+ * exported in QCOW2 format. The snapshot must not be in transient state.
268
+ *
269
+ * @param request - The request {@link ExportSnapshotToObjectStorageRequest}
270
+ * @returns A Promise of Snapshot
271
+ */
272
+ exportSnapshotToObjectStorage = (request) => this.client.fetch(
273
+ {
274
+ body: JSON.stringify(
275
+ marshalExportSnapshotToObjectStorageRequest(
276
+ request,
277
+ this.client.settings
278
+ )
279
+ ),
280
+ headers: jsonContentHeaders,
281
+ method: "POST",
282
+ path: `/block/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}/export-to-object-storage`
283
+ },
284
+ unmarshalSnapshot
285
+ );
242
286
  /**
243
287
  * Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
244
288
  * want to delete. The snapshot must not be in use.
@@ -7,7 +7,8 @@ const REFERENCE_TRANSIENT_STATUSES = [
7
7
  ];
8
8
  const SNAPSHOT_TRANSIENT_STATUSES = [
9
9
  "creating",
10
- "deleting"
10
+ "deleting",
11
+ "exporting"
11
12
  ];
12
13
  const VOLUME_TRANSIENT_STATUSES = [
13
14
  "creating",
@@ -5,7 +5,8 @@ const REFERENCE_TRANSIENT_STATUSES = [
5
5
  ];
6
6
  const SNAPSHOT_TRANSIENT_STATUSES = [
7
7
  "creating",
8
- "deleting"
8
+ "deleting",
9
+ "exporting"
9
10
  ];
10
11
  const VOLUME_TRANSIENT_STATUSES = [
11
12
  "creating",
@@ -1,4 +1,4 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { CreateSnapshotRequest, CreateVolumeRequest, CreateVolumeRequestFromEmpty, CreateVolumeRequestFromSnapshot, DeleteSnapshotRequest, DeleteVolumeRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromS3Request, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesRequestOrderBy, ListVolumesResponse, Reference, ReferenceStatus, ReferenceType, Snapshot, SnapshotParentVolume, SnapshotStatus, StorageClass, UpdateSnapshotRequest, UpdateVolumeRequest, Volume, VolumeSpecifications, VolumeStatus, VolumeType, } from './types.gen';
3
+ export type { CreateSnapshotRequest, CreateVolumeRequest, CreateVolumeRequestFromEmpty, CreateVolumeRequestFromSnapshot, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesRequestOrderBy, ListVolumesResponse, Reference, ReferenceStatus, ReferenceType, Snapshot, SnapshotParentVolume, SnapshotStatus, StorageClass, UpdateSnapshotRequest, UpdateVolumeRequest, Volume, VolumeSpecifications, VolumeStatus, VolumeType, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -163,6 +163,18 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
163
163
  ]),
164
164
  ...marshalling.resolveOneOf([{ param: "perf_iops", value: request.perfIops }])
165
165
  });
166
+ const marshalExportSnapshotToObjectStorageRequest = (request, defaults) => ({
167
+ bucket: request.bucket,
168
+ key: request.key
169
+ });
170
+ const marshalImportSnapshotFromObjectStorageRequest = (request, defaults) => ({
171
+ bucket: request.bucket,
172
+ key: request.key,
173
+ name: request.name,
174
+ project_id: request.projectId ?? defaults.defaultProjectId,
175
+ size: request.size,
176
+ tags: request.tags
177
+ });
166
178
  const marshalImportSnapshotFromS3Request = (request, defaults) => ({
167
179
  bucket: request.bucket,
168
180
  key: request.key,
@@ -183,6 +195,8 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
183
195
  });
184
196
  exports.marshalCreateSnapshotRequest = marshalCreateSnapshotRequest;
185
197
  exports.marshalCreateVolumeRequest = marshalCreateVolumeRequest;
198
+ exports.marshalExportSnapshotToObjectStorageRequest = marshalExportSnapshotToObjectStorageRequest;
199
+ exports.marshalImportSnapshotFromObjectStorageRequest = marshalImportSnapshotFromObjectStorageRequest;
186
200
  exports.marshalImportSnapshotFromS3Request = marshalImportSnapshotFromS3Request;
187
201
  exports.marshalUpdateSnapshotRequest = marshalUpdateSnapshotRequest;
188
202
  exports.marshalUpdateVolumeRequest = marshalUpdateVolumeRequest;
@@ -1,5 +1,5 @@
1
1
  import type { DefaultValues } from '../../../bridge';
2
- import type { CreateSnapshotRequest, CreateVolumeRequest, ImportSnapshotFromS3Request, ListSnapshotsResponse, ListVolumeTypesResponse, ListVolumesResponse, Reference, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
2
+ import type { CreateSnapshotRequest, CreateVolumeRequest, ExportSnapshotToObjectStorageRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsResponse, ListVolumeTypesResponse, ListVolumesResponse, Reference, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
3
3
  export declare const unmarshalReference: (data: unknown) => Reference;
4
4
  export declare const unmarshalSnapshot: (data: unknown) => Snapshot;
5
5
  export declare const unmarshalVolume: (data: unknown) => Volume;
@@ -8,6 +8,8 @@ export declare const unmarshalListVolumeTypesResponse: (data: unknown) => ListVo
8
8
  export declare const unmarshalListVolumesResponse: (data: unknown) => ListVolumesResponse;
9
9
  export declare const marshalCreateSnapshotRequest: (request: CreateSnapshotRequest, defaults: DefaultValues) => Record<string, unknown>;
10
10
  export declare const marshalCreateVolumeRequest: (request: CreateVolumeRequest, defaults: DefaultValues) => Record<string, unknown>;
11
+ export declare const marshalExportSnapshotToObjectStorageRequest: (request: ExportSnapshotToObjectStorageRequest, defaults: DefaultValues) => Record<string, unknown>;
12
+ export declare const marshalImportSnapshotFromObjectStorageRequest: (request: ImportSnapshotFromObjectStorageRequest, defaults: DefaultValues) => Record<string, unknown>;
11
13
  export declare const marshalImportSnapshotFromS3Request: (request: ImportSnapshotFromS3Request, defaults: DefaultValues) => Record<string, unknown>;
12
14
  export declare const marshalUpdateSnapshotRequest: (request: UpdateSnapshotRequest, defaults: DefaultValues) => Record<string, unknown>;
13
15
  export declare const marshalUpdateVolumeRequest: (request: UpdateVolumeRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -161,6 +161,18 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
161
161
  ]),
162
162
  ...resolveOneOf([{ param: "perf_iops", value: request.perfIops }])
163
163
  });
164
+ const marshalExportSnapshotToObjectStorageRequest = (request, defaults) => ({
165
+ bucket: request.bucket,
166
+ key: request.key
167
+ });
168
+ const marshalImportSnapshotFromObjectStorageRequest = (request, defaults) => ({
169
+ bucket: request.bucket,
170
+ key: request.key,
171
+ name: request.name,
172
+ project_id: request.projectId ?? defaults.defaultProjectId,
173
+ size: request.size,
174
+ tags: request.tags
175
+ });
164
176
  const marshalImportSnapshotFromS3Request = (request, defaults) => ({
165
177
  bucket: request.bucket,
166
178
  key: request.key,
@@ -182,6 +194,8 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
182
194
  export {
183
195
  marshalCreateSnapshotRequest,
184
196
  marshalCreateVolumeRequest,
197
+ marshalExportSnapshotToObjectStorageRequest,
198
+ marshalImportSnapshotFromObjectStorageRequest,
185
199
  marshalImportSnapshotFromS3Request,
186
200
  marshalUpdateSnapshotRequest,
187
201
  marshalUpdateVolumeRequest,
@@ -3,7 +3,7 @@ export type ListSnapshotsRequestOrderBy = 'created_at_asc' | 'created_at_desc' |
3
3
  export type ListVolumesRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
4
4
  export type ReferenceStatus = 'unknown_status' | 'attaching' | 'attached' | 'detaching' | 'detached' | 'creating' | 'error';
5
5
  export type ReferenceType = 'unknown_type' | 'link' | 'exclusive' | 'read_only';
6
- export type SnapshotStatus = 'unknown_status' | 'creating' | 'available' | 'error' | 'deleting' | 'deleted' | 'in_use' | 'locked';
6
+ export type SnapshotStatus = 'unknown_status' | 'creating' | 'available' | 'error' | 'deleting' | 'deleted' | 'in_use' | 'locked' | 'exporting';
7
7
  export type StorageClass = 'unknown_storage_class' | 'unspecified' | 'bssd' | 'sbs';
8
8
  export type VolumeStatus = 'unknown_status' | 'creating' | 'available' | 'in_use' | 'deleting' | 'deleted' | 'resizing' | 'error' | 'snapshotting' | 'locked' | 'updating';
9
9
  export interface Reference {
@@ -181,6 +181,16 @@ export type DeleteVolumeRequest = {
181
181
  /** UUID of the volume. */
182
182
  volumeId: string;
183
183
  };
184
+ export type ExportSnapshotToObjectStorageRequest = {
185
+ /** Zone to target. If none is passed will use default zone from the config. */
186
+ zone?: Zone;
187
+ /** UUID of the snapshot. */
188
+ snapshotId: string;
189
+ /** Scaleway Object Storage bucket where the object is stored. */
190
+ bucket: string;
191
+ /** The object key inside the given bucket. */
192
+ key: string;
193
+ };
184
194
  export type GetSnapshotRequest = {
185
195
  /** Zone to target. If none is passed will use default zone from the config. */
186
196
  zone?: Zone;
@@ -193,6 +203,22 @@ export type GetVolumeRequest = {
193
203
  /** UUID of the volume. */
194
204
  volumeId: string;
195
205
  };
206
+ export type ImportSnapshotFromObjectStorageRequest = {
207
+ /** Zone to target. If none is passed will use default zone from the config. */
208
+ zone?: Zone;
209
+ /** Scaleway Object Storage bucket where the object is stored. */
210
+ bucket: string;
211
+ /** The object key inside the given bucket. */
212
+ key: string;
213
+ /** Name of the snapshot. */
214
+ name: string;
215
+ /** UUID of the Project to which the volume and the snapshot belong. */
216
+ projectId?: string;
217
+ /** List of tags assigned to the snapshot. */
218
+ tags?: string[];
219
+ /** Size of the snapshot. */
220
+ size?: number;
221
+ };
196
222
  export type ImportSnapshotFromS3Request = {
197
223
  /** Zone to target. If none is passed will use default zone from the config. */
198
224
  zone?: Zone;
@@ -10,6 +10,11 @@ const CreateVolumeRequest = {
10
10
  minLength: 1
11
11
  }
12
12
  };
13
+ const ImportSnapshotFromObjectStorageRequest = {
14
+ name: {
15
+ minLength: 1
16
+ }
17
+ };
13
18
  const ImportSnapshotFromS3Request = {
14
19
  name: {
15
20
  minLength: 1
@@ -49,6 +54,7 @@ const Reference = {
49
54
  };
50
55
  exports.CreateSnapshotRequest = CreateSnapshotRequest;
51
56
  exports.CreateVolumeRequest = CreateVolumeRequest;
57
+ exports.ImportSnapshotFromObjectStorageRequest = ImportSnapshotFromObjectStorageRequest;
52
58
  exports.ImportSnapshotFromS3Request = ImportSnapshotFromS3Request;
53
59
  exports.ListSnapshotsRequest = ListSnapshotsRequest;
54
60
  exports.ListVolumeTypesRequest = ListVolumeTypesRequest;
@@ -8,6 +8,11 @@ export declare const CreateVolumeRequest: {
8
8
  minLength: number;
9
9
  };
10
10
  };
11
+ export declare const ImportSnapshotFromObjectStorageRequest: {
12
+ name: {
13
+ minLength: number;
14
+ };
15
+ };
11
16
  export declare const ImportSnapshotFromS3Request: {
12
17
  name: {
13
18
  minLength: number;
@@ -8,6 +8,11 @@ const CreateVolumeRequest = {
8
8
  minLength: 1
9
9
  }
10
10
  };
11
+ const ImportSnapshotFromObjectStorageRequest = {
12
+ name: {
13
+ minLength: 1
14
+ }
15
+ };
11
16
  const ImportSnapshotFromS3Request = {
12
17
  name: {
13
18
  minLength: 1
@@ -48,6 +53,7 @@ const Reference = {
48
53
  export {
49
54
  CreateSnapshotRequest,
50
55
  CreateVolumeRequest,
56
+ ImportSnapshotFromObjectStorageRequest,
51
57
  ImportSnapshotFromS3Request,
52
58
  ListSnapshotsRequest,
53
59
  ListVolumeTypesRequest,
@@ -3,7 +3,7 @@ export type CronStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'locked' |
3
3
  export type DomainStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'creating' | 'pending';
4
4
  export type FunctionHttpOption = 'unknown_http_option' | 'enabled' | 'redirected';
5
5
  export type FunctionPrivacy = 'unknown_privacy' | 'public' | 'private';
6
- export type FunctionRuntime = 'unknown_runtime' | 'golang' | 'python' | 'python3' | 'node8' | 'node10' | 'node14' | 'node16' | 'node17' | 'python37' | 'python38' | 'python39' | 'python310' | 'go113' | 'go117' | 'go118' | 'node18' | 'rust165' | 'go119' | 'python311' | 'php82' | 'node19' | 'go120' | 'node20' | 'go121';
6
+ export type FunctionRuntime = 'unknown_runtime' | 'golang' | 'python' | 'python3' | 'node8' | 'node10' | 'node14' | 'node16' | 'node17' | 'python37' | 'python38' | 'python39' | 'python310' | 'go113' | 'go117' | 'go118' | 'node18' | 'rust165' | 'go119' | 'python311' | 'php82' | 'node19' | 'go120' | 'node20' | 'go121' | 'node22' | 'python312' | 'php83' | 'go122' | 'rust178';
7
7
  export type FunctionStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'locked' | 'creating' | 'pending' | 'created';
8
8
  export type ListCronsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
9
9
  export type ListDomainsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'hostname_asc' | 'hostname_desc';
@@ -1174,30 +1174,5 @@ class API extends api.API {
1174
1174
  method: "POST",
1175
1175
  path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
1176
1176
  });
1177
- /**
1178
- * Get the encrypted RDP password. Get the initial administrator password for
1179
- * Windows RDP. This password is encrypted using the SSH RSA key specified at
1180
- * the time of Instance creation.
1181
- *
1182
- * @param request - The request {@link GetEncryptedRdpPasswordRequest}
1183
- * @returns A Promise of GetEncryptedRdpPasswordResponse
1184
- */
1185
- getEncryptedRdpPassword = (request) => this.client.fetch(
1186
- {
1187
- method: "GET",
1188
- path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/encrypted_rdp_password`
1189
- },
1190
- marshalling_gen.unmarshalGetEncryptedRdpPasswordResponse
1191
- );
1192
- /**
1193
- * Delete the encrypted RDP password. Delete the initial administrator
1194
- * password for Windows RDP.
1195
- *
1196
- * @param request - The request {@link DeleteEncryptedRdpPasswordRequest}
1197
- */
1198
- deleteEncryptedRdpPassword = (request) => this.client.fetch({
1199
- method: "DELETE",
1200
- path: `/instance/v1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${marshalling.validatePathParam("serverId", request.serverId)}/encrypted_rdp_password`
1201
- });
1202
1177
  }
1203
1178
  exports.API = API;
@@ -1,6 +1,6 @@
1
1
  import { API as ParentAPI } from '../../../bridge';
2
2
  import type { Zone } from '../../../bridge';
3
- import type { ApplyBlockMigrationRequest, AttachServerVolumeRequest, AttachServerVolumeResponse, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, DeleteEncryptedRdpPasswordRequest, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetBootscriptRequest, GetBootscriptResponse, GetDashboardRequest, GetDashboardResponse, GetEncryptedRdpPasswordRequest, GetEncryptedRdpPasswordResponse, GetImageRequest, GetImageResponse, GetIpRequest, GetIpResponse, GetPlacementGroupRequest, GetPlacementGroupResponse, GetPlacementGroupServersRequest, GetPlacementGroupServersResponse, GetPrivateNICRequest, GetPrivateNICResponse, GetSecurityGroupRequest, GetSecurityGroupResponse, GetSecurityGroupRuleRequest, GetSecurityGroupRuleResponse, GetServerRequest, GetServerResponse, GetServerTypesAvailabilityRequest, GetServerTypesAvailabilityResponse, GetSnapshotRequest, GetSnapshotResponse, GetVolumeRequest, GetVolumeResponse, ListBootscriptsRequest, ListBootscriptsResponse, ListDefaultSecurityGroupRulesRequest, ListImagesRequest, ListImagesResponse, ListIpsRequest, ListIpsResponse, ListPlacementGroupsRequest, ListPlacementGroupsResponse, ListPrivateNICsRequest, ListPrivateNICsResponse, ListSecurityGroupRulesRequest, ListSecurityGroupRulesResponse, ListSecurityGroupsRequest, ListSecurityGroupsResponse, ListServerActionsRequest, ListServerActionsResponse, ListServerUserDataRequest, ListServerUserDataResponse, ListServersRequest, ListServersResponse, ListServersTypesRequest, ListServersTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumesTypesRequest, ListVolumesTypesResponse, MigrationPlan, PlanBlockMigrationRequest, PrivateNIC, ServerActionRequest, ServerActionResponse, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesResponse, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse } from './types.gen';
3
+ import type { ApplyBlockMigrationRequest, AttachServerVolumeRequest, AttachServerVolumeResponse, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetBootscriptRequest, GetBootscriptResponse, GetDashboardRequest, GetDashboardResponse, GetImageRequest, GetImageResponse, GetIpRequest, GetIpResponse, GetPlacementGroupRequest, GetPlacementGroupResponse, GetPlacementGroupServersRequest, GetPlacementGroupServersResponse, GetPrivateNICRequest, GetPrivateNICResponse, GetSecurityGroupRequest, GetSecurityGroupResponse, GetSecurityGroupRuleRequest, GetSecurityGroupRuleResponse, GetServerRequest, GetServerResponse, GetServerTypesAvailabilityRequest, GetServerTypesAvailabilityResponse, GetSnapshotRequest, GetSnapshotResponse, GetVolumeRequest, GetVolumeResponse, ListBootscriptsRequest, ListBootscriptsResponse, ListDefaultSecurityGroupRulesRequest, ListImagesRequest, ListImagesResponse, ListIpsRequest, ListIpsResponse, ListPlacementGroupsRequest, ListPlacementGroupsResponse, ListPrivateNICsRequest, ListPrivateNICsResponse, ListSecurityGroupRulesRequest, ListSecurityGroupRulesResponse, ListSecurityGroupsRequest, ListSecurityGroupsResponse, ListServerActionsRequest, ListServerActionsResponse, ListServerUserDataRequest, ListServerUserDataResponse, ListServersRequest, ListServersResponse, ListServersTypesRequest, ListServersTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumesTypesRequest, ListVolumesTypesResponse, MigrationPlan, PlanBlockMigrationRequest, PrivateNIC, ServerActionRequest, ServerActionResponse, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesResponse, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse } from './types.gen';
4
4
  import type { SetImageResponse, SetSecurityGroupRequest, SetSecurityGroupResponse, SetSecurityGroupRuleRequest, SetSecurityGroupRuleResponse, SetServerRequest, SetServerResponse, SetSnapshotRequest, SetSnapshotResponse } from './types.private.gen';
5
5
  /**
6
6
  * Instance API.
@@ -529,20 +529,4 @@ export declare class API extends ParentAPI {
529
529
  * @param request - The request {@link ApplyBlockMigrationRequest}
530
530
  */
531
531
  applyBlockMigration: (request: Readonly<ApplyBlockMigrationRequest>) => Promise<void>;
532
- /**
533
- * Get the encrypted RDP password. Get the initial administrator password for
534
- * Windows RDP. This password is encrypted using the SSH RSA key specified at
535
- * the time of Instance creation.
536
- *
537
- * @param request - The request {@link GetEncryptedRdpPasswordRequest}
538
- * @returns A Promise of GetEncryptedRdpPasswordResponse
539
- */
540
- getEncryptedRdpPassword: (request: Readonly<GetEncryptedRdpPasswordRequest>) => Promise<GetEncryptedRdpPasswordResponse>;
541
- /**
542
- * Delete the encrypted RDP password. Delete the initial administrator
543
- * password for Windows RDP.
544
- *
545
- * @param request - The request {@link DeleteEncryptedRdpPasswordRequest}
546
- */
547
- deleteEncryptedRdpPassword: (request: Readonly<DeleteEncryptedRdpPasswordRequest>) => Promise<void>;
548
532
  }
@@ -1,7 +1,7 @@
1
1
  import { API as API$1 } from "../../../scw/api.js";
2
2
  import { validatePathParam, urlParams } from "../../../helpers/marshalling.js";
3
3
  import { enrichForPagination } from "../../../scw/fetch/resource-paginator.js";
4
- import { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, marshalAttachServerVolumeRequest, unmarshalAttachServerVolumeResponse, marshalDetachServerVolumeRequest, unmarshalDetachServerVolumeResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, marshalUpdateImageRequest, unmarshalUpdateImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalUpdateSnapshotRequest, unmarshalUpdateSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, marshalUpdateSecurityGroupRequest, unmarshalUpdateSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, marshalUpdateSecurityGroupRuleRequest, unmarshalUpdateSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC, unmarshalListBootscriptsResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, marshalPlanBlockMigrationRequest, unmarshalMigrationPlan, marshalApplyBlockMigrationRequest, unmarshalGetEncryptedRdpPasswordResponse } from "./marshalling.gen.js";
4
+ import { unmarshalGetServerTypesAvailabilityResponse, unmarshalListServersTypesResponse, unmarshalListVolumesTypesResponse, unmarshalListServersResponse, marshalCreateServerRequest, unmarshalCreateServerResponse, unmarshalGetServerResponse, marshalSetServerRequest, unmarshalSetServerResponse, marshalUpdateServerRequest, unmarshalUpdateServerResponse, unmarshalListServerActionsResponse, marshalServerActionRequest, unmarshalServerActionResponse, unmarshalListServerUserDataResponse, marshalAttachServerVolumeRequest, unmarshalAttachServerVolumeResponse, marshalDetachServerVolumeRequest, unmarshalDetachServerVolumeResponse, unmarshalListImagesResponse, unmarshalGetImageResponse, marshalCreateImageRequest, unmarshalCreateImageResponse, marshalSetImageRequest, unmarshalSetImageResponse, marshalUpdateImageRequest, unmarshalUpdateImageResponse, unmarshalListSnapshotsResponse, marshalCreateSnapshotRequest, unmarshalCreateSnapshotResponse, unmarshalGetSnapshotResponse, marshalSetSnapshotRequest, unmarshalSetSnapshotResponse, marshalUpdateSnapshotRequest, unmarshalUpdateSnapshotResponse, marshalExportSnapshotRequest, unmarshalExportSnapshotResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalCreateVolumeResponse, unmarshalGetVolumeResponse, marshalUpdateVolumeRequest, unmarshalUpdateVolumeResponse, unmarshalListSecurityGroupsResponse, marshalCreateSecurityGroupRequest, unmarshalCreateSecurityGroupResponse, unmarshalGetSecurityGroupResponse, marshalSetSecurityGroupRequest, unmarshalSetSecurityGroupResponse, marshalUpdateSecurityGroupRequest, unmarshalUpdateSecurityGroupResponse, unmarshalListSecurityGroupRulesResponse, marshalCreateSecurityGroupRuleRequest, unmarshalCreateSecurityGroupRuleResponse, marshalSetSecurityGroupRulesRequest, unmarshalSetSecurityGroupRulesResponse, unmarshalGetSecurityGroupRuleResponse, marshalSetSecurityGroupRuleRequest, unmarshalSetSecurityGroupRuleResponse, marshalUpdateSecurityGroupRuleRequest, unmarshalUpdateSecurityGroupRuleResponse, unmarshalListPlacementGroupsResponse, marshalCreatePlacementGroupRequest, unmarshalCreatePlacementGroupResponse, unmarshalGetPlacementGroupResponse, marshalSetPlacementGroupRequest, unmarshalSetPlacementGroupResponse, marshalUpdatePlacementGroupRequest, unmarshalUpdatePlacementGroupResponse, unmarshalGetPlacementGroupServersResponse, marshalSetPlacementGroupServersRequest, unmarshalSetPlacementGroupServersResponse, marshalUpdatePlacementGroupServersRequest, unmarshalUpdatePlacementGroupServersResponse, unmarshalListIpsResponse, marshalCreateIpRequest, unmarshalCreateIpResponse, unmarshalGetIpResponse, marshalUpdateIpRequest, unmarshalUpdateIpResponse, unmarshalListPrivateNICsResponse, marshalCreatePrivateNICRequest, unmarshalCreatePrivateNICResponse, unmarshalGetPrivateNICResponse, marshalUpdatePrivateNICRequest, unmarshalPrivateNIC, unmarshalListBootscriptsResponse, unmarshalGetBootscriptResponse, unmarshalGetDashboardResponse, marshalPlanBlockMigrationRequest, unmarshalMigrationPlan, marshalApplyBlockMigrationRequest } from "./marshalling.gen.js";
5
5
  const jsonContentHeaders = {
6
6
  "Content-Type": "application/json; charset=utf-8"
7
7
  };
@@ -1172,31 +1172,6 @@ class API extends API$1 {
1172
1172
  method: "POST",
1173
1173
  path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/block-migration/apply`
1174
1174
  });
1175
- /**
1176
- * Get the encrypted RDP password. Get the initial administrator password for
1177
- * Windows RDP. This password is encrypted using the SSH RSA key specified at
1178
- * the time of Instance creation.
1179
- *
1180
- * @param request - The request {@link GetEncryptedRdpPasswordRequest}
1181
- * @returns A Promise of GetEncryptedRdpPasswordResponse
1182
- */
1183
- getEncryptedRdpPassword = (request) => this.client.fetch(
1184
- {
1185
- method: "GET",
1186
- path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/encrypted_rdp_password`
1187
- },
1188
- unmarshalGetEncryptedRdpPasswordResponse
1189
- );
1190
- /**
1191
- * Delete the encrypted RDP password. Delete the initial administrator
1192
- * password for Windows RDP.
1193
- *
1194
- * @param request - The request {@link DeleteEncryptedRdpPasswordRequest}
1195
- */
1196
- deleteEncryptedRdpPassword = (request) => this.client.fetch({
1197
- method: "DELETE",
1198
- path: `/instance/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/encrypted_rdp_password`
1199
- });
1200
1175
  }
1201
1176
  export {
1202
1177
  API
@@ -1,4 +1,4 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
- export type { ApplyBlockMigrationRequest, Arch, AttachServerVolumeRequest, AttachServerVolumeRequestVolumeType, AttachServerVolumeResponse, BootType, Bootscript, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, Dashboard, DeleteEncryptedRdpPasswordRequest, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetBootscriptRequest, GetBootscriptResponse, GetDashboardRequest, GetDashboardResponse, GetEncryptedRdpPasswordRequest, GetEncryptedRdpPasswordResponse, GetImageRequest, GetImageResponse, GetIpRequest, GetIpResponse, GetPlacementGroupRequest, GetPlacementGroupResponse, GetPlacementGroupServersRequest, GetPlacementGroupServersResponse, GetPrivateNICRequest, GetPrivateNICResponse, GetSecurityGroupRequest, GetSecurityGroupResponse, GetSecurityGroupRuleRequest, GetSecurityGroupRuleResponse, GetServerRequest, GetServerResponse, GetServerTypesAvailabilityRequest, GetServerTypesAvailabilityResponse, GetServerTypesAvailabilityResponseAvailability, GetSnapshotRequest, GetSnapshotResponse, GetVolumeRequest, GetVolumeResponse, Image, ImageState, Ip, IpState, IpType, ListBootscriptsRequest, ListBootscriptsResponse, ListDefaultSecurityGroupRulesRequest, ListImagesRequest, ListImagesResponse, ListIpsRequest, ListIpsResponse, ListPlacementGroupsRequest, ListPlacementGroupsResponse, ListPrivateNICsRequest, ListPrivateNICsResponse, ListSecurityGroupRulesRequest, ListSecurityGroupRulesResponse, ListSecurityGroupsRequest, ListSecurityGroupsResponse, ListServerActionsRequest, ListServerActionsResponse, ListServerUserDataRequest, ListServerUserDataResponse, ListServersRequest, ListServersRequestOrder, ListServersResponse, ListServersTypesRequest, ListServersTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumesTypesRequest, ListVolumesTypesResponse, MigrationPlan, PlacementGroup, PlacementGroupPolicyMode, PlacementGroupPolicyType, PlacementGroupServer, PlanBlockMigrationRequest, PrivateNIC, PrivateNICState, SecurityGroup, SecurityGroupPolicy, SecurityGroupRule, SecurityGroupRuleAction, SecurityGroupRuleDirection, SecurityGroupRuleProtocol, SecurityGroupState, SecurityGroupSummary, SecurityGroupTemplate, Server, ServerAction, ServerActionRequest, ServerActionRequestVolumeBackupTemplate, ServerActionResponse, ServerIp, ServerIpIpFamily, ServerIpProvisioningMode, ServerIpState, ServerIpv6, ServerLocation, ServerMaintenance, ServerState, ServerSummary, ServerType, ServerTypeCapabilities, ServerTypeNetwork, ServerTypeNetworkInterface, ServerTypeVolumeConstraintSizes, ServerTypeVolumeConstraintsByType, ServerTypesAvailability, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesRequestRule, SetSecurityGroupRulesResponse, Snapshot, SnapshotBaseVolume, SnapshotState, SnapshotVolumeType, Task, TaskStatus, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse, Volume, VolumeImageUpdateTemplate, VolumeServer, VolumeServerState, VolumeServerTemplate, VolumeServerVolumeType, VolumeState, VolumeSummary, VolumeTemplate, VolumeType, VolumeTypeCapabilities, VolumeTypeConstraints, VolumeVolumeType, } from './types.gen';
3
+ export type { ApplyBlockMigrationRequest, Arch, AttachServerVolumeRequest, AttachServerVolumeRequestVolumeType, AttachServerVolumeResponse, BootType, Bootscript, CreateImageRequest, CreateImageResponse, CreateIpRequest, CreateIpResponse, CreatePlacementGroupRequest, CreatePlacementGroupResponse, CreatePrivateNICRequest, CreatePrivateNICResponse, CreateSecurityGroupRequest, CreateSecurityGroupResponse, CreateSecurityGroupRuleRequest, CreateSecurityGroupRuleResponse, CreateServerRequest, CreateServerResponse, CreateSnapshotRequest, CreateSnapshotResponse, CreateVolumeRequest, CreateVolumeResponse, Dashboard, DeleteImageRequest, DeleteIpRequest, DeletePlacementGroupRequest, DeletePrivateNICRequest, DeleteSecurityGroupRequest, DeleteSecurityGroupRuleRequest, DeleteServerRequest, DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, ExportSnapshotResponse, GetBootscriptRequest, GetBootscriptResponse, GetDashboardRequest, GetDashboardResponse, GetImageRequest, GetImageResponse, GetIpRequest, GetIpResponse, GetPlacementGroupRequest, GetPlacementGroupResponse, GetPlacementGroupServersRequest, GetPlacementGroupServersResponse, GetPrivateNICRequest, GetPrivateNICResponse, GetSecurityGroupRequest, GetSecurityGroupResponse, GetSecurityGroupRuleRequest, GetSecurityGroupRuleResponse, GetServerRequest, GetServerResponse, GetServerTypesAvailabilityRequest, GetServerTypesAvailabilityResponse, GetServerTypesAvailabilityResponseAvailability, GetSnapshotRequest, GetSnapshotResponse, GetVolumeRequest, GetVolumeResponse, Image, ImageState, Ip, IpState, IpType, ListBootscriptsRequest, ListBootscriptsResponse, ListDefaultSecurityGroupRulesRequest, ListImagesRequest, ListImagesResponse, ListIpsRequest, ListIpsResponse, ListPlacementGroupsRequest, ListPlacementGroupsResponse, ListPrivateNICsRequest, ListPrivateNICsResponse, ListSecurityGroupRulesRequest, ListSecurityGroupRulesResponse, ListSecurityGroupsRequest, ListSecurityGroupsResponse, ListServerActionsRequest, ListServerActionsResponse, ListServerUserDataRequest, ListServerUserDataResponse, ListServersRequest, ListServersRequestOrder, ListServersResponse, ListServersTypesRequest, ListServersTypesResponse, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumesTypesRequest, ListVolumesTypesResponse, MigrationPlan, PlacementGroup, PlacementGroupPolicyMode, PlacementGroupPolicyType, PlacementGroupServer, PlanBlockMigrationRequest, PrivateNIC, PrivateNICState, SecurityGroup, SecurityGroupPolicy, SecurityGroupRule, SecurityGroupRuleAction, SecurityGroupRuleDirection, SecurityGroupRuleProtocol, SecurityGroupState, SecurityGroupSummary, SecurityGroupTemplate, Server, ServerAction, ServerActionRequest, ServerActionRequestVolumeBackupTemplate, ServerActionResponse, ServerIp, ServerIpIpFamily, ServerIpProvisioningMode, ServerIpState, ServerIpv6, ServerLocation, ServerMaintenance, ServerState, ServerSummary, ServerType, ServerTypeCapabilities, ServerTypeNetwork, ServerTypeNetworkInterface, ServerTypeVolumeConstraintSizes, ServerTypeVolumeConstraintsByType, ServerTypesAvailability, SetImageRequest, SetPlacementGroupRequest, SetPlacementGroupResponse, SetPlacementGroupServersRequest, SetPlacementGroupServersResponse, SetSecurityGroupRulesRequest, SetSecurityGroupRulesRequestRule, SetSecurityGroupRulesResponse, Snapshot, SnapshotBaseVolume, SnapshotState, SnapshotVolumeType, Task, TaskStatus, UpdateImageRequest, UpdateImageResponse, UpdateIpRequest, UpdateIpResponse, UpdatePlacementGroupRequest, UpdatePlacementGroupResponse, UpdatePlacementGroupServersRequest, UpdatePlacementGroupServersResponse, UpdatePrivateNICRequest, UpdateSecurityGroupRequest, UpdateSecurityGroupResponse, UpdateSecurityGroupRuleRequest, UpdateSecurityGroupRuleResponse, UpdateServerRequest, UpdateServerResponse, UpdateSnapshotRequest, UpdateSnapshotResponse, UpdateVolumeRequest, UpdateVolumeResponse, Volume, VolumeImageUpdateTemplate, VolumeServer, VolumeServerState, VolumeServerTemplate, VolumeServerVolumeType, VolumeState, VolumeSummary, VolumeTemplate, VolumeType, VolumeTypeCapabilities, VolumeTypeConstraints, VolumeVolumeType, } from './types.gen';
4
4
  export * as ValidationRules from './validation-rules.gen';
@@ -223,6 +223,8 @@ const unmarshalServer = (data) => {
223
223
  );
224
224
  }
225
225
  return {
226
+ adminPasswordEncryptedValue: data.admin_password_encrypted_value,
227
+ adminPasswordEncryptionSshKeyId: data.admin_password_encryption_ssh_key_id,
226
228
  allowedActions: data.allowed_actions,
227
229
  arch: data.arch,
228
230
  bootType: data.boot_type,
@@ -542,18 +544,6 @@ const unmarshalGetDashboardResponse = (data) => {
542
544
  dashboard: data.dashboard ? unmarshalDashboard(data.dashboard) : void 0
543
545
  };
544
546
  };
545
- const unmarshalGetEncryptedRdpPasswordResponse = (data) => {
546
- if (!json.isJSONObject(data)) {
547
- throw new TypeError(
548
- `Unmarshalling the type 'GetEncryptedRdpPasswordResponse' failed as data isn't a dictionary.`
549
- );
550
- }
551
- return {
552
- adminPasswordEncryptionSshKeyDescription: data.admin_password_encryption_ssh_key_description,
553
- adminPasswordEncryptionSshKeyId: data.admin_password_encryption_ssh_key_id,
554
- value: data.value
555
- };
556
- };
557
547
  const unmarshalGetImageResponse = (data) => {
558
548
  if (!json.isJSONObject(data)) {
559
549
  throw new TypeError(
@@ -1249,6 +1239,7 @@ const marshalCreatePlacementGroupRequest = (request, defaults) => ({
1249
1239
  });
1250
1240
  const marshalCreatePrivateNICRequest = (request, defaults) => ({
1251
1241
  ip_ids: request.ipIds,
1242
+ ipam_ip_ids: request.ipamIpIds,
1252
1243
  private_network_id: request.privateNetworkId,
1253
1244
  tags: request.tags
1254
1245
  });
@@ -1590,6 +1581,7 @@ const marshalServerMaintenance = (request, defaults) => ({
1590
1581
  start_date: request.startDate
1591
1582
  });
1592
1583
  const marshalSetServerRequest = (request, defaults) => ({
1584
+ admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
1593
1585
  allowed_actions: request.allowedActions !== void 0 ? request.allowedActions : void 0,
1594
1586
  arch: request.arch,
1595
1587
  boot_type: request.bootType,
@@ -1702,6 +1694,7 @@ const marshalSecurityGroupTemplate = (request, defaults) => ({
1702
1694
  name: request.name
1703
1695
  });
1704
1696
  const marshalUpdateServerRequest = (request, defaults) => ({
1697
+ admin_password_encryption_ssh_key_id: request.adminPasswordEncryptionSshKeyId,
1705
1698
  boot_type: request.bootType,
1706
1699
  bootscript: request.bootscript,
1707
1700
  commercial_type: request.commercialType,
@@ -1779,7 +1772,6 @@ exports.unmarshalDetachServerVolumeResponse = unmarshalDetachServerVolumeRespons
1779
1772
  exports.unmarshalExportSnapshotResponse = unmarshalExportSnapshotResponse;
1780
1773
  exports.unmarshalGetBootscriptResponse = unmarshalGetBootscriptResponse;
1781
1774
  exports.unmarshalGetDashboardResponse = unmarshalGetDashboardResponse;
1782
- exports.unmarshalGetEncryptedRdpPasswordResponse = unmarshalGetEncryptedRdpPasswordResponse;
1783
1775
  exports.unmarshalGetImageResponse = unmarshalGetImageResponse;
1784
1776
  exports.unmarshalGetIpResponse = unmarshalGetIpResponse;
1785
1777
  exports.unmarshalGetPlacementGroupResponse = unmarshalGetPlacementGroupResponse;