From 14e5e537bc488a31649b93fbf31efd8194c3c600 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 30 Nov 2022 14:21:17 +0000 Subject: [PATCH] feat: update generated APIs --- .../src/api/container/v1beta1/types.gen.ts | 35 +++++++++++-------- .../src/api/function/v1beta1/types.gen.ts | 35 +++++++++++-------- 2 files changed, 40 insertions(+), 30 deletions(-) diff --git a/packages/clients/src/api/container/v1beta1/types.gen.ts b/packages/clients/src/api/container/v1beta1/types.gen.ts index a83986e02..49361165c 100644 --- a/packages/clients/src/api/container/v1beta1/types.gen.ts +++ b/packages/clients/src/api/container/v1beta1/types.gen.ts @@ -2,6 +2,11 @@ // If you have any remark or suggestion do not hesitate to open an issue. import type { Region } from '../../../bridge' +export type ContainerHttpOption = + | 'unknown_http_option' + | 'enabled' + | 'redirected' + export type ContainerPrivacy = 'unknown_privacy' | 'public' | 'private' export type ContainerProtocol = 'unknown_protocol' | 'http1' | 'h2c' @@ -99,13 +104,13 @@ export interface Container { port: number secretEnvironmentVariables: Array /** - * @deprecated Possible values: + * Possible values: * - * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients - * to use HTTPS. - * - Enabled: Serve both HTTP and HTTPS traffic. + * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients + * to use HTTPS. + * - Enabled: Serve both HTTP and HTTPS traffic. */ - httpOption?: string + httpOption: ContainerHttpOption region: Region } @@ -296,13 +301,13 @@ export type CreateContainerRequest = { port?: number secretEnvironmentVariables?: Array /** - * @deprecated Possible values: + * Possible values: * - * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients - * to use HTTPS. - * - Enabled: Serve both HTTP and HTTPS traffic. + * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients + * to use HTTPS. + * - Enabled: Serve both HTTP and HTTPS traffic. */ - httpOption?: string + httpOption: ContainerHttpOption } export type UpdateContainerRequest = { @@ -323,13 +328,13 @@ export type UpdateContainerRequest = { port?: number secretEnvironmentVariables?: Array /** - * @deprecated Possible values: + * Possible values: * - * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients - * to use HTTPS. - * - Enabled: Serve both HTTP and HTTPS traffic. + * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients + * to use HTTPS. + * - Enabled: Serve both HTTP and HTTPS traffic. */ - httpOption?: string + httpOption: ContainerHttpOption } export type DeleteContainerRequest = { diff --git a/packages/clients/src/api/function/v1beta1/types.gen.ts b/packages/clients/src/api/function/v1beta1/types.gen.ts index f4af9c49f..027c544d0 100644 --- a/packages/clients/src/api/function/v1beta1/types.gen.ts +++ b/packages/clients/src/api/function/v1beta1/types.gen.ts @@ -19,6 +19,11 @@ export type DomainStatus = | 'creating' | 'pending' +export type FunctionHttpOption = + | 'unknown_http_option' + | 'enabled' + | 'redirected' + export type FunctionPrivacy = 'unknown_privacy' | 'public' | 'private' export type FunctionRuntime = @@ -214,13 +219,13 @@ export interface Function { secretEnvironmentVariables: Array region: Region /** - * @deprecated Possible values: + * Possible values: * - * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients - * to use HTTPS. - * - Enabled: Serve both HTTP and HTTPS traffic. + * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients + * to use HTTPS. + * - Enabled: Serve both HTTP and HTTPS traffic. */ - httpOption?: string + httpOption: FunctionHttpOption runtimeMessage: string } @@ -513,13 +518,13 @@ export type CreateFunctionRequest = { description?: string secretEnvironmentVariables?: Array /** - * @deprecated Possible values: + * Possible values: * - * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients - * to use HTTPS. - * - Enabled: Serve both HTTP and HTTPS traffic. + * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients + * to use HTTPS. + * - Enabled: Serve both HTTP and HTTPS traffic. */ - httpOption?: string + httpOption: FunctionHttpOption } export type UpdateFunctionRequest = { @@ -538,13 +543,13 @@ export type UpdateFunctionRequest = { description?: string secretEnvironmentVariables?: Array /** - * @deprecated Possible values: + * Possible values: * - * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients - * to use HTTPS. - * - Enabled: Serve both HTTP and HTTPS traffic. + * - Redirected: Responds to HTTP request with a 302 redirect to ask the clients + * to use HTTPS. + * - Enabled: Serve both HTTP and HTTPS traffic. */ - httpOption?: string + httpOption: FunctionHttpOption } export type DeleteFunctionRequest = {