@scaleway/sdk 2.72.0 → 2.74.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.
Files changed (209) hide show
  1. package/dist/api/account/v3/api.gen.cjs +13 -32
  2. package/dist/api/account/v3/api.gen.d.ts +17 -36
  3. package/dist/api/account/v3/api.gen.js +13 -32
  4. package/dist/api/account/v3/index.gen.d.ts +1 -1
  5. package/dist/api/account/v3/marshalling.gen.cjs +94 -65
  6. package/dist/api/account/v3/marshalling.gen.js +94 -65
  7. package/dist/api/account/v3/types.gen.d.ts +224 -104
  8. package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
  9. package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
  10. package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
  11. package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
  12. package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
  13. package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
  14. package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
  15. package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
  16. package/dist/api/baremetal/v1/api.gen.cjs +28 -61
  17. package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
  18. package/dist/api/baremetal/v1/api.gen.js +28 -61
  19. package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
  20. package/dist/api/baremetal/v3/api.gen.cjs +7 -14
  21. package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
  22. package/dist/api/baremetal/v3/api.gen.js +7 -14
  23. package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
  24. package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
  25. package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
  26. package/dist/api/billing/v2beta1/api.gen.js +11 -20
  27. package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
  28. package/dist/api/block/v1/api.gen.cjs +37 -55
  29. package/dist/api/block/v1/api.gen.d.ts +19 -37
  30. package/dist/api/block/v1/api.gen.js +37 -55
  31. package/dist/api/block/v1/types.gen.d.ts +306 -125
  32. package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
  33. package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
  34. package/dist/api/block/v1alpha1/api.gen.js +45 -64
  35. package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
  36. package/dist/api/cockpit/v1/api.gen.cjs +132 -156
  37. package/dist/api/cockpit/v1/api.gen.d.ts +66 -113
  38. package/dist/api/cockpit/v1/api.gen.js +133 -157
  39. package/dist/api/cockpit/v1/index.gen.d.ts +1 -1
  40. package/dist/api/cockpit/v1/marshalling.gen.cjs +23 -0
  41. package/dist/api/cockpit/v1/marshalling.gen.d.ts +3 -1
  42. package/dist/api/cockpit/v1/marshalling.gen.js +23 -0
  43. package/dist/api/cockpit/v1/types.gen.d.ts +628 -246
  44. package/dist/api/container/v1beta1/api.gen.cjs +7 -14
  45. package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
  46. package/dist/api/container/v1beta1/api.gen.js +7 -14
  47. package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
  48. package/dist/api/dedibox/v1/api.gen.cjs +45 -69
  49. package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
  50. package/dist/api/dedibox/v1/api.gen.js +45 -69
  51. package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
  52. package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
  53. package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
  54. package/dist/api/domain/v2beta1/api.gen.js +119 -178
  55. package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
  56. package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
  57. package/dist/api/edge_services/v1beta1/api.gen.cjs +41 -22
  58. package/dist/api/edge_services/v1beta1/api.gen.d.ts +3 -2
  59. package/dist/api/edge_services/v1beta1/api.gen.js +41 -22
  60. package/dist/api/edge_services/v1beta1/index.gen.d.ts +1 -1
  61. package/dist/api/edge_services/v1beta1/types.gen.d.ts +7 -0
  62. package/dist/api/file/index.gen.cjs +4 -0
  63. package/dist/api/file/index.gen.d.ts +5 -0
  64. package/dist/api/file/index.gen.js +4 -0
  65. package/dist/api/file/v1alpha1/api.gen.cjs +142 -0
  66. package/dist/api/file/v1alpha1/api.gen.d.ts +73 -0
  67. package/dist/api/file/v1alpha1/api.gen.js +142 -0
  68. package/dist/api/file/v1alpha1/content.gen.cjs +7 -0
  69. package/dist/api/file/v1alpha1/content.gen.d.ts +3 -0
  70. package/dist/api/file/v1alpha1/content.gen.js +7 -0
  71. package/dist/api/file/v1alpha1/index.gen.cjs +8 -0
  72. package/dist/api/file/v1alpha1/index.gen.d.ts +4 -0
  73. package/dist/api/file/v1alpha1/index.gen.js +8 -0
  74. package/dist/api/file/v1alpha1/marshalling.gen.cjs +77 -0
  75. package/dist/api/file/v1alpha1/marshalling.gen.d.ts +7 -0
  76. package/dist/api/file/v1alpha1/marshalling.gen.js +77 -0
  77. package/dist/api/file/v1alpha1/types.gen.d.ts +239 -0
  78. package/dist/api/file/v1alpha1/validation-rules.gen.cjs +40 -0
  79. package/dist/api/file/v1alpha1/validation-rules.gen.d.ts +34 -0
  80. package/dist/api/file/v1alpha1/validation-rules.gen.js +40 -0
  81. package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
  82. package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
  83. package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
  84. package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
  85. package/dist/api/function/v1beta1/types.gen.d.ts +6 -6
  86. package/dist/api/iam/v1alpha1/api.gen.cjs +4 -4
  87. package/dist/api/iam/v1alpha1/api.gen.d.ts +4 -4
  88. package/dist/api/iam/v1alpha1/api.gen.js +4 -4
  89. package/dist/api/iam/v1alpha1/types.gen.d.ts +1 -1
  90. package/dist/api/index.gen.d.ts +3 -1
  91. package/dist/api/inference/v1/api.gen.cjs +8 -11
  92. package/dist/api/inference/v1/api.gen.d.ts +6 -9
  93. package/dist/api/inference/v1/api.gen.js +8 -11
  94. package/dist/api/inference/v1/types.gen.d.ts +330 -150
  95. package/dist/api/inference/v1beta1/api.gen.cjs +9 -12
  96. package/dist/api/inference/v1beta1/api.gen.d.ts +7 -10
  97. package/dist/api/inference/v1beta1/api.gen.js +9 -12
  98. package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
  99. package/dist/api/instance/v1/api.gen.cjs +64 -113
  100. package/dist/api/instance/v1/api.gen.d.ts +54 -103
  101. package/dist/api/instance/v1/api.gen.js +64 -113
  102. package/dist/api/instance/v1/marshalling.gen.cjs +4 -1
  103. package/dist/api/instance/v1/marshalling.gen.js +4 -1
  104. package/dist/api/instance/v1/types.gen.d.ts +1368 -600
  105. package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
  106. package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
  107. package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
  108. package/dist/api/interlink/v1beta1/api.gen.js +21 -67
  109. package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
  110. package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
  111. package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
  112. package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
  113. package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
  114. package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
  115. package/dist/api/iot/v1/api.gen.cjs +37 -70
  116. package/dist/api/iot/v1/api.gen.d.ts +34 -67
  117. package/dist/api/iot/v1/api.gen.js +37 -70
  118. package/dist/api/iot/v1/types.gen.d.ts +566 -321
  119. package/dist/api/ipam/v1/api.gen.cjs +6 -26
  120. package/dist/api/ipam/v1/api.gen.d.ts +8 -29
  121. package/dist/api/ipam/v1/api.gen.js +6 -26
  122. package/dist/api/ipam/v1/types.gen.d.ts +146 -105
  123. package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
  124. package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
  125. package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
  126. package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
  127. package/dist/api/k8s/v1/api.gen.cjs +33 -78
  128. package/dist/api/k8s/v1/api.gen.d.ts +27 -72
  129. package/dist/api/k8s/v1/api.gen.js +33 -78
  130. package/dist/api/k8s/v1/types.gen.d.ts +743 -506
  131. package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
  132. package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
  133. package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
  134. package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
  135. package/dist/api/lb/v1/marshalling.gen.cjs +4 -2
  136. package/dist/api/lb/v1/marshalling.gen.js +4 -2
  137. package/dist/api/lb/v1/types.gen.d.ts +4 -0
  138. package/dist/api/marketplace/v2/api.gen.cjs +8 -21
  139. package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
  140. package/dist/api/marketplace/v2/api.gen.js +8 -21
  141. package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
  142. package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
  143. package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
  144. package/dist/api/mnq/v1beta1/api.gen.js +24 -76
  145. package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
  146. package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
  147. package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
  148. package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
  149. package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
  150. package/dist/api/product_catalog/index.gen.cjs +4 -0
  151. package/dist/api/product_catalog/index.gen.d.ts +5 -0
  152. package/dist/api/product_catalog/index.gen.js +4 -0
  153. package/dist/api/product_catalog/v2alpha1/api.gen.cjs +36 -0
  154. package/dist/api/product_catalog/v2alpha1/api.gen.d.ts +18 -0
  155. package/dist/api/product_catalog/v2alpha1/api.gen.js +36 -0
  156. package/dist/api/product_catalog/v2alpha1/index.gen.cjs +6 -0
  157. package/dist/api/product_catalog/v2alpha1/index.gen.d.ts +3 -0
  158. package/dist/api/product_catalog/v2alpha1/index.gen.js +6 -0
  159. package/dist/api/product_catalog/v2alpha1/marshalling.gen.cjs +230 -0
  160. package/dist/api/product_catalog/v2alpha1/marshalling.gen.d.ts +2 -0
  161. package/dist/api/product_catalog/v2alpha1/marshalling.gen.js +230 -0
  162. package/dist/api/product_catalog/v2alpha1/types.gen.d.ts +293 -0
  163. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.cjs +11 -0
  164. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.d.ts +8 -0
  165. package/dist/api/product_catalog/v2alpha1/validation-rules.gen.js +11 -0
  166. package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
  167. package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
  168. package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
  169. package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
  170. package/dist/api/rdb/v1/api.gen.cjs +62 -202
  171. package/dist/api/rdb/v1/api.gen.d.ts +60 -201
  172. package/dist/api/rdb/v1/api.gen.js +62 -202
  173. package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
  174. package/dist/api/redis/v1/api.gen.cjs +23 -83
  175. package/dist/api/redis/v1/api.gen.d.ts +25 -85
  176. package/dist/api/redis/v1/api.gen.js +23 -83
  177. package/dist/api/redis/v1/types.gen.d.ts +447 -170
  178. package/dist/api/registry/v1/api.gen.cjs +12 -40
  179. package/dist/api/registry/v1/api.gen.d.ts +14 -42
  180. package/dist/api/registry/v1/api.gen.js +12 -40
  181. package/dist/api/registry/v1/types.gen.d.ts +200 -116
  182. package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
  183. package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
  184. package/dist/api/secret/v1beta1/api.gen.js +19 -47
  185. package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
  186. package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
  187. package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
  188. package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
  189. package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
  190. package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
  191. package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
  192. package/dist/api/tem/v1alpha1/api.gen.js +22 -58
  193. package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
  194. package/dist/api/test/v1/api.gen.cjs +8 -11
  195. package/dist/api/test/v1/api.gen.d.ts +6 -9
  196. package/dist/api/test/v1/api.gen.js +8 -11
  197. package/dist/api/test/v1/types.gen.d.ts +21 -10
  198. package/dist/api/vpcgw/v1/api.gen.cjs +37 -0
  199. package/dist/api/vpcgw/v1/api.gen.d.ts +37 -0
  200. package/dist/api/vpcgw/v1/api.gen.js +37 -0
  201. package/dist/client/dist/package.json.cjs +1 -1
  202. package/dist/client/dist/package.json.js +1 -1
  203. package/dist/index.cjs +36 -32
  204. package/dist/index.js +36 -32
  205. package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
  206. package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
  207. package/node_modules/@scaleway/sdk-client/package.json +1 -2
  208. package/package.json +2 -2
  209. package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
