@scaleway/sdk-block 2.16.1 → 2.18.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/LICENSE +191 -0
- package/dist/_virtual/_rolldown/runtime.js +11 -6
- package/dist/index.gen.d.ts +3 -6
- package/dist/index.gen.js +2 -1
- package/dist/metadata.gen.d.ts +7 -5
- package/dist/metadata.gen.js +2 -1
- package/dist/v1/api.gen.d.ts +103 -101
- package/dist/v1/api.gen.js +5 -3
- package/dist/v1/constants.gen.d.ts +3 -1
- package/dist/v1/constants.gen.js +2 -1
- package/dist/v1/content.gen.d.ts +3 -1
- package/dist/v1/content.gen.js +2 -1
- package/dist/v1/index.gen.d.ts +11 -6
- package/dist/v1/index.gen.js +3 -1
- package/dist/v1/marshalling.gen.d.ts +4 -2
- package/dist/v1/marshalling.gen.js +3 -1
- package/dist/v1/metadata.gen.d.ts +67 -65
- package/dist/v1/metadata.gen.js +2 -1
- package/dist/v1/types.gen.d.ts +515 -513
- package/dist/v1/validation-rules.gen.d.ts +38 -33
- package/dist/v1/validation-rules.gen.js +3 -1
- package/dist/v1alpha1/api.gen.d.ts +105 -103
- package/dist/v1alpha1/api.gen.js +5 -3
- package/dist/v1alpha1/constants.gen.d.ts +3 -1
- package/dist/v1alpha1/constants.gen.js +2 -1
- package/dist/v1alpha1/content.gen.d.ts +3 -1
- package/dist/v1alpha1/content.gen.js +2 -1
- package/dist/v1alpha1/index.gen.d.ts +11 -6
- package/dist/v1alpha1/index.gen.js +3 -1
- package/dist/v1alpha1/marshalling.gen.d.ts +4 -2
- package/dist/v1alpha1/marshalling.gen.js +3 -1
- package/dist/v1alpha1/metadata.gen.d.ts +67 -65
- package/dist/v1alpha1/metadata.gen.js +2 -1
- package/dist/v1alpha1/types.gen.d.ts +487 -485
- package/dist/v1alpha1/validation-rules.gen.d.ts +41 -36
- package/dist/v1alpha1/validation-rules.gen.js +3 -1
- package/package.json +5 -7
- package/dist/.vite/license.md +0 -3
- package/dist/v1/types.gen.js +0 -0
- package/dist/v1alpha1/types.gen.js +0 -0
|
@@ -1,47 +1,52 @@
|
|
|
1
|
+
declare namespace validation_rules_gen_d_exports {
|
|
2
|
+
export { CreateSnapshotRequest, CreateVolumeRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsRequest, ListVolumeTypesRequest, ListVolumesRequest, Reference };
|
|
3
|
+
}
|
|
1
4
|
export declare const CreateSnapshotRequest: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
+
name: {
|
|
6
|
+
minLength: number;
|
|
7
|
+
};
|
|
5
8
|
};
|
|
6
9
|
export declare const CreateVolumeRequest: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
name: {
|
|
11
|
+
minLength: number;
|
|
12
|
+
};
|
|
10
13
|
};
|
|
11
14
|
export declare const ImportSnapshotFromObjectStorageRequest: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
name: {
|
|
16
|
+
minLength: number;
|
|
17
|
+
};
|
|
15
18
|
};
|
|
16
19
|
export declare const ListSnapshotsRequest: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
page: {
|
|
21
|
+
greaterThan: number;
|
|
22
|
+
};
|
|
23
|
+
pageSize: {
|
|
24
|
+
greaterThan: number;
|
|
25
|
+
lessThanOrEqual: number;
|
|
26
|
+
};
|
|
24
27
|
};
|
|
25
28
|
export declare const ListVolumeTypesRequest: {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
page: {
|
|
30
|
+
greaterThan: number;
|
|
31
|
+
};
|
|
32
|
+
pageSize: {
|
|
33
|
+
greaterThan: number;
|
|
34
|
+
lessThanOrEqual: number;
|
|
35
|
+
};
|
|
33
36
|
};
|
|
34
37
|
export declare const ListVolumesRequest: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
page: {
|
|
39
|
+
greaterThan: number;
|
|
40
|
+
};
|
|
41
|
+
pageSize: {
|
|
42
|
+
greaterThan: number;
|
|
43
|
+
lessThanOrEqual: number;
|
|
44
|
+
};
|
|
42
45
|
};
|
|
43
46
|
export declare const Reference: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
productResourceType: {
|
|
48
|
+
minLength: number;
|
|
49
|
+
};
|
|
47
50
|
};
|
|
51
|
+
//#endregion
|
|
52
|
+
export { validation_rules_gen_d_exports };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
|
|
2
3
|
//#region src/v1/validation-rules.gen.ts
|
|
3
4
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
4
5
|
CreateSnapshotRequest: () => CreateSnapshotRequest,
|
|
@@ -34,5 +35,6 @@ const ListVolumesRequest = {
|
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
37
|
const Reference = { productResourceType: { minLength: 1 } };
|
|
38
|
+
|
|
37
39
|
//#endregion
|
|
38
|
-
export { CreateSnapshotRequest, CreateVolumeRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsRequest, ListVolumeTypesRequest, ListVolumesRequest, Reference, validation_rules_gen_exports };
|
|
40
|
+
export { CreateSnapshotRequest, CreateVolumeRequest, ImportSnapshotFromObjectStorageRequest, ListSnapshotsRequest, ListVolumeTypesRequest, ListVolumesRequest, Reference, validation_rules_gen_exports };
|
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { CreateSnapshotRequest, CreateVolumeRequest, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsRequest, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume, VolumeType } from "./types.gen.js";
|
|
2
|
+
import { API, ApiLocality, WaitForOptions } from "@scaleway/sdk-client";
|
|
3
|
+
//#region src/v1alpha1/api.gen.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Block Storage API.
|
|
6
6
|
|
|
7
7
|
This API allows you to manage your Block Storage volumes.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
9
|
+
declare class API$1 extends API {
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static readonly LOCALITY: ApiLocality;
|
|
15
|
+
protected pageOfListVolumeTypes: (request?: Readonly<ListVolumeTypesRequest>) => Promise<ListVolumeTypesResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* List volume types. List all available volume types in a specified zone. The volume types listed are ordered by name in ascending order.
|
|
18
|
+
*
|
|
19
|
+
* @param request - The request {@link ListVolumeTypesRequest}
|
|
20
|
+
* @returns A Promise of ListVolumeTypesResponse
|
|
21
|
+
*/
|
|
22
|
+
listVolumeTypes: (request?: Readonly<ListVolumeTypesRequest>) => Promise<ListVolumeTypesResponse> & {
|
|
23
|
+
all: () => Promise<VolumeType[]>;
|
|
24
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<VolumeType[], void, void>;
|
|
25
|
+
};
|
|
26
|
+
protected pageOfListVolumes: (request?: Readonly<ListVolumesRequest>) => Promise<ListVolumesResponse>;
|
|
27
|
+
/**
|
|
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.
|
|
29
|
+
*
|
|
30
|
+
* @param request - The request {@link ListVolumesRequest}
|
|
31
|
+
* @returns A Promise of ListVolumesResponse
|
|
32
|
+
*/
|
|
33
|
+
listVolumes: (request?: Readonly<ListVolumesRequest>) => Promise<ListVolumesResponse> & {
|
|
34
|
+
all: () => Promise<Volume[]>;
|
|
35
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Volume[], void, void>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
38
|
* Create a volume. To create a new volume from scratch, you must specify `from_empty` and the `size`.
|
|
39
39
|
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.
|
|
40
40
|
*
|
|
41
41
|
* @param request - The request {@link CreateVolumeRequest}
|
|
42
42
|
* @returns A Promise of Volume
|
|
43
43
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
44
|
+
createVolume: (request?: Readonly<CreateVolumeRequest>) => Promise<Volume>;
|
|
45
|
+
/**
|
|
46
|
+
* Get a volume. Retrieve technical information about a specific volume. Details such as size, type, and status are returned in the response.
|
|
47
|
+
*
|
|
48
|
+
* @param request - The request {@link GetVolumeRequest}
|
|
49
|
+
* @returns A Promise of Volume
|
|
50
|
+
*/
|
|
51
|
+
getVolume: (request: Readonly<GetVolumeRequest>) => Promise<Volume>;
|
|
52
|
+
/**
|
|
53
|
+
* Waits for {@link Volume} to be in a final state.
|
|
54
|
+
*
|
|
55
|
+
* @param request - The request {@link GetVolumeRequest}
|
|
56
|
+
* @param options - The waiting options
|
|
57
|
+
* @returns A Promise of Volume
|
|
58
|
+
*/
|
|
59
|
+
waitForVolume: (request: Readonly<GetVolumeRequest>, options?: Readonly<WaitForOptions<Volume>>) => Promise<Volume>;
|
|
60
|
+
/**
|
|
61
|
+
* 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.
|
|
62
|
+
*
|
|
63
|
+
* @param request - The request {@link DeleteVolumeRequest}
|
|
64
|
+
*/
|
|
65
|
+
deleteVolume: (request: Readonly<DeleteVolumeRequest>) => Promise<void>;
|
|
66
|
+
/**
|
|
67
67
|
* 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).
|
|
68
68
|
You can only resize a volume to a larger size. It is currently not possible to change your Block Storage Class.
|
|
69
69
|
*
|
|
70
70
|
* @param request - The request {@link UpdateVolumeRequest}
|
|
71
71
|
* @returns A Promise of Volume
|
|
72
72
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
73
|
+
updateVolume: (request: Readonly<UpdateVolumeRequest>) => Promise<Volume>;
|
|
74
|
+
protected pageOfListSnapshots: (request?: Readonly<ListSnapshotsRequest>) => Promise<ListSnapshotsResponse>;
|
|
75
|
+
/**
|
|
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.
|
|
77
|
+
*
|
|
78
|
+
* @param request - The request {@link ListSnapshotsRequest}
|
|
79
|
+
* @returns A Promise of ListSnapshotsResponse
|
|
80
|
+
*/
|
|
81
|
+
listSnapshots: (request?: Readonly<ListSnapshotsRequest>) => Promise<ListSnapshotsResponse> & {
|
|
82
|
+
all: () => Promise<Snapshot[]>;
|
|
83
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<Snapshot[], void, void>;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Get a snapshot. Retrieve technical information about a specific snapshot. Details such as size, volume type, and status are returned in the response.
|
|
87
|
+
*
|
|
88
|
+
* @param request - The request {@link GetSnapshotRequest}
|
|
89
|
+
* @returns A Promise of Snapshot
|
|
90
|
+
*/
|
|
91
|
+
getSnapshot: (request: Readonly<GetSnapshotRequest>) => Promise<Snapshot>;
|
|
92
|
+
/**
|
|
93
|
+
* Waits for {@link Snapshot} to be in a final state.
|
|
94
|
+
*
|
|
95
|
+
* @param request - The request {@link GetSnapshotRequest}
|
|
96
|
+
* @param options - The waiting options
|
|
97
|
+
* @returns A Promise of Snapshot
|
|
98
|
+
*/
|
|
99
|
+
waitForSnapshot: (request: Readonly<GetSnapshotRequest>, options?: Readonly<WaitForOptions<Snapshot>>) => Promise<Snapshot>;
|
|
100
|
+
/**
|
|
101
101
|
* Create a snapshot of a volume. To create a snapshot, the volume must be in the `in_use` or the `available` status.
|
|
102
102
|
If your volume is in a transient state, you need to wait until the end of the current operation.
|
|
103
103
|
*
|
|
104
104
|
* @param request - The request {@link CreateSnapshotRequest}
|
|
105
105
|
* @returns A Promise of Snapshot
|
|
106
106
|
*/
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
createSnapshot: (request: Readonly<CreateSnapshotRequest>) => Promise<Snapshot>;
|
|
108
|
+
/**
|
|
109
109
|
* (Deprecated in favor of `ImportSnapshotFromObjectStorage`). Import a snapshot from a Scaleway Object Storage bucket
|
|
110
110
|
The bucket must contain a QCOW2 image.
|
|
111
111
|
The bucket can be imported into any Availability Zone as long as it is in the same region as the bucket.
|
|
@@ -114,34 +114,36 @@ export declare class API extends ParentAPI {
|
|
|
114
114
|
* @param request - The request {@link ImportSnapshotFromS3Request}
|
|
115
115
|
* @returns A Promise of Snapshot
|
|
116
116
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
importSnapshotFromS3: (request: Readonly<ImportSnapshotFromS3Request>) => Promise<Snapshot>;
|
|
118
|
+
/**
|
|
119
119
|
* Import a snapshot from a Scaleway Object Storage bucket. The bucket must contain a QCOW2 image.
|
|
120
120
|
The bucket can be imported into any Availability Zone as long as it is in the same region as the bucket.
|
|
121
121
|
*
|
|
122
122
|
* @param request - The request {@link ImportSnapshotFromObjectStorageRequest}
|
|
123
123
|
* @returns A Promise of Snapshot
|
|
124
124
|
*/
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
importSnapshotFromObjectStorage: (request: Readonly<ImportSnapshotFromObjectStorageRequest>) => Promise<Snapshot>;
|
|
126
|
+
/**
|
|
127
127
|
* Export a snapshot to a Scaleway Object Storage bucket. The snapshot is exported in QCOW2 format.
|
|
128
128
|
The snapshot must not be in transient state.
|
|
129
129
|
*
|
|
130
130
|
* @param request - The request {@link ExportSnapshotToObjectStorageRequest}
|
|
131
131
|
* @returns A Promise of Snapshot
|
|
132
132
|
*/
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
133
|
+
exportSnapshotToObjectStorage: (request: Readonly<ExportSnapshotToObjectStorageRequest>) => Promise<Snapshot>;
|
|
134
|
+
/**
|
|
135
|
+
* Delete a snapshot. You must specify the `snapshot_id` of the snapshot you want to delete. The snapshot must not be in use.
|
|
136
|
+
*
|
|
137
|
+
* @param request - The request {@link DeleteSnapshotRequest}
|
|
138
|
+
*/
|
|
139
|
+
deleteSnapshot: (request: Readonly<DeleteSnapshotRequest>) => Promise<void>;
|
|
140
|
+
/**
|
|
141
|
+
* Update a snapshot. Update the name or tags of the snapshot.
|
|
142
|
+
*
|
|
143
|
+
* @param request - The request {@link UpdateSnapshotRequest}
|
|
144
|
+
* @returns A Promise of Snapshot
|
|
145
|
+
*/
|
|
146
|
+
updateSnapshot: (request: Readonly<UpdateSnapshotRequest>) => Promise<Snapshot>;
|
|
147
147
|
}
|
|
148
|
+
//#endregion
|
|
149
|
+
export { API$1 as API };
|
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SNAPSHOT_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume } from "./marshalling.gen.js";
|
|
3
|
-
import { API
|
|
3
|
+
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
|
|
4
5
|
//#region src/v1alpha1/api.gen.ts
|
|
5
6
|
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
6
7
|
/**
|
|
@@ -8,7 +9,7 @@ const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" }
|
|
|
8
9
|
|
|
9
10
|
This API allows you to manage your Block Storage volumes.
|
|
10
11
|
*/
|
|
11
|
-
var API = class extends API
|
|
12
|
+
var API$1 = class extends API {
|
|
12
13
|
constructor(..._args) {
|
|
13
14
|
super(..._args);
|
|
14
15
|
this.pageOfListVolumeTypes = (request = {}) => this.client.fetch({
|
|
@@ -104,5 +105,6 @@ var API = class extends API$1 {
|
|
|
104
105
|
] });
|
|
105
106
|
}
|
|
106
107
|
};
|
|
108
|
+
|
|
107
109
|
//#endregion
|
|
108
|
-
export { API };
|
|
110
|
+
export { API$1 as API };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ListSnapshotsRequestOrderBy, ListVolumesRequestOrderBy, ReferenceStatus, ReferenceType, SnapshotStatus, StorageClass, VolumeStatus } from "./types.gen.js";
|
|
2
|
+
//#region src/v1alpha1/constants.gen.d.ts
|
|
2
3
|
/** Lists all values of the enum {@link ListSnapshotsRequestOrderBy}. */
|
|
3
4
|
export declare const LIST_SNAPSHOTS_REQUEST_ORDER_BIES: ListSnapshotsRequestOrderBy[];
|
|
4
5
|
/** Lists all values of the enum {@link ListVolumesRequestOrderBy}. */
|
|
@@ -13,3 +14,4 @@ export declare const SNAPSHOT_STATUSES: SnapshotStatus[];
|
|
|
13
14
|
export declare const STORAGE_CLASSES: StorageClass[];
|
|
14
15
|
/** Lists all values of the enum {@link VolumeStatus}. */
|
|
15
16
|
export declare const VOLUME_STATUSES: VolumeStatus[];
|
|
17
|
+
//#endregion
|
|
@@ -63,5 +63,6 @@ const VOLUME_STATUSES = [
|
|
|
63
63
|
"locked",
|
|
64
64
|
"updating"
|
|
65
65
|
];
|
|
66
|
+
|
|
66
67
|
//#endregion
|
|
67
|
-
export { LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES };
|
|
68
|
+
export { LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ReferenceStatus, SnapshotStatus, VolumeStatus } from "./types.gen.js";
|
|
2
|
+
//#region src/v1alpha1/content.gen.d.ts
|
|
2
3
|
/** Lists transient statutes of the enum {@link ReferenceStatus}. */
|
|
3
4
|
export declare const REFERENCE_TRANSIENT_STATUSES: ReferenceStatus[];
|
|
4
5
|
/** Lists transient statutes of the enum {@link SnapshotStatus}. */
|
|
5
6
|
export declare const SNAPSHOT_TRANSIENT_STATUSES: SnapshotStatus[];
|
|
6
7
|
/** Lists transient statutes of the enum {@link VolumeStatus}. */
|
|
7
8
|
export declare const VOLUME_TRANSIENT_STATUSES: VolumeStatus[];
|
|
9
|
+
//#endregion
|
|
@@ -19,5 +19,6 @@ const VOLUME_TRANSIENT_STATUSES = [
|
|
|
19
19
|
"snapshotting",
|
|
20
20
|
"updating"
|
|
21
21
|
];
|
|
22
|
+
|
|
22
23
|
//#endregion
|
|
23
|
-
export { REFERENCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES };
|
|
24
|
+
export { REFERENCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES };
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { 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.js";
|
|
2
|
+
import { API } from "./api.gen.js";
|
|
3
|
+
import { REFERENCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
4
|
+
import { LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES } from "./constants.gen.js";
|
|
5
|
+
import { marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume } from "./marshalling.gen.js";
|
|
6
|
+
import { validation_rules_gen_d_exports } from "./validation-rules.gen.js";
|
|
7
|
+
declare namespace index_gen_d_exports {
|
|
8
|
+
export { API, CreateSnapshotRequest, CreateVolumeRequest, CreateVolumeRequestFromEmpty, CreateVolumeRequestFromSnapshot, DeleteSnapshotRequest, DeleteVolumeRequest, ExportSnapshotToObjectStorageRequest, GetSnapshotRequest, GetVolumeRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, ListSnapshotsRequest, ListSnapshotsRequestOrderBy, ListSnapshotsResponse, ListVolumeTypesRequest, ListVolumeTypesResponse, ListVolumesRequest, ListVolumesRequestOrderBy, ListVolumesResponse, REFERENCE_STATUSES, REFERENCE_TRANSIENT_STATUSES, REFERENCE_TYPES, Reference, ReferenceStatus, ReferenceType, SNAPSHOT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, STORAGE_CLASSES, Snapshot, SnapshotParentVolume, SnapshotStatus, StorageClass, UpdateSnapshotRequest, UpdateVolumeRequest, VOLUME_STATUSES, VOLUME_TRANSIENT_STATUSES, validation_rules_gen_d_exports as ValidationRules, Volume, VolumeSpecifications, VolumeStatus, VolumeType, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume };
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { API, type CreateSnapshotRequest, type CreateVolumeRequest, type CreateVolumeRequestFromEmpty, type CreateVolumeRequestFromSnapshot, type DeleteSnapshotRequest, type DeleteVolumeRequest, type ExportSnapshotToObjectStorageRequest, type GetSnapshotRequest, type GetVolumeRequest, type ImportSnapshotFromObjectStorageRequest, type ImportSnapshotFromS3Request, LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, type ListSnapshotsRequest, type ListSnapshotsRequestOrderBy, type ListSnapshotsResponse, type ListVolumeTypesRequest, type ListVolumeTypesResponse, type ListVolumesRequest, type ListVolumesRequestOrderBy, type ListVolumesResponse, REFERENCE_STATUSES, REFERENCE_TRANSIENT_STATUSES, REFERENCE_TYPES, type Reference, type ReferenceStatus, type ReferenceType, SNAPSHOT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, STORAGE_CLASSES, type Snapshot, type SnapshotParentVolume, type SnapshotStatus, type StorageClass, type UpdateSnapshotRequest, type UpdateVolumeRequest, VOLUME_STATUSES, VOLUME_TRANSIENT_STATUSES, validation_rules_gen_d_exports as ValidationRules, type Volume, type VolumeSpecifications, type VolumeStatus, type VolumeType, index_gen_d_exports, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume };
|
|
@@ -4,6 +4,7 @@ import { marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExport
|
|
|
4
4
|
import { API } from "./api.gen.js";
|
|
5
5
|
import { LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES } from "./constants.gen.js";
|
|
6
6
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
7
|
+
|
|
7
8
|
//#region src/v1alpha1/index.gen.ts
|
|
8
9
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
9
10
|
API: () => API,
|
|
@@ -31,5 +32,6 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
31
32
|
unmarshalSnapshot: () => unmarshalSnapshot,
|
|
32
33
|
unmarshalVolume: () => unmarshalVolume
|
|
33
34
|
});
|
|
35
|
+
|
|
34
36
|
//#endregion
|
|
35
|
-
export { API, LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TRANSIENT_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES, VOLUME_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume };
|
|
37
|
+
export { API, LIST_SNAPSHOTS_REQUEST_ORDER_BIES, LIST_VOLUMES_REQUEST_ORDER_BIES, REFERENCE_STATUSES, REFERENCE_TRANSIENT_STATUSES, REFERENCE_TYPES, SNAPSHOT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, STORAGE_CLASSES, VOLUME_STATUSES, VOLUME_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CreateSnapshotRequest, CreateVolumeRequest, ExportSnapshotToObjectStorageRequest, ImportSnapshotFromObjectStorageRequest, ImportSnapshotFromS3Request, ListSnapshotsResponse, ListVolumeTypesResponse, ListVolumesResponse, Snapshot, UpdateSnapshotRequest, UpdateVolumeRequest, Volume } from "./types.gen.js";
|
|
2
|
+
import { DefaultValues } from "@scaleway/sdk-client";
|
|
3
|
+
//#region src/v1alpha1/marshalling.gen.d.ts
|
|
3
4
|
export declare const unmarshalSnapshot: (data: unknown) => Snapshot;
|
|
4
5
|
export declare const unmarshalVolume: (data: unknown) => Volume;
|
|
5
6
|
export declare const unmarshalListSnapshotsResponse: (data: unknown) => ListSnapshotsResponse;
|
|
@@ -12,3 +13,4 @@ export declare const marshalImportSnapshotFromObjectStorageRequest: (request: Im
|
|
|
12
13
|
export declare const marshalImportSnapshotFromS3Request: (request: ImportSnapshotFromS3Request, defaults: DefaultValues) => Record<string, unknown>;
|
|
13
14
|
export declare const marshalUpdateSnapshotRequest: (request: UpdateSnapshotRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
14
15
|
export declare const marshalUpdateVolumeRequest: (request: UpdateVolumeRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
16
|
+
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
2
|
import randomName from "@scaleway/random-name";
|
|
3
|
+
|
|
3
4
|
//#region src/v1alpha1/marshalling.gen.ts
|
|
4
5
|
const unmarshalReference = (data) => {
|
|
5
6
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Reference' failed as data isn't a dictionary.`);
|
|
@@ -151,5 +152,6 @@ const marshalUpdateVolumeRequest = (request, defaults) => ({
|
|
|
151
152
|
size: request.size,
|
|
152
153
|
tags: request.tags
|
|
153
154
|
});
|
|
155
|
+
|
|
154
156
|
//#endregion
|
|
155
|
-
export { marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume };
|
|
157
|
+
export { marshalCreateSnapshotRequest, marshalCreateVolumeRequest, marshalExportSnapshotToObjectStorageRequest, marshalImportSnapshotFromObjectStorageRequest, marshalImportSnapshotFromS3Request, marshalUpdateSnapshotRequest, marshalUpdateVolumeRequest, unmarshalListSnapshotsResponse, unmarshalListVolumeTypesResponse, unmarshalListVolumesResponse, unmarshalSnapshot, unmarshalVolume };
|