File tree Expand file tree Collapse file tree 5 files changed +37
-1
lines changed
product_catalog/src/v2alpha1 Expand file tree Collapse file tree 5 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 33 * PLEASE DO NOT EDIT HERE
44 */
55
6- export * as Autoscalingv1alpha1 from './v1alpha1/index.gen'
6+ export * as Autoscalingv1alpha1 from './v1alpha1/index.gen'
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ export type {
1919 GetPublicKeyRequest ,
2020 ImportKeyMaterialRequest ,
2121 Key ,
22+ KeyAlgorithmAsymmetricEncryption ,
23+ KeyAlgorithmAsymmetricSigning ,
2224 KeyAlgorithmSymmetricEncryption ,
2325 KeyOrigin ,
2426 KeyRotationPolicy ,
@@ -30,6 +32,10 @@ export type {
3032 ProtectKeyRequest ,
3133 PublicKey ,
3234 RotateKeyRequest ,
35+ SignRequest ,
36+ SignResponse ,
3337 UnprotectKeyRequest ,
3438 UpdateKeyRequest ,
39+ VerifyRequest ,
40+ VerifyResponse ,
3541} from './types.gen'
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export type {
2323 PublicCatalogProductPropertiesHardwareRAM ,
2424 PublicCatalogProductPropertiesHardwareStorage ,
2525 PublicCatalogProductPropertiesInstance ,
26+ PublicCatalogProductStatus ,
2627 PublicCatalogProductUnitOfMeasure ,
2728 PublicCatalogProductUnitOfMeasureCountableUnit ,
2829} from './types.gen'
Original file line number Diff line number Diff line change 33import {
44 isJSONObject ,
55 unmarshalArrayOfObject ,
6+ unmarshalDate ,
67 unmarshalMoney ,
78} from '@scaleway/sdk-client'
89import type {
@@ -228,7 +229,9 @@ const unmarshalPublicCatalogProductPropertiesInstance = (
228229 }
229230
230231 return {
232+ offerId : data . offer_id ,
231233 range : data . range ,
234+ recommendedReplacementOfferIds : data . recommended_replacement_offer_ids ,
232235 } as PublicCatalogProductPropertiesInstance
233236}
234237
@@ -332,6 +335,7 @@ const unmarshalPublicCatalogProduct = (data: unknown): PublicCatalogProduct => {
332335
333336 return {
334337 description : data . description ,
338+ endOfLifeAt : unmarshalDate ( data . end_of_life_at ) ,
335339 environmentalImpactEstimation : data . environmental_impact_estimation
336340 ? unmarshalPublicCatalogProductEnvironmentalImpactEstimation (
337341 data . environmental_impact_estimation ,
@@ -349,6 +353,7 @@ const unmarshalPublicCatalogProduct = (data: unknown): PublicCatalogProduct => {
349353 : undefined ,
350354 serviceCategory : data . service_category ,
351355 sku : data . sku ,
356+ status : data . status ,
352357 unitOfMeasure : data . unit_of_measure
353358 ? unmarshalPublicCatalogProductUnitOfMeasure ( data . unit_of_measure )
354359 : undefined ,
Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ export type PublicCatalogProductPropertiesHardwareCPUArch =
1313 | 'riscv'
1414 | 'apple_silicon'
1515
16+ export type PublicCatalogProductStatus =
17+ | 'unknown_status'
18+ | 'public_beta'
19+ | 'preview'
20+ | 'general_availability'
21+ | 'end_of_deployment'
22+ | 'end_of_support'
23+
1624export type PublicCatalogProductUnitOfMeasureCountableUnit =
1725 | 'unknown_countable_unit'
1826 | 'chunk'
@@ -211,6 +219,14 @@ export interface PublicCatalogProductPropertiesInstance {
211219 * The range of the Instance server.
212220 */
213221 range : string
222+ /**
223+ * The offer ID of the Instance server.
224+ */
225+ offerId : string
226+ /**
227+ * The recommended replacement offer IDs of the Instance server.
228+ */
229+ recommendedReplacementOfferIds : string [ ]
214230}
215231
216232export interface PublicCatalogProductEnvironmentalImpactEstimation {
@@ -329,6 +345,14 @@ export interface PublicCatalogProduct {
329345 * The unit of measure of the product.
330346 */
331347 unitOfMeasure ?: PublicCatalogProductUnitOfMeasure
348+ /**
349+ * The status of the product.
350+ */
351+ status : PublicCatalogProductStatus
352+ /**
353+ * The end of life date of the product.
354+ */
355+ endOfLifeAt ?: Date
332356}
333357
334358export interface ListPublicCatalogProductsResponse {
You can’t perform that action at this time.
0 commit comments