Skip to content

Commit

Permalink
feat(serverless): add tags to container resources (#1535)
Browse files Browse the repository at this point in the history
Co-authored-by: Laure-di <[email protected]>
  • Loading branch information
scaleway-bot and Laure-di authored Oct 28, 2024
1 parent 730af6f commit f895c19
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/clients/src/api/container/v1beta1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => {
unmarshalSecretHashedValue,
),
status: data.status,
tags: data.tags,
} as Namespace
}

Expand Down Expand Up @@ -446,6 +447,7 @@ export const marshalCreateNamespaceRequest = (
marshalSecret(elt, defaults),
)
: undefined,
tags: request.tags,
})

export const marshalCreateTokenRequest = (
Expand Down Expand Up @@ -584,6 +586,7 @@ export const marshalUpdateNamespaceRequest = (
marshalSecret(elt, defaults),
)
: undefined,
tags: request.tags,
})

const marshalUpdateTriggerRequestSqsClientConfig = (
Expand Down
6 changes: 6 additions & 0 deletions packages/clients/src/api/container/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,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 {
Expand Down Expand Up @@ -479,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 = {
Expand Down Expand Up @@ -926,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 = {
Expand Down
3 changes: 3 additions & 0 deletions packages/clients/src/api/function/v1beta1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => {
unmarshalSecretHashedValue,
),
status: data.status,
tags: data.tags,
} as Namespace
}

Expand Down Expand Up @@ -470,6 +471,7 @@ export const marshalCreateNamespaceRequest = (
marshalSecret(elt, defaults),
)
: undefined,
tags: request.tags,
})

export const marshalCreateTokenRequest = (
Expand Down Expand Up @@ -600,6 +602,7 @@ export const marshalUpdateNamespaceRequest = (
marshalSecret(elt, defaults),
)
: undefined,
tags: request.tags,
})

const marshalUpdateTriggerRequestSqsClientConfig = (
Expand Down
6 changes: 6 additions & 0 deletions packages/clients/src/api/function/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit f895c19

Please sign in to comment.