From aa7ecda228f958709b355d1bfa1b564b3b78bd0e Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 22 Nov 2022 08:52:45 +0000 Subject: [PATCH] feat: update generated APIs --- .../clients/src/api/lb/v1/marshalling.gen.ts | 11 +++++++ packages/clients/src/api/lb/v1/types.gen.ts | 29 +++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/packages/clients/src/api/lb/v1/marshalling.gen.ts b/packages/clients/src/api/lb/v1/marshalling.gen.ts index 38f702662..319c7b69a 100644 --- a/packages/clients/src/api/lb/v1/marshalling.gen.ts +++ b/packages/clients/src/api/lb/v1/marshalling.gen.ts @@ -130,6 +130,7 @@ const unmarshalHealthCheckHttpConfig = (data: unknown) => { return { code: data.code, + hostHeader: data.host_header, method: data.method, uri: data.uri, } as HealthCheckHttpConfig @@ -144,7 +145,9 @@ const unmarshalHealthCheckHttpsConfig = (data: unknown) => { return { code: data.code, + hostHeader: data.host_header, method: data.method, + sni: data.sni, uri: data.uri, } as HealthCheckHttpsConfig } @@ -423,6 +426,7 @@ export const unmarshalFrontend = (data: unknown) => { : undefined, certificateIds: data.certificate_ids, createdAt: unmarshalDate(data.created_at), + enableHttp3: data.enable_http3, id: data.id, inboundPort: data.inbound_port, lb: data.lb ? unmarshalLb(data.lb) : undefined, @@ -756,6 +760,7 @@ const marshalHealthCheckHttpConfig = ( defaults: DefaultValues, ): Record => ({ code: request.code, + host_header: request.hostHeader, method: request.method, uri: request.uri, }) @@ -765,7 +770,9 @@ const marshalHealthCheckHttpsConfig = ( defaults: DefaultValues, ): Record => ({ code: request.code, + host_header: request.hostHeader, method: request.method, + sni: request.sni, uri: request.uri, }) @@ -1008,6 +1015,7 @@ export const marshalCreateFrontendRequest = ( backend_id: request.backendId, certificate_id: request.certificateId, certificate_ids: request.certificateIds, + enable_http3: request.enableHttp3, inbound_port: request.inboundPort, name: request.name || randomName('lbf'), timeout_client: request.timeoutClient, @@ -1171,6 +1179,7 @@ export const marshalUpdateFrontendRequest = ( backend_id: request.backendId, certificate_id: request.certificateId, certificate_ids: request.certificateIds, + enable_http3: request.enableHttp3, inbound_port: request.inboundPort, name: request.name, timeout_client: request.timeoutClient, @@ -1374,6 +1383,7 @@ export const marshalZonedApiCreateFrontendRequest = ( backend_id: request.backendId, certificate_id: request.certificateId, certificate_ids: request.certificateIds, + enable_http3: request.enableHttp3, inbound_port: request.inboundPort, name: request.name || randomName('lbf'), timeout_client: request.timeoutClient, @@ -1544,6 +1554,7 @@ export const marshalZonedApiUpdateFrontendRequest = ( backend_id: request.backendId, certificate_id: request.certificateId, certificate_ids: request.certificateIds, + enable_http3: request.enableHttp3, inbound_port: request.inboundPort, name: request.name, timeout_client: request.timeoutClient, diff --git a/packages/clients/src/api/lb/v1/types.gen.ts b/packages/clients/src/api/lb/v1/types.gen.ts index 6960afee4..e659092bb 100644 --- a/packages/clients/src/api/lb/v1/types.gen.ts +++ b/packages/clients/src/api/lb/v1/types.gen.ts @@ -315,6 +315,7 @@ export interface Frontend { certificateIds: Array createdAt?: Date updatedAt?: Date + enableHttp3: boolean } /** Health check */ @@ -378,16 +379,36 @@ export interface HealthCheck { checkSendProxy: boolean } +/** Health check. http config */ export interface HealthCheckHttpConfig { + /** HTTP uri used with the request */ uri: string + /** HTTP method used with the request */ method: string + /** + * A health check response will be considered as valid if the response's + * status code match + */ code?: number + /** HTTP host header used with the request */ + hostHeader: string } +/** Health check. https config */ export interface HealthCheckHttpsConfig { + /** HTTP uri used with the request */ uri: string + /** HTTP method used with the request */ method: string + /** + * A health check response will be considered as valid if the response's + * status code match + */ code?: number + /** HTTP host header used with the request */ + hostHeader: string + /** Specifies the SNI to use to do health checks over SSL */ + sni: string } export interface HealthCheckLdapConfig {} @@ -1085,6 +1106,8 @@ export type CreateFrontendRequest = { certificateId?: string /** List of certificate IDs to bind on the frontend */ certificateIds?: Array + /** Activate HTTP 3 protocol (beta) */ + enableHttp3: boolean } export type GetFrontendRequest = { @@ -1111,6 +1134,8 @@ export type UpdateFrontendRequest = { certificateId?: string /** List of certificate IDs to bind on the frontend */ certificateIds?: Array + /** Activate HTTP 3 protocol (beta) */ + enableHttp3: boolean } export type DeleteFrontendRequest = { @@ -1906,6 +1931,8 @@ export type ZonedApiCreateFrontendRequest = { certificateId?: string /** List of certificate IDs to bind on the frontend */ certificateIds?: Array + /** Activate HTTP 3 protocol (beta) */ + enableHttp3: boolean } export type ZonedApiGetFrontendRequest = { @@ -1932,6 +1959,8 @@ export type ZonedApiUpdateFrontendRequest = { certificateId?: string /** List of certificate IDs to bind on the frontend */ certificateIds?: Array + /** Activate HTTP 3 protocol (beta) */ + enableHttp3: boolean } export type ZonedApiDeleteFrontendRequest = {