@scaleway/sdk 2.7.0 → 2.8.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.
|
@@ -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,
|
|
6
|
+
import { unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, marshalCreateVolumeRequest, unmarshalVolume, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalSnapshot, marshalCreateSnapshotRequest, marshalUpdateSnapshotRequest } from './marshalling.gen.js';
|
|
7
7
|
|
|
8
8
|
// This file was automatically generated. DO NOT EDIT.
|
|
9
9
|
// If you have any remark or suggestion do not hesitate to open an issue.
|
|
@@ -166,12 +166,6 @@ class API extends API$1 {
|
|
|
166
166
|
method: 'POST',
|
|
167
167
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
168
168
|
}, unmarshalSnapshot);
|
|
169
|
-
importSnapshotFromS3 = request => this.client.fetch({
|
|
170
|
-
body: JSON.stringify(marshalImportSnapshotFromS3Request(request, this.client.settings)),
|
|
171
|
-
headers: jsonContentHeaders,
|
|
172
|
-
method: 'POST',
|
|
173
|
-
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-s3`
|
|
174
|
-
}, unmarshalSnapshot);
|
|
175
169
|
|
|
176
170
|
/**
|
|
177
171
|
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
|
|
@@ -162,14 +162,6 @@ const marshalCreateVolumeRequest = (request, defaults) => ({
|
|
|
162
162
|
value: request.perfIops
|
|
163
163
|
}])
|
|
164
164
|
});
|
|
165
|
-
const marshalImportSnapshotFromS3Request = (request, defaults) => ({
|
|
166
|
-
bucket: request.bucket,
|
|
167
|
-
key: request.key,
|
|
168
|
-
name: request.name,
|
|
169
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
170
|
-
size: request.size,
|
|
171
|
-
tags: request.tags
|
|
172
|
-
});
|
|
173
165
|
const marshalUpdateSnapshotRequest = (request, defaults) => ({
|
|
174
166
|
name: request.name,
|
|
175
167
|
tags: request.tags
|
|
@@ -181,4 +173,4 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
|
181
173
|
tags: request.tags
|
|
182
174
|
});
|
|
183
175
|
|
|
184
|
-
export { marshalCreateSnapshotRequest, marshalCreateVolumeRequest,
|
|
176
|
+
export { marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalReference, unmarshalSnapshot, unmarshalVolume };
|
|
@@ -11,11 +11,6 @@ const CreateVolumeRequest = {
|
|
|
11
11
|
minLength: 1
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
|
-
const ImportSnapshotFromS3Request = {
|
|
15
|
-
name: {
|
|
16
|
-
minLength: 1
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
14
|
const ListSnapshotsRequest = {
|
|
20
15
|
page: {
|
|
21
16
|
greaterThan: 0
|
|
@@ -49,4 +44,4 @@ const Reference = {
|
|
|
49
44
|
}
|
|
50
45
|
};
|
|
51
46
|
|
|
52
|
-
export { CreateSnapshotRequest, CreateVolumeRequest,
|
|
47
|
+
export { CreateSnapshotRequest, CreateVolumeRequest, ListSnapshotsRequest, ListVolumeTypesRequest, ListVolumesRequest, Reference };
|
package/dist/index.cjs
CHANGED
|
@@ -497,7 +497,7 @@ const assertValidSettings = obj => {
|
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
499
|
|
|
500
|
-
const version = 'v2.
|
|
500
|
+
const version = 'v2.7.0';
|
|
501
501
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
502
502
|
|
|
503
503
|
const isBrowser = () =>
|
|
@@ -3980,14 +3980,6 @@ const marshalCreateVolumeRequest$2 = (request, defaults) => ({
|
|
|
3980
3980
|
value: request.perfIops
|
|
3981
3981
|
}])
|
|
3982
3982
|
});
|
|
3983
|
-
const marshalImportSnapshotFromS3Request = (request, defaults) => ({
|
|
3984
|
-
bucket: request.bucket,
|
|
3985
|
-
key: request.key,
|
|
3986
|
-
name: request.name,
|
|
3987
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
3988
|
-
size: request.size,
|
|
3989
|
-
tags: request.tags
|
|
3990
|
-
});
|
|
3991
3983
|
const marshalUpdateSnapshotRequest$3 = (request, defaults) => ({
|
|
3992
3984
|
name: request.name,
|
|
3993
3985
|
tags: request.tags
|
|
@@ -4160,12 +4152,6 @@ let API$r = class API extends API$w {
|
|
|
4160
4152
|
method: 'POST',
|
|
4161
4153
|
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots`
|
|
4162
4154
|
}, unmarshalSnapshot$3);
|
|
4163
|
-
importSnapshotFromS3 = request => this.client.fetch({
|
|
4164
|
-
body: JSON.stringify(marshalImportSnapshotFromS3Request(request, this.client.settings)),
|
|
4165
|
-
headers: jsonContentHeaders$q,
|
|
4166
|
-
method: 'POST',
|
|
4167
|
-
path: `/block/v1alpha1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-s3`
|
|
4168
|
-
}, unmarshalSnapshot$3);
|
|
4169
4155
|
|
|
4170
4156
|
/**
|
|
4171
4157
|
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
|
|
@@ -4205,11 +4191,6 @@ const CreateVolumeRequest = {
|
|
|
4205
4191
|
minLength: 1
|
|
4206
4192
|
}
|
|
4207
4193
|
};
|
|
4208
|
-
const ImportSnapshotFromS3Request = {
|
|
4209
|
-
name: {
|
|
4210
|
-
minLength: 1
|
|
4211
|
-
}
|
|
4212
|
-
};
|
|
4213
4194
|
const ListSnapshotsRequest = {
|
|
4214
4195
|
page: {
|
|
4215
4196
|
greaterThan: 0
|
|
@@ -4247,7 +4228,6 @@ var validationRules_gen$c = /*#__PURE__*/Object.freeze({
|
|
|
4247
4228
|
__proto__: null,
|
|
4248
4229
|
CreateSnapshotRequest: CreateSnapshotRequest,
|
|
4249
4230
|
CreateVolumeRequest: CreateVolumeRequest,
|
|
4250
|
-
ImportSnapshotFromS3Request: ImportSnapshotFromS3Request,
|
|
4251
4231
|
ListSnapshotsRequest: ListSnapshotsRequest,
|
|
4252
4232
|
ListVolumeTypesRequest: ListVolumeTypesRequest,
|
|
4253
4233
|
ListVolumesRequest: ListVolumesRequest,
|
package/dist/index.d.ts
CHANGED
|
@@ -3259,16 +3259,6 @@ type GetVolumeRequest$2 = {
|
|
|
3259
3259
|
/** UUID of the volume. */
|
|
3260
3260
|
volumeId: string;
|
|
3261
3261
|
};
|
|
3262
|
-
type ImportSnapshotFromS3Request$1 = {
|
|
3263
|
-
/** Zone to target. If none is passed will use default zone from the config. */
|
|
3264
|
-
zone?: Zone;
|
|
3265
|
-
bucket: string;
|
|
3266
|
-
key: string;
|
|
3267
|
-
name: string;
|
|
3268
|
-
projectId?: string;
|
|
3269
|
-
tags?: string[];
|
|
3270
|
-
size?: number;
|
|
3271
|
-
};
|
|
3272
3262
|
type ListSnapshotsRequest$4 = {
|
|
3273
3263
|
/** Zone to target. If none is passed will use default zone from the config. */
|
|
3274
3264
|
zone?: Zone;
|
|
@@ -3517,7 +3507,6 @@ declare class API$r extends API$w {
|
|
|
3517
3507
|
* @returns A Promise of Snapshot
|
|
3518
3508
|
*/
|
|
3519
3509
|
createSnapshot: (request: Readonly<CreateSnapshotRequest$4>) => Promise<Snapshot$3>;
|
|
3520
|
-
importSnapshotFromS3: (request: Readonly<ImportSnapshotFromS3Request$1>) => Promise<Snapshot$3>;
|
|
3521
3510
|
/**
|
|
3522
3511
|
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you
|
|
3523
3512
|
* want to delete. The snapshot must not be in use.
|
|
@@ -3551,11 +3540,6 @@ declare const CreateVolumeRequest$2: {
|
|
|
3551
3540
|
minLength: number;
|
|
3552
3541
|
};
|
|
3553
3542
|
};
|
|
3554
|
-
declare const ImportSnapshotFromS3Request: {
|
|
3555
|
-
name: {
|
|
3556
|
-
minLength: number;
|
|
3557
|
-
};
|
|
3558
|
-
};
|
|
3559
3543
|
declare const ListSnapshotsRequest$3: {
|
|
3560
3544
|
page: {
|
|
3561
3545
|
greaterThan: number;
|
|
@@ -3589,11 +3573,10 @@ declare const Reference: {
|
|
|
3589
3573
|
};
|
|
3590
3574
|
};
|
|
3591
3575
|
|
|
3592
|
-
declare const validationRules_gen$c_ImportSnapshotFromS3Request: typeof ImportSnapshotFromS3Request;
|
|
3593
3576
|
declare const validationRules_gen$c_ListVolumeTypesRequest: typeof ListVolumeTypesRequest;
|
|
3594
3577
|
declare const validationRules_gen$c_Reference: typeof Reference;
|
|
3595
3578
|
declare namespace validationRules_gen$c {
|
|
3596
|
-
export { CreateSnapshotRequest$3 as CreateSnapshotRequest, CreateVolumeRequest$2 as CreateVolumeRequest,
|
|
3579
|
+
export { CreateSnapshotRequest$3 as CreateSnapshotRequest, CreateVolumeRequest$2 as CreateVolumeRequest, ListSnapshotsRequest$3 as ListSnapshotsRequest, validationRules_gen$c_ListVolumeTypesRequest as ListVolumeTypesRequest, ListVolumesRequest$2 as ListVolumesRequest, validationRules_gen$c_Reference as Reference };
|
|
3597
3580
|
}
|
|
3598
3581
|
|
|
3599
3582
|
type index_gen$q_CreateVolumeRequestFromEmpty = CreateVolumeRequestFromEmpty;
|
|
@@ -3607,7 +3590,7 @@ type index_gen$q_SnapshotSummary = SnapshotSummary;
|
|
|
3607
3590
|
type index_gen$q_VolumeSpecifications = VolumeSpecifications;
|
|
3608
3591
|
type index_gen$q_VolumeStatus = VolumeStatus;
|
|
3609
3592
|
declare namespace index_gen$q {
|
|
3610
|
-
export { API$r as API, type CreateSnapshotRequest$4 as CreateSnapshotRequest, type CreateVolumeRequest$3 as CreateVolumeRequest, type index_gen$q_CreateVolumeRequestFromEmpty as CreateVolumeRequestFromEmpty, type index_gen$q_CreateVolumeRequestFromSnapshot as CreateVolumeRequestFromSnapshot, type DeleteSnapshotRequest$3 as DeleteSnapshotRequest, type DeleteVolumeRequest$2 as DeleteVolumeRequest, type GetSnapshotRequest$3 as GetSnapshotRequest, type GetVolumeRequest$2 as GetVolumeRequest, type
|
|
3593
|
+
export { API$r as API, type CreateSnapshotRequest$4 as CreateSnapshotRequest, type CreateVolumeRequest$3 as CreateVolumeRequest, type index_gen$q_CreateVolumeRequestFromEmpty as CreateVolumeRequestFromEmpty, type index_gen$q_CreateVolumeRequestFromSnapshot as CreateVolumeRequestFromSnapshot, type DeleteSnapshotRequest$3 as DeleteSnapshotRequest, type DeleteVolumeRequest$2 as DeleteVolumeRequest, type GetSnapshotRequest$3 as GetSnapshotRequest, type GetVolumeRequest$2 as GetVolumeRequest, type ListSnapshotsRequest$4 as ListSnapshotsRequest, type ListSnapshotsRequestOrderBy$2 as ListSnapshotsRequestOrderBy, type ListSnapshotsResponse$3 as ListSnapshotsResponse, type ListVolumeTypesRequest$1 as ListVolumeTypesRequest, type index_gen$q_ListVolumeTypesResponse as ListVolumeTypesResponse, type ListVolumesRequest$3 as ListVolumesRequest, type ListVolumesRequestOrderBy$1 as ListVolumesRequestOrderBy, type ListVolumesResponse$2 as ListVolumesResponse, index_gen$q_REFERENCE_TRANSIENT_STATUSES as REFERENCE_TRANSIENT_STATUSES, type Reference$1 as Reference, type index_gen$q_ReferenceStatus as ReferenceStatus, type index_gen$q_ReferenceType as ReferenceType, SNAPSHOT_TRANSIENT_STATUSES$3 as SNAPSHOT_TRANSIENT_STATUSES, type Snapshot$3 as Snapshot, type index_gen$q_SnapshotParentVolume as SnapshotParentVolume, type SnapshotStatus$2 as SnapshotStatus, type index_gen$q_SnapshotSummary as SnapshotSummary, type StorageClass$2 as StorageClass, type UpdateSnapshotRequest$3 as UpdateSnapshotRequest, type UpdateVolumeRequest$2 as UpdateVolumeRequest, VOLUME_TRANSIENT_STATUSES$1 as VOLUME_TRANSIENT_STATUSES, validationRules_gen$c as ValidationRules, type Volume$4 as Volume, type index_gen$q_VolumeSpecifications as VolumeSpecifications, type index_gen$q_VolumeStatus as VolumeStatus, type VolumeType$3 as VolumeType };
|
|
3611
3594
|
}
|
|
3612
3595
|
|
|
3613
3596
|
declare namespace index$t {
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bundledDependencies": [
|
|
36
36
|
"@scaleway/random-name"
|
|
37
37
|
],
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "d944d173d219eed8018c25517feef4ce3c330275"
|
|
39
39
|
}
|