From 75a56b2b32c296f74be4cc50b9e4836091dc4eb8 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 23 Apr 2025 14:54:44 +0000 Subject: [PATCH] feat: update generated APIs --- .../cockpit/src/v1/index.gen.ts | 2 ++ .../instance/src/v1/index.gen.ts | 4 ++++ packages_generated/k8s/src/v1/api.gen.ts | 19 ------------------- packages_generated/k8s/src/v1/index.gen.ts | 1 - packages_generated/k8s/src/v1/types.gen.ts | 11 ----------- .../product_catalog/src/v2alpha1/index.gen.ts | 4 +++- packages_generated/std/src/index.gen.ts | 5 +---- 7 files changed, 10 insertions(+), 36 deletions(-) diff --git a/packages_generated/cockpit/src/v1/index.gen.ts b/packages_generated/cockpit/src/v1/index.gen.ts index 85759b6bb..34fb919b0 100644 --- a/packages_generated/cockpit/src/v1/index.gen.ts +++ b/packages_generated/cockpit/src/v1/index.gen.ts @@ -14,6 +14,8 @@ export type { DataSource, DataSourceOrigin, DataSourceType, + DisableAlertRulesResponse, + EnableAlertRulesResponse, GetConfigResponse, GetConfigResponseRetention, GlobalApiCreateGrafanaUserRequest, diff --git a/packages_generated/instance/src/v1/index.gen.ts b/packages_generated/instance/src/v1/index.gen.ts index 3ad26c047..63c831f0d 100644 --- a/packages_generated/instance/src/v1/index.gen.ts +++ b/packages_generated/instance/src/v1/index.gen.ts @@ -6,6 +6,8 @@ export * from './marshalling.gen' export type { ApplyBlockMigrationRequest, Arch, + AttachServerFileSystemRequest, + AttachServerFileSystemResponse, AttachServerVolumeRequest, AttachServerVolumeRequestVolumeType, AttachServerVolumeResponse, @@ -41,6 +43,8 @@ export type { DeleteServerUserDataRequest, DeleteSnapshotRequest, DeleteVolumeRequest, + DetachServerFileSystemRequest, + DetachServerFileSystemResponse, DetachServerVolumeRequest, DetachServerVolumeResponse, ExportSnapshotRequest, diff --git a/packages_generated/k8s/src/v1/api.gen.ts b/packages_generated/k8s/src/v1/api.gen.ts index 913a8996f..52fb6aa71 100644 --- a/packages_generated/k8s/src/v1/api.gen.ts +++ b/packages_generated/k8s/src/v1/api.gen.ts @@ -77,7 +77,6 @@ import type { ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, - MigrateClusterToSBSCSIRequest, Node, NodeMetadata, Pool, @@ -334,24 +333,6 @@ export class API extends ParentAPI { path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/reset-admin-token`, }) - /** - * Migrate a cluster to SBS CSI. Enable the latest CSI compatible with Scaleway Block Storage (SBS) and migrate all existing PersistentVolumes/VolumeSnapshotContents to SBS. -Make sure to have the necessary Quota before running this command. - * - * @param request - The request {@link MigrateClusterToSBSCSIRequest} - * @returns A Promise of Cluster - */ - migrateClusterToSBSCSI = (request: Readonly) => - this.client.fetch( - { - body: '{}', - headers: jsonContentHeaders, - method: 'POST', - path: `/k8s/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam('clusterId', request.clusterId)}/migrate-to-sbs-csi`, - }, - unmarshalCluster, - ) - protected pageOfListClusterACLRules = ( request: Readonly, ) => diff --git a/packages_generated/k8s/src/v1/index.gen.ts b/packages_generated/k8s/src/v1/index.gen.ts index 537a475d3..dac365bc0 100644 --- a/packages_generated/k8s/src/v1/index.gen.ts +++ b/packages_generated/k8s/src/v1/index.gen.ts @@ -63,7 +63,6 @@ export type { ListVersionsResponse, MaintenanceWindow, MaintenanceWindowDayOfTheWeek, - MigrateClusterToSBSCSIRequest, Node, NodeMetadata, NodeMetadataCoreV1Taint, diff --git a/packages_generated/k8s/src/v1/types.gen.ts b/packages_generated/k8s/src/v1/types.gen.ts index af0951866..f01db09f4 100644 --- a/packages_generated/k8s/src/v1/types.gen.ts +++ b/packages_generated/k8s/src/v1/types.gen.ts @@ -1465,17 +1465,6 @@ export interface ListVersionsResponse { versions: Version[] } -export type MigrateClusterToSBSCSIRequest = { - /** - * Region to target. If none is passed will use default region from the config. - */ - region?: ScwRegion - /** - * Cluster ID for which the latest CSI compatible with Scaleway Block Storage will be enabled. - */ - clusterId: string -} - export interface NodeMetadata { id: string name: string diff --git a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts index cd7869df4..7cd37d023 100644 --- a/packages_generated/product_catalog/src/v2alpha1/index.gen.ts +++ b/packages_generated/product_catalog/src/v2alpha1/index.gen.ts @@ -6,7 +6,7 @@ export type { ListPublicCatalogProductsResponse, PublicCatalogApiListPublicCatalogProductsRequest, PublicCatalogProduct, - PublicCatalogProductEnvironmentalImpact, + PublicCatalogProductEnvironmentalImpactEstimation, PublicCatalogProductLocality, PublicCatalogProductPrice, PublicCatalogProductPriceUnitOfMeasure, @@ -25,5 +25,7 @@ export type { PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, + PublicCatalogProductUnitOfMeasure, + PublicCatalogProductUnitOfMeasureCountableUnit, } from './types.gen' export * as ValidationRules from './validation-rules.gen' diff --git a/packages_generated/std/src/index.gen.ts b/packages_generated/std/src/index.gen.ts index 63c6940eb..156220bde 100644 --- a/packages_generated/std/src/index.gen.ts +++ b/packages_generated/std/src/index.gen.ts @@ -1,6 +1,3 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -export type { - CountryCode, - LanguageCode, -} from './types.gen' +export type { LanguageCode } from './types.gen'