Skip to content

Commit 68efd5b

Browse files
committed
feat: update generated APIs
1 parent 0420f41 commit 68efd5b

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

packages_generated/container/src/v1beta1/marshalling.gen.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export const unmarshalContainer = (data: unknown): Container => {
163163
unmarshalSecretHashedValue,
164164
),
165165
status: data.status,
166+
tags: data.tags,
166167
timeout: data.timeout,
167168
updatedAt: unmarshalDate(data.updated_at),
168169
} as Container
@@ -511,6 +512,7 @@ export const marshalCreateContainerRequest = (
511512
marshalSecret(elt, defaults),
512513
)
513514
: undefined,
515+
tags: request.tags,
514516
timeout: request.timeout,
515517
})
516518

@@ -664,6 +666,7 @@ export const marshalUpdateContainerRequest = (
664666
marshalSecret(elt, defaults),
665667
)
666668
: undefined,
669+
tags: request.tags,
667670
timeout: request.timeout,
668671
})
669672

packages_generated/container/src/v1beta1/types.gen.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ export interface Container {
364364
* Region in which the container will be deployed.
365365
*/
366366
region: ScwRegion
367+
/**
368+
* List of tags applied to the Serverless Container.
369+
*/
370+
tags: string[]
367371
}
368372

369373
export interface Cron {
@@ -470,7 +474,7 @@ export interface Namespace {
470474
*/
471475
region: ScwRegion
472476
/**
473-
* [ALPHA] List of tags applied to the Serverless Container Namespace.
477+
* List of tags applied to the Serverless Container Namespace.
474478
*/
475479
tags: string[]
476480
/**
@@ -666,6 +670,10 @@ export type CreateContainerRequest = {
666670
* Health check configuration of the container.
667671
*/
668672
healthCheck?: ContainerHealthCheckSpec
673+
/**
674+
* Tags of the Serverless Container.
675+
*/
676+
tags?: string[]
669677
}
670678

671679
export type CreateCronRequest = {
@@ -732,7 +740,7 @@ export type CreateNamespaceRequest = {
732740
*/
733741
secretEnvironmentVariables?: Secret[]
734742
/**
735-
* [ALPHA] Tags of the Serverless Container Namespace.
743+
* Tags of the Serverless Container Namespace.
736744
*/
737745
tags?: string[]
738746
}
@@ -1261,6 +1269,10 @@ export type UpdateContainerRequest = {
12611269
* Health check configuration of the container.
12621270
*/
12631271
healthCheck?: ContainerHealthCheckSpec
1272+
/**
1273+
* Tags of the Serverless Container.
1274+
*/
1275+
tags?: string[]
12641276
}
12651277

12661278
export type UpdateCronRequest = {
@@ -1312,7 +1324,7 @@ export type UpdateNamespaceRequest = {
13121324
*/
13131325
secretEnvironmentVariables?: Secret[]
13141326
/**
1315-
* [ALPHA] Tags of the Serverless Container Namespace.
1327+
* Tags of the Serverless Container Namespace.
13161328
*/
13171329
tags?: string[]
13181330
}

packages_generated/function/src/v1beta1/marshalling.gen.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export const unmarshalFunction = (data: unknown): Function => {
127127
unmarshalSecretHashedValue,
128128
),
129129
status: data.status,
130+
tags: data.tags,
130131
timeout: data.timeout,
131132
updatedAt: unmarshalDate(data.updated_at),
132133
} as Function
@@ -459,6 +460,7 @@ export const marshalCreateFunctionRequest = (
459460
marshalSecret(elt, defaults),
460461
)
461462
: undefined,
463+
tags: request.tags,
462464
timeout: request.timeout,
463465
})
464466

@@ -592,6 +594,7 @@ export const marshalUpdateFunctionRequest = (
592594
marshalSecret(elt, defaults),
593595
)
594596
: undefined,
597+
tags: request.tags,
595598
timeout: request.timeout,
596599
})
597600

packages_generated/function/src/v1beta1/types.gen.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,10 @@ export interface Function {
405405
* Last date when the function was successfully deployed and set to ready.
406406
*/
407407
readyAt?: Date
408+
/**
409+
* List of tags applied to the Serverless Function.
410+
*/
411+
tags: string[]
408412
}
409413

410414
export interface Namespace {
@@ -457,7 +461,7 @@ export interface Namespace {
457461
*/
458462
region: ScwRegion
459463
/**
460-
* [ALPHA] List of tags applied to the Serverless Function Namespace.
464+
* List of tags applied to the Serverless Function Namespace.
461465
*/
462466
tags: string[]
463467
/**
@@ -661,6 +665,10 @@ export type CreateFunctionRequest = {
661665
* Execution environment of the function.
662666
*/
663667
sandbox?: FunctionSandbox
668+
/**
669+
* Tags of the Serverless Function.
670+
*/
671+
tags?: string[]
664672
}
665673

666674
export type CreateNamespaceRequest = {
@@ -686,7 +694,7 @@ export type CreateNamespaceRequest = {
686694
*/
687695
secretEnvironmentVariables?: Secret[]
688696
/**
689-
* [ALPHA] Tags of the Serverless Function Namespace.
697+
* Tags of the Serverless Function Namespace.
690698
*/
691699
tags?: string[]
692700
}
@@ -1270,6 +1278,10 @@ export type UpdateFunctionRequest = {
12701278
* Execution environment of the function.
12711279
*/
12721280
sandbox?: FunctionSandbox
1281+
/**
1282+
* Tags of the Serverless Function.
1283+
*/
1284+
tags?: string[]
12731285
}
12741286

12751287
export type UpdateNamespaceRequest = {
@@ -1294,7 +1306,7 @@ export type UpdateNamespaceRequest = {
12941306
*/
12951307
secretEnvironmentVariables?: Secret[]
12961308
/**
1297-
* [ALPHA] Tags of the Serverless Function Namespace.
1309+
* Tags of the Serverless Function Namespace.
12981310
*/
12991311
tags?: string[]
13001312
}

0 commit comments

Comments
 (0)