@scaleway/sdk-block 2.21.0 → 2.22.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.
- package/dist/v1/api.gen.js +24 -6
- package/dist/v1alpha1/api.gen.js +28 -7
- package/package.json +4 -4
package/dist/v1/api.gen.js
CHANGED
|
@@ -28,7 +28,10 @@ var API$1 = class extends API {
|
|
|
28
28
|
this.listVolumes = (request, options) => enrichForPagination("volumes", this.pageOfListVolumes, request, options);
|
|
29
29
|
this.createVolume = (request = {}, options) => this.client.fetch({
|
|
30
30
|
body: JSON.stringify(marshalCreateVolumeRequest(request, this.client.settings)),
|
|
31
|
-
headers:
|
|
31
|
+
headers: {
|
|
32
|
+
...jsonContentHeaders,
|
|
33
|
+
...options?.headers
|
|
34
|
+
},
|
|
32
35
|
method: "POST",
|
|
33
36
|
path: `/block/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes`,
|
|
34
37
|
signal: options?.signal
|
|
@@ -46,7 +49,10 @@ var API$1 = class extends API {
|
|
|
46
49
|
});
|
|
47
50
|
this.updateVolume = (request, options) => this.client.fetch({
|
|
48
51
|
body: JSON.stringify(marshalUpdateVolumeRequest(request, this.client.settings)),
|
|
49
|
-
headers:
|
|
52
|
+
headers: {
|
|
53
|
+
...jsonContentHeaders,
|
|
54
|
+
...options?.headers
|
|
55
|
+
},
|
|
50
56
|
method: "PATCH",
|
|
51
57
|
path: `/block/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam("volumeId", request.volumeId)}`,
|
|
52
58
|
signal: options?.signal
|
|
@@ -66,21 +72,30 @@ var API$1 = class extends API {
|
|
|
66
72
|
this.waitForSnapshot = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))), this.getSnapshot, request, options);
|
|
67
73
|
this.createSnapshot = (request, options) => this.client.fetch({
|
|
68
74
|
body: JSON.stringify(marshalCreateSnapshotRequest(request, this.client.settings)),
|
|
69
|
-
headers:
|
|
75
|
+
headers: {
|
|
76
|
+
...jsonContentHeaders,
|
|
77
|
+
...options?.headers
|
|
78
|
+
},
|
|
70
79
|
method: "POST",
|
|
71
80
|
path: `/block/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots`,
|
|
72
81
|
signal: options?.signal
|
|
73
82
|
}, unmarshalSnapshot);
|
|
74
83
|
this.importSnapshotFromObjectStorage = (request, options) => this.client.fetch({
|
|
75
84
|
body: JSON.stringify(marshalImportSnapshotFromObjectStorageRequest(request, this.client.settings)),
|
|
76
|
-
headers:
|
|
85
|
+
headers: {
|
|
86
|
+
...jsonContentHeaders,
|
|
87
|
+
...options?.headers
|
|
88
|
+
},
|
|
77
89
|
method: "POST",
|
|
78
90
|
path: `/block/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-object-storage`,
|
|
79
91
|
signal: options?.signal
|
|
80
92
|
}, unmarshalSnapshot);
|
|
81
93
|
this.exportSnapshotToObjectStorage = (request, options) => this.client.fetch({
|
|
82
94
|
body: JSON.stringify(marshalExportSnapshotToObjectStorageRequest(request, this.client.settings)),
|
|
83
|
-
headers:
|
|
95
|
+
headers: {
|
|
96
|
+
...jsonContentHeaders,
|
|
97
|
+
...options?.headers
|
|
98
|
+
},
|
|
84
99
|
method: "POST",
|
|
85
100
|
path: `/block/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}/export-to-object-storage`,
|
|
86
101
|
signal: options?.signal
|
|
@@ -92,7 +107,10 @@ var API$1 = class extends API {
|
|
|
92
107
|
});
|
|
93
108
|
this.updateSnapshot = (request, options) => this.client.fetch({
|
|
94
109
|
body: JSON.stringify(marshalUpdateSnapshotRequest(request, this.client.settings)),
|
|
95
|
-
headers:
|
|
110
|
+
headers: {
|
|
111
|
+
...jsonContentHeaders,
|
|
112
|
+
...options?.headers
|
|
113
|
+
},
|
|
96
114
|
method: "PATCH",
|
|
97
115
|
path: `/block/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`,
|
|
98
116
|
signal: options?.signal
|
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -28,7 +28,10 @@ var API$1 = class extends API {
|
|
|
28
28
|
this.listVolumes = (request = {}, options) => enrichForPagination("volumes", this.pageOfListVolumes, request, options);
|
|
29
29
|
this.createVolume = (request = {}, options) => this.client.fetch({
|
|
30
30
|
body: JSON.stringify(marshalCreateVolumeRequest(request, this.client.settings)),
|
|
31
|
-
headers:
|
|
31
|
+
headers: {
|
|
32
|
+
...jsonContentHeaders,
|
|
33
|
+
...options?.headers
|
|
34
|
+
},
|
|
32
35
|
method: "POST",
|
|
33
36
|
path: `/block/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes`,
|
|
34
37
|
signal: options?.signal
|
|
@@ -46,7 +49,10 @@ var API$1 = class extends API {
|
|
|
46
49
|
});
|
|
47
50
|
this.updateVolume = (request, options) => this.client.fetch({
|
|
48
51
|
body: JSON.stringify(marshalUpdateVolumeRequest(request, this.client.settings)),
|
|
49
|
-
headers:
|
|
52
|
+
headers: {
|
|
53
|
+
...jsonContentHeaders,
|
|
54
|
+
...options?.headers
|
|
55
|
+
},
|
|
50
56
|
method: "PATCH",
|
|
51
57
|
path: `/block/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/volumes/${validatePathParam("volumeId", request.volumeId)}`,
|
|
52
58
|
signal: options?.signal
|
|
@@ -66,28 +72,40 @@ var API$1 = class extends API {
|
|
|
66
72
|
this.waitForSnapshot = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))), this.getSnapshot, request, options);
|
|
67
73
|
this.createSnapshot = (request, options) => this.client.fetch({
|
|
68
74
|
body: JSON.stringify(marshalCreateSnapshotRequest(request, this.client.settings)),
|
|
69
|
-
headers:
|
|
75
|
+
headers: {
|
|
76
|
+
...jsonContentHeaders,
|
|
77
|
+
...options?.headers
|
|
78
|
+
},
|
|
70
79
|
method: "POST",
|
|
71
80
|
path: `/block/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots`,
|
|
72
81
|
signal: options?.signal
|
|
73
82
|
}, unmarshalSnapshot);
|
|
74
83
|
this.importSnapshotFromS3 = (request, options) => this.client.fetch({
|
|
75
84
|
body: JSON.stringify(marshalImportSnapshotFromS3Request(request, this.client.settings)),
|
|
76
|
-
headers:
|
|
85
|
+
headers: {
|
|
86
|
+
...jsonContentHeaders,
|
|
87
|
+
...options?.headers
|
|
88
|
+
},
|
|
77
89
|
method: "POST",
|
|
78
90
|
path: `/block/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-s3`,
|
|
79
91
|
signal: options?.signal
|
|
80
92
|
}, unmarshalSnapshot);
|
|
81
93
|
this.importSnapshotFromObjectStorage = (request, options) => this.client.fetch({
|
|
82
94
|
body: JSON.stringify(marshalImportSnapshotFromObjectStorageRequest(request, this.client.settings)),
|
|
83
|
-
headers:
|
|
95
|
+
headers: {
|
|
96
|
+
...jsonContentHeaders,
|
|
97
|
+
...options?.headers
|
|
98
|
+
},
|
|
84
99
|
method: "POST",
|
|
85
100
|
path: `/block/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/import-from-object-storage`,
|
|
86
101
|
signal: options?.signal
|
|
87
102
|
}, unmarshalSnapshot);
|
|
88
103
|
this.exportSnapshotToObjectStorage = (request, options) => this.client.fetch({
|
|
89
104
|
body: JSON.stringify(marshalExportSnapshotToObjectStorageRequest(request, this.client.settings)),
|
|
90
|
-
headers:
|
|
105
|
+
headers: {
|
|
106
|
+
...jsonContentHeaders,
|
|
107
|
+
...options?.headers
|
|
108
|
+
},
|
|
91
109
|
method: "POST",
|
|
92
110
|
path: `/block/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}/export-to-object-storage`,
|
|
93
111
|
signal: options?.signal
|
|
@@ -99,7 +117,10 @@ var API$1 = class extends API {
|
|
|
99
117
|
});
|
|
100
118
|
this.updateSnapshot = (request, options) => this.client.fetch({
|
|
101
119
|
body: JSON.stringify(marshalUpdateSnapshotRequest(request, this.client.settings)),
|
|
102
|
-
headers:
|
|
120
|
+
headers: {
|
|
121
|
+
...jsonContentHeaders,
|
|
122
|
+
...options?.headers
|
|
123
|
+
},
|
|
103
124
|
method: "PATCH",
|
|
104
125
|
path: `/block/v1alpha1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/snapshots/${validatePathParam("snapshotId", request.snapshotId)}`,
|
|
105
126
|
signal: options?.signal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-block",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0",
|
|
4
4
|
"description": "Scaleway SDK block",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@scaleway/random-name": "6.0.2",
|
|
36
|
-
"@scaleway/sdk-std": "2.9.
|
|
36
|
+
"@scaleway/sdk-std": "2.9.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@repo/configs": "^0.1.1",
|
|
40
|
-
"@scaleway/sdk-client": "^2.
|
|
40
|
+
"@scaleway/sdk-client": "^2.16.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@scaleway/sdk-client": "^2.
|
|
43
|
+
"@scaleway/sdk-client": "^2.16.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"package:check": "pnpm publint",
|