@scaleway/sdk-block 1.3.0 → 2.1.1

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.
@@ -1,292 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const sdkClient = require("@scaleway/sdk-client");
4
- const content_gen = require("./content.gen.cjs");
5
- const marshalling_gen = require("./marshalling.gen.cjs");
6
- const jsonContentHeaders = {
7
- "Content-Type": "application/json; charset=utf-8"
8
- };
9
- class API extends sdkClient.API {
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
- });
27
- pageOfListVolumeTypes = (request = {}) => this.client.fetch(
28
- {
29
- method: "GET",
30
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volume-types`,
31
- urlParams: sdkClient.urlParams(
32
- ["page", request.page],
33
- [
34
- "page_size",
35
- request.pageSize ?? this.client.settings.defaultPageSize
36
- ]
37
- )
38
- },
39
- marshalling_gen.unmarshalListVolumeTypesResponse
40
- );
41
- /**
42
- * List volume types. List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order.
43
- *
44
- * @param request - The request {@link ListVolumeTypesRequest}
45
- * @returns A Promise of ListVolumeTypesResponse
46
- */
47
- listVolumeTypes = (request = {}) => sdkClient.enrichForPagination("volumeTypes", this.pageOfListVolumeTypes, request);
48
- pageOfListVolumes = (request) => this.client.fetch(
49
- {
50
- method: "GET",
51
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes`,
52
- urlParams: sdkClient.urlParams(
53
- ["include_deleted", request.includeDeleted],
54
- ["name", request.name],
55
- ["order_by", request.orderBy],
56
- ["organization_id", request.organizationId],
57
- ["page", request.page],
58
- [
59
- "page_size",
60
- request.pageSize ?? this.client.settings.defaultPageSize
61
- ],
62
- ["product_resource_id", request.productResourceId],
63
- ["project_id", request.projectId],
64
- ["tags", request.tags]
65
- )
66
- },
67
- marshalling_gen.unmarshalListVolumesResponse
68
- );
69
- /**
70
- * 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.
71
- *
72
- * @param request - The request {@link ListVolumesRequest}
73
- * @returns A Promise of ListVolumesResponse
74
- */
75
- listVolumes = (request) => sdkClient.enrichForPagination("volumes", this.pageOfListVolumes, request);
76
- /**
77
- * Create a volume. To create a new volume from scratch, you must specify `from_empty` and the `size`.
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.
79
- *
80
- * @param request - The request {@link CreateVolumeRequest}
81
- * @returns A Promise of Volume
82
- */
83
- createVolume = (request = {}) => this.client.fetch(
84
- {
85
- body: JSON.stringify(
86
- marshalling_gen.marshalCreateVolumeRequest(request, this.client.settings)
87
- ),
88
- headers: jsonContentHeaders,
89
- method: "POST",
90
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes`
91
- },
92
- marshalling_gen.unmarshalVolume
93
- );
94
- /**
95
- * Get a volume. Retrieve technical information about a specific volume. Details such as size, type, and status are returned in the response.
96
- *
97
- * @param request - The request {@link GetVolumeRequest}
98
- * @returns A Promise of Volume
99
- */
100
- getVolume = (request) => this.client.fetch(
101
- {
102
- method: "GET",
103
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${sdkClient.validatePathParam("volumeId", request.volumeId)}`
104
- },
105
- marshalling_gen.unmarshalVolume
106
- );
107
- /**
108
- * Waits for {@link Volume} to be in a final state.
109
- *
110
- * @param request - The request {@link GetVolumeRequest}
111
- * @param options - The waiting options
112
- * @returns A Promise of Volume
113
- */
114
- waitForVolume = (request, options) => sdkClient.waitForResource(
115
- options?.stop ?? ((res) => Promise.resolve(
116
- !content_gen.VOLUME_TRANSIENT_STATUSES.includes(res.status)
117
- )),
118
- this.getVolume,
119
- request,
120
- options
121
- );
122
- /**
123
- * Delete a detached volume. You must specify the `volume_id` of the volume you want to delete. The volume must not be in the `in_use` status.
124
- *
125
- * @param request - The request {@link DeleteVolumeRequest}
126
- */
127
- deleteVolume = (request) => this.client.fetch({
128
- method: "DELETE",
129
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${sdkClient.validatePathParam("volumeId", request.volumeId)}`
130
- });
131
- /**
132
- * Update a volume. Update the technical details of a volume, such as its name, tags, or its new size and `volume_type` (within the same Block Storage class).
133
- You can only resize a volume to a larger size. It is currently not possible to change your Block Storage Class.
134
- *
135
- * @param request - The request {@link UpdateVolumeRequest}
136
- * @returns A Promise of Volume
137
- */
138
- updateVolume = (request) => this.client.fetch(
139
- {
140
- body: JSON.stringify(
141
- marshalling_gen.marshalUpdateVolumeRequest(request, this.client.settings)
142
- ),
143
- headers: jsonContentHeaders,
144
- method: "PATCH",
145
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${sdkClient.validatePathParam("volumeId", request.volumeId)}`
146
- },
147
- marshalling_gen.unmarshalVolume
148
- );
149
- pageOfListSnapshots = (request) => this.client.fetch(
150
- {
151
- method: "GET",
152
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots`,
153
- urlParams: sdkClient.urlParams(
154
- ["include_deleted", request.includeDeleted],
155
- ["name", request.name],
156
- ["order_by", request.orderBy],
157
- ["organization_id", request.organizationId],
158
- ["page", request.page],
159
- [
160
- "page_size",
161
- request.pageSize ?? this.client.settings.defaultPageSize
162
- ],
163
- ["project_id", request.projectId],
164
- ["tags", request.tags],
165
- ["volume_id", request.volumeId]
166
- )
167
- },
168
- marshalling_gen.unmarshalListSnapshotsResponse
169
- );
170
- /**
171
- * 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.
172
- *
173
- * @param request - The request {@link ListSnapshotsRequest}
174
- * @returns A Promise of ListSnapshotsResponse
175
- */
176
- listSnapshots = (request) => sdkClient.enrichForPagination("snapshots", this.pageOfListSnapshots, request);
177
- /**
178
- * Get a snapshot. Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response.
179
- *
180
- * @param request - The request {@link GetSnapshotRequest}
181
- * @returns A Promise of Snapshot
182
- */
183
- getSnapshot = (request) => this.client.fetch(
184
- {
185
- method: "GET",
186
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${sdkClient.validatePathParam("snapshotId", request.snapshotId)}`
187
- },
188
- marshalling_gen.unmarshalSnapshot
189
- );
190
- /**
191
- * Waits for {@link Snapshot} to be in a final state.
192
- *
193
- * @param request - The request {@link GetSnapshotRequest}
194
- * @param options - The waiting options
195
- * @returns A Promise of Snapshot
196
- */
197
- waitForSnapshot = (request, options) => sdkClient.waitForResource(
198
- options?.stop ?? ((res) => Promise.resolve(
199
- !content_gen.SNAPSHOT_TRANSIENT_STATUSES.includes(res.status)
200
- )),
201
- this.getSnapshot,
202
- request,
203
- options
204
- );
205
- /**
206
- * Create a snapshot of a volume. To create a snapshot, the volume must be in the `in_use` or the `available` status.
207
- If your volume is in a transient state, you need to wait until the end of the current operation.
208
- *
209
- * @param request - The request {@link CreateSnapshotRequest}
210
- * @returns A Promise of Snapshot
211
- */
212
- createSnapshot = (request) => this.client.fetch(
213
- {
214
- body: JSON.stringify(
215
- marshalling_gen.marshalCreateSnapshotRequest(request, this.client.settings)
216
- ),
217
- headers: jsonContentHeaders,
218
- method: "POST",
219
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots`
220
- },
221
- marshalling_gen.unmarshalSnapshot
222
- );
223
- /**
224
- * Import a snapshot from a Scaleway Object Storage bucket. The bucket must contain a QCOW2 image.
225
- The bucket can be imported into any Availability Zone as long as it is in the same region as the bucket.
226
- *
227
- * @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
228
- * @returns A Promise of Snapshot
229
- */
230
- importSnapshotFromObjectStorage = (request) => this.client.fetch(
231
- {
232
- body: JSON.stringify(
233
- marshalling_gen.marshalImportSnapshotFromObjectStorageRequest(
234
- request,
235
- this.client.settings
236
- )
237
- ),
238
- headers: jsonContentHeaders,
239
- method: "POST",
240
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-object-storage`
241
- },
242
- marshalling_gen.unmarshalSnapshot
243
- );
244
- /**
245
- * Export a snapshot to a Scaleway Object Storage bucket. The snapshot is exported in QCOW2 format.
246
- The snapshot must not be in transient state.
247
- *
248
- * @param request - The request {@link ExportSnapshotToObjectStorageRequest}
249
- * @returns A Promise of Snapshot
250
- */
251
- exportSnapshotToObjectStorage = (request) => this.client.fetch(
252
- {
253
- body: JSON.stringify(
254
- marshalling_gen.marshalExportSnapshotToObjectStorageRequest(
255
- request,
256
- this.client.settings
257
- )
258
- ),
259
- headers: jsonContentHeaders,
260
- method: "POST",
261
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${sdkClient.validatePathParam("snapshotId", request.snapshotId)}/export-to-object-storage`
262
- },
263
- marshalling_gen.unmarshalSnapshot
264
- );
265
- /**
266
- * Delete a snapshot. You must specify the `snapshot_id` of the snapshot you want to delete. The snapshot must not be in use.
267
- *
268
- * @param request - The request {@link DeleteSnapshotRequest}
269
- */
270
- deleteSnapshot = (request) => this.client.fetch({
271
- method: "DELETE",
272
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${sdkClient.validatePathParam("snapshotId", request.snapshotId)}`
273
- });
274
- /**
275
- * Update a snapshot. Update the name or tags of the snapshot.
276
- *
277
- * @param request - The request {@link UpdateSnapshotRequest}
278
- * @returns A Promise of Snapshot
279
- */
280
- updateSnapshot = (request) => this.client.fetch(
281
- {
282
- body: JSON.stringify(
283
- marshalling_gen.marshalUpdateSnapshotRequest(request, this.client.settings)
284
- ),
285
- headers: jsonContentHeaders,
286
- method: "PATCH",
287
- path: `/block/v1/zones/${sdkClient.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${sdkClient.validatePathParam("snapshotId", request.snapshotId)}`
288
- },
289
- marshalling_gen.unmarshalSnapshot
290
- );
291
- }
292
- exports.API = API;
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const REFERENCE_TRANSIENT_STATUSES = [
4
- "attaching",
5
- "detaching",
6
- "creating"
7
- ];
8
- const SNAPSHOT_TRANSIENT_STATUSES = [
9
- "creating",
10
- "deleting",
11
- "exporting"
12
- ];
13
- const VOLUME_TRANSIENT_STATUSES = [
14
- "creating",
15
- "deleting",
16
- "resizing",
17
- "snapshotting",
18
- "updating"
19
- ];
20
- exports.REFERENCE_TRANSIENT_STATUSES = REFERENCE_TRANSIENT_STATUSES;
21
- exports.SNAPSHOT_TRANSIENT_STATUSES = SNAPSHOT_TRANSIENT_STATUSES;
22
- exports.VOLUME_TRANSIENT_STATUSES = VOLUME_TRANSIENT_STATUSES;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const api_gen = require("./api.gen.cjs");
4
- const content_gen = require("./content.gen.cjs");
5
- const marshalling_gen = require("./marshalling.gen.cjs");
6
- const validationRules_gen = require("./validation-rules.gen.cjs");
7
- exports.API = api_gen.API;
8
- exports.REFERENCE_TRANSIENT_STATUSES = content_gen.REFERENCE_TRANSIENT_STATUSES;
9
- exports.SNAPSHOT_TRANSIENT_STATUSES = content_gen.SNAPSHOT_TRANSIENT_STATUSES;
10
- exports.VOLUME_TRANSIENT_STATUSES = content_gen.VOLUME_TRANSIENT_STATUSES;
11
- exports.marshalCreateSnapshotRequest = marshalling_gen.marshalCreateSnapshotRequest;
12
- exports.marshalCreateVolumeRequest = marshalling_gen.marshalCreateVolumeRequest;
13
- exports.marshalExportSnapshotToObjectStorageRequest = marshalling_gen.marshalExportSnapshotToObjectStorageRequest;
14
- exports.marshalImportSnapshotFromObjectStorageRequest = marshalling_gen.marshalImportSnapshotFromObjectStorageRequest;
15
- exports.marshalUpdateSnapshotRequest = marshalling_gen.marshalUpdateSnapshotRequest;
16
- exports.marshalUpdateVolumeRequest = marshalling_gen.marshalUpdateVolumeRequest;
17
- exports.unmarshalListSnapshotsResponse = marshalling_gen.unmarshalListSnapshotsResponse;
18
- exports.unmarshalListVolumeTypesResponse = marshalling_gen.unmarshalListVolumeTypesResponse;
19
- exports.unmarshalListVolumesResponse = marshalling_gen.unmarshalListVolumesResponse;
20
- exports.unmarshalReference = marshalling_gen.unmarshalReference;
21
- exports.unmarshalSnapshot = marshalling_gen.unmarshalSnapshot;
22
- exports.unmarshalVolume = marshalling_gen.unmarshalVolume;
23
- exports.ValidationRules = validationRules_gen;
@@ -1,198 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const randomName = require("@scaleway/random-name");
4
- const sdkClient = require("@scaleway/sdk-client");
5
- const unmarshalReference = (data) => {
6
- if (!sdkClient.isJSONObject(data)) {
7
- throw new TypeError(
8
- `Unmarshalling the type 'Reference' failed as data isn't a dictionary.`
9
- );
10
- }
11
- return {
12
- createdAt: sdkClient.unmarshalDate(data.created_at),
13
- id: data.id,
14
- productResourceId: data.product_resource_id,
15
- productResourceType: data.product_resource_type,
16
- status: data.status,
17
- type: data.type
18
- };
19
- };
20
- const unmarshalSnapshotParentVolume = (data) => {
21
- if (!sdkClient.isJSONObject(data)) {
22
- throw new TypeError(
23
- `Unmarshalling the type 'SnapshotParentVolume' failed as data isn't a dictionary.`
24
- );
25
- }
26
- return {
27
- id: data.id,
28
- name: data.name,
29
- status: data.status,
30
- type: data.type
31
- };
32
- };
33
- const unmarshalSnapshot = (data) => {
34
- if (!sdkClient.isJSONObject(data)) {
35
- throw new TypeError(
36
- `Unmarshalling the type 'Snapshot' failed as data isn't a dictionary.`
37
- );
38
- }
39
- return {
40
- class: data.class,
41
- createdAt: sdkClient.unmarshalDate(data.created_at),
42
- id: data.id,
43
- name: data.name,
44
- parentVolume: data.parent_volume ? unmarshalSnapshotParentVolume(data.parent_volume) : void 0,
45
- projectId: data.project_id,
46
- references: sdkClient.unmarshalArrayOfObject(data.references, unmarshalReference),
47
- size: data.size,
48
- status: data.status,
49
- tags: data.tags,
50
- updatedAt: sdkClient.unmarshalDate(data.updated_at),
51
- zone: data.zone
52
- };
53
- };
54
- const unmarshalVolumeSpecifications = (data) => {
55
- if (!sdkClient.isJSONObject(data)) {
56
- throw new TypeError(
57
- `Unmarshalling the type 'VolumeSpecifications' failed as data isn't a dictionary.`
58
- );
59
- }
60
- return {
61
- class: data.class,
62
- perfIops: data.perf_iops
63
- };
64
- };
65
- const unmarshalVolume = (data) => {
66
- if (!sdkClient.isJSONObject(data)) {
67
- throw new TypeError(
68
- `Unmarshalling the type 'Volume' failed as data isn't a dictionary.`
69
- );
70
- }
71
- return {
72
- createdAt: sdkClient.unmarshalDate(data.created_at),
73
- id: data.id,
74
- lastDetachedAt: sdkClient.unmarshalDate(data.last_detached_at),
75
- name: data.name,
76
- parentSnapshotId: data.parent_snapshot_id,
77
- projectId: data.project_id,
78
- references: sdkClient.unmarshalArrayOfObject(data.references, unmarshalReference),
79
- size: data.size,
80
- specs: data.specs ? unmarshalVolumeSpecifications(data.specs) : void 0,
81
- status: data.status,
82
- tags: data.tags,
83
- type: data.type,
84
- updatedAt: sdkClient.unmarshalDate(data.updated_at),
85
- zone: data.zone
86
- };
87
- };
88
- const unmarshalListSnapshotsResponse = (data) => {
89
- if (!sdkClient.isJSONObject(data)) {
90
- throw new TypeError(
91
- `Unmarshalling the type 'ListSnapshotsResponse' failed as data isn't a dictionary.`
92
- );
93
- }
94
- return {
95
- snapshots: sdkClient.unmarshalArrayOfObject(data.snapshots, unmarshalSnapshot),
96
- totalCount: data.total_count
97
- };
98
- };
99
- const unmarshalVolumeType = (data) => {
100
- if (!sdkClient.isJSONObject(data)) {
101
- throw new TypeError(
102
- `Unmarshalling the type 'VolumeType' failed as data isn't a dictionary.`
103
- );
104
- }
105
- return {
106
- pricing: data.pricing ? sdkClient.unmarshalMoney(data.pricing) : void 0,
107
- snapshotPricing: data.snapshot_pricing ? sdkClient.unmarshalMoney(data.snapshot_pricing) : void 0,
108
- specs: data.specs ? unmarshalVolumeSpecifications(data.specs) : void 0,
109
- type: data.type
110
- };
111
- };
112
- const unmarshalListVolumeTypesResponse = (data) => {
113
- if (!sdkClient.isJSONObject(data)) {
114
- throw new TypeError(
115
- `Unmarshalling the type 'ListVolumeTypesResponse' failed as data isn't a dictionary.`
116
- );
117
- }
118
- return {
119
- totalCount: data.total_count,
120
- volumeTypes: sdkClient.unmarshalArrayOfObject(data.volume_types, unmarshalVolumeType)
121
- };
122
- };
123
- const unmarshalListVolumesResponse = (data) => {
124
- if (!sdkClient.isJSONObject(data)) {
125
- throw new TypeError(
126
- `Unmarshalling the type 'ListVolumesResponse' failed as data isn't a dictionary.`
127
- );
128
- }
129
- return {
130
- totalCount: data.total_count,
131
- volumes: sdkClient.unmarshalArrayOfObject(data.volumes, unmarshalVolume)
132
- };
133
- };
134
- const marshalCreateSnapshotRequest = (request, defaults) => ({
135
- name: request.name || randomName("snp"),
136
- project_id: request.projectId ?? defaults.defaultProjectId,
137
- tags: request.tags,
138
- volume_id: request.volumeId
139
- });
140
- const marshalCreateVolumeRequestFromEmpty = (request, defaults) => ({
141
- size: request.size
142
- });
143
- const marshalCreateVolumeRequestFromSnapshot = (request, defaults) => ({
144
- size: request.size,
145
- snapshot_id: request.snapshotId
146
- });
147
- const marshalCreateVolumeRequest = (request, defaults) => ({
148
- name: request.name || randomName("vol"),
149
- project_id: request.projectId ?? defaults.defaultProjectId,
150
- tags: request.tags,
151
- ...sdkClient.resolveOneOf([
152
- {
153
- param: "from_empty",
154
- value: request.fromEmpty !== void 0 ? marshalCreateVolumeRequestFromEmpty(request.fromEmpty) : void 0
155
- },
156
- {
157
- param: "from_snapshot",
158
- value: request.fromSnapshot !== void 0 ? marshalCreateVolumeRequestFromSnapshot(
159
- request.fromSnapshot
160
- ) : void 0
161
- }
162
- ]),
163
- ...sdkClient.resolveOneOf([{ param: "perf_iops", value: request.perfIops }])
164
- });
165
- const marshalExportSnapshotToObjectStorageRequest = (request, defaults) => ({
166
- bucket: request.bucket,
167
- key: request.key
168
- });
169
- const marshalImportSnapshotFromObjectStorageRequest = (request, defaults) => ({
170
- bucket: request.bucket,
171
- key: request.key,
172
- name: request.name,
173
- project_id: request.projectId ?? defaults.defaultProjectId,
174
- size: request.size,
175
- tags: request.tags
176
- });
177
- const marshalUpdateSnapshotRequest = (request, defaults) => ({
178
- name: request.name,
179
- tags: request.tags
180
- });
181
- const marshalUpdateVolumeRequest = (request, defaults) => ({
182
- name: request.name,
183
- perf_iops: request.perfIops,
184
- size: request.size,
185
- tags: request.tags
186
- });
187
- exports.marshalCreateSnapshotRequest = marshalCreateSnapshotRequest;
188
- exports.marshalCreateVolumeRequest = marshalCreateVolumeRequest;
189
- exports.marshalExportSnapshotToObjectStorageRequest = marshalExportSnapshotToObjectStorageRequest;
190
- exports.marshalImportSnapshotFromObjectStorageRequest = marshalImportSnapshotFromObjectStorageRequest;
191
- exports.marshalUpdateSnapshotRequest = marshalUpdateSnapshotRequest;
192
- exports.marshalUpdateVolumeRequest = marshalUpdateVolumeRequest;
193
- exports.unmarshalListSnapshotsResponse = unmarshalListSnapshotsResponse;
194
- exports.unmarshalListVolumeTypesResponse = unmarshalListVolumeTypesResponse;
195
- exports.unmarshalListVolumesResponse = unmarshalListVolumesResponse;
196
- exports.unmarshalReference = unmarshalReference;
197
- exports.unmarshalSnapshot = unmarshalSnapshot;
198
- exports.unmarshalVolume = unmarshalVolume;
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const CreateSnapshotRequest = {
4
- name: {
5
- minLength: 1
6
- }
7
- };
8
- const CreateVolumeRequest = {
9
- name: {
10
- minLength: 1
11
- }
12
- };
13
- const ImportSnapshotFromObjectStorageRequest = {
14
- name: {
15
- minLength: 1
16
- }
17
- };
18
- const ListSnapshotsRequest = {
19
- page: {
20
- greaterThan: 0
21
- },
22
- pageSize: {
23
- greaterThan: 0,
24
- lessThanOrEqual: 100
25
- }
26
- };
27
- const ListVolumeTypesRequest = {
28
- page: {
29
- greaterThan: 0
30
- },
31
- pageSize: {
32
- greaterThan: 0,
33
- lessThanOrEqual: 100
34
- }
35
- };
36
- const ListVolumesRequest = {
37
- page: {
38
- greaterThan: 0
39
- },
40
- pageSize: {
41
- greaterThan: 0,
42
- lessThanOrEqual: 100
43
- }
44
- };
45
- const Reference = {
46
- productResourceType: {
47
- minLength: 1
48
- }
49
- };
50
- exports.CreateSnapshotRequest = CreateSnapshotRequest;
51
- exports.CreateVolumeRequest = CreateVolumeRequest;
52
- exports.ImportSnapshotFromObjectStorageRequest = ImportSnapshotFromObjectStorageRequest;
53
- exports.ListSnapshotsRequest = ListSnapshotsRequest;
54
- exports.ListVolumeTypesRequest = ListVolumeTypesRequest;
55
- exports.ListVolumesRequest = ListVolumesRequest;
56
- exports.Reference = Reference;