@scaleway/sdk-mnq 1.0.4 → 1.0.5

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.
@@ -6,8 +6,13 @@ const jsonContentHeaders = {
6
6
  "Content-Type": "application/json; charset=utf-8"
7
7
  };
8
8
  class NatsAPI extends sdkClient.API {
9
- /** Lists the available regions of the API. */
10
- static LOCALITIES = ["fr-par", "nl-ams"];
9
+ /**
10
+ * Locality of this API.
11
+ * type ∈ {'zone','region','global','unspecified'}
12
+ */
13
+ static LOCALITY = sdkClient.toApiLocality({
14
+ regions: ["fr-par", "nl-ams"]
15
+ });
11
16
  /**
12
17
  * Create a NATS account. Create a NATS account associated with a Project.
13
18
  *
@@ -159,8 +164,13 @@ class NatsAPI extends sdkClient.API {
159
164
  );
160
165
  }
161
166
  class SnsAPI extends sdkClient.API {
162
- /** Lists the available regions of the API. */
163
- static LOCALITIES = ["fr-par", "nl-ams"];
167
+ /**
168
+ * Locality of this API.
169
+ * type ∈ {'zone','region','global','unspecified'}
170
+ */
171
+ static LOCALITY = sdkClient.toApiLocality({
172
+ regions: ["fr-par", "nl-ams"]
173
+ });
164
174
  /**
165
175
  * Activate Topics and Events. Activate Topics and Events for the specified Project ID. Topics and Events must be activated before any usage. Activating Topics and Events does not trigger any billing, and you can deactivate at any time.
166
176
  *
@@ -303,8 +313,13 @@ class SnsAPI extends sdkClient.API {
303
313
  );
304
314
  }
305
315
  class SqsAPI extends sdkClient.API {
306
- /** Lists the available regions of the API. */
307
- static LOCALITIES = ["fr-par", "nl-ams"];
316
+ /**
317
+ * Locality of this API.
318
+ * type ∈ {'zone','region','global','unspecified'}
319
+ */
320
+ static LOCALITY = sdkClient.toApiLocality({
321
+ regions: ["fr-par", "nl-ams"]
322
+ });
308
323
  /**
309
324
  * Activate Queues. Activate Queues for the specified Project ID. Queues must be activated before any usage such as creating credentials and queues. Activating Queues does not trigger any billing, and you can deactivate at any time.
310
325
  *
@@ -1,5 +1,5 @@
1
1
  import { API as ParentAPI } from '@scaleway/sdk-client';
2
- import type { Region as ScwRegion } from '@scaleway/sdk-client';
2
+ import type { ApiLocality } from '@scaleway/sdk-client';
3
3
  import type { ListNatsAccountsResponse, ListNatsCredentialsResponse, ListSnsCredentialsResponse, ListSqsCredentialsResponse, NatsAccount, NatsApiCreateNatsAccountRequest, NatsApiCreateNatsCredentialsRequest, NatsApiDeleteNatsAccountRequest, NatsApiDeleteNatsCredentialsRequest, NatsApiGetNatsAccountRequest, NatsApiGetNatsCredentialsRequest, NatsApiListNatsAccountsRequest, NatsApiListNatsCredentialsRequest, NatsApiUpdateNatsAccountRequest, NatsCredentials, SnsApiActivateSnsRequest, SnsApiCreateSnsCredentialsRequest, SnsApiDeactivateSnsRequest, SnsApiDeleteSnsCredentialsRequest, SnsApiGetSnsCredentialsRequest, SnsApiGetSnsInfoRequest, SnsApiListSnsCredentialsRequest, SnsApiUpdateSnsCredentialsRequest, SnsCredentials, SnsInfo, SqsApiActivateSqsRequest, SqsApiCreateSqsCredentialsRequest, SqsApiDeactivateSqsRequest, SqsApiDeleteSqsCredentialsRequest, SqsApiGetSqsCredentialsRequest, SqsApiGetSqsInfoRequest, SqsApiListSqsCredentialsRequest, SqsApiUpdateSqsCredentialsRequest, SqsCredentials, SqsInfo } from './types.gen';
4
4
  /**
5
5
  * NATS API.
@@ -7,8 +7,11 @@ import type { ListNatsAccountsResponse, ListNatsCredentialsResponse, ListSnsCred
7
7
  This API allows you to manage Scaleway NATS accounts.
8
8
  */
9
9
  export declare class NatsAPI 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
  * Create a NATS account. Create a NATS account associated with a Project.
14
17
  *
@@ -85,8 +88,11 @@ export declare class NatsAPI extends ParentAPI {
85
88
  This API allows you to manage your Scaleway Topics and Events.
86
89
  */
87
90
  export declare class SnsAPI extends ParentAPI {
88
- /** Lists the available regions of the API. */
89
- static readonly LOCALITIES: ScwRegion[];
91
+ /**
92
+ * Locality of this API.
93
+ * type ∈ {'zone','region','global','unspecified'}
94
+ */
95
+ static readonly LOCALITY: ApiLocality;
90
96
  /**
91
97
  * Activate Topics and Events. Activate Topics and Events for the specified Project ID. Topics and Events must be activated before any usage. Activating Topics and Events does not trigger any billing, and you can deactivate at any time.
92
98
  *
@@ -153,8 +159,11 @@ export declare class SnsAPI extends ParentAPI {
153
159
  This API allows you to manage your Scaleway Queues.
154
160
  */
155
161
  export declare class SqsAPI extends ParentAPI {
156
- /** Lists the available regions of the API. */
157
- static readonly LOCALITIES: ScwRegion[];
162
+ /**
163
+ * Locality of this API.
164
+ * type ∈ {'zone','region','global','unspecified'}
165
+ */
166
+ static readonly LOCALITY: ApiLocality;
158
167
  /**
159
168
  * Activate Queues. Activate Queues for the specified Project ID. Queues must be activated before any usage such as creating credentials and queues. Activating Queues does not trigger any billing, and you can deactivate at any time.
160
169
  *
@@ -1,11 +1,16 @@
1
- import { API, validatePathParam, urlParams, enrichForPagination } from "@scaleway/sdk-client";
1
+ import { API, toApiLocality, validatePathParam, urlParams, enrichForPagination } from "@scaleway/sdk-client";
2
2
  import { marshalNatsApiCreateNatsAccountRequest, unmarshalNatsAccount, marshalNatsApiUpdateNatsAccountRequest, unmarshalListNatsAccountsResponse, marshalNatsApiCreateNatsCredentialsRequest, unmarshalNatsCredentials, unmarshalListNatsCredentialsResponse, marshalSnsApiActivateSnsRequest, unmarshalSnsInfo, marshalSnsApiDeactivateSnsRequest, marshalSnsApiCreateSnsCredentialsRequest, unmarshalSnsCredentials, marshalSnsApiUpdateSnsCredentialsRequest, unmarshalListSnsCredentialsResponse, marshalSqsApiActivateSqsRequest, unmarshalSqsInfo, marshalSqsApiDeactivateSqsRequest, marshalSqsApiCreateSqsCredentialsRequest, unmarshalSqsCredentials, marshalSqsApiUpdateSqsCredentialsRequest, unmarshalListSqsCredentialsResponse } from "./marshalling.gen.js";
3
3
  const jsonContentHeaders = {
4
4
  "Content-Type": "application/json; charset=utf-8"
5
5
  };
6
6
  class NatsAPI extends API {
7
- /** Lists the available regions of the API. */
8
- static LOCALITIES = ["fr-par", "nl-ams"];
7
+ /**
8
+ * Locality of this API.
9
+ * type ∈ {'zone','region','global','unspecified'}
10
+ */
11
+ static LOCALITY = toApiLocality({
12
+ regions: ["fr-par", "nl-ams"]
13
+ });
9
14
  /**
10
15
  * Create a NATS account. Create a NATS account associated with a Project.
11
16
  *
@@ -157,8 +162,13 @@ class NatsAPI extends API {
157
162
  );
158
163
  }
159
164
  class SnsAPI extends API {
160
- /** Lists the available regions of the API. */
161
- static LOCALITIES = ["fr-par", "nl-ams"];
165
+ /**
166
+ * Locality of this API.
167
+ * type ∈ {'zone','region','global','unspecified'}
168
+ */
169
+ static LOCALITY = toApiLocality({
170
+ regions: ["fr-par", "nl-ams"]
171
+ });
162
172
  /**
163
173
  * Activate Topics and Events. Activate Topics and Events for the specified Project ID. Topics and Events must be activated before any usage. Activating Topics and Events does not trigger any billing, and you can deactivate at any time.
164
174
  *
@@ -301,8 +311,13 @@ class SnsAPI extends API {
301
311
  );
302
312
  }
303
313
  class SqsAPI extends API {
304
- /** Lists the available regions of the API. */
305
- static LOCALITIES = ["fr-par", "nl-ams"];
314
+ /**
315
+ * Locality of this API.
316
+ * type ∈ {'zone','region','global','unspecified'}
317
+ */
318
+ static LOCALITY = toApiLocality({
319
+ regions: ["fr-par", "nl-ams"]
320
+ });
306
321
  /**
307
322
  * Activate Queues. Activate Queues for the specified Project ID. Queues must be activated before any usage such as creating credentials and queues. Activating Queues does not trigger any billing, and you can deactivate at any time.
308
323
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-mnq",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Scaleway SDK mnq",
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",