Skip to content

Commit 2a48843

Browse files
feat(serverless): add tags to container resources (scaleway#2282)
Co-authored-by: Laure-di <[email protected]>
1 parent f08c9fe commit 2a48843

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

api/container/v1beta1/container_sdk.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,9 @@ type Namespace struct {
10381038

10391039
// Region: region in which the namespace will be created.
10401040
Region scw.Region `json:"region"`
1041+
1042+
// Tags: [ALPHA] List of tags applied to the Serverless Container Namespace.
1043+
Tags []string `json:"tags"`
10411044
}
10421045

10431046
// Token: token.
@@ -1234,6 +1237,9 @@ type CreateNamespaceRequest struct {
12341237

12351238
// SecretEnvironmentVariables: secret environment variables of the namespace to create.
12361239
SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
1240+
1241+
// Tags: [ALPHA] Tags of the Serverless Container Namespace.
1242+
Tags []string `json:"tags"`
12371243
}
12381244

12391245
// CreateTokenRequest: create token request.
@@ -1811,6 +1817,9 @@ type UpdateNamespaceRequest struct {
18111817

18121818
// SecretEnvironmentVariables: secret environment variables of the namespace to update.
18131819
SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
1820+
1821+
// Tags: [ALPHA] Tags of the Serverless Container Namespace.
1822+
Tags *[]string `json:"tags,omitempty"`
18141823
}
18151824

18161825
// UpdateTriggerRequest: update trigger request.

api/function/v1beta1/function_sdk.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,9 @@ type Namespace struct {
11381138

11391139
// Region: region in which the namespace is located.
11401140
Region scw.Region `json:"region"`
1141+
1142+
// Tags: [ALPHA] List of tags applied to the Serverless Function Namespace.
1143+
Tags []string `json:"tags"`
11411144
}
11421145

11431146
// Token: token.
@@ -1316,6 +1319,9 @@ type CreateNamespaceRequest struct {
13161319

13171320
// SecretEnvironmentVariables: secret environment variables of the namespace.
13181321
SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
1322+
1323+
// Tags: [ALPHA] Tags of the Serverless Function Namespace.
1324+
Tags []string `json:"tags"`
13191325
}
13201326

13211327
// CreateTokenRequest: create token request.
@@ -1941,6 +1947,9 @@ type UpdateNamespaceRequest struct {
19411947

19421948
// SecretEnvironmentVariables: secret environment variables of the namespace.
19431949
SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`
1950+
1951+
// Tags: [ALPHA] Tags of the Serverless Function Namespace.
1952+
Tags *[]string `json:"tags,omitempty"`
19441953
}
19451954

19461955
// UpdateTriggerRequest: update trigger request.

0 commit comments

Comments
 (0)