From 42e718364dc913081b60cde01ca162914fb10f6a Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 22 Oct 2024 14:10:38 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/k8s/v1/api.gen.ts | 21 ------------------- packages/clients/src/api/k8s/v1/index.gen.ts | 1 - packages/clients/src/api/k8s/v1/types.gen.ts | 10 --------- .../src/api/k8s/v1/validation-rules.gen.ts | 8 ------- 4 files changed, 40 deletions(-) diff --git a/packages/clients/src/api/k8s/v1/api.gen.ts b/packages/clients/src/api/k8s/v1/api.gen.ts index aa41d70fc..33c27d610 100644 --- a/packages/clients/src/api/k8s/v1/api.gen.ts +++ b/packages/clients/src/api/k8s/v1/api.gen.ts @@ -67,7 +67,6 @@ import type { ListPoolsResponse, ListVersionsRequest, ListVersionsResponse, - MigrateClusterToRoutedIPsRequest, MigrateClusterToSBSCSIRequest, Node, NodeMetadata, @@ -333,26 +332,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 Routed IPs. Migrate the nodes of an existing cluster - * to Routed IPs and enable Routed IPs for all future nodes. - * - * @param request - The request {@link MigrateClusterToRoutedIPsRequest} - * @returns A Promise of Cluster - */ - migrateClusterToRoutedIPs = ( - 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-routed-ips`, - }, - unmarshalCluster, - ) - /** * Migrate a cluster to SBS CSI. Enable the latest CSI compatible with * Scaleway Block Storage (SBS) and migrate all existing diff --git a/packages/clients/src/api/k8s/v1/index.gen.ts b/packages/clients/src/api/k8s/v1/index.gen.ts index 9d3c28da9..ec1458359 100644 --- a/packages/clients/src/api/k8s/v1/index.gen.ts +++ b/packages/clients/src/api/k8s/v1/index.gen.ts @@ -55,7 +55,6 @@ export type { ListVersionsResponse, MaintenanceWindow, MaintenanceWindowDayOfTheWeek, - MigrateClusterToRoutedIPsRequest, MigrateClusterToSBSCSIRequest, Node, NodeMetadata, diff --git a/packages/clients/src/api/k8s/v1/types.gen.ts b/packages/clients/src/api/k8s/v1/types.gen.ts index f702e5305..752a428c5 100644 --- a/packages/clients/src/api/k8s/v1/types.gen.ts +++ b/packages/clients/src/api/k8s/v1/types.gen.ts @@ -1140,16 +1140,6 @@ export interface ListVersionsResponse { versions: Version[] } -export type MigrateClusterToRoutedIPsRequest = { - /** - * Region to target. If none is passed will use default region from the - * config. - */ - region?: Region - /** Cluster ID for which the routed ip will be enabled for the nodes. */ - clusterId: string -} - export type MigrateClusterToSBSCSIRequest = { /** * Region to target. If none is passed will use default region from the diff --git a/packages/clients/src/api/k8s/v1/validation-rules.gen.ts b/packages/clients/src/api/k8s/v1/validation-rules.gen.ts index f8798e36c..4d3510f9e 100644 --- a/packages/clients/src/api/k8s/v1/validation-rules.gen.ts +++ b/packages/clients/src/api/k8s/v1/validation-rules.gen.ts @@ -30,22 +30,18 @@ export const CreateClusterRequestAutoscalerConfig = { export const CreateClusterRequestOpenIDConnectConfig = { clientId: { maxLength: 255, - minLength: 1, }, groupsPrefix: { maxLength: 100, - minLength: 1, }, issuerUrl: { maxLength: 255, }, usernameClaim: { maxLength: 100, - minLength: 1, }, usernamePrefix: { maxLength: 100, - minLength: 1, }, } @@ -147,22 +143,18 @@ export const UpdateClusterRequestAutoscalerConfig = { export const UpdateClusterRequestOpenIDConnectConfig = { clientId: { maxLength: 255, - minLength: 1, }, groupsPrefix: { maxLength: 100, - minLength: 1, }, issuerUrl: { maxLength: 255, }, usernameClaim: { maxLength: 100, - minLength: 1, }, usernamePrefix: { maxLength: 100, - minLength: 1, }, }