From 35e4b4a8a4c658080223625ec21708108ca86508 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 6 Jun 2023 15:31:08 +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 | 2 ++ packages/clients/src/api/lb/v1/types.gen.ts | 24 +++++++++++++++++-- 3 files changed, 26 insertions(+), 2 deletions(-) diff --git a/packages/clients/src/api/lb/v1/api.gen.ts b/packages/clients/src/api/lb/v1/api.gen.ts index b6b62e8a8..ecfb4044e 100644 --- a/packages/clients/src/api/lb/v1/api.gen.ts +++ b/packages/clients/src/api/lb/v1/api.gen.ts @@ -936,6 +936,7 @@ export class API extends ParentAPI { request.region ?? this.client.settings.defaultRegion, )}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`, urlParams: urlParams( + ['backend_id', request.backendId], ['page', request.page], [ 'page_size', @@ -2288,6 +2289,7 @@ export class ZonedAPI extends ParentAPI { request.zone ?? this.client.settings.defaultZone, )}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`, urlParams: urlParams( + ['backend_id', request.backendId], ['page', request.page], [ 'page_size', diff --git a/packages/clients/src/api/lb/v1/marshalling.gen.ts b/packages/clients/src/api/lb/v1/marshalling.gen.ts index 4f59e8beb..fb0e21d21 100644 --- a/packages/clients/src/api/lb/v1/marshalling.gen.ts +++ b/packages/clients/src/api/lb/v1/marshalling.gen.ts @@ -1124,6 +1124,7 @@ export const marshalCreateLbRequest = ( request: CreateLbRequest, defaults: DefaultValues, ): Record => ({ + assign_flexible_ip: request.assignFlexibleIp, description: request.description, ip_id: request.ipId, name: request.name || randomName('lb'), @@ -1513,6 +1514,7 @@ export const marshalZonedApiCreateLbRequest = ( request: ZonedApiCreateLbRequest, defaults: DefaultValues, ): Record => ({ + assign_flexible_ip: request.assignFlexibleIp, description: request.description, ip_id: request.ipId, name: request.name || randomName('lb'), diff --git a/packages/clients/src/api/lb/v1/types.gen.ts b/packages/clients/src/api/lb/v1/types.gen.ts index b93be1fe2..f35fb9e9c 100644 --- a/packages/clients/src/api/lb/v1/types.gen.ts +++ b/packages/clients/src/api/lb/v1/types.gen.ts @@ -939,8 +939,16 @@ export type CreateLbRequest = { name?: string /** Description for the Load Balancer. */ description: string - /** ID of an existing flexible IP address to attach to the Load Balancer. */ + /** + * @deprecated ID of an existing flexible IP address to attach to the Load + * Balancer. + */ ipId?: string + /** + * Defines whether to automatically assign a flexible public IP to lb. Default + * value is `false` (do not assign). + */ + assignFlexibleIp?: boolean /** List of tags for the Load Balancer. */ tags?: string[] /** @@ -1616,6 +1624,8 @@ export type ListBackendStatsRequest = { page?: number /** Number of items to return. */ pageSize?: number + /** ID of the backend. */ + backendId?: string } export type ListAclsRequest = { @@ -2034,8 +2044,16 @@ export type ZonedApiCreateLbRequest = { name?: string /** Description for the Load Balancer. */ description: string - /** ID of an existing flexible IP address to attach to the Load Balancer. */ + /** + * @deprecated ID of an existing flexible IP address to attach to the Load + * Balancer. + */ ipId?: string + /** + * Defines whether to automatically assign a flexible public IP to lb. Default + * value is `false` (do not assign). + */ + assignFlexibleIp?: boolean /** List of tags for the Load Balancer. */ tags?: string[] /** @@ -2621,6 +2639,8 @@ export type ZonedApiListBackendStatsRequest = { page?: number /** Number of items to return. */ pageSize?: number + /** ID of the backend. */ + backendId?: string } export type ZonedApiListAclsRequest = {