Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/clients/src/api/ipam/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const jsonContentHeaders = {
/**
* IPAM API.
*
* This API allows you to manage IP addresses with Scaleway's IP Address
* This API allows you to manage your Scaleway IP addresses with our IP Address
* Management tool.
*/
export class API extends ParentAPI {
Expand Down Expand Up @@ -127,10 +127,12 @@ export class API extends ParentAPI {
['resource_name', request.resourceName],
['resource_type', request.resourceType],
['tags', request.tags],
['vpc_id', request.vpcId],
...Object.entries(
resolveOneOf([
{ param: 'zonal', value: request.zonal },
{ param: 'private_network_id', value: request.privateNetworkId },
{ param: 'subnet_id', value: request.subnetId },
]),
),
),
Expand Down
15 changes: 13 additions & 2 deletions packages/clients/src/api/ipam/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,15 +155,26 @@ export type ListIPsRequest = {
* Zone to filter for. Only IPs that are zonal, and in this zone, will be
* returned.
*
* One-of ('source'): at most one of 'zonal', 'privateNetworkId' could be set.
* One-of ('source'): at most one of 'zonal', 'privateNetworkId', 'subnetId'
* could be set.
*/
zonal?: string
/**
* Only IPs that are private, and in this Private Network, will be returned.
*
* One-of ('source'): at most one of 'zonal', 'privateNetworkId' could be set.
* One-of ('source'): at most one of 'zonal', 'privateNetworkId', 'subnetId'
* could be set.
*/
privateNetworkId?: string
/**
* Only IPs inside this exact subnet will be returned.
*
* One-of ('source'): at most one of 'zonal', 'privateNetworkId', 'subnetId'
* could be set.
*/
subnetId?: string
/** Only IPs owned by resources in this VPC will be returned. */
vpcId?: string
/** Defines whether to filter only for IPs which are attached to a resource. */
attached?: boolean
/**
Expand Down