Skip to content

Commit

Permalink
feat(vpc_gw): add delete_ip field to gateway delete RPC (#1677)
Browse files Browse the repository at this point in the history
Co-authored-by: Jules Castéran <[email protected]>
  • Loading branch information
scaleway-bot and Codelax authored Dec 24, 2024
1 parent 2395069 commit d2f2279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/clients/src/api/vpcgw/v2/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ export class API extends ParentAPI {
{
method: 'DELETE',
path: `/vpc-gw/v2/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam('gatewayId', request.gatewayId)}`,
urlParams: urlParams(['delete_ip', request.deleteIp]),
},
unmarshalGateway,
)
Expand Down
2 changes: 2 additions & 0 deletions packages/clients/src/api/vpcgw/v2/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ export type DeleteGatewayRequest = {
zone?: Zone
/** ID of the gateway to delete. */
gatewayId: string
/** Defines whether the PGW's IP should be deleted. */
deleteIp: boolean
}

export type DeleteIPRequest = {
Expand Down

0 comments on commit d2f2279

Please sign in to comment.