Skip to content

Commit d2f2279

Browse files
feat(vpc_gw): add delete_ip field to gateway delete RPC (#1677)
Co-authored-by: Jules Castéran <[email protected]>
1 parent 2395069 commit d2f2279

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/clients/src/api/vpcgw/v2/api.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ export class API extends ParentAPI {
222222
{
223223
method: 'DELETE',
224224
path: `/vpc-gw/v2/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam('gatewayId', request.gatewayId)}`,
225+
urlParams: urlParams(['delete_ip', request.deleteIp]),
225226
},
226227
unmarshalGateway,
227228
)

packages/clients/src/api/vpcgw/v2/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ export type DeleteGatewayRequest = {
271271
zone?: Zone
272272
/** ID of the gateway to delete. */
273273
gatewayId: string
274+
/** Defines whether the PGW's IP should be deleted. */
275+
deleteIp: boolean
274276
}
275277

276278
export type DeleteIPRequest = {

0 commit comments

Comments
 (0)