Skip to content

Commit

Permalink
feat(ipam): support filtering ips on ids (#1643)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan R. <[email protected]>
  • Loading branch information
scaleway-bot and jremy42 authored Dec 23, 2024
1 parent 7a604bd commit 9942741
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions packages/clients/src/api/ipam/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ export class API extends ParentAPI {
path: `/ipam/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips`,
urlParams: urlParams(
['attached', request.attached],
['ip_ids', request.ipIds],
['is_ipv6', request.isIpv6],
['mac_address', request.macAddress],
['order_by', request.orderBy],
Expand Down
22 changes: 12 additions & 10 deletions packages/clients/src/api/ipam/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ export type ListIPsRequest = {
vpcId?: string
/** Defines whether to filter only for IPs which are attached to a resource. */
attached?: boolean
/**
* Attached resource name to filter for, only IPs attached to a resource with
* this string within their name will be returned.
*/
resourceName?: string
/**
* Resource ID to filter for. Only IPs attached to this resource will be
* returned.
Expand All @@ -240,6 +245,11 @@ export type ListIPsRequest = {
* will be returned.
*/
resourceType?: ResourceType
/**
* Resource types to filter for. Only IPs attached to these types of resources
* will be returned.
*/
resourceTypes?: ResourceType[]
/**
* MAC address to filter for. Only IPs attached to a resource with this MAC
* address will be returned.
Expand All @@ -257,16 +267,8 @@ export type ListIPsRequest = {
organizationId?: string
/** Defines whether to filter only for IPv4s or IPv6s. */
isIpv6?: boolean
/**
* Attached resource name to filter for, only IPs attached to a resource with
* this string within their name will be returned.
*/
resourceName?: string
/**
* Resource types to filter for. Only IPs attached to these types of resources
* will be returned.
*/
resourceTypes?: ResourceType[]
/** IP IDs to filter for. Only IPs with these UUIDs will be returned. */
ipIds?: string[]
}

export interface ListIPsResponse {
Expand Down

0 comments on commit 9942741

Please sign in to comment.