@scaleway/sdk-product-catalog 2.4.1 → 2.5.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/README.md +1 -1
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/index.gen.js +2 -4
- package/dist/v2alpha1/api.gen.js +37 -45
- package/dist/v2alpha1/index.gen.js +9 -7
- package/dist/v2alpha1/marshalling.gen.js +274 -452
- package/dist/v2alpha1/validation-rules.gen.js +5 -9
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -83,6 +83,7 @@ const api = new ProductCatalog.v1.API(client)
|
|
|
83
83
|
## Support
|
|
84
84
|
|
|
85
85
|
We love feedback! Feel free to reach us on:
|
|
86
|
+
|
|
86
87
|
- [Scaleway Slack community](https://slack.scaleway.com/) - Join us on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)
|
|
87
88
|
- [GitHub Issues](https://github.com/scaleway/scaleway-sdk-js/issues)
|
|
88
89
|
|
|
@@ -93,4 +94,3 @@ This repository is at its early stage and is still in active development. If you
|
|
|
93
94
|
## License
|
|
94
95
|
|
|
95
96
|
This project is Apache 2.0 licensed. See the [LICENSE](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE) file for details.
|
|
96
|
-
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __exportAll = (all, no_symbols) => {
|
|
3
|
+
let target = {};
|
|
4
|
+
for (var name in all) __defProp(target, name, {
|
|
5
|
+
get: all[name],
|
|
6
|
+
enumerable: true
|
|
7
|
+
});
|
|
8
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
9
|
+
return target;
|
|
10
|
+
};
|
|
11
|
+
export { __exportAll };
|
package/dist/index.gen.js
CHANGED
package/dist/v2alpha1/api.gen.js
CHANGED
|
@@ -1,47 +1,39 @@
|
|
|
1
|
-
import { API, urlParams, resolveOneOf, enrichForPagination } from "@scaleway/sdk-client";
|
|
2
1
|
import { unmarshalListPublicCatalogProductsResponse } from "./marshalling.gen.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
*
|
|
40
|
-
* @param request - The request {@link PublicCatalogApiListPublicCatalogProductsRequest}
|
|
41
|
-
* @returns A Promise of ListPublicCatalogProductsResponse
|
|
42
|
-
*/
|
|
43
|
-
listPublicCatalogProducts = (request = {}) => enrichForPagination("products", this.pageOfListPublicCatalogProducts, request);
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
PublicCatalogAPI
|
|
2
|
+
import { API, enrichForPagination, resolveOneOf, urlParams } from "@scaleway/sdk-client";
|
|
3
|
+
/**
|
|
4
|
+
* Product Catalog API.
|
|
5
|
+
*/
|
|
6
|
+
var PublicCatalogAPI = class extends API {
|
|
7
|
+
pageOfListPublicCatalogProducts = (request = {}) => this.client.fetch({
|
|
8
|
+
method: "GET",
|
|
9
|
+
path: `/product-catalog/v2alpha1/public-catalog/products`,
|
|
10
|
+
urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["product_types", request.productTypes], ["status", request.status], ...Object.entries(resolveOneOf([
|
|
11
|
+
{
|
|
12
|
+
param: "global",
|
|
13
|
+
value: request.global
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
default: this.client.settings.defaultRegion,
|
|
17
|
+
param: "region",
|
|
18
|
+
value: request.region
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
default: this.client.settings.defaultZone,
|
|
22
|
+
param: "zone",
|
|
23
|
+
value: request.zone
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
param: "datacenter",
|
|
27
|
+
value: request.datacenter
|
|
28
|
+
}
|
|
29
|
+
])))
|
|
30
|
+
}, unmarshalListPublicCatalogProductsResponse);
|
|
31
|
+
/**
|
|
32
|
+
* 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.
|
|
33
|
+
*
|
|
34
|
+
* @param request - The request {@link PublicCatalogApiListPublicCatalogProductsRequest}
|
|
35
|
+
* @returns A Promise of ListPublicCatalogProductsResponse
|
|
36
|
+
*/
|
|
37
|
+
listPublicCatalogProducts = (request = {}) => enrichForPagination("products", this.pageOfListPublicCatalogProducts, request);
|
|
47
38
|
};
|
|
39
|
+
export { PublicCatalogAPI };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { unmarshalListPublicCatalogProductsResponse } from "./marshalling.gen.js";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import { PublicCatalogAPI } from "./api.gen.js";
|
|
4
|
+
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
|
+
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
PublicCatalogAPI: () => PublicCatalogAPI,
|
|
7
|
+
ValidationRules: () => validation_rules_gen_exports,
|
|
8
|
+
unmarshalListPublicCatalogProductsResponse: () => unmarshalListPublicCatalogProductsResponse
|
|
9
|
+
});
|
|
10
|
+
export { index_gen_exports };
|
|
@@ -1,456 +1,278 @@
|
|
|
1
1
|
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
if (!isJSONObject(data)) {
|
|
271
|
-
throw new TypeError(
|
|
272
|
-
`Unmarshalling the type 'PublicCatalogProductPropertiesKeyManager' failed as data isn't a dictionary.`
|
|
273
|
-
);
|
|
274
|
-
}
|
|
275
|
-
return {};
|
|
276
|
-
};
|
|
277
|
-
const unmarshalPublicCatalogProductPropertiesKubernetes = (data) => {
|
|
278
|
-
if (!isJSONObject(data)) {
|
|
279
|
-
throw new TypeError(
|
|
280
|
-
`Unmarshalling the type 'PublicCatalogProductPropertiesKubernetes' failed as data isn't a dictionary.`
|
|
281
|
-
);
|
|
282
|
-
}
|
|
283
|
-
return {
|
|
284
|
-
kapsuleControlPlane: data.kapsule_control_plane ? unmarshalPublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType(data.kapsule_control_plane) : void 0,
|
|
285
|
-
kosmosControlPlane: data.kosmos_control_plane ? unmarshalPublicCatalogProductPropertiesKubernetesKosmosControlPlaneType(data.kosmos_control_plane) : void 0,
|
|
286
|
-
kosmosNode: data.kosmos_node ? unmarshalPublicCatalogProductPropertiesKubernetesKosmosNodeType(data.kosmos_node) : void 0
|
|
287
|
-
};
|
|
288
|
-
};
|
|
289
|
-
const unmarshalPublicCatalogProductPropertiesLoadBalancer = (data) => {
|
|
290
|
-
if (!isJSONObject(data)) {
|
|
291
|
-
throw new TypeError(
|
|
292
|
-
`Unmarshalling the type 'PublicCatalogProductPropertiesLoadBalancer' failed as data isn't a dictionary.`
|
|
293
|
-
);
|
|
294
|
-
}
|
|
295
|
-
return {};
|
|
296
|
-
};
|
|
297
|
-
const unmarshalPublicCatalogProductPropertiesManagedInference = (data) => {
|
|
298
|
-
if (!isJSONObject(data)) {
|
|
299
|
-
throw new TypeError(
|
|
300
|
-
`Unmarshalling the type 'PublicCatalogProductPropertiesManagedInference' failed as data isn't a dictionary.`
|
|
301
|
-
);
|
|
302
|
-
}
|
|
303
|
-
return {
|
|
304
|
-
instanceGpuName: data.instance_gpu_name
|
|
305
|
-
};
|
|
306
|
-
};
|
|
307
|
-
const unmarshalPublicCatalogProductPropertiesManagedRedisDatabase = (data) => {
|
|
308
|
-
if (!isJSONObject(data)) {
|
|
309
|
-
throw new TypeError(
|
|
310
|
-
`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRedisDatabase' failed as data isn't a dictionary.`
|
|
311
|
-
);
|
|
312
|
-
}
|
|
313
|
-
return {};
|
|
314
|
-
};
|
|
315
|
-
const unmarshalPublicCatalogProductPropertiesManagedRelationalDatabase = (data) => {
|
|
316
|
-
if (!isJSONObject(data)) {
|
|
317
|
-
throw new TypeError(
|
|
318
|
-
`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabase' failed as data isn't a dictionary.`
|
|
319
|
-
);
|
|
320
|
-
}
|
|
321
|
-
return {
|
|
322
|
-
management: data.management ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseManagementType(data.management) : void 0,
|
|
323
|
-
multiAz: data.multi_az ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType(data.multi_az) : void 0,
|
|
324
|
-
node: data.node ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseNodeType(data.node) : void 0,
|
|
325
|
-
storage: data.storage ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseStorageType(data.storage) : void 0
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
const unmarshalPublicCatalogProductPropertiesObjectStorage = (data) => {
|
|
329
|
-
if (!isJSONObject(data)) {
|
|
330
|
-
throw new TypeError(
|
|
331
|
-
`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorage' failed as data isn't a dictionary.`
|
|
332
|
-
);
|
|
333
|
-
}
|
|
334
|
-
return {
|
|
335
|
-
class: data.class ? unmarshalPublicCatalogProductPropertiesObjectStorageClassType(data.class) : void 0,
|
|
336
|
-
internetTraffic: data.internet_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType(data.internet_traffic) : void 0,
|
|
337
|
-
regionTraffic: data.region_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType(data.region_traffic) : void 0,
|
|
338
|
-
restore: data.restore ? unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType(data.restore) : void 0
|
|
339
|
-
};
|
|
340
|
-
};
|
|
341
|
-
const unmarshalPublicCatalogProductPropertiesSecretManager = (data) => {
|
|
342
|
-
if (!isJSONObject(data)) {
|
|
343
|
-
throw new TypeError(
|
|
344
|
-
`Unmarshalling the type 'PublicCatalogProductPropertiesSecretManager' failed as data isn't a dictionary.`
|
|
345
|
-
);
|
|
346
|
-
}
|
|
347
|
-
return {};
|
|
348
|
-
};
|
|
349
|
-
const unmarshalPublicCatalogProductEnvironmentalImpactEstimation = (data) => {
|
|
350
|
-
if (!isJSONObject(data)) {
|
|
351
|
-
throw new TypeError(
|
|
352
|
-
`Unmarshalling the type 'PublicCatalogProductEnvironmentalImpactEstimation' failed as data isn't a dictionary.`
|
|
353
|
-
);
|
|
354
|
-
}
|
|
355
|
-
return {
|
|
356
|
-
kgCo2Equivalent: data.kg_co2_equivalent,
|
|
357
|
-
m3WaterUsage: data.m3_water_usage
|
|
358
|
-
};
|
|
359
|
-
};
|
|
360
|
-
const unmarshalPublicCatalogProductLocality = (data) => {
|
|
361
|
-
if (!isJSONObject(data)) {
|
|
362
|
-
throw new TypeError(
|
|
363
|
-
`Unmarshalling the type 'PublicCatalogProductLocality' failed as data isn't a dictionary.`
|
|
364
|
-
);
|
|
365
|
-
}
|
|
366
|
-
return {
|
|
367
|
-
datacenter: data.datacenter,
|
|
368
|
-
global: data.global,
|
|
369
|
-
region: data.region,
|
|
370
|
-
zone: data.zone
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
const unmarshalPublicCatalogProductPrice = (data) => {
|
|
374
|
-
if (!isJSONObject(data)) {
|
|
375
|
-
throw new TypeError(
|
|
376
|
-
`Unmarshalling the type 'PublicCatalogProductPrice' failed as data isn't a dictionary.`
|
|
377
|
-
);
|
|
378
|
-
}
|
|
379
|
-
return {
|
|
380
|
-
retailPrice: data.retail_price ? unmarshalMoney(data.retail_price) : void 0
|
|
381
|
-
};
|
|
382
|
-
};
|
|
383
|
-
const unmarshalPublicCatalogProductProperties = (data) => {
|
|
384
|
-
if (!isJSONObject(data)) {
|
|
385
|
-
throw new TypeError(
|
|
386
|
-
`Unmarshalling the type 'PublicCatalogProductProperties' failed as data isn't a dictionary.`
|
|
387
|
-
);
|
|
388
|
-
}
|
|
389
|
-
return {
|
|
390
|
-
appleSilicon: data.apple_silicon ? unmarshalPublicCatalogProductPropertiesAppleSilicon(data.apple_silicon) : void 0,
|
|
391
|
-
blockStorage: data.block_storage ? unmarshalPublicCatalogProductPropertiesBlockStorage(data.block_storage) : void 0,
|
|
392
|
-
dedibox: data.dedibox ? unmarshalPublicCatalogProductPropertiesDedibox(data.dedibox) : void 0,
|
|
393
|
-
elasticMetal: data.elastic_metal ? unmarshalPublicCatalogProductPropertiesElasticMetal(data.elastic_metal) : void 0,
|
|
394
|
-
generativeApis: data.generative_apis ? unmarshalPublicCatalogProductPropertiesGenerativeApis(data.generative_apis) : void 0,
|
|
395
|
-
hardware: data.hardware ? unmarshalPublicCatalogProductPropertiesHardware(data.hardware) : void 0,
|
|
396
|
-
instance: data.instance ? unmarshalPublicCatalogProductPropertiesInstance(data.instance) : void 0,
|
|
397
|
-
keyManager: data.key_manager ? unmarshalPublicCatalogProductPropertiesKeyManager(data.key_manager) : void 0,
|
|
398
|
-
kubernetes: data.kubernetes ? unmarshalPublicCatalogProductPropertiesKubernetes(data.kubernetes) : void 0,
|
|
399
|
-
loadBalancer: data.load_balancer ? unmarshalPublicCatalogProductPropertiesLoadBalancer(data.load_balancer) : void 0,
|
|
400
|
-
managedInference: data.managed_inference ? unmarshalPublicCatalogProductPropertiesManagedInference(data.managed_inference) : void 0,
|
|
401
|
-
managedRedisDatabase: data.managed_redis_database ? unmarshalPublicCatalogProductPropertiesManagedRedisDatabase(data.managed_redis_database) : void 0,
|
|
402
|
-
managedRelationalDatabase: data.managed_relational_database ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabase(data.managed_relational_database) : void 0,
|
|
403
|
-
objectStorage: data.object_storage ? unmarshalPublicCatalogProductPropertiesObjectStorage(data.object_storage) : void 0,
|
|
404
|
-
secretManager: data.secret_manager ? unmarshalPublicCatalogProductPropertiesSecretManager(data.secret_manager) : void 0
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
const unmarshalPublicCatalogProductUnitOfMeasure = (data) => {
|
|
408
|
-
if (!isJSONObject(data)) {
|
|
409
|
-
throw new TypeError(
|
|
410
|
-
`Unmarshalling the type 'PublicCatalogProductUnitOfMeasure' failed as data isn't a dictionary.`
|
|
411
|
-
);
|
|
412
|
-
}
|
|
413
|
-
return {
|
|
414
|
-
size: data.size,
|
|
415
|
-
unit: data.unit
|
|
416
|
-
};
|
|
417
|
-
};
|
|
418
|
-
const unmarshalPublicCatalogProduct = (data) => {
|
|
419
|
-
if (!isJSONObject(data)) {
|
|
420
|
-
throw new TypeError(
|
|
421
|
-
`Unmarshalling the type 'PublicCatalogProduct' failed as data isn't a dictionary.`
|
|
422
|
-
);
|
|
423
|
-
}
|
|
424
|
-
return {
|
|
425
|
-
badges: data.badges,
|
|
426
|
-
description: data.description,
|
|
427
|
-
endOfGrowthAt: unmarshalDate(data.end_of_growth_at),
|
|
428
|
-
endOfLifeAt: unmarshalDate(data.end_of_life_at),
|
|
429
|
-
endOfSaleAt: unmarshalDate(data.end_of_sale_at),
|
|
430
|
-
environmentalImpactEstimation: data.environmental_impact_estimation ? unmarshalPublicCatalogProductEnvironmentalImpactEstimation(data.environmental_impact_estimation) : void 0,
|
|
431
|
-
locality: data.locality ? unmarshalPublicCatalogProductLocality(data.locality) : void 0,
|
|
432
|
-
price: data.price ? unmarshalPublicCatalogProductPrice(data.price) : void 0,
|
|
433
|
-
product: data.product,
|
|
434
|
-
productCategory: data.product_category,
|
|
435
|
-
properties: data.properties ? unmarshalPublicCatalogProductProperties(data.properties) : void 0,
|
|
436
|
-
serviceCategory: data.service_category,
|
|
437
|
-
sku: data.sku,
|
|
438
|
-
status: data.status,
|
|
439
|
-
unitOfMeasure: data.unit_of_measure ? unmarshalPublicCatalogProductUnitOfMeasure(data.unit_of_measure) : void 0,
|
|
440
|
-
variant: data.variant
|
|
441
|
-
};
|
|
2
|
+
var unmarshalPublicCatalogProductPropertiesHardwareCPUPhysical = (data) => {
|
|
3
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareCPUPhysical' failed as data isn't a dictionary.`);
|
|
4
|
+
return {
|
|
5
|
+
benchmark: data.benchmark,
|
|
6
|
+
coresPerSocket: data.cores_per_socket,
|
|
7
|
+
frequency: data.frequency,
|
|
8
|
+
sockets: data.sockets,
|
|
9
|
+
threadsPerCore: data.threads_per_core
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
var unmarshalPublicCatalogProductPropertiesHardwareCPUVirtual = (data) => {
|
|
13
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareCPUVirtual' failed as data isn't a dictionary.`);
|
|
14
|
+
return { count: data.count };
|
|
15
|
+
};
|
|
16
|
+
var unmarshalPublicCatalogProductPropertiesHardwareCPU = (data) => {
|
|
17
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareCPU' failed as data isn't a dictionary.`);
|
|
18
|
+
return {
|
|
19
|
+
arch: data.arch,
|
|
20
|
+
description: data.description,
|
|
21
|
+
physical: data.physical ? unmarshalPublicCatalogProductPropertiesHardwareCPUPhysical(data.physical) : void 0,
|
|
22
|
+
threads: data.threads,
|
|
23
|
+
type: data.type,
|
|
24
|
+
virtual: data.virtual ? unmarshalPublicCatalogProductPropertiesHardwareCPUVirtual(data.virtual) : void 0
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
var unmarshalPublicCatalogProductPropertiesHardwareGPU = (data) => {
|
|
28
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareGPU' failed as data isn't a dictionary.`);
|
|
29
|
+
return {
|
|
30
|
+
count: data.count,
|
|
31
|
+
description: data.description,
|
|
32
|
+
type: data.type
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
var unmarshalPublicCatalogProductPropertiesHardwareNetwork = (data) => {
|
|
36
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareNetwork' failed as data isn't a dictionary.`);
|
|
37
|
+
return {
|
|
38
|
+
description: data.description,
|
|
39
|
+
internalBandwidth: data.internal_bandwidth,
|
|
40
|
+
maxPublicBandwidth: data.max_public_bandwidth,
|
|
41
|
+
publicBandwidth: data.public_bandwidth
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
var unmarshalPublicCatalogProductPropertiesHardwareRAM = (data) => {
|
|
45
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareRAM' failed as data isn't a dictionary.`);
|
|
46
|
+
return {
|
|
47
|
+
description: data.description,
|
|
48
|
+
size: data.size,
|
|
49
|
+
type: data.type
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
var unmarshalPublicCatalogProductPropertiesHardwareStorage = (data) => {
|
|
53
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareStorage' failed as data isn't a dictionary.`);
|
|
54
|
+
return {
|
|
55
|
+
description: data.description,
|
|
56
|
+
total: data.total
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
var unmarshalPublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType = (data) => {
|
|
60
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType' failed as data isn't a dictionary.`);
|
|
61
|
+
return {};
|
|
62
|
+
};
|
|
63
|
+
var unmarshalPublicCatalogProductPropertiesKubernetesKosmosControlPlaneType = (data) => {
|
|
64
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKubernetesKosmosControlPlaneType' failed as data isn't a dictionary.`);
|
|
65
|
+
return {};
|
|
66
|
+
};
|
|
67
|
+
var unmarshalPublicCatalogProductPropertiesKubernetesKosmosNodeType = (data) => {
|
|
68
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKubernetesKosmosNodeType' failed as data isn't a dictionary.`);
|
|
69
|
+
return {};
|
|
70
|
+
};
|
|
71
|
+
var unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseManagementType = (data) => {
|
|
72
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabaseManagementType' failed as data isn't a dictionary.`);
|
|
73
|
+
return {};
|
|
74
|
+
};
|
|
75
|
+
var unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType = (data) => {
|
|
76
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType' failed as data isn't a dictionary.`);
|
|
77
|
+
return {};
|
|
78
|
+
};
|
|
79
|
+
var unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseNodeType = (data) => {
|
|
80
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabaseNodeType' failed as data isn't a dictionary.`);
|
|
81
|
+
return {};
|
|
82
|
+
};
|
|
83
|
+
var unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseStorageType = (data) => {
|
|
84
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabaseStorageType' failed as data isn't a dictionary.`);
|
|
85
|
+
return { storageClass: data.storage_class };
|
|
86
|
+
};
|
|
87
|
+
var unmarshalPublicCatalogProductPropertiesObjectStorageClassType = (data) => {
|
|
88
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageClassType' failed as data isn't a dictionary.`);
|
|
89
|
+
return { storageClass: data.storage_class };
|
|
90
|
+
};
|
|
91
|
+
var unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType = (data) => {
|
|
92
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageInternetTrafficType' failed as data isn't a dictionary.`);
|
|
93
|
+
return { trafficType: data.traffic_type };
|
|
94
|
+
};
|
|
95
|
+
var unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType = (data) => {
|
|
96
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRegionTrafficType' failed as data isn't a dictionary.`);
|
|
97
|
+
return { regionDestination: data.region_destination };
|
|
98
|
+
};
|
|
99
|
+
var unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType = (data) => {
|
|
100
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRestoreType' failed as data isn't a dictionary.`);
|
|
101
|
+
return { restoreType: data.restore_type };
|
|
102
|
+
};
|
|
103
|
+
var unmarshalPublicCatalogProductPropertiesAppleSilicon = (data) => {
|
|
104
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesAppleSilicon' failed as data isn't a dictionary.`);
|
|
105
|
+
return {
|
|
106
|
+
range: data.range,
|
|
107
|
+
serverType: data.server_type
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
var unmarshalPublicCatalogProductPropertiesBlockStorage = (data) => {
|
|
111
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesBlockStorage' failed as data isn't a dictionary.`);
|
|
112
|
+
return {
|
|
113
|
+
maxVolumeSize: data.max_volume_size,
|
|
114
|
+
minVolumeSize: data.min_volume_size
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
var unmarshalPublicCatalogProductPropertiesDedibox = (data) => {
|
|
118
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesDedibox' failed as data isn't a dictionary.`);
|
|
119
|
+
return {
|
|
120
|
+
offerId: data.offer_id,
|
|
121
|
+
range: data.range
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
var unmarshalPublicCatalogProductPropertiesElasticMetal = (data) => {
|
|
125
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesElasticMetal' failed as data isn't a dictionary.`);
|
|
126
|
+
return {
|
|
127
|
+
offerId: data.offer_id,
|
|
128
|
+
range: data.range
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
var unmarshalPublicCatalogProductPropertiesGenerativeApis = (data) => {
|
|
132
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesGenerativeApis' failed as data isn't a dictionary.`);
|
|
133
|
+
return {
|
|
134
|
+
consumptionMode: data.consumption_mode,
|
|
135
|
+
reasoning: data.reasoning,
|
|
136
|
+
supportedApis: data.supported_apis
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
var unmarshalPublicCatalogProductPropertiesHardware = (data) => {
|
|
140
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardware' failed as data isn't a dictionary.`);
|
|
141
|
+
return {
|
|
142
|
+
cpu: data.cpu ? unmarshalPublicCatalogProductPropertiesHardwareCPU(data.cpu) : void 0,
|
|
143
|
+
gpu: data.gpu ? unmarshalPublicCatalogProductPropertiesHardwareGPU(data.gpu) : void 0,
|
|
144
|
+
network: data.network ? unmarshalPublicCatalogProductPropertiesHardwareNetwork(data.network) : void 0,
|
|
145
|
+
ram: data.ram ? unmarshalPublicCatalogProductPropertiesHardwareRAM(data.ram) : void 0,
|
|
146
|
+
storage: data.storage ? unmarshalPublicCatalogProductPropertiesHardwareStorage(data.storage) : void 0
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
var unmarshalPublicCatalogProductPropertiesInstance = (data) => {
|
|
150
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesInstance' failed as data isn't a dictionary.`);
|
|
151
|
+
return {
|
|
152
|
+
offerId: data.offer_id,
|
|
153
|
+
range: data.range,
|
|
154
|
+
recommendedReplacementOfferIds: data.recommended_replacement_offer_ids
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
var unmarshalPublicCatalogProductPropertiesKeyManager = (data) => {
|
|
158
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKeyManager' failed as data isn't a dictionary.`);
|
|
159
|
+
return {};
|
|
160
|
+
};
|
|
161
|
+
var unmarshalPublicCatalogProductPropertiesKubernetes = (data) => {
|
|
162
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKubernetes' failed as data isn't a dictionary.`);
|
|
163
|
+
return {
|
|
164
|
+
kapsuleControlPlane: data.kapsule_control_plane ? unmarshalPublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType(data.kapsule_control_plane) : void 0,
|
|
165
|
+
kosmosControlPlane: data.kosmos_control_plane ? unmarshalPublicCatalogProductPropertiesKubernetesKosmosControlPlaneType(data.kosmos_control_plane) : void 0,
|
|
166
|
+
kosmosNode: data.kosmos_node ? unmarshalPublicCatalogProductPropertiesKubernetesKosmosNodeType(data.kosmos_node) : void 0
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
var unmarshalPublicCatalogProductPropertiesLoadBalancer = (data) => {
|
|
170
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesLoadBalancer' failed as data isn't a dictionary.`);
|
|
171
|
+
return {};
|
|
172
|
+
};
|
|
173
|
+
var unmarshalPublicCatalogProductPropertiesManagedInference = (data) => {
|
|
174
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedInference' failed as data isn't a dictionary.`);
|
|
175
|
+
return { instanceGpuName: data.instance_gpu_name };
|
|
176
|
+
};
|
|
177
|
+
var unmarshalPublicCatalogProductPropertiesManagedRedisDatabase = (data) => {
|
|
178
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRedisDatabase' failed as data isn't a dictionary.`);
|
|
179
|
+
return {};
|
|
180
|
+
};
|
|
181
|
+
var unmarshalPublicCatalogProductPropertiesManagedRelationalDatabase = (data) => {
|
|
182
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedRelationalDatabase' failed as data isn't a dictionary.`);
|
|
183
|
+
return {
|
|
184
|
+
management: data.management ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseManagementType(data.management) : void 0,
|
|
185
|
+
multiAz: data.multi_az ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType(data.multi_az) : void 0,
|
|
186
|
+
node: data.node ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseNodeType(data.node) : void 0,
|
|
187
|
+
storage: data.storage ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabaseStorageType(data.storage) : void 0
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
var unmarshalPublicCatalogProductPropertiesObjectStorage = (data) => {
|
|
191
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorage' failed as data isn't a dictionary.`);
|
|
192
|
+
return {
|
|
193
|
+
class: data.class ? unmarshalPublicCatalogProductPropertiesObjectStorageClassType(data.class) : void 0,
|
|
194
|
+
internetTraffic: data.internet_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType(data.internet_traffic) : void 0,
|
|
195
|
+
regionTraffic: data.region_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType(data.region_traffic) : void 0,
|
|
196
|
+
restore: data.restore ? unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType(data.restore) : void 0
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
var unmarshalPublicCatalogProductPropertiesSecretManager = (data) => {
|
|
200
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesSecretManager' failed as data isn't a dictionary.`);
|
|
201
|
+
return {};
|
|
202
|
+
};
|
|
203
|
+
var unmarshalPublicCatalogProductEnvironmentalImpactEstimation = (data) => {
|
|
204
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductEnvironmentalImpactEstimation' failed as data isn't a dictionary.`);
|
|
205
|
+
return {
|
|
206
|
+
kgCo2Equivalent: data.kg_co2_equivalent,
|
|
207
|
+
m3WaterUsage: data.m3_water_usage
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
var unmarshalPublicCatalogProductLocality = (data) => {
|
|
211
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductLocality' failed as data isn't a dictionary.`);
|
|
212
|
+
return {
|
|
213
|
+
datacenter: data.datacenter,
|
|
214
|
+
global: data.global,
|
|
215
|
+
region: data.region,
|
|
216
|
+
zone: data.zone
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
var unmarshalPublicCatalogProductPrice = (data) => {
|
|
220
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPrice' failed as data isn't a dictionary.`);
|
|
221
|
+
return { retailPrice: data.retail_price ? unmarshalMoney(data.retail_price) : void 0 };
|
|
222
|
+
};
|
|
223
|
+
var unmarshalPublicCatalogProductProperties = (data) => {
|
|
224
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductProperties' failed as data isn't a dictionary.`);
|
|
225
|
+
return {
|
|
226
|
+
appleSilicon: data.apple_silicon ? unmarshalPublicCatalogProductPropertiesAppleSilicon(data.apple_silicon) : void 0,
|
|
227
|
+
blockStorage: data.block_storage ? unmarshalPublicCatalogProductPropertiesBlockStorage(data.block_storage) : void 0,
|
|
228
|
+
dedibox: data.dedibox ? unmarshalPublicCatalogProductPropertiesDedibox(data.dedibox) : void 0,
|
|
229
|
+
elasticMetal: data.elastic_metal ? unmarshalPublicCatalogProductPropertiesElasticMetal(data.elastic_metal) : void 0,
|
|
230
|
+
generativeApis: data.generative_apis ? unmarshalPublicCatalogProductPropertiesGenerativeApis(data.generative_apis) : void 0,
|
|
231
|
+
hardware: data.hardware ? unmarshalPublicCatalogProductPropertiesHardware(data.hardware) : void 0,
|
|
232
|
+
instance: data.instance ? unmarshalPublicCatalogProductPropertiesInstance(data.instance) : void 0,
|
|
233
|
+
keyManager: data.key_manager ? unmarshalPublicCatalogProductPropertiesKeyManager(data.key_manager) : void 0,
|
|
234
|
+
kubernetes: data.kubernetes ? unmarshalPublicCatalogProductPropertiesKubernetes(data.kubernetes) : void 0,
|
|
235
|
+
loadBalancer: data.load_balancer ? unmarshalPublicCatalogProductPropertiesLoadBalancer(data.load_balancer) : void 0,
|
|
236
|
+
managedInference: data.managed_inference ? unmarshalPublicCatalogProductPropertiesManagedInference(data.managed_inference) : void 0,
|
|
237
|
+
managedRedisDatabase: data.managed_redis_database ? unmarshalPublicCatalogProductPropertiesManagedRedisDatabase(data.managed_redis_database) : void 0,
|
|
238
|
+
managedRelationalDatabase: data.managed_relational_database ? unmarshalPublicCatalogProductPropertiesManagedRelationalDatabase(data.managed_relational_database) : void 0,
|
|
239
|
+
objectStorage: data.object_storage ? unmarshalPublicCatalogProductPropertiesObjectStorage(data.object_storage) : void 0,
|
|
240
|
+
secretManager: data.secret_manager ? unmarshalPublicCatalogProductPropertiesSecretManager(data.secret_manager) : void 0
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
var unmarshalPublicCatalogProductUnitOfMeasure = (data) => {
|
|
244
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductUnitOfMeasure' failed as data isn't a dictionary.`);
|
|
245
|
+
return {
|
|
246
|
+
size: data.size,
|
|
247
|
+
unit: data.unit
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
var unmarshalPublicCatalogProduct = (data) => {
|
|
251
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProduct' failed as data isn't a dictionary.`);
|
|
252
|
+
return {
|
|
253
|
+
badges: data.badges,
|
|
254
|
+
description: data.description,
|
|
255
|
+
endOfGrowthAt: unmarshalDate(data.end_of_growth_at),
|
|
256
|
+
endOfLifeAt: unmarshalDate(data.end_of_life_at),
|
|
257
|
+
endOfSaleAt: unmarshalDate(data.end_of_sale_at),
|
|
258
|
+
environmentalImpactEstimation: data.environmental_impact_estimation ? unmarshalPublicCatalogProductEnvironmentalImpactEstimation(data.environmental_impact_estimation) : void 0,
|
|
259
|
+
locality: data.locality ? unmarshalPublicCatalogProductLocality(data.locality) : void 0,
|
|
260
|
+
price: data.price ? unmarshalPublicCatalogProductPrice(data.price) : void 0,
|
|
261
|
+
product: data.product,
|
|
262
|
+
productCategory: data.product_category,
|
|
263
|
+
properties: data.properties ? unmarshalPublicCatalogProductProperties(data.properties) : void 0,
|
|
264
|
+
serviceCategory: data.service_category,
|
|
265
|
+
sku: data.sku,
|
|
266
|
+
status: data.status,
|
|
267
|
+
unitOfMeasure: data.unit_of_measure ? unmarshalPublicCatalogProductUnitOfMeasure(data.unit_of_measure) : void 0,
|
|
268
|
+
variant: data.variant
|
|
269
|
+
};
|
|
442
270
|
};
|
|
443
271
|
const unmarshalListPublicCatalogProductsResponse = (data) => {
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
return {
|
|
450
|
-
products: unmarshalArrayOfObject(data.products, unmarshalPublicCatalogProduct),
|
|
451
|
-
totalCount: data.total_count
|
|
452
|
-
};
|
|
453
|
-
};
|
|
454
|
-
export {
|
|
455
|
-
unmarshalListPublicCatalogProductsResponse
|
|
272
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPublicCatalogProductsResponse' failed as data isn't a dictionary.`);
|
|
273
|
+
return {
|
|
274
|
+
products: unmarshalArrayOfObject(data.products, unmarshalPublicCatalogProduct),
|
|
275
|
+
totalCount: data.total_count
|
|
276
|
+
};
|
|
456
277
|
};
|
|
278
|
+
export { unmarshalListPublicCatalogProductsResponse };
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({ PublicCatalogApiListPublicCatalogProductsRequest: () => PublicCatalogApiListPublicCatalogProductsRequest });
|
|
1
3
|
const PublicCatalogApiListPublicCatalogProductsRequest = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
},
|
|
5
|
-
pageSize: {
|
|
6
|
-
greaterThanOrEqual: 1
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
PublicCatalogApiListPublicCatalogProductsRequest
|
|
4
|
+
page: { greaterThanOrEqual: 1 },
|
|
5
|
+
pageSize: { greaterThanOrEqual: 1 }
|
|
11
6
|
};
|
|
7
|
+
export { validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-product-catalog",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Scaleway SDK product-catalog",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@scaleway/random-name": "5.1.2",
|
|
30
|
-
"@scaleway/sdk-std": "2.
|
|
30
|
+
"@scaleway/sdk-std": "2.2.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@scaleway/sdk-client": "^2.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.0"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|