@scaleway/sdk-file 2.2.0 → 2.3.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/README.md +1 -1
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/index.gen.js +2 -4
- package/dist/v1alpha1/api.gen.js +91 -139
- package/dist/v1alpha1/content.gen.js +3 -7
- package/dist/v1alpha1/index.gen.d.ts +1 -1
- package/dist/v1alpha1/index.gen.js +14 -12
- package/dist/v1alpha1/marshalling.gen.js +42 -64
- package/dist/v1alpha1/types.gen.d.ts +4 -0
- package/dist/v1alpha1/validation-rules.gen.js +22 -32
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -83,6 +83,7 @@ const api = new File.v1.API(client)
|
|
|
83
83
|
## Support
|
|
84
84
|
|
|
85
85
|
We love feedback! Feel free to reach us on:
|
|
86
|
+
|
|
86
87
|
- [Scaleway Slack community](https://slack.scaleway.com/) - Join us on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)
|
|
87
88
|
- [GitHub Issues](https://github.com/scaleway/scaleway-sdk-js/issues)
|
|
88
89
|
|
|
@@ -93,4 +94,3 @@ This repository is at its early stage and is still in active development. If you
|
|
|
93
94
|
## License
|
|
94
95
|
|
|
95
96
|
This project is Apache 2.0 licensed. See the [LICENSE](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE) file for details.
|
|
96
|
-
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __exportAll = (all, no_symbols) => {
|
|
3
|
+
let target = {};
|
|
4
|
+
for (var name in all) __defProp(target, name, {
|
|
5
|
+
get: all[name],
|
|
6
|
+
enumerable: true
|
|
7
|
+
});
|
|
8
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
|
+
return target;
|
|
10
|
+
};
|
|
11
|
+
export { __exportAll };
|
package/dist/index.gen.js
CHANGED
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -1,141 +1,93 @@
|
|
|
1
|
-
import { API as API$1, toApiLocality, validatePathParam, waitForResource, urlParams, enrichForPagination } from "@scaleway/sdk-client";
|
|
2
1
|
import { FILE_SYSTEM_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
*/
|
|
94
|
-
listAttachments = (request = {}) => enrichForPagination("attachments", this.pageOfListAttachments, request);
|
|
95
|
-
/**
|
|
96
|
-
* Create a new filesystem. To create a new filesystem, you must specify a name, a size, and a project ID.
|
|
97
|
-
*
|
|
98
|
-
* @param request - The request {@link CreateFileSystemRequest}
|
|
99
|
-
* @returns A Promise of FileSystem
|
|
100
|
-
*/
|
|
101
|
-
createFileSystem = (request) => this.client.fetch(
|
|
102
|
-
{
|
|
103
|
-
body: JSON.stringify(
|
|
104
|
-
marshalCreateFileSystemRequest(request, this.client.settings)
|
|
105
|
-
),
|
|
106
|
-
headers: jsonContentHeaders,
|
|
107
|
-
method: "POST",
|
|
108
|
-
path: `/file/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/filesystems`
|
|
109
|
-
},
|
|
110
|
-
unmarshalFileSystem
|
|
111
|
-
);
|
|
112
|
-
/**
|
|
113
|
-
* Delete a detached filesystem. You must specify the `filesystem_id` of the filesystem you want to delete.
|
|
114
|
-
*
|
|
115
|
-
* @param request - The request {@link DeleteFileSystemRequest}
|
|
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
|
-
});
|
|
121
|
-
/**
|
|
122
|
-
* Update filesystem properties. Update the technical details of a filesystem, such as its name, tags or its new size.
|
|
123
|
-
*
|
|
124
|
-
* @param request - The request {@link UpdateFileSystemRequest}
|
|
125
|
-
* @returns A Promise of FileSystem
|
|
126
|
-
*/
|
|
127
|
-
updateFileSystem = (request) => this.client.fetch(
|
|
128
|
-
{
|
|
129
|
-
body: JSON.stringify(
|
|
130
|
-
marshalUpdateFileSystemRequest(request, this.client.settings)
|
|
131
|
-
),
|
|
132
|
-
headers: jsonContentHeaders,
|
|
133
|
-
method: "PATCH",
|
|
134
|
-
path: `/file/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/filesystems/${validatePathParam("filesystemId", request.filesystemId)}`
|
|
135
|
-
},
|
|
136
|
-
unmarshalFileSystem
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
export {
|
|
140
|
-
API
|
|
2
|
+
import { marshalCreateFileSystemRequest, marshalUpdateFileSystemRequest, unmarshalFileSystem, unmarshalListAttachmentsResponse, unmarshalListFileSystemsResponse } from "./marshalling.gen.js";
|
|
3
|
+
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
|
+
/**
|
|
6
|
+
* File Storage API.
|
|
7
|
+
|
|
8
|
+
This API allows you to manage your File Storage resources.
|
|
9
|
+
*/
|
|
10
|
+
var API$1 = class extends API {
|
|
11
|
+
/**
|
|
12
|
+
* Locality of this API.
|
|
13
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
14
|
+
*/
|
|
15
|
+
static LOCALITY = toApiLocality({ regions: ["fr-par"] });
|
|
16
|
+
/**
|
|
17
|
+
* Get filesystem details. Retrieve all properties and current status of a specific filesystem identified by its ID.
|
|
18
|
+
*
|
|
19
|
+
* @param request - The request {@link GetFileSystemRequest}
|
|
20
|
+
* @returns A Promise of FileSystem
|
|
21
|
+
*/
|
|
22
|
+
getFileSystem = (request) => this.client.fetch({
|
|
23
|
+
method: "GET",
|
|
24
|
+
path: `/file/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/filesystems/${validatePathParam("filesystemId", request.filesystemId)}`
|
|
25
|
+
}, unmarshalFileSystem);
|
|
26
|
+
/**
|
|
27
|
+
* Waits for {@link FileSystem} to be in a final state.
|
|
28
|
+
*
|
|
29
|
+
* @param request - The request {@link GetFileSystemRequest}
|
|
30
|
+
* @param options - The waiting options
|
|
31
|
+
* @returns A Promise of FileSystem
|
|
32
|
+
*/
|
|
33
|
+
waitForFileSystem = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!FILE_SYSTEM_TRANSIENT_STATUSES.includes(res.status))), this.getFileSystem, request, options);
|
|
34
|
+
pageOfListFileSystems = (request = {}) => this.client.fetch({
|
|
35
|
+
method: "GET",
|
|
36
|
+
path: `/file/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/filesystems`,
|
|
37
|
+
urlParams: urlParams(["filesystem_ids", request.filesystemIds], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["tags", request.tags])
|
|
38
|
+
}, unmarshalListFileSystemsResponse);
|
|
39
|
+
/**
|
|
40
|
+
* List all filesystems. Retrieve all filesystems in the specified region. By default, the filesystems listed are ordered by creation date in ascending order. This can be modified using the `order_by` field.
|
|
41
|
+
*
|
|
42
|
+
* @param request - The request {@link ListFileSystemsRequest}
|
|
43
|
+
* @returns A Promise of ListFileSystemsResponse
|
|
44
|
+
*/
|
|
45
|
+
listFileSystems = (request = {}) => enrichForPagination("filesystems", this.pageOfListFileSystems, request);
|
|
46
|
+
pageOfListAttachments = (request = {}) => this.client.fetch({
|
|
47
|
+
method: "GET",
|
|
48
|
+
path: `/file/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/attachments`,
|
|
49
|
+
urlParams: urlParams(["filesystem_id", request.filesystemId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["resource_id", request.resourceId], ["resource_type", request.resourceType], ["zone", request.zone])
|
|
50
|
+
}, unmarshalListAttachmentsResponse);
|
|
51
|
+
/**
|
|
52
|
+
* List filesystems attachments. List all existing attachments in a specified region.
|
|
53
|
+
By default, the attachments listed are ordered by creation date in ascending order. This can be modified using the `order_by` field.
|
|
54
|
+
*
|
|
55
|
+
* @param request - The request {@link ListAttachmentsRequest}
|
|
56
|
+
* @returns A Promise of ListAttachmentsResponse
|
|
57
|
+
*/
|
|
58
|
+
listAttachments = (request = {}) => enrichForPagination("attachments", this.pageOfListAttachments, request);
|
|
59
|
+
/**
|
|
60
|
+
* Create a new filesystem. To create a new filesystem, you must specify a name, a size, and a project ID.
|
|
61
|
+
*
|
|
62
|
+
* @param request - The request {@link CreateFileSystemRequest}
|
|
63
|
+
* @returns A Promise of FileSystem
|
|
64
|
+
*/
|
|
65
|
+
createFileSystem = (request) => this.client.fetch({
|
|
66
|
+
body: JSON.stringify(marshalCreateFileSystemRequest(request, this.client.settings)),
|
|
67
|
+
headers: jsonContentHeaders,
|
|
68
|
+
method: "POST",
|
|
69
|
+
path: `/file/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/filesystems`
|
|
70
|
+
}, unmarshalFileSystem);
|
|
71
|
+
/**
|
|
72
|
+
* Delete a detached filesystem. You must specify the `filesystem_id` of the filesystem you want to delete.
|
|
73
|
+
*
|
|
74
|
+
* @param request - The request {@link DeleteFileSystemRequest}
|
|
75
|
+
*/
|
|
76
|
+
deleteFileSystem = (request) => this.client.fetch({
|
|
77
|
+
method: "DELETE",
|
|
78
|
+
path: `/file/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/filesystems/${validatePathParam("filesystemId", request.filesystemId)}`
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* Update filesystem properties. Update the technical details of a filesystem, such as its name, tags or its new size.
|
|
82
|
+
*
|
|
83
|
+
* @param request - The request {@link UpdateFileSystemRequest}
|
|
84
|
+
* @returns A Promise of FileSystem
|
|
85
|
+
*/
|
|
86
|
+
updateFileSystem = (request) => this.client.fetch({
|
|
87
|
+
body: JSON.stringify(marshalUpdateFileSystemRequest(request, this.client.settings)),
|
|
88
|
+
headers: jsonContentHeaders,
|
|
89
|
+
method: "PATCH",
|
|
90
|
+
path: `/file/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/filesystems/${validatePathParam("filesystemId", request.filesystemId)}`
|
|
91
|
+
}, unmarshalFileSystem);
|
|
141
92
|
};
|
|
93
|
+
export { API$1 as API };
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
];
|
|
5
|
-
export {
|
|
6
|
-
FILE_SYSTEM_TRANSIENT_STATUSES
|
|
7
|
-
};
|
|
1
|
+
/** Lists transient statutes of the enum {@link FileSystemStatus}. */
|
|
2
|
+
const FILE_SYSTEM_TRANSIENT_STATUSES = ["creating", "updating"];
|
|
3
|
+
export { FILE_SYSTEM_TRANSIENT_STATUSES };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { API } from './api.gen.js';
|
|
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';
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { FILE_SYSTEM_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
3
|
import { marshalCreateFileSystemRequest, marshalUpdateFileSystemRequest, unmarshalFileSystem, unmarshalListAttachmentsResponse, unmarshalListFileSystemsResponse } from "./marshalling.gen.js";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
import { API } from "./api.gen.js";
|
|
5
|
+
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
API: () => API,
|
|
8
|
+
FILE_SYSTEM_TRANSIENT_STATUSES: () => FILE_SYSTEM_TRANSIENT_STATUSES,
|
|
9
|
+
ValidationRules: () => validation_rules_gen_exports,
|
|
10
|
+
marshalCreateFileSystemRequest: () => marshalCreateFileSystemRequest,
|
|
11
|
+
marshalUpdateFileSystemRequest: () => marshalUpdateFileSystemRequest,
|
|
12
|
+
unmarshalFileSystem: () => unmarshalFileSystem,
|
|
13
|
+
unmarshalListAttachmentsResponse: () => unmarshalListAttachmentsResponse,
|
|
14
|
+
unmarshalListFileSystemsResponse: () => unmarshalListFileSystemsResponse
|
|
15
|
+
});
|
|
16
|
+
export { index_gen_exports };
|
|
@@ -1,75 +1,53 @@
|
|
|
1
|
-
import { isJSONObject,
|
|
1
|
+
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
2
|
const unmarshalFileSystem = (data) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
status: data.status,
|
|
18
|
-
tags: data.tags,
|
|
19
|
-
updatedAt: unmarshalDate(data.updated_at)
|
|
20
|
-
};
|
|
3
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'FileSystem' failed as data isn't a dictionary.`);
|
|
4
|
+
return {
|
|
5
|
+
createdAt: unmarshalDate(data.created_at),
|
|
6
|
+
id: data.id,
|
|
7
|
+
name: data.name,
|
|
8
|
+
numberOfAttachments: data.number_of_attachments,
|
|
9
|
+
organizationId: data.organization_id,
|
|
10
|
+
projectId: data.project_id,
|
|
11
|
+
region: data.region,
|
|
12
|
+
size: data.size,
|
|
13
|
+
status: data.status,
|
|
14
|
+
tags: data.tags,
|
|
15
|
+
updatedAt: unmarshalDate(data.updated_at)
|
|
16
|
+
};
|
|
21
17
|
};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
resourceId: data.resource_id,
|
|
32
|
-
resourceType: data.resource_type,
|
|
33
|
-
zone: data.zone
|
|
34
|
-
};
|
|
18
|
+
var unmarshalAttachment = (data) => {
|
|
19
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Attachment' failed as data isn't a dictionary.`);
|
|
20
|
+
return {
|
|
21
|
+
filesystemId: data.filesystem_id,
|
|
22
|
+
id: data.id,
|
|
23
|
+
resourceId: data.resource_id,
|
|
24
|
+
resourceType: data.resource_type,
|
|
25
|
+
zone: data.zone
|
|
26
|
+
};
|
|
35
27
|
};
|
|
36
28
|
const unmarshalListAttachmentsResponse = (data) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return {
|
|
43
|
-
attachments: unmarshalArrayOfObject(data.attachments, unmarshalAttachment),
|
|
44
|
-
totalCount: data.total_count
|
|
45
|
-
};
|
|
29
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListAttachmentsResponse' failed as data isn't a dictionary.`);
|
|
30
|
+
return {
|
|
31
|
+
attachments: unmarshalArrayOfObject(data.attachments, unmarshalAttachment),
|
|
32
|
+
totalCount: data.total_count
|
|
33
|
+
};
|
|
46
34
|
};
|
|
47
35
|
const unmarshalListFileSystemsResponse = (data) => {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return {
|
|
54
|
-
filesystems: unmarshalArrayOfObject(data.filesystems, unmarshalFileSystem),
|
|
55
|
-
totalCount: data.total_count
|
|
56
|
-
};
|
|
36
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListFileSystemsResponse' failed as data isn't a dictionary.`);
|
|
37
|
+
return {
|
|
38
|
+
filesystems: unmarshalArrayOfObject(data.filesystems, unmarshalFileSystem),
|
|
39
|
+
totalCount: data.total_count
|
|
40
|
+
};
|
|
57
41
|
};
|
|
58
42
|
const marshalCreateFileSystemRequest = (request, defaults) => ({
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
43
|
+
name: request.name,
|
|
44
|
+
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
45
|
+
size: request.size,
|
|
46
|
+
tags: request.tags
|
|
63
47
|
});
|
|
64
48
|
const marshalUpdateFileSystemRequest = (request, defaults) => ({
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
49
|
+
name: request.name,
|
|
50
|
+
size: request.size,
|
|
51
|
+
tags: request.tags
|
|
68
52
|
});
|
|
69
|
-
export {
|
|
70
|
-
marshalCreateFileSystemRequest,
|
|
71
|
-
marshalUpdateFileSystemRequest,
|
|
72
|
-
unmarshalFileSystem,
|
|
73
|
-
unmarshalListAttachmentsResponse,
|
|
74
|
-
unmarshalListFileSystemsResponse
|
|
75
|
-
};
|
|
53
|
+
export { marshalCreateFileSystemRequest, marshalUpdateFileSystemRequest, unmarshalFileSystem, unmarshalListAttachmentsResponse, unmarshalListFileSystemsResponse };
|
|
@@ -209,6 +209,10 @@ export type ListFileSystemsRequest = {
|
|
|
209
209
|
* Filter by tags. Only filesystems with one or more matching tags will be returned.
|
|
210
210
|
*/
|
|
211
211
|
tags?: string[];
|
|
212
|
+
/**
|
|
213
|
+
* Filter by filesystem IDs. Only filesystems with one or more matching IDs will be returned.
|
|
214
|
+
*/
|
|
215
|
+
filesystemIds?: string[];
|
|
212
216
|
};
|
|
213
217
|
/**
|
|
214
218
|
* Response containing a list of filesystems and total count.
|
|
@@ -1,40 +1,30 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
|
+
CreateFileSystemRequest: () => CreateFileSystemRequest,
|
|
4
|
+
ListAttachmentsRequest: () => ListAttachmentsRequest,
|
|
5
|
+
ListFileSystemsRequest: () => ListFileSystemsRequest,
|
|
6
|
+
UpdateFileSystemRequest: () => UpdateFileSystemRequest
|
|
7
|
+
});
|
|
1
8
|
const CreateFileSystemRequest = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
},
|
|
5
|
-
size: {
|
|
6
|
-
greaterThan: 0
|
|
7
|
-
}
|
|
9
|
+
name: { minLength: 1 },
|
|
10
|
+
size: { greaterThan: 0 }
|
|
8
11
|
};
|
|
9
12
|
const ListAttachmentsRequest = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
lessThanOrEqual: 100
|
|
16
|
-
}
|
|
13
|
+
page: { greaterThan: 0 },
|
|
14
|
+
pageSize: {
|
|
15
|
+
greaterThan: 0,
|
|
16
|
+
lessThanOrEqual: 100
|
|
17
|
+
}
|
|
17
18
|
};
|
|
18
19
|
const ListFileSystemsRequest = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
lessThanOrEqual: 100
|
|
25
|
-
}
|
|
20
|
+
page: { greaterThan: 0 },
|
|
21
|
+
pageSize: {
|
|
22
|
+
greaterThan: 0,
|
|
23
|
+
lessThanOrEqual: 100
|
|
24
|
+
}
|
|
26
25
|
};
|
|
27
26
|
const UpdateFileSystemRequest = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
size: {
|
|
32
|
-
greaterThan: 0
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
CreateFileSystemRequest,
|
|
37
|
-
ListAttachmentsRequest,
|
|
38
|
-
ListFileSystemsRequest,
|
|
39
|
-
UpdateFileSystemRequest
|
|
27
|
+
name: { minLength: 1 },
|
|
28
|
+
size: { greaterThan: 0 }
|
|
40
29
|
};
|
|
30
|
+
export { validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-file",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Scaleway SDK file",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@scaleway/random-name": "5.1.2",
|
|
30
|
-
"@scaleway/sdk-std": "2.
|
|
30
|
+
"@scaleway/sdk-std": "2.2.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|