@scaleway/sdk-file 2.1.1 → 2.2.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/v1alpha1/api.gen.js +16 -12
- package/dist/v1alpha1/index.gen.d.ts +1 -1
- package/package.json +1 -1
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -10,9 +10,7 @@ class API extends API$1 {
|
|
|
10
10
|
* type ∈ {'zone','region','global','unspecified'}
|
|
11
11
|
*/
|
|
12
12
|
static LOCALITY = toApiLocality({
|
|
13
|
-
regions: [
|
|
14
|
-
"fr-par"
|
|
15
|
-
]
|
|
13
|
+
regions: ["fr-par"]
|
|
16
14
|
});
|
|
17
15
|
/**
|
|
18
16
|
* Get filesystem details. Retrieve all properties and current status of a specific filesystem identified by its ID.
|
|
@@ -35,7 +33,9 @@ class API extends API$1 {
|
|
|
35
33
|
* @returns A Promise of FileSystem
|
|
36
34
|
*/
|
|
37
35
|
waitForFileSystem = (request, options) => waitForResource(
|
|
38
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
36
|
+
options?.stop ?? ((res) => Promise.resolve(
|
|
37
|
+
!FILE_SYSTEM_TRANSIENT_STATUSES.includes(res.status)
|
|
38
|
+
)),
|
|
39
39
|
this.getFileSystem,
|
|
40
40
|
request,
|
|
41
41
|
options
|
|
@@ -49,7 +49,10 @@ class API extends API$1 {
|
|
|
49
49
|
["order_by", request.orderBy],
|
|
50
50
|
["organization_id", request.organizationId],
|
|
51
51
|
["page", request.page],
|
|
52
|
-
[
|
|
52
|
+
[
|
|
53
|
+
"page_size",
|
|
54
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
55
|
+
],
|
|
53
56
|
["project_id", request.projectId],
|
|
54
57
|
["tags", request.tags]
|
|
55
58
|
)
|
|
@@ -70,7 +73,10 @@ class API extends API$1 {
|
|
|
70
73
|
urlParams: urlParams(
|
|
71
74
|
["filesystem_id", request.filesystemId],
|
|
72
75
|
["page", request.page],
|
|
73
|
-
[
|
|
76
|
+
[
|
|
77
|
+
"page_size",
|
|
78
|
+
request.pageSize ?? this.client.settings.defaultPageSize
|
|
79
|
+
],
|
|
74
80
|
["resource_id", request.resourceId],
|
|
75
81
|
["resource_type", request.resourceType],
|
|
76
82
|
["zone", request.zone]
|
|
@@ -108,12 +114,10 @@ class API extends API$1 {
|
|
|
108
114
|
*
|
|
109
115
|
* @param request - The request {@link DeleteFileSystemRequest}
|
|
110
116
|
*/
|
|
111
|
-
deleteFileSystem = (request) => this.client.fetch(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
+
deleteFileSystem = (request) => this.client.fetch({
|
|
118
|
+
method: "DELETE",
|
|
119
|
+
path: `/file/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/filesystems/${validatePathParam("filesystemId", request.filesystemId)}`
|
|
120
|
+
});
|
|
117
121
|
/**
|
|
118
122
|
* Update filesystem properties. Update the technical details of a filesystem, such as its name, tags or its new size.
|
|
119
123
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { API
|
|
1
|
+
export { API } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
3
|
export * from './marshalling.gen.js';
|
|
4
4
|
export type { Attachment, AttachmentResourceType, CreateFileSystemRequest, DeleteFileSystemRequest, FileSystem, FileSystemStatus, GetFileSystemRequest, ListAttachmentsRequest, ListAttachmentsResponse, ListFileSystemsRequest, ListFileSystemsRequestOrderBy, ListFileSystemsResponse, UpdateFileSystemRequest, } from './types.gen.js';
|