@scaleway/sdk-block 2.4.0 → 2.5.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/marshalling.gen.js +3 -0
- package/dist/v1/types.gen.d.ts +12 -0
- package/package.json +1 -1
|
@@ -30,6 +30,7 @@ var unmarshalSnapshot = (data) => {
|
|
|
30
30
|
name: data.name,
|
|
31
31
|
parentVolume: data.parent_volume ? unmarshalSnapshotParentVolume(data.parent_volume) : void 0,
|
|
32
32
|
projectId: data.project_id,
|
|
33
|
+
public: data.public,
|
|
33
34
|
references: unmarshalArrayOfObject(data.references, unmarshalReference),
|
|
34
35
|
size: data.size,
|
|
35
36
|
status: data.status,
|
|
@@ -97,6 +98,7 @@ var unmarshalListVolumesResponse = (data) => {
|
|
|
97
98
|
var marshalCreateSnapshotRequest = (request, defaults) => ({
|
|
98
99
|
name: request.name || randomName("snp"),
|
|
99
100
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
101
|
+
public: request.public,
|
|
100
102
|
tags: request.tags,
|
|
101
103
|
volume_id: request.volumeId
|
|
102
104
|
});
|
|
@@ -135,6 +137,7 @@ var marshalImportSnapshotFromObjectStorageRequest = (request, defaults) => ({
|
|
|
135
137
|
});
|
|
136
138
|
var marshalUpdateSnapshotRequest = (request, defaults) => ({
|
|
137
139
|
name: request.name,
|
|
140
|
+
public: request.public,
|
|
138
141
|
tags: request.tags
|
|
139
142
|
});
|
|
140
143
|
var marshalUpdateVolumeRequest = (request, defaults) => ({
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -126,6 +126,10 @@ export interface Snapshot {
|
|
|
126
126
|
* Storage class of the snapshot.
|
|
127
127
|
*/
|
|
128
128
|
class: StorageClass;
|
|
129
|
+
/**
|
|
130
|
+
* True if the snapshot can be used by anyone to create a volume from.
|
|
131
|
+
*/
|
|
132
|
+
public: boolean;
|
|
129
133
|
}
|
|
130
134
|
export interface VolumeType {
|
|
131
135
|
/**
|
|
@@ -224,6 +228,10 @@ export type CreateSnapshotRequest = {
|
|
|
224
228
|
* List of tags assigned to the snapshot.
|
|
225
229
|
*/
|
|
226
230
|
tags?: string[];
|
|
231
|
+
/**
|
|
232
|
+
* Snapshots are private by default, public snapshots are mainly used to publish OS images.
|
|
233
|
+
*/
|
|
234
|
+
public: boolean;
|
|
227
235
|
};
|
|
228
236
|
export type CreateVolumeRequest = {
|
|
229
237
|
/**
|
|
@@ -502,6 +510,10 @@ export type UpdateSnapshotRequest = {
|
|
|
502
510
|
* List of tags assigned to the snapshot.
|
|
503
511
|
*/
|
|
504
512
|
tags?: string[];
|
|
513
|
+
/**
|
|
514
|
+
* Snapshots are private by default, public snapshots are mainly used to publish OS images.
|
|
515
|
+
*/
|
|
516
|
+
public?: boolean;
|
|
505
517
|
};
|
|
506
518
|
export type UpdateVolumeRequest = {
|
|
507
519
|
/**
|