From ef7cc53ee39711a2f538d5272de6240fc1c26244 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Mon, 28 Oct 2024 14:43:51 +0000 Subject: [PATCH] feat: update generated APIs --- .../src/api/container/v1beta1/marshalling.gen.ts | 6 ++++++ .../clients/src/api/container/v1beta1/types.gen.ts | 12 ++++++++++++ .../src/api/function/v1beta1/marshalling.gen.ts | 3 +++ .../clients/src/api/function/v1beta1/types.gen.ts | 6 ++++++ 4 files changed, 27 insertions(+) diff --git a/packages/clients/src/api/container/v1beta1/marshalling.gen.ts b/packages/clients/src/api/container/v1beta1/marshalling.gen.ts index 2f7cfdbac..9c9c48fcf 100644 --- a/packages/clients/src/api/container/v1beta1/marshalling.gen.ts +++ b/packages/clients/src/api/container/v1beta1/marshalling.gen.ts @@ -79,6 +79,7 @@ export const unmarshalContainer = (data: unknown): Container => { return { cpuLimit: data.cpu_limit, + createdAt: unmarshalDate(data.created_at), description: data.description, domainName: data.domain_name, environmentVariables: data.environment_variables, @@ -95,6 +96,7 @@ export const unmarshalContainer = (data: unknown): Container => { port: data.port, privacy: data.privacy, protocol: data.protocol, + readyAt: unmarshalDate(data.ready_at), region: data.region, registryImage: data.registry_image, sandbox: data.sandbox, @@ -107,6 +109,7 @@ export const unmarshalContainer = (data: unknown): Container => { ), status: data.status, timeout: data.timeout, + updatedAt: unmarshalDate(data.updated_at), } as Container } @@ -167,6 +170,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => { unmarshalSecretHashedValue, ), status: data.status, + tags: data.tags, } as Namespace } @@ -443,6 +447,7 @@ export const marshalCreateNamespaceRequest = ( marshalSecret(elt, defaults), ) : undefined, + tags: request.tags, }) export const marshalCreateTokenRequest = ( @@ -581,6 +586,7 @@ export const marshalUpdateNamespaceRequest = ( marshalSecret(elt, defaults), ) : undefined, + tags: request.tags, }) const marshalUpdateTriggerRequestSqsClientConfig = ( diff --git a/packages/clients/src/api/container/v1beta1/types.gen.ts b/packages/clients/src/api/container/v1beta1/types.gen.ts index 482087ce3..83c85baea 100644 --- a/packages/clients/src/api/container/v1beta1/types.gen.ts +++ b/packages/clients/src/api/container/v1beta1/types.gen.ts @@ -238,6 +238,12 @@ export interface Container { * requests being processed per container instance. */ scalingOption?: ContainerScalingOption + /** Creation date of the container. */ + createdAt?: Date + /** Last update date of the container. */ + updatedAt?: Date + /** Last date when the container was successfully deployed and set to ready. */ + readyAt?: Date /** Region in which the container will be deployed. */ region: Region } @@ -297,6 +303,8 @@ export interface Namespace { secretEnvironmentVariables: SecretHashedValue[] /** Region in which the namespace will be created. */ region: Region + /** [ALPHA] List of tags applied to the Serverless Container Namespace. */ + tags: string[] } export interface Token { @@ -473,6 +481,8 @@ export type CreateNamespaceRequest = { description?: string /** Secret environment variables of the namespace to create. */ secretEnvironmentVariables?: Secret[] + /** [ALPHA] Tags of the Serverless Container Namespace. */ + tags?: string[] } export type CreateTokenRequest = { @@ -920,6 +930,8 @@ export type UpdateNamespaceRequest = { description?: string /** Secret environment variables of the namespace to update. */ secretEnvironmentVariables?: Secret[] + /** [ALPHA] Tags of the Serverless Container Namespace. */ + tags?: string[] } export type UpdateTriggerRequest = { diff --git a/packages/clients/src/api/function/v1beta1/marshalling.gen.ts b/packages/clients/src/api/function/v1beta1/marshalling.gen.ts index b12c03fed..1d4adccd8 100644 --- a/packages/clients/src/api/function/v1beta1/marshalling.gen.ts +++ b/packages/clients/src/api/function/v1beta1/marshalling.gen.ts @@ -152,6 +152,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => { unmarshalSecretHashedValue, ), status: data.status, + tags: data.tags, } as Namespace } @@ -470,6 +471,7 @@ export const marshalCreateNamespaceRequest = ( marshalSecret(elt, defaults), ) : undefined, + tags: request.tags, }) export const marshalCreateTokenRequest = ( @@ -600,6 +602,7 @@ export const marshalUpdateNamespaceRequest = ( marshalSecret(elt, defaults), ) : undefined, + tags: request.tags, }) const marshalUpdateTriggerRequestSqsClientConfig = ( diff --git a/packages/clients/src/api/function/v1beta1/types.gen.ts b/packages/clients/src/api/function/v1beta1/types.gen.ts index 8013757a7..148e4ac4f 100644 --- a/packages/clients/src/api/function/v1beta1/types.gen.ts +++ b/packages/clients/src/api/function/v1beta1/types.gen.ts @@ -327,6 +327,8 @@ export interface Namespace { secretEnvironmentVariables: SecretHashedValue[] /** Region in which the namespace is located. */ region: Region + /** [ALPHA] List of tags applied to the Serverless Function Namespace. */ + tags: string[] } export interface Token { @@ -483,6 +485,8 @@ export type CreateNamespaceRequest = { description?: string /** Secret environment variables of the namespace. */ secretEnvironmentVariables?: Secret[] + /** [ALPHA] Tags of the Serverless Function Namespace. */ + tags?: string[] } export type CreateTokenRequest = { @@ -956,6 +960,8 @@ export type UpdateNamespaceRequest = { description?: string /** Secret environment variables of the namespace. */ secretEnvironmentVariables?: Secret[] + /** [ALPHA] Tags of the Serverless Function Namespace. */ + tags?: string[] } export type UpdateTriggerRequest = {