From 8b93f35e6d4c34429c68f1f111afc0f9d51a397e Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 14 May 2024 14:49:51 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/ipam/v1/api.gen.ts | 4 +++- packages/clients/src/api/ipam/v1/types.gen.ts | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/clients/src/api/ipam/v1/api.gen.ts b/packages/clients/src/api/ipam/v1/api.gen.ts index 4606d1174..cc22fdd37 100644 --- a/packages/clients/src/api/ipam/v1/api.gen.ts +++ b/packages/clients/src/api/ipam/v1/api.gen.ts @@ -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 { @@ -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 }, ]), ), ), diff --git a/packages/clients/src/api/ipam/v1/types.gen.ts b/packages/clients/src/api/ipam/v1/types.gen.ts index 69d0ff623..b452d697d 100644 --- a/packages/clients/src/api/ipam/v1/types.gen.ts +++ b/packages/clients/src/api/ipam/v1/types.gen.ts @@ -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 /**