From d5915326d2549534834b7e6d6c20afb3e2c80d71 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 14 Aug 2025 13:30:35 +0000 Subject: [PATCH] feat: update generated APIs --- .../product_catalog/src/v2alpha1/index.gen.ts | 1 + .../src/v2alpha1/marshalling.gen.ts | 18 +++++++++++++ .../product_catalog/src/v2alpha1/types.gen.ts | 27 ++++++++++++------- 3 files changed, 37 insertions(+), 9 deletions(-) diff --git a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts index e367a7bf8..3cbd6adbd 100644 --- a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts @@ -25,6 +25,7 @@ export type { PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, + PublicCatalogProductPropertiesObjectStorage, PublicCatalogProductStatus, PublicCatalogProductUnitOfMeasure, PublicCatalogProductUnitOfMeasureCountableUnit, diff --git a/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts b/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts index 86c6021fe..117a3ec9a 100644 --- a/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts @@ -26,6 +26,7 @@ import type { PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, + PublicCatalogProductPropertiesObjectStorage, PublicCatalogProductUnitOfMeasure, } from './types.gen' @@ -251,6 +252,18 @@ const unmarshalPublicCatalogProductPropertiesInstance = ( } as PublicCatalogProductPropertiesInstance } +const unmarshalPublicCatalogProductPropertiesObjectStorage = ( + data: unknown, +): PublicCatalogProductPropertiesObjectStorage => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorage' failed as data isn't a dictionary.`, + ) + } + + return {} as PublicCatalogProductPropertiesObjectStorage +} + const unmarshalPublicCatalogProductEnvironmentalImpactEstimation = ( data: unknown, ): PublicCatalogProductEnvironmentalImpactEstimation => { @@ -327,6 +340,11 @@ const unmarshalPublicCatalogProductProperties = ( instance: data.instance ? unmarshalPublicCatalogProductPropertiesInstance(data.instance) : undefined, + objectStorage: data.object_storage + ? unmarshalPublicCatalogProductPropertiesObjectStorage( + data.object_storage, + ) + : undefined, } as PublicCatalogProductProperties } diff --git a/packages_generated/product_catalog/src/v2alpha1/types.gen.ts b/packages_generated/product_catalog/src/v2alpha1/types.gen.ts index 178a4fe51..626e49662 100644 --- a/packages_generated/product_catalog/src/v2alpha1/types.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/types.gen.ts @@ -13,6 +13,7 @@ export type ListPublicCatalogProductsRequestProductType = | 'elastic_metal' | 'dedibox' | 'block_storage' + | 'object_storage' export type PublicCatalogProductPropertiesHardwareCPUArch = | 'unknown_arch' @@ -188,13 +189,13 @@ export interface PublicCatalogProductPropertiesAppleSilicon { export interface PublicCatalogProductPropertiesBlockStorage { /** - * The minimum size of storage volume for this product in bytes. + * @deprecated The minimum size of storage volume for this product in bytes. Deprecated. */ - minVolumeSize: number + minVolumeSize?: number /** - * The maximum size of storage volume for this product in bytes. + * @deprecated The maximum size of storage volume for this product in bytes. Deprecated. */ - maxVolumeSize: number + maxVolumeSize?: number } export interface PublicCatalogProductPropertiesDedibox { @@ -249,6 +250,8 @@ export interface PublicCatalogProductPropertiesInstance { recommendedReplacementOfferIds: string[] } +export interface PublicCatalogProductPropertiesObjectStorage {} + export interface PublicCatalogProductEnvironmentalImpactEstimation { kgCo2Equivalent?: number m3WaterUsage?: number @@ -296,33 +299,39 @@ export interface PublicCatalogProductProperties { /** * The properties of Dedibox products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage' could be set. */ dedibox?: PublicCatalogProductPropertiesDedibox /** * The properties of Elastic Metal products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage' could be set. */ elasticMetal?: PublicCatalogProductPropertiesElasticMetal /** * The properties of Apple Silicon products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage' could be set. */ appleSilicon?: PublicCatalogProductPropertiesAppleSilicon /** * The properties of Instance products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage' could be set. */ instance?: PublicCatalogProductPropertiesInstance /** * The properties of Block Storage products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage' could be set. */ blockStorage?: PublicCatalogProductPropertiesBlockStorage + /** + * The properties of Object Storage products. + * + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage' could be set. + */ + objectStorage?: PublicCatalogProductPropertiesObjectStorage } export interface PublicCatalogProductUnitOfMeasure {