@scaleway/sdk-product-catalog 2.20.0 → 2.21.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/dist/.vite/license.md +3 -0
- package/dist/_virtual/_rolldown/runtime.js +13 -0
- package/dist/index.gen.d.ts +5 -0
- package/dist/index.gen.js +2 -0
- package/dist/metadata.gen.d.ts +12 -0
- package/dist/metadata.gen.js +13 -0
- package/dist/v2alpha1/api.gen.d.ts +18 -0
- package/dist/v2alpha1/api.gen.js +38 -0
- package/dist/v2alpha1/index.gen.d.ts +4 -0
- package/dist/v2alpha1/index.gen.js +12 -0
- package/dist/v2alpha1/marshalling.gen.d.ts +2 -0
- package/dist/v2alpha1/marshalling.gen.js +434 -0
- package/dist/v2alpha1/metadata.gen.d.ts +21 -0
- package/dist/v2alpha1/metadata.gen.js +23 -0
- package/dist/v2alpha1/types.gen.d.ts +859 -0
- package/dist/v2alpha1/types.gen.js +0 -0
- package/dist/v2alpha1/validation-rules.gen.d.ts +8 -0
- package/dist/v2alpha1/validation-rules.gen.js +9 -0
- package/package.json +4 -4
- package/LICENSE +0 -191
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is automatically generated
|
|
3
|
+
* PLEASE DO NOT EDIT HERE
|
|
4
|
+
*/
|
|
5
|
+
export declare const pkgMetadata: {
|
|
6
|
+
readonly name: "@scaleway/sdk-product-catalog";
|
|
7
|
+
readonly namespace: "product-catalog";
|
|
8
|
+
readonly displayName: "Product Catalog";
|
|
9
|
+
readonly versions: readonly ["v2alpha1"];
|
|
10
|
+
};
|
|
11
|
+
export type Metadata = typeof pkgMetadata;
|
|
12
|
+
export default pkgMetadata;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/metadata.gen.ts
|
|
2
|
+
/**
|
|
3
|
+
* This file is automatically generated
|
|
4
|
+
* PLEASE DO NOT EDIT HERE
|
|
5
|
+
*/
|
|
6
|
+
const pkgMetadata = {
|
|
7
|
+
name: "@scaleway/sdk-product-catalog",
|
|
8
|
+
namespace: "product-catalog",
|
|
9
|
+
displayName: "Product Catalog",
|
|
10
|
+
versions: ["v2alpha1"]
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { pkgMetadata as default, pkgMetadata };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
+
import type { ListPublicCatalogProductsResponse, PublicCatalogApiListPublicCatalogProductsRequest } from './types.gen.js';
|
|
3
|
+
/**
|
|
4
|
+
* Product Catalog API.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PublicCatalogAPI extends ParentAPI {
|
|
7
|
+
protected pageOfListPublicCatalogProducts: (request?: Readonly<PublicCatalogApiListPublicCatalogProductsRequest>) => Promise<ListPublicCatalogProductsResponse>;
|
|
8
|
+
/**
|
|
9
|
+
* List all available products. List all available products in the Scaleway catalog. Returns a complete list of products with their corresponding description, locations, prices and properties. You can define the `page` number and `page_size` for your query in the request.
|
|
10
|
+
*
|
|
11
|
+
* @param request - The request {@link PublicCatalogApiListPublicCatalogProductsRequest}
|
|
12
|
+
* @returns A Promise of ListPublicCatalogProductsResponse
|
|
13
|
+
*/
|
|
14
|
+
listPublicCatalogProducts: (request?: Readonly<PublicCatalogApiListPublicCatalogProductsRequest>) => Promise<ListPublicCatalogProductsResponse> & {
|
|
15
|
+
all: () => Promise<import("./types.gen.js").PublicCatalogProduct[]>;
|
|
16
|
+
[Symbol.asyncIterator]: () => AsyncGenerator<import("./types.gen.js").PublicCatalogProduct[], void, void>;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { unmarshalListPublicCatalogProductsResponse } from "./marshalling.gen.js";
|
|
2
|
+
import { API, enrichForPagination, resolveOneOf, urlParams } from "@scaleway/sdk-client";
|
|
3
|
+
//#region src/v2alpha1/api.gen.ts
|
|
4
|
+
/**
|
|
5
|
+
* Product Catalog API.
|
|
6
|
+
*/
|
|
7
|
+
var PublicCatalogAPI = class extends API {
|
|
8
|
+
constructor(..._args) {
|
|
9
|
+
super(..._args);
|
|
10
|
+
this.pageOfListPublicCatalogProducts = (request = {}) => this.client.fetch({
|
|
11
|
+
method: "GET",
|
|
12
|
+
path: `/product-catalog/v2alpha1/public-catalog/products`,
|
|
13
|
+
urlParams: urlParams(["api_ids", request.apiIds], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["product_types", request.productTypes], ["status", request.status], ...Object.entries(resolveOneOf([
|
|
14
|
+
{
|
|
15
|
+
param: "global",
|
|
16
|
+
value: request.global
|
|
17
|
+
},
|
|
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
|
+
{
|
|
29
|
+
param: "datacenter",
|
|
30
|
+
value: request.datacenter
|
|
31
|
+
}
|
|
32
|
+
])))
|
|
33
|
+
}, unmarshalListPublicCatalogProductsResponse);
|
|
34
|
+
this.listPublicCatalogProducts = (request = {}) => enrichForPagination("products", this.pageOfListPublicCatalogProducts, request);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { PublicCatalogAPI };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { PublicCatalogAPI, } from './api.gen.js';
|
|
2
|
+
export * from './marshalling.gen.js';
|
|
3
|
+
export type { ListPublicCatalogProductsRequestProductType, ListPublicCatalogProductsRequestStatus, ListPublicCatalogProductsResponse, PublicCatalogApiListPublicCatalogProductsRequest, PublicCatalogProduct, PublicCatalogProductEnvironmentalImpactEstimation, PublicCatalogProductLocality, PublicCatalogProductPrice, PublicCatalogProductProductBadge, PublicCatalogProductProperties, PublicCatalogProductPropertiesApacheKafka, PublicCatalogProductPropertiesAppleSilicon, PublicCatalogProductPropertiesBlockStorage, PublicCatalogProductPropertiesBlockStorageSnapshotType, PublicCatalogProductPropertiesBlockStorageVolumeType, PublicCatalogProductPropertiesDedibox, PublicCatalogProductPropertiesElasticMetal, PublicCatalogProductPropertiesGenerativeApis, PublicCatalogProductPropertiesGenerativeApisConsumptionMode, PublicCatalogProductPropertiesGenerativeApisTask, PublicCatalogProductPropertiesGenerativeApisTokenType, PublicCatalogProductPropertiesHardware, PublicCatalogProductPropertiesHardwareCPU, PublicCatalogProductPropertiesHardwareCPUArch, PublicCatalogProductPropertiesHardwareCPUPhysical, PublicCatalogProductPropertiesHardwareCPUVirtual, PublicCatalogProductPropertiesHardwareGPU, PublicCatalogProductPropertiesHardwareNetwork, PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareRAMECCType, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, PublicCatalogProductPropertiesInstanceLocalSSDSnapshot, PublicCatalogProductPropertiesInstanceLocalSSDStorage, PublicCatalogProductPropertiesKeyManager, PublicCatalogProductPropertiesKubernetes, PublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType, PublicCatalogProductPropertiesKubernetesKosmosControlPlaneType, PublicCatalogProductPropertiesKubernetesKosmosNodeType, PublicCatalogProductPropertiesLoadBalancer, PublicCatalogProductPropertiesLoadBalancerIPV4Type, PublicCatalogProductPropertiesLoadBalancerNodeType, PublicCatalogProductPropertiesManagedInference, PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage, PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment, PublicCatalogProductPropertiesManagedMongoDB, PublicCatalogProductPropertiesManagedMongoDBManagementType, PublicCatalogProductPropertiesManagedMongoDBNodeType, PublicCatalogProductPropertiesManagedMongoDBStorageType, PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass, PublicCatalogProductPropertiesManagedRedisDatabase, PublicCatalogProductPropertiesManagedRelationalDatabase, PublicCatalogProductPropertiesManagedRelationalDatabaseManagementType, PublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType, PublicCatalogProductPropertiesManagedRelationalDatabaseNodeType, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageType, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass, PublicCatalogProductPropertiesObjectStorage, PublicCatalogProductPropertiesObjectStorageClassType, PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass, PublicCatalogProductPropertiesObjectStorageInternetTrafficType, PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType, PublicCatalogProductPropertiesObjectStorageRegionTrafficType, PublicCatalogProductPropertiesObjectStorageRestoreType, PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType, PublicCatalogProductPropertiesOpenSearch, PublicCatalogProductPropertiesSecretManager, PublicCatalogProductPropertiesServerlessContainers, PublicCatalogProductPropertiesServerlessContainersCPUType, PublicCatalogProductPropertiesServerlessContainersMemoryType, PublicCatalogProductPropertiesServerlessFunctions, PublicCatalogProductPropertiesServerlessFunctionsConsumptionType, PublicCatalogProductPropertiesServerlessFunctionsFreeTierType, PublicCatalogProductPropertiesServerlessFunctionsProvisionType, PublicCatalogProductPropertiesServerlessFunctionsRequestType, PublicCatalogProductPropertiesServerlessFunctionsRuntimeResource, PublicCatalogProductPropertiesServerlessJobs, PublicCatalogProductPropertiesServerlessJobsCPUType, PublicCatalogProductPropertiesServerlessJobsMemoryType, PublicCatalogProductStatus, PublicCatalogProductUnitOfMeasure, PublicCatalogProductUnitOfMeasureCountableUnit, } from './types.gen.js';
|
|
4
|
+
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
import { unmarshalListPublicCatalogProductsResponse } from "./marshalling.gen.js";
|
|
3
|
+
import { PublicCatalogAPI } from "./api.gen.js";
|
|
4
|
+
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
|
+
//#region src/v2alpha1/index.gen.ts
|
|
6
|
+
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
PublicCatalogAPI: () => PublicCatalogAPI,
|
|
8
|
+
ValidationRules: () => validation_rules_gen_exports,
|
|
9
|
+
unmarshalListPublicCatalogProductsResponse: () => unmarshalListPublicCatalogProductsResponse
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { PublicCatalogAPI, validation_rules_gen_exports as ValidationRules, index_gen_exports, unmarshalListPublicCatalogProductsResponse };
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
|
+
//#region src/v2alpha1/marshalling.gen.ts
|
|
3
|
+
const unmarshalPublicCatalogProductPropertiesHardwareCPUPhysical = (data) => {
|
|
4
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareCPUPhysical' failed as data isn't a dictionary.`);
|
|
5
|
+
return {
|
|
6
|
+
benchmark: data.benchmark,
|
|
7
|
+
coresPerSocket: data.cores_per_socket,
|
|
8
|
+
frequency: data.frequency,
|
|
9
|
+
sockets: data.sockets,
|
|
10
|
+
threadsPerCore: data.threads_per_core
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
const unmarshalPublicCatalogProductPropertiesHardwareCPUVirtual = (data) => {
|
|
14
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareCPUVirtual' failed as data isn't a dictionary.`);
|
|
15
|
+
return { count: data.count };
|
|
16
|
+
};
|
|
17
|
+
const unmarshalPublicCatalogProductPropertiesBlockStorageSnapshotType = (data) => {
|
|
18
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesBlockStorageSnapshotType' failed as data isn't a dictionary.`);
|
|
19
|
+
return {};
|
|
20
|
+
};
|
|
21
|
+
const unmarshalPublicCatalogProductPropertiesBlockStorageVolumeType = (data) => {
|
|
22
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesBlockStorageVolumeType' failed as data isn't a dictionary.`);
|
|
23
|
+
return {
|
|
24
|
+
maxSize: data.max_size,
|
|
25
|
+
minSize: data.min_size
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
const unmarshalPublicCatalogProductPropertiesHardwareCPU = (data) => {
|
|
29
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareCPU' failed as data isn't a dictionary.`);
|
|
30
|
+
return {
|
|
31
|
+
arch: data.arch,
|
|
32
|
+
description: data.description,
|
|
33
|
+
physical: data.physical ? unmarshalPublicCatalogProductPropertiesHardwareCPUPhysical(data.physical) : void 0,
|
|
34
|
+
shared: data.shared,
|
|
35
|
+
threads: data.threads,
|
|
36
|
+
type: data.type,
|
|
37
|
+
virtual: data.virtual ? unmarshalPublicCatalogProductPropertiesHardwareCPUVirtual(data.virtual) : void 0
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
const unmarshalPublicCatalogProductPropertiesHardwareGPU = (data) => {
|
|
41
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareGPU' failed as data isn't a dictionary.`);
|
|
42
|
+
return {
|
|
43
|
+
count: data.count,
|
|
44
|
+
description: data.description,
|
|
45
|
+
type: data.type
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
const unmarshalPublicCatalogProductPropertiesHardwareNetwork = (data) => {
|
|
49
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareNetwork' failed as data isn't a dictionary.`);
|
|
50
|
+
return {
|
|
51
|
+
description: data.description,
|
|
52
|
+
internalBandwidth: data.internal_bandwidth,
|
|
53
|
+
maxPublicBandwidth: data.max_public_bandwidth,
|
|
54
|
+
publicBandwidth: data.public_bandwidth
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
const unmarshalPublicCatalogProductPropertiesHardwareRAM = (data) => {
|
|
58
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareRAM' failed as data isn't a dictionary.`);
|
|
59
|
+
return {
|
|
60
|
+
description: data.description,
|
|
61
|
+
eccType: data.ecc_type ? data.ecc_type : void 0,
|
|
62
|
+
size: data.size,
|
|
63
|
+
type: data.type
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const unmarshalPublicCatalogProductPropertiesHardwareStorage = (data) => {
|
|
67
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareStorage' failed as data isn't a dictionary.`);
|
|
68
|
+
return {
|
|
69
|
+
description: data.description,
|
|
70
|
+
total: data.total
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
const unmarshalPublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType = (data) => {
|
|
74
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType' failed as data isn't a dictionary.`);
|
|
75
|
+
return {};
|
|
76
|
+
};
|
|
77
|
+
const unmarshalPublicCatalogProductPropertiesKubernetesKosmosControlPlaneType = (data) => {
|
|
78
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKubernetesKosmosControlPlaneType' failed as data isn't a dictionary.`);
|
|
79
|
+
return {};
|
|
80
|
+
};
|
|
81
|
+
const unmarshalPublicCatalogProductPropertiesKubernetesKosmosNodeType = (data) => {
|
|
82
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKubernetesKosmosNodeType' failed as data isn't a dictionary.`);
|
|
83
|
+
return {};
|
|
84
|
+
};
|
|
85
|
+
const unmarshalPublicCatalogProductPropertiesLoadBalancerIPV4Type = (data) => {
|
|
86
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesLoadBalancerIPV4Type' failed as data isn't a dictionary.`);
|
|
87
|
+
return {};
|
|
88
|
+
};
|
|
89
|
+
const unmarshalPublicCatalogProductPropertiesLoadBalancerNodeType = (data) => {
|
|
90
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesLoadBalancerNodeType' failed as data isn't a dictionary.`);
|
|
91
|
+
return {
|
|
92
|
+
bandwidth: data.bandwidth,
|
|
93
|
+
multiCloudProvider: data.multi_cloud_provider,
|
|
94
|
+
offerId: data.offer_id
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
const unmarshalPublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage = (data) => {
|
|
98
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage' failed as data isn't a dictionary.`);
|
|
99
|
+
return {};
|
|
100
|
+
};
|
|
101
|
+
const unmarshalPublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment = (data) => {
|
|
102
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment' failed as data isn't a dictionary.`);
|
|
103
|
+
return { instanceGpuName: data.instance_gpu_name };
|
|
104
|
+
};
|
|
105
|
+
const unmarshalPublicCatalogProductPropertiesManagedMongoDBManagementType = (data) => {
|
|
106
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedMongoDBManagementType' failed as data isn't a dictionary.`);
|
|
107
|
+
return {};
|
|
108
|
+
};
|
|
109
|
+
const unmarshalPublicCatalogProductPropertiesManagedMongoDBNodeType = (data) => {
|
|
110
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedMongoDBNodeType' failed as data isn't a dictionary.`);
|
|
111
|
+
return {};
|
|
112
|
+
};
|
|
113
|
+
const unmarshalPublicCatalogProductPropertiesManagedMongoDBStorageType = (data) => {
|
|
114
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedMongoDBStorageType' failed as data isn't a dictionary.`);
|
|
115
|
+
return { storageClass: data.storage_class };
|
|
116
|
+
};
|
|
117
|
+
const unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseManagementType = (data) => {
|
|
118
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabaseManagementType' failed as data isn't a dictionary.`);
|
|
119
|
+
return {};
|
|
120
|
+
};
|
|
121
|
+
const unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType = (data) => {
|
|
122
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType' failed as data isn't a dictionary.`);
|
|
123
|
+
return {};
|
|
124
|
+
};
|
|
125
|
+
const unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseNodeType = (data) => {
|
|
126
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabaseNodeType' failed as data isn't a dictionary.`);
|
|
127
|
+
return {};
|
|
128
|
+
};
|
|
129
|
+
const unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseStorageType = (data) => {
|
|
130
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabaseStorageType' failed as data isn't a dictionary.`);
|
|
131
|
+
return { storageClass: data.storage_class };
|
|
132
|
+
};
|
|
133
|
+
const unmarshalPublicCatalogProductPropertiesObjectStorageClassType = (data) => {
|
|
134
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageClassType' failed as data isn't a dictionary.`);
|
|
135
|
+
return { storageClass: data.storage_class };
|
|
136
|
+
};
|
|
137
|
+
const unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType = (data) => {
|
|
138
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageInternetTrafficType' failed as data isn't a dictionary.`);
|
|
139
|
+
return { trafficType: data.traffic_type };
|
|
140
|
+
};
|
|
141
|
+
const unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType = (data) => {
|
|
142
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRegionTrafficType' failed as data isn't a dictionary.`);
|
|
143
|
+
return { regionDestination: data.region_destination };
|
|
144
|
+
};
|
|
145
|
+
const unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType = (data) => {
|
|
146
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRestoreType' failed as data isn't a dictionary.`);
|
|
147
|
+
return { restoreType: data.restore_type };
|
|
148
|
+
};
|
|
149
|
+
const unmarshalPublicCatalogProductPropertiesServerlessContainersCPUType = (data) => {
|
|
150
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessContainersCPUType' failed as data isn't a dictionary.`);
|
|
151
|
+
return { mvcpuCounts: data.mvcpu_counts };
|
|
152
|
+
};
|
|
153
|
+
const unmarshalPublicCatalogProductPropertiesServerlessContainersMemoryType = (data) => {
|
|
154
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessContainersMemoryType' failed as data isn't a dictionary.`);
|
|
155
|
+
return { sizes: data.sizes };
|
|
156
|
+
};
|
|
157
|
+
const unmarshalPublicCatalogProductPropertiesServerlessFunctionsConsumptionType = (data) => {
|
|
158
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessFunctionsConsumptionType' failed as data isn't a dictionary.`);
|
|
159
|
+
return {};
|
|
160
|
+
};
|
|
161
|
+
const unmarshalPublicCatalogProductPropertiesServerlessFunctionsFreeTierType = (data) => {
|
|
162
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessFunctionsFreeTierType' failed as data isn't a dictionary.`);
|
|
163
|
+
return {};
|
|
164
|
+
};
|
|
165
|
+
const unmarshalPublicCatalogProductPropertiesServerlessFunctionsProvisionType = (data) => {
|
|
166
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessFunctionsProvisionType' failed as data isn't a dictionary.`);
|
|
167
|
+
return {};
|
|
168
|
+
};
|
|
169
|
+
const unmarshalPublicCatalogProductPropertiesServerlessFunctionsRequestType = (data) => {
|
|
170
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessFunctionsRequestType' failed as data isn't a dictionary.`);
|
|
171
|
+
return {};
|
|
172
|
+
};
|
|
173
|
+
const unmarshalPublicCatalogProductPropertiesServerlessFunctionsRuntimeResource = (data) => {
|
|
174
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessFunctionsRuntimeResource' failed as data isn't a dictionary.`);
|
|
175
|
+
return {
|
|
176
|
+
memorySize: data.memory_size,
|
|
177
|
+
mvcpuCount: data.mvcpu_count
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
const unmarshalPublicCatalogProductPropertiesServerlessJobsCPUType = (data) => {
|
|
181
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessJobsCPUType' failed as data isn't a dictionary.`);
|
|
182
|
+
return { mvcpuCounts: data.mvcpu_counts };
|
|
183
|
+
};
|
|
184
|
+
const unmarshalPublicCatalogProductPropertiesServerlessJobsMemoryType = (data) => {
|
|
185
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessJobsMemoryType' failed as data isn't a dictionary.`);
|
|
186
|
+
return { sizes: data.sizes };
|
|
187
|
+
};
|
|
188
|
+
const unmarshalPublicCatalogProductPropertiesApacheKafka = (data) => {
|
|
189
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesApacheKafka' failed as data isn't a dictionary.`);
|
|
190
|
+
return {};
|
|
191
|
+
};
|
|
192
|
+
const unmarshalPublicCatalogProductPropertiesAppleSilicon = (data) => {
|
|
193
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesAppleSilicon' failed as data isn't a dictionary.`);
|
|
194
|
+
return {
|
|
195
|
+
range: data.range,
|
|
196
|
+
serverType: data.server_type
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
const unmarshalPublicCatalogProductPropertiesBlockStorage = (data) => {
|
|
200
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesBlockStorage' failed as data isn't a dictionary.`);
|
|
201
|
+
return {
|
|
202
|
+
maxVolumeSize: data.max_volume_size,
|
|
203
|
+
minVolumeSize: data.min_volume_size,
|
|
204
|
+
snapshot: data.snapshot ? unmarshalPublicCatalogProductPropertiesBlockStorageSnapshotType(data.snapshot) : void 0,
|
|
205
|
+
volume: data.volume ? unmarshalPublicCatalogProductPropertiesBlockStorageVolumeType(data.volume) : void 0
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
const unmarshalPublicCatalogProductPropertiesDedibox = (data) => {
|
|
209
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesDedibox' failed as data isn't a dictionary.`);
|
|
210
|
+
return {
|
|
211
|
+
offerId: data.offer_id,
|
|
212
|
+
range: data.range
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
const unmarshalPublicCatalogProductPropertiesElasticMetal = (data) => {
|
|
216
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesElasticMetal' failed as data isn't a dictionary.`);
|
|
217
|
+
return {
|
|
218
|
+
offerId: data.offer_id,
|
|
219
|
+
range: data.range
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
const unmarshalPublicCatalogProductPropertiesGenerativeApis = (data) => {
|
|
223
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesGenerativeApis' failed as data isn't a dictionary.`);
|
|
224
|
+
return {
|
|
225
|
+
consumptionMode: data.consumption_mode,
|
|
226
|
+
defaultReasoningValue: data.default_reasoning_value,
|
|
227
|
+
providerName: data.provider_name,
|
|
228
|
+
reasoning: data.reasoning,
|
|
229
|
+
supportedApis: data.supported_apis,
|
|
230
|
+
supportedReasoningValues: data.supported_reasoning_values,
|
|
231
|
+
tasks: data.tasks,
|
|
232
|
+
tokenType: data.token_type
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
const unmarshalPublicCatalogProductPropertiesHardware = (data) => {
|
|
236
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardware' failed as data isn't a dictionary.`);
|
|
237
|
+
return {
|
|
238
|
+
cpu: data.cpu ? unmarshalPublicCatalogProductPropertiesHardwareCPU(data.cpu) : void 0,
|
|
239
|
+
gpu: data.gpu ? unmarshalPublicCatalogProductPropertiesHardwareGPU(data.gpu) : void 0,
|
|
240
|
+
network: data.network ? unmarshalPublicCatalogProductPropertiesHardwareNetwork(data.network) : void 0,
|
|
241
|
+
ram: data.ram ? unmarshalPublicCatalogProductPropertiesHardwareRAM(data.ram) : void 0,
|
|
242
|
+
storage: data.storage ? unmarshalPublicCatalogProductPropertiesHardwareStorage(data.storage) : void 0
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
const unmarshalPublicCatalogProductPropertiesInstance = (data) => {
|
|
246
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesInstance' failed as data isn't a dictionary.`);
|
|
247
|
+
return {
|
|
248
|
+
offerId: data.offer_id,
|
|
249
|
+
range: data.range,
|
|
250
|
+
recommendedReplacementOfferIds: data.recommended_replacement_offer_ids
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
const unmarshalPublicCatalogProductPropertiesInstanceLocalSSDSnapshot = (data) => {
|
|
254
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesInstanceLocalSSDSnapshot' failed as data isn't a dictionary.`);
|
|
255
|
+
return {};
|
|
256
|
+
};
|
|
257
|
+
const unmarshalPublicCatalogProductPropertiesInstanceLocalSSDStorage = (data) => {
|
|
258
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesInstanceLocalSSDStorage' failed as data isn't a dictionary.`);
|
|
259
|
+
return {};
|
|
260
|
+
};
|
|
261
|
+
const unmarshalPublicCatalogProductPropertiesKeyManager = (data) => {
|
|
262
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKeyManager' failed as data isn't a dictionary.`);
|
|
263
|
+
return {};
|
|
264
|
+
};
|
|
265
|
+
const unmarshalPublicCatalogProductPropertiesKubernetes = (data) => {
|
|
266
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKubernetes' failed as data isn't a dictionary.`);
|
|
267
|
+
return {
|
|
268
|
+
kapsuleControlPlane: data.kapsule_control_plane ? unmarshalPublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType(data.kapsule_control_plane) : void 0,
|
|
269
|
+
kosmosControlPlane: data.kosmos_control_plane ? unmarshalPublicCatalogProductPropertiesKubernetesKosmosControlPlaneType(data.kosmos_control_plane) : void 0,
|
|
270
|
+
kosmosNode: data.kosmos_node ? unmarshalPublicCatalogProductPropertiesKubernetesKosmosNodeType(data.kosmos_node) : void 0
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
const unmarshalPublicCatalogProductPropertiesLoadBalancer = (data) => {
|
|
274
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesLoadBalancer' failed as data isn't a dictionary.`);
|
|
275
|
+
return {
|
|
276
|
+
ipv4: data.ipv4 ? unmarshalPublicCatalogProductPropertiesLoadBalancerIPV4Type(data.ipv4) : void 0,
|
|
277
|
+
node: data.node ? unmarshalPublicCatalogProductPropertiesLoadBalancerNodeType(data.node) : void 0
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
const unmarshalPublicCatalogProductPropertiesManagedInference = (data) => {
|
|
281
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedInference' failed as data isn't a dictionary.`);
|
|
282
|
+
return {
|
|
283
|
+
customModelStorage: data.custom_model_storage ? unmarshalPublicCatalogProductPropertiesManagedInferenceManagedInferenceCustomModelStorage(data.custom_model_storage) : void 0,
|
|
284
|
+
deployment: data.deployment ? unmarshalPublicCatalogProductPropertiesManagedInferenceManagedInferenceDeployment(data.deployment) : void 0,
|
|
285
|
+
instanceGpuName: data.instance_gpu_name
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
const unmarshalPublicCatalogProductPropertiesManagedMongoDB = (data) => {
|
|
289
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedMongoDB' failed as data isn't a dictionary.`);
|
|
290
|
+
return {
|
|
291
|
+
management: data.management ? unmarshalPublicCatalogProductPropertiesManagedMongoDBManagementType(data.management) : void 0,
|
|
292
|
+
node: data.node ? unmarshalPublicCatalogProductPropertiesManagedMongoDBNodeType(data.node) : void 0,
|
|
293
|
+
storage: data.storage ? unmarshalPublicCatalogProductPropertiesManagedMongoDBStorageType(data.storage) : void 0
|
|
294
|
+
};
|
|
295
|
+
};
|
|
296
|
+
const unmarshalPublicCatalogProductPropertiesManagedRedisDatabase = (data) => {
|
|
297
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRedisDatabase' failed as data isn't a dictionary.`);
|
|
298
|
+
return {};
|
|
299
|
+
};
|
|
300
|
+
const unmarshalPublicCatalogProductPropertiesManagedRelationalDatabase = (data) => {
|
|
301
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabase' failed as data isn't a dictionary.`);
|
|
302
|
+
return {
|
|
303
|
+
management: data.management ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseManagementType(data.management) : void 0,
|
|
304
|
+
multiAz: data.multi_az ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType(data.multi_az) : void 0,
|
|
305
|
+
node: data.node ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseNodeType(data.node) : void 0,
|
|
306
|
+
storage: data.storage ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseStorageType(data.storage) : void 0
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
const unmarshalPublicCatalogProductPropertiesObjectStorage = (data) => {
|
|
310
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorage' failed as data isn't a dictionary.`);
|
|
311
|
+
return {
|
|
312
|
+
class: data.class ? unmarshalPublicCatalogProductPropertiesObjectStorageClassType(data.class) : void 0,
|
|
313
|
+
internetTraffic: data.internet_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType(data.internet_traffic) : void 0,
|
|
314
|
+
regionTraffic: data.region_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType(data.region_traffic) : void 0,
|
|
315
|
+
restore: data.restore ? unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType(data.restore) : void 0
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
const unmarshalPublicCatalogProductPropertiesOpenSearch = (data) => {
|
|
319
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesOpenSearch' failed as data isn't a dictionary.`);
|
|
320
|
+
return {};
|
|
321
|
+
};
|
|
322
|
+
const unmarshalPublicCatalogProductPropertiesSecretManager = (data) => {
|
|
323
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesSecretManager' failed as data isn't a dictionary.`);
|
|
324
|
+
return {};
|
|
325
|
+
};
|
|
326
|
+
const unmarshalPublicCatalogProductPropertiesServerlessContainers = (data) => {
|
|
327
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessContainers' failed as data isn't a dictionary.`);
|
|
328
|
+
return {
|
|
329
|
+
cpu: data.cpu ? unmarshalPublicCatalogProductPropertiesServerlessContainersCPUType(data.cpu) : void 0,
|
|
330
|
+
memory: data.memory ? unmarshalPublicCatalogProductPropertiesServerlessContainersMemoryType(data.memory) : void 0
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
const unmarshalPublicCatalogProductPropertiesServerlessFunctions = (data) => {
|
|
334
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessFunctions' failed as data isn't a dictionary.`);
|
|
335
|
+
return {
|
|
336
|
+
consumption: data.consumption ? unmarshalPublicCatalogProductPropertiesServerlessFunctionsConsumptionType(data.consumption) : void 0,
|
|
337
|
+
freeTier: data.free_tier ? unmarshalPublicCatalogProductPropertiesServerlessFunctionsFreeTierType(data.free_tier) : void 0,
|
|
338
|
+
provision: data.provision ? unmarshalPublicCatalogProductPropertiesServerlessFunctionsProvisionType(data.provision) : void 0,
|
|
339
|
+
request: data.request ? unmarshalPublicCatalogProductPropertiesServerlessFunctionsRequestType(data.request) : void 0,
|
|
340
|
+
resources: unmarshalArrayOfObject(data.resources, unmarshalPublicCatalogProductPropertiesServerlessFunctionsRuntimeResource)
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
const unmarshalPublicCatalogProductPropertiesServerlessJobs = (data) => {
|
|
344
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesServerlessJobs' failed as data isn't a dictionary.`);
|
|
345
|
+
return {
|
|
346
|
+
cpu: data.cpu ? unmarshalPublicCatalogProductPropertiesServerlessJobsCPUType(data.cpu) : void 0,
|
|
347
|
+
memory: data.memory ? unmarshalPublicCatalogProductPropertiesServerlessJobsMemoryType(data.memory) : void 0
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
const unmarshalPublicCatalogProductEnvironmentalImpactEstimation = (data) => {
|
|
351
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductEnvironmentalImpactEstimation' failed as data isn't a dictionary.`);
|
|
352
|
+
return {
|
|
353
|
+
kgCo2Equivalent: data.kg_co2_equivalent,
|
|
354
|
+
m3WaterUsage: data.m3_water_usage
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
const unmarshalPublicCatalogProductLocality = (data) => {
|
|
358
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductLocality' failed as data isn't a dictionary.`);
|
|
359
|
+
return {
|
|
360
|
+
datacenter: data.datacenter,
|
|
361
|
+
global: data.global,
|
|
362
|
+
region: data.region,
|
|
363
|
+
zone: data.zone
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
const unmarshalPublicCatalogProductPrice = (data) => {
|
|
367
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPrice' failed as data isn't a dictionary.`);
|
|
368
|
+
return { retailPrice: data.retail_price ? unmarshalMoney(data.retail_price) : void 0 };
|
|
369
|
+
};
|
|
370
|
+
const unmarshalPublicCatalogProductProperties = (data) => {
|
|
371
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductProperties' failed as data isn't a dictionary.`);
|
|
372
|
+
return {
|
|
373
|
+
apacheKafka: data.apache_kafka ? unmarshalPublicCatalogProductPropertiesApacheKafka(data.apache_kafka) : void 0,
|
|
374
|
+
appleSilicon: data.apple_silicon ? unmarshalPublicCatalogProductPropertiesAppleSilicon(data.apple_silicon) : void 0,
|
|
375
|
+
blockStorage: data.block_storage ? unmarshalPublicCatalogProductPropertiesBlockStorage(data.block_storage) : void 0,
|
|
376
|
+
dedibox: data.dedibox ? unmarshalPublicCatalogProductPropertiesDedibox(data.dedibox) : void 0,
|
|
377
|
+
elasticMetal: data.elastic_metal ? unmarshalPublicCatalogProductPropertiesElasticMetal(data.elastic_metal) : void 0,
|
|
378
|
+
generativeApis: data.generative_apis ? unmarshalPublicCatalogProductPropertiesGenerativeApis(data.generative_apis) : void 0,
|
|
379
|
+
hardware: data.hardware ? unmarshalPublicCatalogProductPropertiesHardware(data.hardware) : void 0,
|
|
380
|
+
instance: data.instance ? unmarshalPublicCatalogProductPropertiesInstance(data.instance) : void 0,
|
|
381
|
+
instanceLocalSsdSnapshot: data.instance_local_ssd_snapshot ? unmarshalPublicCatalogProductPropertiesInstanceLocalSSDSnapshot(data.instance_local_ssd_snapshot) : void 0,
|
|
382
|
+
instanceLocalSsdStorage: data.instance_local_ssd_storage ? unmarshalPublicCatalogProductPropertiesInstanceLocalSSDStorage(data.instance_local_ssd_storage) : void 0,
|
|
383
|
+
keyManager: data.key_manager ? unmarshalPublicCatalogProductPropertiesKeyManager(data.key_manager) : void 0,
|
|
384
|
+
kubernetes: data.kubernetes ? unmarshalPublicCatalogProductPropertiesKubernetes(data.kubernetes) : void 0,
|
|
385
|
+
loadBalancer: data.load_balancer ? unmarshalPublicCatalogProductPropertiesLoadBalancer(data.load_balancer) : void 0,
|
|
386
|
+
managedInference: data.managed_inference ? unmarshalPublicCatalogProductPropertiesManagedInference(data.managed_inference) : void 0,
|
|
387
|
+
managedMongodb: data.managed_mongodb ? unmarshalPublicCatalogProductPropertiesManagedMongoDB(data.managed_mongodb) : void 0,
|
|
388
|
+
managedRedisDatabase: data.managed_redis_database ? unmarshalPublicCatalogProductPropertiesManagedRedisDatabase(data.managed_redis_database) : void 0,
|
|
389
|
+
managedRelationalDatabase: data.managed_relational_database ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabase(data.managed_relational_database) : void 0,
|
|
390
|
+
objectStorage: data.object_storage ? unmarshalPublicCatalogProductPropertiesObjectStorage(data.object_storage) : void 0,
|
|
391
|
+
openSearch: data.open_search ? unmarshalPublicCatalogProductPropertiesOpenSearch(data.open_search) : void 0,
|
|
392
|
+
secretManager: data.secret_manager ? unmarshalPublicCatalogProductPropertiesSecretManager(data.secret_manager) : void 0,
|
|
393
|
+
serverlessContainers: data.serverless_containers ? unmarshalPublicCatalogProductPropertiesServerlessContainers(data.serverless_containers) : void 0,
|
|
394
|
+
serverlessFunctions: data.serverless_functions ? unmarshalPublicCatalogProductPropertiesServerlessFunctions(data.serverless_functions) : void 0,
|
|
395
|
+
serverlessJobs: data.serverless_jobs ? unmarshalPublicCatalogProductPropertiesServerlessJobs(data.serverless_jobs) : void 0
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
const unmarshalPublicCatalogProductUnitOfMeasure = (data) => {
|
|
399
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductUnitOfMeasure' failed as data isn't a dictionary.`);
|
|
400
|
+
return {
|
|
401
|
+
size: data.size,
|
|
402
|
+
unit: data.unit
|
|
403
|
+
};
|
|
404
|
+
};
|
|
405
|
+
const unmarshalPublicCatalogProduct = (data) => {
|
|
406
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProduct' failed as data isn't a dictionary.`);
|
|
407
|
+
return {
|
|
408
|
+
badges: data.badges,
|
|
409
|
+
description: data.description,
|
|
410
|
+
endOfGrowthAt: unmarshalDate(data.end_of_growth_at),
|
|
411
|
+
endOfLifeAt: unmarshalDate(data.end_of_life_at),
|
|
412
|
+
endOfSaleAt: unmarshalDate(data.end_of_sale_at),
|
|
413
|
+
environmentalImpactEstimation: data.environmental_impact_estimation ? unmarshalPublicCatalogProductEnvironmentalImpactEstimation(data.environmental_impact_estimation) : void 0,
|
|
414
|
+
locality: data.locality ? unmarshalPublicCatalogProductLocality(data.locality) : void 0,
|
|
415
|
+
price: data.price ? unmarshalPublicCatalogProductPrice(data.price) : void 0,
|
|
416
|
+
product: data.product,
|
|
417
|
+
productCategory: data.product_category,
|
|
418
|
+
properties: data.properties ? unmarshalPublicCatalogProductProperties(data.properties) : void 0,
|
|
419
|
+
serviceCategory: data.service_category,
|
|
420
|
+
sku: data.sku,
|
|
421
|
+
status: data.status,
|
|
422
|
+
unitOfMeasure: data.unit_of_measure ? unmarshalPublicCatalogProductUnitOfMeasure(data.unit_of_measure) : void 0,
|
|
423
|
+
variant: data.variant
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
const unmarshalListPublicCatalogProductsResponse = (data) => {
|
|
427
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPublicCatalogProductsResponse' failed as data isn't a dictionary.`);
|
|
428
|
+
return {
|
|
429
|
+
products: unmarshalArrayOfObject(data.products, unmarshalPublicCatalogProduct),
|
|
430
|
+
totalCount: data.total_count
|
|
431
|
+
};
|
|
432
|
+
};
|
|
433
|
+
//#endregion
|
|
434
|
+
export { unmarshalListPublicCatalogProductsResponse };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const queriesMetadata: {
|
|
2
|
+
readonly namespace: 'product_catalog';
|
|
3
|
+
readonly version: 'v2alpha1';
|
|
4
|
+
readonly folderName: 'productCatalogv2alpha1';
|
|
5
|
+
readonly services: readonly [{
|
|
6
|
+
readonly apiClass: 'PublicCatalogAPI';
|
|
7
|
+
readonly methods: readonly [{
|
|
8
|
+
readonly methodName: 'listPublicCatalogProducts';
|
|
9
|
+
readonly protoName: 'ListPublicCatalogProducts';
|
|
10
|
+
readonly paramsType: 'PublicCatalogApiListPublicCatalogProductsRequest';
|
|
11
|
+
readonly returnType: 'ListPublicCatalogProductsResponse';
|
|
12
|
+
readonly isList: true;
|
|
13
|
+
readonly paginationType: 'offset';
|
|
14
|
+
readonly pageParamKey: 'page';
|
|
15
|
+
readonly listItemType: 'PublicCatalogProduct';
|
|
16
|
+
readonly isPrivate: false;
|
|
17
|
+
readonly description: '"';
|
|
18
|
+
}];
|
|
19
|
+
}];
|
|
20
|
+
};
|
|
21
|
+
export type QueriesMetadata = typeof queriesMetadata;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/v2alpha1/metadata.gen.ts
|
|
2
|
+
const queriesMetadata = {
|
|
3
|
+
namespace: "product_catalog",
|
|
4
|
+
version: "v2alpha1",
|
|
5
|
+
folderName: "productCatalogv2alpha1",
|
|
6
|
+
services: [{
|
|
7
|
+
apiClass: "PublicCatalogAPI",
|
|
8
|
+
methods: [{
|
|
9
|
+
methodName: "listPublicCatalogProducts",
|
|
10
|
+
protoName: "ListPublicCatalogProducts",
|
|
11
|
+
paramsType: "PublicCatalogApiListPublicCatalogProductsRequest",
|
|
12
|
+
returnType: "ListPublicCatalogProductsResponse",
|
|
13
|
+
isList: true,
|
|
14
|
+
paginationType: "offset",
|
|
15
|
+
pageParamKey: "page",
|
|
16
|
+
listItemType: "PublicCatalogProduct",
|
|
17
|
+
isPrivate: false,
|
|
18
|
+
description: "\""
|
|
19
|
+
}]
|
|
20
|
+
}]
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { queriesMetadata };
|