@@ -0,0 +1,8 @@
1
+ import { API } from "./api.gen.js";
2
+ import { FILE_SYSTEM_TRANSIENT_STATUSES } from "./content.gen.js";
3
+ import * as validationRules_gen from "./validation-rules.gen.js";
4
+ export {
5
+ API,
6
+ FILE_SYSTEM_TRANSIENT_STATUSES,
7
+ validationRules_gen as ValidationRules
8
+ };
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ require("../../../client/dist/internal/logger/index.cjs");
4
+ const json = require("../../../client/dist/helpers/json.cjs");
5
+ const marshalling = require("../../../client/dist/helpers/marshalling.cjs");
6
+ require("../../../client/dist/vendor/base64/index.cjs");
7
+ const unmarshalFileSystem = (data) => {
8
+ if (!json.isJSONObject(data)) {
9
+ throw new TypeError(
10
+ `Unmarshalling the type 'FileSystem' failed as data isn't a dictionary.`
11
+ );
12
+ }
13
+ return {
14
+ createdAt: marshalling.unmarshalDate(data.created_at),
15
+ id: data.id,
16
+ name: data.name,
17
+ numberOfAttachments: data.number_of_attachments,
18
+ organizationId: data.organization_id,
19
+ projectId: data.project_id,
20
+ region: data.region,
21
+ size: data.size,
22
+ status: data.status,
23
+ tags: data.tags,
24
+ updatedAt: marshalling.unmarshalDate(data.updated_at)
25
+ };
26
+ };
27
+ const unmarshalAttachment = (data) => {
28
+ if (!json.isJSONObject(data)) {
29
+ throw new TypeError(
30
+ `Unmarshalling the type 'Attachment' failed as data isn't a dictionary.`
31
+ );
32
+ }
33
+ return {
34
+ filesystemId: data.filesystem_id,
35
+ id: data.id,
36
+ resourceId: data.resource_id,
37
+ resourceType: data.resource_type
38
+ };
39
+ };
40
+ const unmarshalListAttachmentsResponse = (data) => {
41
+ if (!json.isJSONObject(data)) {
42
+ throw new TypeError(
43
+ `Unmarshalling the type 'ListAttachmentsResponse' failed as data isn't a dictionary.`
44
+ );
45
+ }
46
+ return {
47
+ attachments: marshalling.unmarshalArrayOfObject(data.attachments, unmarshalAttachment),
48
+ totalCount: data.total_count
49
+ };
50
+ };
51
+ const unmarshalListFileSystemsResponse = (data) => {
52
+ if (!json.isJSONObject(data)) {
53
+ throw new TypeError(
54
+ `Unmarshalling the type 'ListFileSystemsResponse' failed as data isn't a dictionary.`
55
+ );
56
+ }
57
+ return {
58
+ filesystems: marshalling.unmarshalArrayOfObject(data.filesystems, unmarshalFileSystem),
59
+ totalCount: data.total_count
60
+ };
61
+ };
62
+ const marshalCreateFileSystemRequest = (request, defaults) => ({
63
+ name: request.name,
64
+ project_id: request.projectId ?? defaults.defaultProjectId,
65
+ size: request.size,
66
+ tags: request.tags
67
+ });
68
+ const marshalUpdateFileSystemRequest = (request, defaults) => ({
69
+ name: request.name,
70
+ size: request.size,
71
+ tags: request.tags
72
+ });
73
+ exports.marshalCreateFileSystemRequest = marshalCreateFileSystemRequest;
74
+ exports.marshalUpdateFileSystemRequest = marshalUpdateFileSystemRequest;
75
+ exports.unmarshalFileSystem = unmarshalFileSystem;
76
+ exports.unmarshalListAttachmentsResponse = unmarshalListAttachmentsResponse;
77
+ exports.unmarshalListFileSystemsResponse = unmarshalListFileSystemsResponse;
@@ -0,0 +1,7 @@
1
+ import type { DefaultValues } from '@scaleway/sdk-client';
2
+ import type { CreateFileSystemRequest, FileSystem, ListAttachmentsResponse, ListFileSystemsResponse, UpdateFileSystemRequest } from './types.gen';
3
+ export declare const unmarshalFileSystem: (data: unknown) => FileSystem;
4
+ export declare const unmarshalListAttachmentsResponse: (data: unknown) => ListAttachmentsResponse;
5
+ export declare const unmarshalListFileSystemsResponse: (data: unknown) => ListFileSystemsResponse;
6
+ export declare const marshalCreateFileSystemRequest: (request: CreateFileSystemRequest, defaults: DefaultValues) => Record<string, unknown>;
7
+ export declare const marshalUpdateFileSystemRequest: (request: UpdateFileSystemRequest, defaults: DefaultValues) => Record<string, unknown>;
@@ -0,0 +1,77 @@
1
+ import "../../../client/dist/internal/logger/index.js";
2
+ import { isJSONObject } from "../../../client/dist/helpers/json.js";
3
+ import { unmarshalDate, unmarshalArrayOfObject } from "../../../client/dist/helpers/marshalling.js";
4
+ import "../../../client/dist/vendor/base64/index.js";
5
+ const unmarshalFileSystem = (data) => {
6
+ if (!isJSONObject(data)) {
7
+ throw new TypeError(
8
+ `Unmarshalling the type 'FileSystem' failed as data isn't a dictionary.`
9
+ );
10
+ }
11
+ return {
12
+ createdAt: unmarshalDate(data.created_at),
13
+ id: data.id,
14
+ name: data.name,
15
+ numberOfAttachments: data.number_of_attachments,
16
+ organizationId: data.organization_id,
17
+ projectId: data.project_id,
18
+ region: data.region,
19
+ size: data.size,
20
+ status: data.status,
21
+ tags: data.tags,
22
+ updatedAt: unmarshalDate(data.updated_at)
23
+ };
24
+ };
25
+ const unmarshalAttachment = (data) => {
26
+ if (!isJSONObject(data)) {
27
+ throw new TypeError(
28
+ `Unmarshalling the type 'Attachment' failed as data isn't a dictionary.`
29
+ );
30
+ }
31
+ return {
32
+ filesystemId: data.filesystem_id,
33
+ id: data.id,
34
+ resourceId: data.resource_id,
35
+ resourceType: data.resource_type
36
+ };
37
+ };
38
+ const unmarshalListAttachmentsResponse = (data) => {
39
+ if (!isJSONObject(data)) {
40
+ throw new TypeError(
41
+ `Unmarshalling the type 'ListAttachmentsResponse' failed as data isn't a dictionary.`
42
+ );
43
+ }
44
+ return {
45
+ attachments: unmarshalArrayOfObject(data.attachments, unmarshalAttachment),
46
+ totalCount: data.total_count
47
+ };
48
+ };
49
+ const unmarshalListFileSystemsResponse = (data) => {
50
+ if (!isJSONObject(data)) {
51
+ throw new TypeError(
52
+ `Unmarshalling the type 'ListFileSystemsResponse' failed as data isn't a dictionary.`
53
+ );
54
+ }
55
+ return {
56
+ filesystems: unmarshalArrayOfObject(data.filesystems, unmarshalFileSystem),
57
+ totalCount: data.total_count
58
+ };
59
+ };
60
+ const marshalCreateFileSystemRequest = (request, defaults) => ({
61
+ name: request.name,
62
+ project_id: request.projectId ?? defaults.defaultProjectId,
63
+ size: request.size,
64
+ tags: request.tags
65
+ });
66
+ const marshalUpdateFileSystemRequest = (request, defaults) => ({
67
+ name: request.name,
68
+ size: request.size,
69
+ tags: request.tags
70
+ });
71
+ export {
72
+ marshalCreateFileSystemRequest,
73
+ marshalUpdateFileSystemRequest,
74
+ unmarshalFileSystem,
75
+ unmarshalListAttachmentsResponse,
76
+ unmarshalListFileSystemsResponse
77
+ };
@@ -0,0 +1,239 @@
1
+ import type { Region as ScwRegion } from '@scaleway/sdk-client';
2
+ export type AttachmentResourceType = 'unknown_resource_type' | 'instance_server';
3
+ export type FileSystemStatus = 'unknown_status' | 'available' | 'error' | 'creating' | 'updating';
4
+ export type ListFileSystemsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
5
+ /**
6
+ * Represents an attachment between a filesystem and a resource.
7
+ */
8
+ export interface Attachment {
9
+ /**
10
+ * UUID of the attachment.
11
+ */
12
+ id: string;
13
+ /**
14
+ * UUID of the filesystem.
15
+ */
16
+ filesystemId: string;
17
+ /**
18
+ * UUID of the attached resource.
19
+ */
20
+ resourceId: string;
21
+ /**
22
+ * The type of the attached resource.
23
+ */
24
+ resourceType: AttachmentResourceType;
25
+ }
26
+ /**
27
+ * Represents a filesystem resource and its properties.
28
+ */
29
+ export interface FileSystem {
30
+ /**
31
+ * UUID of the filesystem.
32
+ */
33
+ id: string;
34
+ /**
35
+ * Name of the filesystem.
36
+ */
37
+ name: string;
38
+ /**
39
+ * Filesystem size in bytes.
40
+ */
41
+ size: number;
42
+ /**
43
+ * Current status of the filesystem (e.g. creating, available, ...).
44
+ */
45
+ status: FileSystemStatus;
46
+ /**
47
+ * UUID of the project to which the filesystem belongs.
48
+ */
49
+ projectId: string;
50
+ /**
51
+ * UUID of the organization to which the filesystem belongs.
52
+ */
53
+ organizationId: string;
54
+ /**
55
+ * List of tags assigned to the filesystem.
56
+ */
57
+ tags: string[];
58
+ /**
59
+ * The current number of attachments (mounts) that the filesystem has.
60
+ */
61
+ numberOfAttachments: number;
62
+ /**
63
+ * Region where the filesystem is located.
64
+ */
65
+ region: ScwRegion;
66
+ /**
67
+ * Creation date of the filesystem.
68
+ */
69
+ createdAt?: Date;
70
+ /**
71
+ * Last update date of the properties of the filesystem.
72
+ */
73
+ updatedAt?: Date;
74
+ }
75
+ /**
76
+ * Request to create a new filesystem.
77
+ */
78
+ export type CreateFileSystemRequest = {
79
+ /**
80
+ * Region to target. If none is passed will use default region from the config.
81
+ */
82
+ region?: ScwRegion;
83
+ /**
84
+ * Name of the filesystem.
85
+ */
86
+ name: string;
87
+ /**
88
+ * UUID of the project the filesystem belongs to.
89
+ */
90
+ projectId?: string;
91
+ /**
92
+ * Must be compliant with the minimum (100 GB) and maximum (10 TB) allowed size.
93
+ */
94
+ size: number;
95
+ /**
96
+ * List of tags assigned to the filesystem.
97
+ */
98
+ tags?: string[];
99
+ };
100
+ /**
101
+ * Request to delete a specific filesystem.
102
+ */
103
+ export type DeleteFileSystemRequest = {
104
+ /**
105
+ * Region to target. If none is passed will use default region from the config.
106
+ */
107
+ region?: ScwRegion;
108
+ /**
109
+ * UUID of the filesystem.
110
+ */
111
+ filesystemId: string;
112
+ };
113
+ /**
114
+ * Request to retrieve a specific filesystem.
115
+ */
116
+ export type GetFileSystemRequest = {
117
+ /**
118
+ * Region to target. If none is passed will use default region from the config.
119
+ */
120
+ region?: ScwRegion;
121
+ /**
122
+ * UUID of the filesystem.
123
+ */
124
+ filesystemId: string;
125
+ };
126
+ /**
127
+ * Request to list filesystem attachments with filtering and pagination options.
128
+ */
129
+ export type ListAttachmentsRequest = {
130
+ /**
131
+ * Region to target. If none is passed will use default region from the config.
132
+ */
133
+ region?: ScwRegion;
134
+ /**
135
+ * UUID of the File Storage volume.
136
+ */
137
+ filesystemId?: string;
138
+ /**
139
+ * Filter by resource ID.
140
+ */
141
+ resourceId?: string;
142
+ /**
143
+ * Filter by resource type.
144
+ */
145
+ resourceType?: AttachmentResourceType;
146
+ /**
147
+ * Page number (starting at 1).
148
+ */
149
+ page?: number;
150
+ /**
151
+ * Number of entries per page (default: 20, max: 100).
152
+ */
153
+ pageSize?: number;
154
+ };
155
+ /**
156
+ * Response containing a list of filesystem attachments and total count.
157
+ */
158
+ export interface ListAttachmentsResponse {
159
+ /**
160
+ * List of filesystem attachments matching the request criteria.
161
+ */
162
+ attachments: Attachment[];
163
+ /**
164
+ * Total number of filesystem attachments matching the criteria.
165
+ */
166
+ totalCount: number;
167
+ }
168
+ /**
169
+ * Request to list filesystems with filtering and pagination options.
170
+ */
171
+ export type ListFileSystemsRequest = {
172
+ /**
173
+ * Region to target. If none is passed will use default region from the config.
174
+ */
175
+ region?: ScwRegion;
176
+ /**
177
+ * Criteria to use when ordering the list.
178
+ */
179
+ orderBy?: ListFileSystemsRequestOrderBy;
180
+ /**
181
+ * Filter by project ID.
182
+ */
183
+ projectId?: string;
184
+ /**
185
+ * Page number (starting at 1).
186
+ */
187
+ page?: number;
188
+ /**
189
+ * Number of entries per page (default: 20, max: 100).
190
+ */
191
+ pageSize?: number;
192
+ /**
193
+ * Filter the return filesystems by their names.
194
+ */
195
+ name?: string;
196
+ /**
197
+ * Filter by tags. Only filesystems with one or more matching tags will be returned.
198
+ */
199
+ tags?: string[];
200
+ };
201
+ /**
202
+ * Response containing a list of filesystems and total count.
203
+ */
204
+ export interface ListFileSystemsResponse {
205
+ /**
206
+ * List of filesystems matching the request criteria.
207
+ */
208
+ filesystems: FileSystem[];
209
+ /**
210
+ * Total number of filesystems matching the criteria.
211
+ */
212
+ totalCount: number;
213
+ }
214
+ /**
215
+ * Request to update a specific filesystem.
216
+ */
217
+ export type UpdateFileSystemRequest = {
218
+ /**
219
+ * Region to target. If none is passed will use default region from the config.
220
+ */
221
+ region?: ScwRegion;
222
+ /**
223
+ * UUID of the filesystem.
224
+ */
225
+ filesystemId: string;
226
+ /**
227
+ * When defined, is the new name of the filesystem.
228
+ */
229
+ name?: string;
230
+ /**
231
+ * Size in bytes, with a granularity of 100 GB (10^11 bytes).
232
+ Must be compliant with the minimum (100 GB) and maximum (10 TB) allowed size.
233
+ */
234
+ size?: number;
235
+ /**
236
+ * List of tags assigned to the filesystem.
237
+ */
238
+ tags?: string[];
239
+ };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const CreateFileSystemRequest = {
4
+ name: {
5
+ minLength: 1
6
+ },
7
+ size: {
8
+ greaterThan: 0
9
+ }
10
+ };
11
+ const ListAttachmentsRequest = {
12
+ page: {
13
+ greaterThan: 0
14
+ },
15
+ pageSize: {
16
+ greaterThan: 0,
17
+ lessThanOrEqual: 100
18
+ }
19
+ };
20
+ const ListFileSystemsRequest = {
21
+ page: {
22
+ greaterThan: 0
23
+ },
24
+ pageSize: {
25
+ greaterThan: 0,
26
+ lessThanOrEqual: 100
27
+ }
28
+ };
29
+ const UpdateFileSystemRequest = {
30
+ name: {
31
+ minLength: 1
32
+ },
33
+ size: {
34
+ greaterThan: 0
35
+ }
36
+ };
37
+ exports.CreateFileSystemRequest = CreateFileSystemRequest;
38
+ exports.ListAttachmentsRequest = ListAttachmentsRequest;
39
+ exports.ListFileSystemsRequest = ListFileSystemsRequest;
40
+ exports.UpdateFileSystemRequest = UpdateFileSystemRequest;
@@ -0,0 +1,34 @@
1
+ export declare const CreateFileSystemRequest: {
2
+ name: {
3
+ minLength: number;
4
+ };
5
+ size: {
6
+ greaterThan: number;
7
+ };
8
+ };
9
+ export declare const ListAttachmentsRequest: {
10
+ page: {
11
+ greaterThan: number;
12
+ };
13
+ pageSize: {
14
+ greaterThan: number;
15
+ lessThanOrEqual: number;
16
+ };
17
+ };
18
+ export declare const ListFileSystemsRequest: {
19
+ page: {
20
+ greaterThan: number;
21
+ };
22
+ pageSize: {
23
+ greaterThan: number;
24
+ lessThanOrEqual: number;
25
+ };
26
+ };
27
+ export declare const UpdateFileSystemRequest: {
28
+ name: {
29
+ minLength: number;
30
+ };
31
+ size: {
32
+ greaterThan: number;
33
+ };
34
+ };
@@ -0,0 +1,40 @@
1
+ const CreateFileSystemRequest = {
2
+ name: {
3
+ minLength: 1
4
+ },
5
+ size: {
6
+ greaterThan: 0
7
+ }
8
+ };
9
+ const ListAttachmentsRequest = {
10
+ page: {
11
+ greaterThan: 0
12
+ },
13
+ pageSize: {
14
+ greaterThan: 0,
15
+ lessThanOrEqual: 100
16
+ }
17
+ };
18
+ const ListFileSystemsRequest = {
19
+ page: {
20
+ greaterThan: 0
21
+ },
22
+ pageSize: {
23
+ greaterThan: 0,
24
+ lessThanOrEqual: 100
25
+ }
26
+ };
27
+ const UpdateFileSystemRequest = {
28
+ name: {
29
+ minLength: 1
30
+ },
31
+ size: {
32
+ greaterThan: 0
33
+ }
34
+ };
35
+ export {
36
+ CreateFileSystemRequest,
37
+ ListAttachmentsRequest,
38
+ ListFileSystemsRequest,
39
+ UpdateFileSystemRequest
40
+ };
@@ -22,8 +22,7 @@ class API extends api.API {
22
22
  "pl-waw-3"
23
23
  ];
