From f8d57ef92cde8d938934c1c5f273c6c0a6a4d25c Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 3 May 2024 07:57:39 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/lb/v1/api.gen.ts | 2 ++ .../clients/src/api/lb/v1/marshalling.gen.ts | 5 +++++ packages/clients/src/api/lb/v1/types.gen.ts | 20 +++++++++++++++++++ 3 files changed, 27 insertions(+) diff --git a/packages/clients/src/api/lb/v1/api.gen.ts b/packages/clients/src/api/lb/v1/api.gen.ts index f349735fc..8898cd638 100644 --- a/packages/clients/src/api/lb/v1/api.gen.ts +++ b/packages/clients/src/api/lb/v1/api.gen.ts @@ -401,6 +401,7 @@ export class ZonedAPI extends ParentAPI { request.pageSize ?? this.client.settings.defaultPageSize, ], ['project_id', request.projectId], + ['tags', request.tags], ), }, unmarshalListIpsResponse, @@ -1616,6 +1617,7 @@ export class API extends ParentAPI { request.pageSize ?? this.client.settings.defaultPageSize, ], ['project_id', request.projectId], + ['tags', request.tags], ), }, unmarshalListIpsResponse, diff --git a/packages/clients/src/api/lb/v1/marshalling.gen.ts b/packages/clients/src/api/lb/v1/marshalling.gen.ts index 65e02050e..1b87bebfd 100644 --- a/packages/clients/src/api/lb/v1/marshalling.gen.ts +++ b/packages/clients/src/api/lb/v1/marshalling.gen.ts @@ -118,6 +118,7 @@ export const unmarshalIp = (data: unknown): Ip => { projectId: data.project_id, region: data.region, reverse: data.reverse, + tags: data.tags, zone: data.zone, } as Ip } @@ -1136,6 +1137,7 @@ export const marshalCreateIpRequest = ( ): Record => ({ is_ipv6: request.isIpv6, reverse: request.reverse, + tags: request.tags, ...resolveOneOf([ { default: defaults.defaultProjectId, @@ -1404,6 +1406,7 @@ export const marshalUpdateIpRequest = ( ): Record => ({ lb_id: request.lbId, reverse: request.reverse, + tags: request.tags, }) export const marshalUpdateLbRequest = ( @@ -1575,6 +1578,7 @@ export const marshalZonedApiCreateIpRequest = ( ): Record => ({ is_ipv6: request.isIpv6, reverse: request.reverse, + tags: request.tags, ...resolveOneOf([ { default: defaults.defaultProjectId, @@ -1840,6 +1844,7 @@ export const marshalZonedApiUpdateIpRequest = ( ): Record => ({ lb_id: request.lbId, reverse: request.reverse, + tags: request.tags, }) export const marshalZonedApiUpdateLbRequest = ( diff --git a/packages/clients/src/api/lb/v1/types.gen.ts b/packages/clients/src/api/lb/v1/types.gen.ts index d45552765..4fe99809e 100644 --- a/packages/clients/src/api/lb/v1/types.gen.ts +++ b/packages/clients/src/api/lb/v1/types.gen.ts @@ -220,6 +220,8 @@ export interface Ip { lbId?: string /** Reverse DNS (domain name) of the IP address. */ reverse: string + /** IP tags. */ + tags: string[] /** @deprecated The region the IP address is in. */ region?: Region /** The zone the IP address is in. */ @@ -982,6 +984,8 @@ export type CreateIpRequest = { reverse?: string /** If true, creates a Flexible IP with an ipv6 address. */ isIpv6: boolean + /** List of tags for the IP. */ + tags?: string[] } export type CreateLbRequest = { @@ -1440,6 +1444,11 @@ export type ListIPsRequest = { projectId?: string /** IP type to filter for. */ ipType?: ListIpsRequestIpType + /** + * Tag to filter for, only IPs with one or more matching tags will be + * returned. + */ + tags?: string[] } export interface ListIpsResponse { @@ -1897,6 +1906,8 @@ export type UpdateIpRequest = { reverse?: string /** ID of the server on which to attach the flexible IP. */ lbId?: string + /** List of tags for the IP. */ + tags?: string[] } export type UpdateLbRequest = { @@ -2182,6 +2193,8 @@ export type ZonedApiCreateIpRequest = { reverse?: string /** If true, creates a Flexible IP with an ipv6 address. */ isIpv6: boolean + /** List of tags for the IP. */ + tags?: string[] } export type ZonedApiCreateLbRequest = { @@ -2522,6 +2535,11 @@ export type ZonedApiListIPsRequest = { projectId?: string /** IP type to filter for. */ ipType?: ListIpsRequestIpType + /** + * Tag to filter for, only IPs with one or more matching tags will be + * returned. + */ + tags?: string[] } export type ZonedApiListLbPrivateNetworksRequest = { @@ -2891,6 +2909,8 @@ export type ZonedApiUpdateIpRequest = { reverse?: string /** ID of the server on which to attach the flexible IP. */ lbId?: string + /** List of tags for the IP. */ + tags?: string[] } export type ZonedApiUpdateLbRequest = {