From 84ccad202545da678f6b8f574747e191b165e0a6 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 12 Dec 2025 15:22:06 +0000 Subject: [PATCH] feat: update generated APIs --- .../product_catalog/src/v2alpha1/index.gen.ts | 9 ++ .../src/v2alpha1/marshalling.gen.ts | 82 +++++++++++++ .../product_catalog/src/v2alpha1/types.gen.ts | 110 ++++++++++++++++-- 3 files changed, 192 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 ddec6c320..da383eb23 100644 --- a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts @@ -31,9 +31,18 @@ export type { PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, + PublicCatalogProductPropertiesKeyManager, PublicCatalogProductPropertiesLoadBalancer, PublicCatalogProductPropertiesManagedInference, PublicCatalogProductPropertiesObjectStorage, + PublicCatalogProductPropertiesObjectStorageClassType, + PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass, + PublicCatalogProductPropertiesObjectStorageInternetTrafficType, + PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType, + PublicCatalogProductPropertiesObjectStorageRegionTrafficType, + PublicCatalogProductPropertiesObjectStorageRestoreType, + PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType, + PublicCatalogProductPropertiesSecretManager, 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 676339d63..84267ca59 100644 --- a/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts @@ -8,6 +8,10 @@ import type { PublicCatalogProductPropertiesHardwareNetwork, PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareStorage, + PublicCatalogProductPropertiesObjectStorageClassType, + PublicCatalogProductPropertiesObjectStorageInternetTrafficType, + PublicCatalogProductPropertiesObjectStorageRegionTrafficType, + PublicCatalogProductPropertiesObjectStorageRestoreType, PublicCatalogProductPropertiesAppleSilicon, PublicCatalogProductPropertiesBlockStorage, PublicCatalogProductPropertiesDedibox, @@ -15,9 +19,11 @@ import type { PublicCatalogProductPropertiesGenerativeApis, PublicCatalogProductPropertiesHardware, PublicCatalogProductPropertiesInstance, + PublicCatalogProductPropertiesKeyManager, PublicCatalogProductPropertiesLoadBalancer, PublicCatalogProductPropertiesManagedInference, PublicCatalogProductPropertiesObjectStorage, + PublicCatalogProductPropertiesSecretManager, PublicCatalogProductEnvironmentalImpactEstimation, PublicCatalogProductLocality, PublicCatalogProductPrice, @@ -128,6 +134,54 @@ const unmarshalPublicCatalogProductPropertiesHardwareStorage = (data: unknown): } as PublicCatalogProductPropertiesHardwareStorage } +const unmarshalPublicCatalogProductPropertiesObjectStorageClassType = (data: unknown): PublicCatalogProductPropertiesObjectStorageClassType => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageClassType' failed as data isn't a dictionary.`, + ) + } + + return { + storageClass: data.storage_class, + } as PublicCatalogProductPropertiesObjectStorageClassType +} + +const unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType = (data: unknown): PublicCatalogProductPropertiesObjectStorageInternetTrafficType => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageInternetTrafficType' failed as data isn't a dictionary.`, + ) + } + + return { + trafficType: data.traffic_type, + } as PublicCatalogProductPropertiesObjectStorageInternetTrafficType +} + +const unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType = (data: unknown): PublicCatalogProductPropertiesObjectStorageRegionTrafficType => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRegionTrafficType' failed as data isn't a dictionary.`, + ) + } + + return { + regionDestination: data.region_destination, + } as PublicCatalogProductPropertiesObjectStorageRegionTrafficType +} + +const unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType = (data: unknown): PublicCatalogProductPropertiesObjectStorageRestoreType => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRestoreType' failed as data isn't a dictionary.`, + ) + } + + return { + restoreType: data.restore_type, + } as PublicCatalogProductPropertiesObjectStorageRestoreType +} + const unmarshalPublicCatalogProductPropertiesAppleSilicon = (data: unknown): PublicCatalogProductPropertiesAppleSilicon => { if (!isJSONObject(data)) { throw new TypeError( @@ -224,6 +278,17 @@ const unmarshalPublicCatalogProductPropertiesInstance = (data: unknown): PublicC } as PublicCatalogProductPropertiesInstance } +const unmarshalPublicCatalogProductPropertiesKeyManager = (data: unknown): PublicCatalogProductPropertiesKeyManager => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'PublicCatalogProductPropertiesKeyManager' failed as data isn't a dictionary.`, + ) + } + + return { + } as PublicCatalogProductPropertiesKeyManager +} + const unmarshalPublicCatalogProductPropertiesLoadBalancer = (data: unknown): PublicCatalogProductPropertiesLoadBalancer => { if (!isJSONObject(data)) { throw new TypeError( @@ -255,9 +320,24 @@ const unmarshalPublicCatalogProductPropertiesObjectStorage = (data: unknown): Pu } return { + class: data.class ? unmarshalPublicCatalogProductPropertiesObjectStorageClassType(data.class) : undefined, + internetTraffic: data.internet_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType(data.internet_traffic) : undefined, + regionTraffic: data.region_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType(data.region_traffic) : undefined, + restore: data.restore ? unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType(data.restore) : undefined, } as PublicCatalogProductPropertiesObjectStorage } +const unmarshalPublicCatalogProductPropertiesSecretManager = (data: unknown): PublicCatalogProductPropertiesSecretManager => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'PublicCatalogProductPropertiesSecretManager' failed as data isn't a dictionary.`, + ) + } + + return { + } as PublicCatalogProductPropertiesSecretManager +} + const unmarshalPublicCatalogProductEnvironmentalImpactEstimation = (data: unknown): PublicCatalogProductEnvironmentalImpactEstimation => { if (!isJSONObject(data)) { throw new TypeError( @@ -313,9 +393,11 @@ const unmarshalPublicCatalogProductProperties = (data: unknown): PublicCatalogPr generativeApis: data.generative_apis ? unmarshalPublicCatalogProductPropertiesGenerativeApis(data.generative_apis) : undefined, hardware: data.hardware ? unmarshalPublicCatalogProductPropertiesHardware(data.hardware) : undefined, instance: data.instance ? unmarshalPublicCatalogProductPropertiesInstance(data.instance) : undefined, + keyManager: data.key_manager ? unmarshalPublicCatalogProductPropertiesKeyManager(data.key_manager) : undefined, loadBalancer: data.load_balancer ? unmarshalPublicCatalogProductPropertiesLoadBalancer(data.load_balancer) : undefined, managedInference: data.managed_inference ? unmarshalPublicCatalogProductPropertiesManagedInference(data.managed_inference) : undefined, objectStorage: data.object_storage ? unmarshalPublicCatalogProductPropertiesObjectStorage(data.object_storage) : undefined, + secretManager: data.secret_manager ? unmarshalPublicCatalogProductPropertiesSecretManager(data.secret_manager) : 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 7972f4fd4..bbebcc667 100644 --- a/packages_generated/product_catalog/src/v2alpha1/types.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/types.gen.ts @@ -14,6 +14,8 @@ export type ListPublicCatalogProductsRequestProductType = | 'managed_inference' | 'generative_apis' | 'load_balancer' + | 'secret_manager' + | 'key_manager' export type ListPublicCatalogProductsRequestStatus = | 'unknown_status' @@ -47,6 +49,22 @@ export type PublicCatalogProductPropertiesHardwareCPUArch = | 'riscv' | 'apple_silicon' +export type PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass = + | 'unknown_storage_class' + | 'standard' + | 'glacier' + | 'onezone_ia' + +export type PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType = + | 'unknown_traffic_type' + | 'ingress' + | 'egress' + | 'alliance' + +export type PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType = + | 'unknown_restore_type' + | 'standard' + export type PublicCatalogProductStatus = | 'unknown_status' | 'public_beta' @@ -220,6 +238,38 @@ export interface PublicCatalogProductPropertiesHardwareStorage { } +export interface PublicCatalogProductPropertiesObjectStorageClassType { + /** + * The storage class. + */ + storageClass: PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass +} + + +export interface PublicCatalogProductPropertiesObjectStorageInternetTrafficType { + /** + * The type of internet traffic. + */ + trafficType: PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType +} + + +export interface PublicCatalogProductPropertiesObjectStorageRegionTrafficType { + /** + * The destination region for the region traffic. + */ + regionDestination: string +} + + +export interface PublicCatalogProductPropertiesObjectStorageRestoreType { + /** + * The type of restore. + */ + restoreType: PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType +} + + export interface PublicCatalogProductPropertiesAppleSilicon { /** * The range of the Apple Silicon server. @@ -315,6 +365,10 @@ export interface PublicCatalogProductPropertiesInstance { } +export interface PublicCatalogProductPropertiesKeyManager { +} + + export interface PublicCatalogProductPropertiesLoadBalancer { } @@ -328,6 +382,34 @@ export interface PublicCatalogProductPropertiesManagedInference { export interface PublicCatalogProductPropertiesObjectStorage { + /** + * The properties related to Object Storage class. + * + * One-of ('type'): at most one of 'class', 'restore', 'internetTraffic', 'regionTraffic' could be set. + */ + class?: PublicCatalogProductPropertiesObjectStorageClassType + /** + * The properties related to Object Storage restore operations. + * + * One-of ('type'): at most one of 'class', 'restore', 'internetTraffic', 'regionTraffic' could be set. + */ + restore?: PublicCatalogProductPropertiesObjectStorageRestoreType + /** + * The properties related to Object Storage internet traffic. + * + * One-of ('type'): at most one of 'class', 'restore', 'internetTraffic', 'regionTraffic' could be set. + */ + internetTraffic?: PublicCatalogProductPropertiesObjectStorageInternetTrafficType + /** + * The properties related to Object Storage region traffic. + * + * One-of ('type'): at most one of 'class', 'restore', 'internetTraffic', 'regionTraffic' could be set. + */ + regionTraffic?: PublicCatalogProductPropertiesObjectStorageRegionTrafficType +} + + +export interface PublicCatalogProductPropertiesSecretManager { } @@ -381,57 +463,67 @@ export interface PublicCatalogProductProperties { /** * The properties of Dedibox products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. */ dedibox?: PublicCatalogProductPropertiesDedibox /** * The properties of Elastic Metal products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. */ elasticMetal?: PublicCatalogProductPropertiesElasticMetal /** * The properties of Apple Silicon products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. */ appleSilicon?: PublicCatalogProductPropertiesAppleSilicon /** * The properties of Instance products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. */ instance?: PublicCatalogProductPropertiesInstance /** * The properties of Block Storage products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. */ blockStorage?: PublicCatalogProductPropertiesBlockStorage /** * The properties of Object Storage products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. */ objectStorage?: PublicCatalogProductPropertiesObjectStorage /** * The properties of Managed Inference products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. */ managedInference?: PublicCatalogProductPropertiesManagedInference /** * The properties of Generative APIs products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. */ generativeApis?: PublicCatalogProductPropertiesGenerativeApis /** * The properties of Load Balancer products. * - * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set. + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. */ loadBalancer?: PublicCatalogProductPropertiesLoadBalancer + /** + * + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. + */ + secretManager?: PublicCatalogProductPropertiesSecretManager + /** + * + * One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set. + */ + keyManager?: PublicCatalogProductPropertiesKeyManager }