@scaleway/sdk-file 1.0.7 → 1.1.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.
@@ -7,8 +7,13 @@ const jsonContentHeaders = {
7
7
  "Content-Type": "application/json; charset=utf-8"
8
8
  };
9
9
  class API extends sdkClient.API {
10
- /** Lists the available regions of the API. */
11
- static LOCALITIES = ["fr-par"];
10
+ /**
11
+ * Locality of this API.
12
+ * type ∈ {'zone','region','global','unspecified'}
13
+ */
14
+ static LOCALITY = sdkClient.toApiLocality({
15
+ regions: ["fr-par"]
16
+ });
12
17
  /**
13
18
  * Get filesystem details. Retrieve all properties and current status of a specific filesystem identified by its ID.
14
19
  *
@@ -44,6 +49,7 @@ class API extends sdkClient.API {
44
49
  urlParams: sdkClient.urlParams(
45
50
  ["name", request.name],
46
51
  ["order_by", request.orderBy],
52
+ ["organization_id", request.organizationId],
47
53
  ["page", request.page],
48
54
  [
49
55
  "page_size",
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '@scaleway/sdk-client';
2
- import type { Region as ScwRegion, WaitForOptions } from '@scaleway/sdk-client';
2
+ import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
3
3
  import type { CreateFileSystemRequest, DeleteFileSystemRequest, FileSystem, GetFileSystemRequest, ListAttachmentsRequest, ListAttachmentsResponse, ListFileSystemsRequest, ListFileSystemsResponse, UpdateFileSystemRequest } from './types.gen';
4
4
  /**
5
5
  * File Storage API.
@@ -7,8 +7,11 @@ import type { CreateFileSystemRequest, DeleteFileSystemRequest, FileSystem, GetF
7
7
  This API allows you to manage your File Storage resources.
8
8
  */
9
9
  export declare class API extends ParentAPI {
10
- /** Lists the available regions of the API. */
11
- static readonly LOCALITIES: ScwRegion[];
10
+ /**
11
+ * Locality of this API.
12
+ * type ∈ {'zone','region','global','unspecified'}
13
+ */
14
+ static readonly LOCALITY: ApiLocality;
12
15
  /**
13
16
  * Get filesystem details. Retrieve all properties and current status of a specific filesystem identified by its ID.
14
17
  *
@@ -1,12 +1,17 @@
1
- import { API as API$1, validatePathParam, waitForResource, urlParams, enrichForPagination } from "@scaleway/sdk-client";
1
+ import { API as API$1, toApiLocality, validatePathParam, waitForResource, urlParams, enrichForPagination } from "@scaleway/sdk-client";
2
2
  import { FILE_SYSTEM_TRANSIENT_STATUSES } from "./content.gen.js";
3
3
  import { unmarshalFileSystem, unmarshalListFileSystemsResponse, unmarshalListAttachmentsResponse, marshalCreateFileSystemRequest, marshalUpdateFileSystemRequest } from "./marshalling.gen.js";
4
4
  const jsonContentHeaders = {
5
5
  "Content-Type": "application/json; charset=utf-8"
6
6
  };
7
7
  class API extends API$1 {
8
- /** Lists the available regions of the API. */
9
- static LOCALITIES = ["fr-par"];
8
+ /**
9
+ * Locality of this API.
10
+ * type ∈ {'zone','region','global','unspecified'}
11
+ */
12
+ static LOCALITY = toApiLocality({
13
+ regions: ["fr-par"]
14
+ });
10
15
  /**
11
16
  * Get filesystem details. Retrieve all properties and current status of a specific filesystem identified by its ID.
12
17
  *
@@ -42,6 +47,7 @@ class API extends API$1 {
42
47
  urlParams: urlParams(
43
48
  ["name", request.name],
44
49
  ["order_by", request.orderBy],
50
+ ["organization_id", request.organizationId],
45
51
  ["page", request.page],
46
52
  [
47
53
  "page_size",
@@ -189,6 +189,10 @@ export type ListFileSystemsRequest = {
189
189
  * Filter by project ID.
190
190
  */
191
191
  projectId?: string;
192
+ /**
193
+ * Filter by organization ID.
194
+ */
195
+ organizationId?: string;
192
196
  /**
193
197
  * Page number (starting at 1).
194
198
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-file",
3
- "version": "1.0.7",
3
+ "version": "1.1.0",
4
4
  "description": "Scaleway SDK file",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -30,13 +30,13 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@scaleway/random-name": "5.1.1",
33
- "@scaleway/sdk-std": "1.0.4"
33
+ "@scaleway/sdk-std": "1.0.5"
34
34
  },
35
35
  "peerDependencies": {
36
- "@scaleway/sdk-client": "^1.2.3"
36
+ "@scaleway/sdk-client": "^1.3.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@scaleway/sdk-client": "^1.2.3"
39
+ "@scaleway/sdk-client": "^1.3.0"
40
40
  },
41
41
  "scripts": {
42
42
  "package:check": "pnpm publint",