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