From 05d29c1acc04f6e9a3d62d811a7987ffce223eef Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 20 Feb 2025 15:17:53 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/cockpit/v1/index.gen.ts | 6 +----- packages/clients/src/api/secret/v1beta1/index.gen.ts | 2 ++ packages/clients/src/api/vpcgw/v1/api.gen.ts | 9 +++++++++ packages/clients/src/api/vpcgw/v1/index.gen.ts | 1 + packages/clients/src/api/vpcgw/v1/types.gen.ts | 6 ++++++ 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/packages/clients/src/api/cockpit/v1/index.gen.ts b/packages/clients/src/api/cockpit/v1/index.gen.ts index 38b032127..36ef92f90 100644 --- a/packages/clients/src/api/cockpit/v1/index.gen.ts +++ b/packages/clients/src/api/cockpit/v1/index.gen.ts @@ -4,8 +4,7 @@ export { GlobalAPI, RegionalAPI } from './api.gen' export type { Alert, AlertManager, - AnyAlert, - AnyAlertState, + AlertState, ContactPoint, ContactPointEmail, DataSource, @@ -35,8 +34,6 @@ export type { ListGrafanaProductDashboardsResponse, ListGrafanaUsersRequestOrderBy, ListGrafanaUsersResponse, - ListManagedAlertsRequestOrderBy, - ListManagedAlertsResponse, ListPlansRequestOrderBy, ListPlansResponse, ListTokensRequestOrderBy, @@ -61,7 +58,6 @@ export type { RegionalApiListAlertsRequest, RegionalApiListContactPointsRequest, RegionalApiListDataSourcesRequest, - RegionalApiListManagedAlertsRequest, RegionalApiListTokensRequest, RegionalApiTriggerTestAlertRequest, RegionalApiUpdateContactPointRequest, diff --git a/packages/clients/src/api/secret/v1beta1/index.gen.ts b/packages/clients/src/api/secret/v1beta1/index.gen.ts index b54f53655..6a798365c 100644 --- a/packages/clients/src/api/secret/v1beta1/index.gen.ts +++ b/packages/clients/src/api/secret/v1beta1/index.gen.ts @@ -36,6 +36,8 @@ export type { ListTagsResponse, Product, ProtectSecretRequest, + RestoreSecretRequest, + RestoreSecretVersionRequest, SSHKey, Secret, SecretStatus, diff --git a/packages/clients/src/api/vpcgw/v1/api.gen.ts b/packages/clients/src/api/vpcgw/v1/api.gen.ts index 5b5656b8f..3df663905 100644 --- a/packages/clients/src/api/vpcgw/v1/api.gen.ts +++ b/packages/clients/src/api/vpcgw/v1/api.gen.ts @@ -83,6 +83,7 @@ import type { ListIPsResponse, ListPATRulesRequest, ListPATRulesResponse, + MigrateToV2Request, PATRule, RefreshSSHKeysRequest, SetDHCPEntriesRequest, @@ -943,4 +944,12 @@ export class API extends ParentAPI { }, unmarshalGateway, ) + + migrateToV2 = (request: Readonly) => + this.client.fetch({ + body: '{}', + headers: jsonContentHeaders, + method: 'POST', + path: `/vpc-gw/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam('gatewayId', request.gatewayId)}/migrate-to-v2`, + }) } diff --git a/packages/clients/src/api/vpcgw/v1/index.gen.ts b/packages/clients/src/api/vpcgw/v1/index.gen.ts index a9fc44ca3..2ef05f9e9 100644 --- a/packages/clients/src/api/vpcgw/v1/index.gen.ts +++ b/packages/clients/src/api/vpcgw/v1/index.gen.ts @@ -53,6 +53,7 @@ export type { ListPATRulesRequest, ListPATRulesRequestOrderBy, ListPATRulesResponse, + MigrateToV2Request, PATRule, PATRuleProtocol, RefreshSSHKeysRequest, diff --git a/packages/clients/src/api/vpcgw/v1/types.gen.ts b/packages/clients/src/api/vpcgw/v1/types.gen.ts index e3ec1b52a..0d98f552a 100644 --- a/packages/clients/src/api/vpcgw/v1/types.gen.ts +++ b/packages/clients/src/api/vpcgw/v1/types.gen.ts @@ -815,6 +815,12 @@ export interface ListPATRulesResponse { totalCount: number } +export type MigrateToV2Request = { + /** Zone to target. If none is passed will use default zone from the config. */ + zone?: ScwZone + gatewayId: string +} + export type RefreshSSHKeysRequest = { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone