@scaleway/sdk-product-catalog 1.5.0 → 1.6.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.
|
@@ -13,7 +13,23 @@ class PublicCatalogAPI extends sdkClient.API {
|
|
|
13
13
|
"page_size",
|
|
14
14
|
request.pageSize ?? this.client.settings.defaultPageSize
|
|
15
15
|
],
|
|
16
|
-
["product_types", request.productTypes]
|
|
16
|
+
["product_types", request.productTypes],
|
|
17
|
+
...Object.entries(
|
|
18
|
+
sdkClient.resolveOneOf([
|
|
19
|
+
{ param: "global", value: request.global },
|
|
20
|
+
{
|
|
21
|
+
default: this.client.settings.defaultRegion,
|
|
22
|
+
param: "region",
|
|
23
|
+
value: request.region
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
default: this.client.settings.defaultZone,
|
|
27
|
+
param: "zone",
|
|
28
|
+
value: request.zone
|
|
29
|
+
},
|
|
30
|
+
{ param: "datacenter", value: request.datacenter }
|
|
31
|
+
])
|
|
32
|
+
)
|
|
17
33
|
)
|
|
18
34
|
},
|
|
19
35
|
marshalling_gen.unmarshalListPublicCatalogProductsResponse
|
package/dist/v2alpha1/api.gen.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { API, urlParams, enrichForPagination } from "@scaleway/sdk-client";
|
|
1
|
+
import { API, urlParams, resolveOneOf, enrichForPagination } from "@scaleway/sdk-client";
|
|
2
2
|
import { unmarshalListPublicCatalogProductsResponse } from "./marshalling.gen.js";
|
|
3
3
|
class PublicCatalogAPI extends API {
|
|
4
4
|
pageOfListPublicCatalogProducts = (request = {}) => this.client.fetch(
|
|
@@ -11,7 +11,23 @@ class PublicCatalogAPI extends API {
|
|
|
11
11
|
"page_size",
|
|
12
12
|
request.pageSize ?? this.client.settings.defaultPageSize
|
|
13
13
|
],
|
|
14
|
-
["product_types", request.productTypes]
|
|
14
|
+
["product_types", request.productTypes],
|
|
15
|
+
...Object.entries(
|
|
16
|
+
resolveOneOf([
|
|
17
|
+
{ param: "global", value: request.global },
|
|
18
|
+
{
|
|
19
|
+
default: this.client.settings.defaultRegion,
|
|
20
|
+
param: "region",
|
|
21
|
+
value: request.region
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
default: this.client.settings.defaultZone,
|
|
25
|
+
param: "zone",
|
|
26
|
+
value: request.zone
|
|
27
|
+
},
|
|
28
|
+
{ param: "datacenter", value: request.datacenter }
|
|
29
|
+
])
|
|
30
|
+
)
|
|
15
31
|
)
|
|
16
32
|
},
|
|
17
33
|
unmarshalListPublicCatalogProductsResponse
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Money, Region as ScwRegion, Zone as ScwZone } from '@scaleway/sdk-client';
|
|
2
|
-
export type ListPublicCatalogProductsRequestProductType = 'unknown_product_type' | 'instance' | 'apple_silicon' | 'elastic_metal' | 'dedibox';
|
|
2
|
+
export type ListPublicCatalogProductsRequestProductType = 'unknown_product_type' | 'instance' | 'apple_silicon' | 'elastic_metal' | 'dedibox' | 'block_storage';
|
|
3
3
|
export type PublicCatalogProductPropertiesHardwareCPUArch = 'unknown_arch' | 'x64' | 'arm64' | 'riscv' | 'apple_silicon';
|
|
4
4
|
export type PublicCatalogProductStatus = 'unknown_status' | 'public_beta' | 'preview' | 'general_availability' | 'end_of_deployment' | 'end_of_support';
|
|
5
5
|
export type PublicCatalogProductUnitOfMeasureCountableUnit = 'unknown_countable_unit' | 'chunk' | 'core' | 'currency' | 'device' | 'domain' | 'email' | 'gb_s' | 'gigabyte' | 'hour' | 'iops_gigabyte' | 'ip' | 'month' | 'node' | 'plan' | 'query' | 'request' | 'session' | 'vcpu_s' | 'version' | 'year' | 'key' | 'token' | 'minute' | 'setup' | 'day';
|
|
@@ -314,4 +314,28 @@ export type PublicCatalogApiListPublicCatalogProductsRequest = {
|
|
|
314
314
|
* The list of filtered product categories.
|
|
315
315
|
*/
|
|
316
316
|
productTypes?: ListPublicCatalogProductsRequestProductType[];
|
|
317
|
+
/**
|
|
318
|
+
* Filter global products.
|
|
319
|
+
*
|
|
320
|
+
* One-of ('locality'): at most one of 'global', 'region', 'zone', 'datacenter' could be set.
|
|
321
|
+
*/
|
|
322
|
+
global?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
* Filter products by region.
|
|
325
|
+
*
|
|
326
|
+
* One-of ('locality'): at most one of 'global', 'region', 'zone', 'datacenter' could be set.
|
|
327
|
+
*/
|
|
328
|
+
region?: ScwRegion;
|
|
329
|
+
/**
|
|
330
|
+
* Filter products by zone.
|
|
331
|
+
*
|
|
332
|
+
* One-of ('locality'): at most one of 'global', 'region', 'zone', 'datacenter' could be set.
|
|
333
|
+
*/
|
|
334
|
+
zone?: ScwZone;
|
|
335
|
+
/**
|
|
336
|
+
* Filter products by datacenter.
|
|
337
|
+
*
|
|
338
|
+
* One-of ('locality'): at most one of 'global', 'region', 'zone', 'datacenter' could be set.
|
|
339
|
+
*/
|
|
340
|
+
datacenter?: string;
|
|
317
341
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-product-catalog",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Scaleway SDK product-catalog",
|
|
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.
|
|
33
|
+
"@scaleway/sdk-std": "1.0.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|