24
24
  /**
25
- * Create a new flexible IP. Generate a new flexible IP within a given zone,
26
- * specifying its configuration including Project ID and description.
25
+ * Create a new flexible IP. Generate a new flexible IP within a given zone, specifying its configuration including Project ID and description.
27
26
  *
28
27
  * @param request - The request {@link CreateFlexibleIPRequest}
29
28
  * @returns A Promise of FlexibleIP
@@ -40,9 +39,7 @@ class API extends api.API {
40
39
  marshalling_gen.unmarshalFlexibleIP
41
40
  );
42
41
  /**
43
- * Get an existing flexible IP. Retrieve information about an existing
44
- * flexible IP, specified by its ID and zone. Its full details, including
45
- * Project ID, description and status, are returned in the response object.
42
+ * Get an existing flexible IP. Retrieve information about an existing flexible IP, specified by its ID and zone. Its full details, including Project ID, description and status, are returned in the response object.
46
43
  *
47
44
  * @param request - The request {@link GetFlexibleIPRequest}
48
45
  * @returns A Promise of FlexibleIP
@@ -97,9 +94,7 @@ class API extends api.API {
97
94
  */
98
95
  listFlexibleIPs = (request = {}) => resourcePaginator.enrichForPagination("flexibleIps", this.pageOfListFlexibleIPs, request);
