Skip to content

feat: update generated APIs #2064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages_generated/container/src/v1beta1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ export const unmarshalContainer = (data: unknown): Container => {
unmarshalSecretHashedValue,
),
status: data.status,
tags: data.tags,
timeout: data.timeout,
updatedAt: unmarshalDate(data.updated_at),
} as Container
Expand Down Expand Up @@ -511,6 +512,7 @@ export const marshalCreateContainerRequest = (
marshalSecret(elt, defaults),
)
: undefined,
tags: request.tags,
timeout: request.timeout,
})

Expand Down Expand Up @@ -664,6 +666,7 @@ export const marshalUpdateContainerRequest = (
marshalSecret(elt, defaults),
)
: undefined,
tags: request.tags,
timeout: request.timeout,
})

Expand Down
18 changes: 15 additions & 3 deletions packages_generated/container/src/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ export interface Container {
* Region in which the container will be deployed.
*/
region: ScwRegion
/**
* List of tags applied to the Serverless Container.
*/
tags: string[]
}

export interface Cron {
Expand Down Expand Up @@ -470,7 +474,7 @@ export interface Namespace {
*/
region: ScwRegion
/**
* [ALPHA] List of tags applied to the Serverless Container Namespace.
* List of tags applied to the Serverless Container Namespace.
*/
tags: string[]
/**
Expand Down Expand Up @@ -666,6 +670,10 @@ export type CreateContainerRequest = {
* Health check configuration of the container.
*/
healthCheck?: ContainerHealthCheckSpec
/**
* Tags of the Serverless Container.
*/
tags?: string[]
}

export type CreateCronRequest = {
Expand Down Expand Up @@ -732,7 +740,7 @@ export type CreateNamespaceRequest = {
*/
secretEnvironmentVariables?: Secret[]
/**
* [ALPHA] Tags of the Serverless Container Namespace.
* Tags of the Serverless Container Namespace.
*/
tags?: string[]
}
Expand Down Expand Up @@ -1261,6 +1269,10 @@ export type UpdateContainerRequest = {
* Health check configuration of the container.
*/
healthCheck?: ContainerHealthCheckSpec
/**
* Tags of the Serverless Container.
*/
tags?: string[]
}

export type UpdateCronRequest = {
Expand Down Expand Up @@ -1312,7 +1324,7 @@ export type UpdateNamespaceRequest = {
*/
secretEnvironmentVariables?: Secret[]
/**
* [ALPHA] Tags of the Serverless Container Namespace.
* Tags of the Serverless Container Namespace.
*/
tags?: string[]
}
Expand Down
3 changes: 3 additions & 0 deletions packages_generated/function/src/v1beta1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export const unmarshalFunction = (data: unknown): Function => {
unmarshalSecretHashedValue,
),
status: data.status,
tags: data.tags,
timeout: data.timeout,
updatedAt: unmarshalDate(data.updated_at),
} as Function
Expand Down Expand Up @@ -459,6 +460,7 @@ export const marshalCreateFunctionRequest = (
marshalSecret(elt, defaults),
)
: undefined,
tags: request.tags,
timeout: request.timeout,
})

Expand Down Expand Up @@ -592,6 +594,7 @@ export const marshalUpdateFunctionRequest = (
marshalSecret(elt, defaults),
)
: undefined,
tags: request.tags,
timeout: request.timeout,
})

Expand Down
18 changes: 15 additions & 3 deletions packages_generated/function/src/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ export interface Function {
* Last date when the function was successfully deployed and set to ready.
*/
readyAt?: Date
/**
* List of tags applied to the Serverless Function.
*/
tags: string[]
}

export interface Namespace {
Expand Down Expand Up @@ -457,7 +461,7 @@ export interface Namespace {
*/
region: ScwRegion
/**
* [ALPHA] List of tags applied to the Serverless Function Namespace.
* List of tags applied to the Serverless Function Namespace.
*/
tags: string[]
/**
Expand Down Expand Up @@ -661,6 +665,10 @@ export type CreateFunctionRequest = {
* Execution environment of the function.
*/
sandbox?: FunctionSandbox
/**
* Tags of the Serverless Function.
*/
tags?: string[]
}

export type CreateNamespaceRequest = {
Expand All @@ -686,7 +694,7 @@ export type CreateNamespaceRequest = {
*/
secretEnvironmentVariables?: Secret[]
/**
* [ALPHA] Tags of the Serverless Function Namespace.
* Tags of the Serverless Function Namespace.
*/
tags?: string[]
}
Expand Down Expand Up @@ -1270,6 +1278,10 @@ export type UpdateFunctionRequest = {
* Execution environment of the function.
*/
sandbox?: FunctionSandbox
/**
* Tags of the Serverless Function.
*/
tags?: string[]
}

export type UpdateNamespaceRequest = {
Expand All @@ -1294,7 +1306,7 @@ export type UpdateNamespaceRequest = {
*/
secretEnvironmentVariables?: Secret[]
/**
* [ALPHA] Tags of the Serverless Function Namespace.
* Tags of the Serverless Function Namespace.
*/
tags?: string[]
}
Expand Down
Loading