From 183fcec2331d9db0ed288786951c8c77552cb716 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Mon, 12 May 2025 14:43:47 +0000 Subject: [PATCH] feat: update generated APIs --- .../autoscaling/src/index.gen.ts | 2 +- .../key_manager/src/v1alpha1/index.gen.ts | 6 +++++ .../product_catalog/src/v2alpha1/index.gen.ts | 1 + .../src/v2alpha1/marshalling.gen.ts | 5 ++++ .../product_catalog/src/v2alpha1/types.gen.ts | 24 +++++++++++++++++++ 5 files changed, 37 insertions(+), 1 deletion(-) diff --git a/packages_generated/autoscaling/src/index.gen.ts b/packages_generated/autoscaling/src/index.gen.ts index 8996d1513..c61fe2e8f 100644 --- a/packages_generated/autoscaling/src/index.gen.ts +++ b/packages_generated/autoscaling/src/index.gen.ts @@ -3,4 +3,4 @@ * PLEASE DO NOT EDIT HERE */ -export * as Autoscalingv1alpha1 from './v1alpha1/index.gen' \ No newline at end of file +export * as Autoscalingv1alpha1 from './v1alpha1/index.gen' diff --git a/packages_generated/key_manager/src/v1alpha1/index.gen.ts b/packages_generated/key_manager/src/v1alpha1/index.gen.ts index 18c5a8eb2..4cab830dc 100644 --- a/packages_generated/key_manager/src/v1alpha1/index.gen.ts +++ b/packages_generated/key_manager/src/v1alpha1/index.gen.ts @@ -19,6 +19,8 @@ export type { GetPublicKeyRequest, ImportKeyMaterialRequest, Key, + KeyAlgorithmAsymmetricEncryption, + KeyAlgorithmAsymmetricSigning, KeyAlgorithmSymmetricEncryption, KeyOrigin, KeyRotationPolicy, @@ -30,6 +32,10 @@ export type { ProtectKeyRequest, PublicKey, RotateKeyRequest, + SignRequest, + SignResponse, UnprotectKeyRequest, UpdateKeyRequest, + VerifyRequest, + VerifyResponse, } from './types.gen' diff --git a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts index ae5d23a8e..c22bb7719 100644 --- a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts @@ -23,6 +23,7 @@ export type { PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, + PublicCatalogProductStatus, PublicCatalogProductUnitOfMeasure, PublicCatalogProductUnitOfMeasureCountableUnit, } from './types.gen' diff --git a/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts b/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts index 0f416a737..e5760aa20 100644 --- a/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/marshalling.gen.ts @@ -3,6 +3,7 @@ import { isJSONObject, unmarshalArrayOfObject, + unmarshalDate, unmarshalMoney, } from '@scaleway/sdk-client' import type { @@ -228,7 +229,9 @@ const unmarshalPublicCatalogProductPropertiesInstance = ( } return { + offerId: data.offer_id, range: data.range, + recommendedReplacementOfferIds: data.recommended_replacement_offer_ids, } as PublicCatalogProductPropertiesInstance } @@ -332,6 +335,7 @@ const unmarshalPublicCatalogProduct = (data: unknown): PublicCatalogProduct => { return { description: data.description, + endOfLifeAt: unmarshalDate(data.end_of_life_at), environmentalImpactEstimation: data.environmental_impact_estimation ? unmarshalPublicCatalogProductEnvironmentalImpactEstimation( data.environmental_impact_estimation, @@ -349,6 +353,7 @@ const unmarshalPublicCatalogProduct = (data: unknown): PublicCatalogProduct => { : undefined, serviceCategory: data.service_category, sku: data.sku, + status: data.status, unitOfMeasure: data.unit_of_measure ? unmarshalPublicCatalogProductUnitOfMeasure(data.unit_of_measure) : undefined, diff --git a/packages_generated/product_catalog/src/v2alpha1/types.gen.ts b/packages_generated/product_catalog/src/v2alpha1/types.gen.ts index c79241eed..33224db0e 100644 --- a/packages_generated/product_catalog/src/v2alpha1/types.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/types.gen.ts @@ -13,6 +13,14 @@ export type PublicCatalogProductPropertiesHardwareCPUArch = | 'riscv' | 'apple_silicon' +export type PublicCatalogProductStatus = + | 'unknown_status' + | 'public_beta' + | 'preview' + | 'general_availability' + | 'end_of_deployment' + | 'end_of_support' + export type PublicCatalogProductUnitOfMeasureCountableUnit = | 'unknown_countable_unit' | 'chunk' @@ -211,6 +219,14 @@ export interface PublicCatalogProductPropertiesInstance { * The range of the Instance server. */ range: string + /** + * The offer ID of the Instance server. + */ + offerId: string + /** + * The recommended replacement offer IDs of the Instance server. + */ + recommendedReplacementOfferIds: string[] } export interface PublicCatalogProductEnvironmentalImpactEstimation { @@ -329,6 +345,14 @@ export interface PublicCatalogProduct { * The unit of measure of the product. */ unitOfMeasure?: PublicCatalogProductUnitOfMeasure + /** + * The status of the product. + */ + status: PublicCatalogProductStatus + /** + * The end of life date of the product. + */ + endOfLifeAt?: Date } export interface ListPublicCatalogProductsResponse {