99
96
  /**
100
- * Update an existing flexible IP. Update the parameters of an existing
101
- * flexible IP, specified by its ID and zone. These parameters include tags
102
- * and description.
97
+ * Update an existing flexible IP. Update the parameters of an existing flexible IP, specified by its ID and zone. These parameters include tags and description.
103
98
  *
104
99
  * @param request - The request {@link UpdateFlexibleIPRequest}
105
100
  * @returns A Promise of FlexibleIP
@@ -116,9 +111,7 @@ class API extends api.API {
116
111
  marshalling_gen.unmarshalFlexibleIP
117
112
  );
118
113
  /**
119
- * Delete an existing flexible IP. Delete an existing flexible IP, specified
120
- * by its ID and zone. Note that deleting a flexible IP is permanent and
121
- * cannot be undone.
114
+ * Delete an existing flexible IP. Delete an existing flexible IP, specified by its ID and zone. Note that deleting a flexible IP is permanent and cannot be undone.
122
115
  *
123
116
  * @param request - The request {@link DeleteFlexibleIPRequest}
124
117
  */
@@ -127,8 +120,7 @@ class API extends api.API {
127
120
  path: `/flexible-ip/v1alpha1/zones/${marshalling.validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/fips/${marshalling.validatePathParam("fipId", request.fipId)}`
128
121
  });
