@scaleway/sdk-block 1.0.4 → 1.1.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,18 +7,23 @@ 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 = [
12
- "fr-par-1",
13
- "fr-par-2",
14
- "fr-par-3",
15
- "nl-ams-1",
16
- "nl-ams-2",
17
- "nl-ams-3",
18
- "pl-waw-1",
19
- "pl-waw-2",
20
- "pl-waw-3"
21
- ];
10
+ /**
11
+ * Locality of this API.
12
+ * type ∈ {'zone','region','global','unspecified'}
13
+ */
14
+ static LOCALITY = sdkClient.toApiLocality({
15
+ zones: [
16
+ "fr-par-1",
17
+ "fr-par-2",
18
+ "fr-par-3",
19
+ "nl-ams-1",
20
+ "nl-ams-2",
21
+ "nl-ams-3",
22
+ "pl-waw-1",
23
+ "pl-waw-2",
24
+ "pl-waw-3"
25
+ ]
26
+ });
22
27
  pageOfListVolumeTypes = (request = {}) => this.client.fetch(
23
28
  {
24
29
  method: "GET",
@@ -40,11 +45,12 @@ class API extends sdkClient.API {
40
45
  * @returns A Promise of ListVolumeTypesResponse
41
46
  */
42
47
  listVolumeTypes = (request = {}) => sdkClient.enrichForPagination("volumeTypes", this.pageOfListVolumeTypes, request);
43
- pageOfListVolumes = (request = {}) => this.client.fetch(
48
+ pageOfListVolumes = (request) => this.client.fetch(
44
49
  {
45
50
  method: "GET",
46
51
  path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes`,
47
52
  urlParams: sdkClient.urlParams(
53
+ ["include_deleted", request.includeDeleted],
48
54
  ["name", request.name],
49
55
  ["order_by", request.orderBy],
50
56
  ["organization_id", request.organizationId],
@@ -66,7 +72,7 @@ class API extends sdkClient.API {
66
72
  * @param request - The request {@link ListVolumesRequest}
67
73
  * @returns A Promise of ListVolumesResponse
68
74
  */
69
- listVolumes = (request = {}) => sdkClient.enrichForPagination("volumes", this.pageOfListVolumes, request);
75
+ listVolumes = (request) => sdkClient.enrichForPagination("volumes", this.pageOfListVolumes, request);
70
76
  /**
71
77
  * Create a volume. To create a new volume from scratch, you must specify `from_empty` and the `size`.
72
78
  To create a volume from an existing snapshot, specify `from_snapshot` and the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size. The volume will take on the same volume class and underlying IOPS limitations as the original snapshot.
@@ -140,11 +146,12 @@ class API extends sdkClient.API {
140
146
  },
141
147
  marshalling_gen.unmarshalVolume
142
148
  );
143
- pageOfListSnapshots = (request = {}) => this.client.fetch(
149
+ pageOfListSnapshots = (request) => this.client.fetch(
144
150
  {
145
151
  method: "GET",
146
152
  path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots`,
147
153
  urlParams: sdkClient.urlParams(
154
+ ["include_deleted", request.includeDeleted],
148
155
  ["name", request.name],
149
156
  ["order_by", request.orderBy],
150
157
  ["organization_id", request.organizationId],
@@ -166,7 +173,7 @@ class API extends sdkClient.API {
166
173
  * @param request - The request {@link ListSnapshotsRequest}
167
174
  * @returns A Promise of ListSnapshotsResponse
168
175
  */
169
- listSnapshots = (request = {}) => sdkClient.enrichForPagination("snapshots", this.pageOfListSnapshots, request);
176
+ listSnapshots = (request) => sdkClient.enrichForPagination("snapshots", this.pageOfListSnapshots, request);
170
177
  /**
171
178
  * Get a snapshot. Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response.
172
179
  *
@@ -1,14 +1,17 @@
1
+ import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
1
2
  import { API as ParentAPI } from '@scaleway/sdk-client';
2
- import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client';
3
- import type { CreateSnapshotRequest, CreateVolumeRequest, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
3
+ import type { CreateSnapshotRequest, CreateVolumeRequest, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
4
4
  /**
5
5
  * Block Storage API.
6
6
 
7
7
  This API allows you to manage your Block Storage volumes.
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
  protected pageOfListVolumeTypes: (request?: Readonly<ListVolumeTypesRequest>) => Promise<ListVolumeTypesResponse>;
13
16
  /**
14
17
  * List volume types. List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order.
@@ -20,14 +23,14 @@ export declare class API extends ParentAPI {
20
23
  all: () => Promise<import("./types.gen").VolumeType[]>;
21
24
  [Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen").VolumeType[], void, void>;
22
25
  };
23
- protected pageOfListVolumes: (request?: Readonly<ListVolumesRequest>) => Promise<ListVolumesResponse>;
26
+ protected pageOfListVolumes: (request: Readonly<ListVolumesRequest>) => Promise<ListVolumesResponse>;
24
27
  /**
25
28
  * List volumes. List all existing volumes in a specified zone. By default, the volumes listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
26
29
  *
27
30
  * @param request - The request {@link ListVolumesRequest}
28
31
  * @returns A Promise of ListVolumesResponse
29
32
  */
30
- listVolumes: (request?: Readonly<ListVolumesRequest>) => Promise<ListVolumesResponse> & {
33
+ listVolumes: (request: Readonly<ListVolumesRequest>) => Promise<ListVolumesResponse> & {
31
34
  all: () => Promise<Volume[]>;
32
35
  [Symbol.asyncIterator]: () => AsyncGenerator<Volume[], void, void>;
33
36
  };
@@ -68,14 +71,14 @@ export declare class API extends ParentAPI {
68
71
  * @returns A Promise of Volume
69
72
  */
70
73
  updateVolume: (request: Readonly<UpdateVolumeRequest>) => Promise<Volume>;
71
- protected pageOfListSnapshots: (request?: Readonly<ListSnapshotsRequest>) => Promise<ListSnapshotsResponse>;
74
+ protected pageOfListSnapshots: (request: Readonly<ListSnapshotsRequest>) => Promise<ListSnapshotsResponse>;
72
75
  /**
73
76
  * List all snapshots. List all available snapshots in a specified zone. By default, the snapshots listed are ordered by creation date in ascending order. This can be modified via the `order_by` field.
74
77
  *
75
78
  * @param request - The request {@link ListSnapshotsRequest}
76
79
  * @returns A Promise of ListSnapshotsResponse
77
80
  */
78
- listSnapshots: (request?: Readonly<ListSnapshotsRequest>) => Promise<ListSnapshotsResponse> & {
81
+ listSnapshots: (request: Readonly<ListSnapshotsRequest>) => Promise<ListSnapshotsResponse> & {
79
82
  all: () => Promise<Snapshot[]>;
80
83
  [Symbol.asyncIterator]: () => AsyncGenerator<Snapshot[], void, void>;
81
84
  };
@@ -1,22 +1,27 @@
1
- import { API as API$1, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
1
+ import { API as API$1, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
2
2
  import { VOLUME_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalVolume, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalSnapshot, marshalCreateSnapshotRequest, marshalImportSnapshotFromObjectStorageRequest, marshalExportSnapshotToObjectStorageRequest, marshalUpdateSnapshotRequest } 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 = [
10
- "fr-par-1",
11
- "fr-par-2",
12
- "fr-par-3",
13
- "nl-ams-1",
14
- "nl-ams-2",
15
- "nl-ams-3",
16
- "pl-waw-1",
17
- "pl-waw-2",
18
- "pl-waw-3"
19
- ];
8
+ /**
9
+ * Locality of this API.
10
+ * type ∈ {'zone','region','global','unspecified'}
11
+ */
12
+ static LOCALITY = toApiLocality({
13
+ zones: [
14
+ "fr-par-1",
15
+ "fr-par-2",
16
+ "fr-par-3",
17
+ "nl-ams-1",
18
+ "nl-ams-2",
19
+ "nl-ams-3",
20
+ "pl-waw-1",
21
+ "pl-waw-2",
22
+ "pl-waw-3"
23
+ ]
24
+ });
20
25
  pageOfListVolumeTypes = (request = {}) => this.client.fetch(
21
26
  {
22
27
  method: "GET",
@@ -38,11 +43,12 @@ class API extends API$1 {
38
43
  * @returns A Promise of ListVolumeTypesResponse
39
44
  */
40
45
  listVolumeTypes = (request = {}) => enrichForPagination("volumeTypes", this.pageOfListVolumeTypes, request);
41
- pageOfListVolumes = (request = {}) => this.client.fetch(
46
+ pageOfListVolumes = (request) => this.client.fetch(
42
47
  {
43
48
  method: "GET",
44
49
  path: `/block/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes`,
45
50
  urlParams: urlParams(
51
+ ["include_deleted", request.includeDeleted],
46
52
  ["name", request.name],
47
53
  ["order_by", request.orderBy],
48
54
  ["organization_id", request.organizationId],
@@ -64,7 +70,7 @@ class API extends API$1 {
64
70
  * @param request - The request {@link ListVolumesRequest}
65
71
  * @returns A Promise of ListVolumesResponse
66
72
  */
67
- listVolumes = (request = {}) => enrichForPagination("volumes", this.pageOfListVolumes, request);
73
+ listVolumes = (request) => enrichForPagination("volumes", this.pageOfListVolumes, request);
68
74
  /**
69
75
  * Create a volume. To create a new volume from scratch, you must specify `from_empty` and the `size`.
70
76
  To create a volume from an existing snapshot, specify `from_snapshot` and the `snapshot_id` in the request payload instead, size is optional and can be specified if you need to extend the original size. The volume will take on the same volume class and underlying IOPS limitations as the original snapshot.
@@ -138,11 +144,12 @@ class API extends API$1 {
138
144
  },
139
145
  unmarshalVolume
140
146
  );
141
- pageOfListSnapshots = (request = {}) => this.client.fetch(
147
+ pageOfListSnapshots = (request) => this.client.fetch(
142
148
  {
143
149
  method: "GET",
144
150
  path: `/block/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots`,
145
151
  urlParams: urlParams(
152
+ ["include_deleted", request.includeDeleted],
146
153
  ["name", request.name],
147
154
  ["order_by", request.orderBy],
148
155
  ["organization_id", request.organizationId],
@@ -164,7 +171,7 @@ class API extends API$1 {
164
171
  * @param request - The request {@link ListSnapshotsRequest}
165
172
  * @returns A Promise of ListSnapshotsResponse
166
173
  */
167
- listSnapshots = (request = {}) => enrichForPagination("snapshots", this.pageOfListSnapshots, request);
174
+ listSnapshots = (request) => enrichForPagination("snapshots", this.pageOfListSnapshots, request);
168
175
  /**
169
176
  * Get a snapshot. Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response.
170
177
  *
@@ -1,5 +1,5 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
3
  export * from './marshalling.gen';
4
- export type { CreateSnapshotRequest, CreateVolumeRequest, CreateVolumeRequestFromEmpty, CreateVolumeRequestFromSnapshot, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, 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
+ export type { CreateSnapshotRequest, CreateVolumeRequest, CreateVolumeRequestFromEmpty, CreateVolumeRequestFromSnapshot, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListVolumesRequest, ListVolumesRequestOrderBy, ListVolumesResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, Reference, ReferenceStatus, ReferenceType, Snapshot, SnapshotParentVolume, SnapshotStatus, StorageClass, UpdateSnapshotRequest, UpdateVolumeRequest, Volume, VolumeSpecifications, VolumeStatus, VolumeType, } from './types.gen';
5
5
  export * as ValidationRules from './validation-rules.gen';
@@ -1,5 +1,5 @@
1
1
  import type { DefaultValues } from '@scaleway/sdk-client';
2
- import type { CreateSnapshotRequest, CreateVolumeRequest, ExportSnapshotToObjectStorageRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsResponse, ListVolumeTypesResponse, ListVolumesResponse, Reference, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
2
+ import type { CreateSnapshotRequest, CreateVolumeRequest, ExportSnapshotToObjectStorageRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsResponse, ListVolumesResponse, ListVolumeTypesResponse, 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;
@@ -1,5 +1,5 @@
1
1
  import randomName from "@scaleway/random-name";
2
- import { resolveOneOf, isJSONObject, unmarshalDate, unmarshalArrayOfObject, unmarshalMoney } from "@scaleway/sdk-client";
2
+ import { resolveOneOf, isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
3
3
  const unmarshalReference = (data) => {
4
4
  if (!isJSONObject(data)) {
5
5
  throw new TypeError(
@@ -386,6 +386,10 @@ export type ListSnapshotsRequest = {
386
386
  * Filter by tags. Only snapshots with one or more matching tags will be returned.
387
387
  */
388
388
  tags?: string[];
389
+ /**
390
+ * Display deleted snapshots not erased yet.
391
+ */
392
+ includeDeleted: boolean;
389
393
  };
390
394
  export interface ListSnapshotsResponse {
391
395
  /**
@@ -458,6 +462,10 @@ export type ListVolumesRequest = {
458
462
  * Filter by tags. Only volumes with one or more matching tags will be returned.
459
463
  */
460
464
  tags?: string[];
465
+ /**
466
+ * Display deleted volumes not erased yet.
467
+ */
468
+ includeDeleted: boolean;
461
469
  };
462
470
  export interface ListVolumesResponse {
463
471
  /**
@@ -7,18 +7,23 @@ 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 = [
12
- "fr-par-1",
13
- "fr-par-2",
14
- "fr-par-3",
15
- "nl-ams-1",
16
- "nl-ams-2",
17
- "nl-ams-3",
18
- "pl-waw-1",
19
- "pl-waw-2",
20
- "pl-waw-3"
21
- ];
10
+ /**
11
+ * Locality of this API.
12
+ * type ∈ {'zone','region','global','unspecified'}
13
+ */
14
+ static LOCALITY = sdkClient.toApiLocality({
15
+ zones: [
16
+ "fr-par-1",
17
+ "fr-par-2",
18
+ "fr-par-3",
19
+ "nl-ams-1",
20
+ "nl-ams-2",
21
+ "nl-ams-3",
22
+ "pl-waw-1",
23
+ "pl-waw-2",
24
+ "pl-waw-3"
25
+ ]
26
+ });
22
27
  pageOfListVolumeTypes = (request = {}) => this.client.fetch(
23
28
  {
24
29
  method: "GET",
@@ -1,14 +1,17 @@
1
+ import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
1
2
  import { API as ParentAPI } from '@scaleway/sdk-client';
2
- import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client';
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';
3
+ import type { CreateSnapshotRequest, CreateVolumeRequest, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumesRequest, ListVolumesResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
4
4
  /**
5
5
  * Block Storage API.
6
6
 
7
7
  This API allows you to manage your Block Storage volumes.
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
  protected pageOfListVolumeTypes: (request?: Readonly<ListVolumeTypesRequest>) => Promise<ListVolumeTypesResponse>;
13
16
  /**
14
17
  * List volume types. List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order.
@@ -1,22 +1,27 @@
1
- import { API as API$1, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
1
+ import { API as API$1, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
2
2
  import { VOLUME_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalVolume, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalSnapshot, marshalCreateSnapshotRequest, marshalImportSnapshotFromS3Request, marshalImportSnapshotFromObjectStorageRequest, marshalExportSnapshotToObjectStorageRequest, marshalUpdateSnapshotRequest } 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 = [
10
- "fr-par-1",
11
- "fr-par-2",
12
- "fr-par-3",
13
- "nl-ams-1",
14
- "nl-ams-2",
15
- "nl-ams-3",
16
- "pl-waw-1",
17
- "pl-waw-2",
18
- "pl-waw-3"
19
- ];
8
+ /**
9
+ * Locality of this API.
10
+ * type ∈ {'zone','region','global','unspecified'}
11
+ */
12
+ static LOCALITY = toApiLocality({
13
+ zones: [
14
+ "fr-par-1",
15
+ "fr-par-2",
16
+ "fr-par-3",
17
+ "nl-ams-1",
18
+ "nl-ams-2",
19
+ "nl-ams-3",
20
+ "pl-waw-1",
21
+ "pl-waw-2",
22
+ "pl-waw-3"
23
+ ]
24
+ });
20
25
  pageOfListVolumeTypes = (request = {}) => this.client.fetch(
21
26
  {
22
27
  method: "GET",
@@ -1,5 +1,5 @@
1
1
  export { API } from './api.gen';
2
2
  export * from './content.gen';
3
3
  export * from './marshalling.gen';
4
- 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
+ export type { CreateSnapshotRequest, CreateVolumeRequest, CreateVolumeRequestFromEmpty, CreateVolumeRequestFromSnapshot, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListVolumesRequest, ListVolumesRequestOrderBy, ListVolumesResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, Reference, ReferenceStatus, ReferenceType, Snapshot, SnapshotParentVolume, SnapshotStatus, StorageClass, UpdateSnapshotRequest, UpdateVolumeRequest, Volume, VolumeSpecifications, VolumeStatus, VolumeType, } from './types.gen';
5
5
  export * as ValidationRules from './validation-rules.gen';
@@ -1,5 +1,5 @@
1
1
  import type { DefaultValues } from '@scaleway/sdk-client';
2
- import type { CreateSnapshotRequest, CreateVolumeRequest, ExportSnapshotToObjectStorageRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsResponse, ListVolumeTypesResponse, ListVolumesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
2
+ import type { CreateSnapshotRequest, CreateVolumeRequest, ExportSnapshotToObjectStorageRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsResponse, ListVolumesResponse, ListVolumeTypesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from './types.gen';
3
3
  export declare const unmarshalSnapshot: (data: unknown) => Snapshot;
4
4
  export declare const unmarshalVolume: (data: unknown) => Volume;
5
5
  export declare const unmarshalListSnapshotsResponse: (data: unknown) => ListSnapshotsResponse;
@@ -1,5 +1,5 @@
1
1
  import randomName from "@scaleway/random-name";
2
- import { resolveOneOf, isJSONObject, unmarshalDate, unmarshalArrayOfObject, unmarshalMoney } from "@scaleway/sdk-client";
2
+ import { resolveOneOf, isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
3
3
  const unmarshalReference = (data) => {
4
4
  if (!isJSONObject(data)) {
5
5
  throw new TypeError(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-block",
3
- "version": "1.0.4",
3
+ "version": "1.1.0",
4
4
  "description": "Scaleway SDK block",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -26,17 +26,17 @@
26
26
  "directory": "packages_generated/block"
27
27
  },
28
28
  "engines": {
29
- "node": ">=20.19.1"
29
+ "node": ">=20.19.4"
30
30
  },
31
31
  "dependencies": {
32
- "@scaleway/random-name": "5.1.1",
33
- "@scaleway/sdk-std": "1.0.4"
32
+ "@scaleway/random-name": "5.1.2",
33
+ "@scaleway/sdk-std": "1.0.6"
34
34
  },
35
35
  "peerDependencies": {
36
- "@scaleway/sdk-client": "^1.2.3"
36
+ "@scaleway/sdk-client": "^1.3.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@scaleway/sdk-client": "^1.2.3"
39
+ "@scaleway/sdk-client": "^1.3.1"
40
40
  },
41
41
  "scripts": {
42
42
  "package:check": "pnpm publint",