129
122
  /**
130
- * Attach an existing flexible IP to a server. Attach an existing flexible IP
131
- * to a specified Elastic Metal server.
123
+ * Attach an existing flexible IP to a server. Attach an existing flexible IP to a specified Elastic Metal server.
132
124
  *
133
125
  * @param request - The request {@link AttachFlexibleIPRequest}
134
126
  * @returns A Promise of AttachFlexibleIPsResponse
@@ -145,8 +137,7 @@ class API extends api.API {
145
137
  marshalling_gen.unmarshalAttachFlexibleIPsResponse
146
138
  );
147
139
  /**
148
- * Detach an existing flexible IP from a server. Detach an existing flexible
149
- * IP from a specified Elastic Metal server.
140
+ * Detach an existing flexible IP from a server. Detach an existing flexible IP from a specified Elastic Metal server.
150
141
  *
151
142
  * @param request - The request {@link DetachFlexibleIPRequest}
152
143
  * @returns A Promise of DetachFlexibleIPsResponse
@@ -163,8 +154,7 @@ class API extends api.API {
163
154
  marshalling_gen.unmarshalDetachFlexibleIPsResponse
164
155
  );
165
156
  /**
166
- * Generate a virtual MAC address on an existing flexible IP. Generate a
167
- * virtual MAC (Media Access Control) address on an existing flexible IP.
157
+ * Generate a virtual MAC address on an existing flexible IP. Generate a virtual MAC (Media Access Control) address on an existing flexible IP.
168
158
  *
169
159
  * @param request - The request {@link GenerateMACAddrRequest}
170
160
  * @returns A Promise of FlexibleIP
@@ -181,9 +171,7 @@ class API extends api.API {
181
171
  marshalling_gen.unmarshalFlexibleIP
182
172
  );
183
173
  /**
184
- * Duplicate a virtual MAC address to another flexible IP. Duplicate a virtual
185
- * MAC address from a given flexible IP to another flexible IP attached to the
186
- * same server.
174
+ * Duplicate a virtual MAC address to another flexible IP. Duplicate a virtual MAC address from a given flexible IP to another flexible IP attached to the same server.
187
175
  *
188
176
  * @param request - The request {@link DuplicateMACAddrRequest}
189
177
  * @returns A Promise of FlexibleIP
@@ -200,9 +188,7 @@ class API extends api.API {
200
188
  marshalling_gen.unmarshalFlexibleIP
201
189
  );
202
190
  /**
203
- * Relocate an existing virtual MAC address to a different flexible IP.
204
- * Relocate a virtual MAC (Media Access Control) address from an existing
205
- * flexible IP to a different flexible IP.
191
+ * Relocate an existing virtual MAC address to a different flexible IP. Relocate a virtual MAC (Media Access Control) address from an existing flexible IP to a different flexible IP.
206
192
  *
207
193
  * @param request - The request {@link MoveMACAddrRequest}
208
194
  * @returns A Promise of FlexibleIP
@@ -219,8 +205,7 @@ class API extends api.API {
219
205
  marshalling_gen.unmarshalFlexibleIP
220
206
  );
221
207
  /**
222
- * Detach a given virtual MAC address from an existing flexible IP. Detach a
223
- * given MAC (Media Access Control) address from an existing flexible IP.
208
+ * Detach a given virtual MAC address from an existing flexible IP. Detach a given MAC (Media Access Control) address from an existing flexible IP.
224
209
  *
225
210
  * @param request - The request {@link DeleteMACAddrRequest}
226
211
  */