Skip to content
Merged
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
1 change: 1 addition & 0 deletions packages/clients/src/api/container/v1beta1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export type {
ContainerHttpOption,
ContainerPrivacy,
ContainerProtocol,
ContainerSandbox,
ContainerStatus,
CreateContainerRequest,
CreateCronRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const unmarshalContainer = (data: unknown): Container => {
protocol: data.protocol,
region: data.region,
registryImage: data.registry_image,
sandbox: data.sandbox,
secretEnvironmentVariables: unmarshalArrayOfObject(
data.secret_environment_variables,
unmarshalSecretHashedValue,
Expand Down Expand Up @@ -364,6 +365,7 @@ export const marshalCreateContainerRequest = (
privacy: request.privacy,
protocol: request.protocol,
registry_image: request.registryImage,
sandbox: request.sandbox,
secret_environment_variables:
request.secretEnvironmentVariables !== undefined
? request.secretEnvironmentVariables.map(elt =>
Expand Down Expand Up @@ -506,6 +508,7 @@ export const marshalUpdateContainerRequest = (
protocol: request.protocol,
redeploy: request.redeploy,
registry_image: request.registryImage,
sandbox: request.sandbox,
secret_environment_variables:
request.secretEnvironmentVariables !== undefined
? request.secretEnvironmentVariables.map(elt =>
Expand Down
8 changes: 8 additions & 0 deletions packages/clients/src/api/container/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export type ContainerPrivacy = 'unknown_privacy' | 'public' | 'private'

export type ContainerProtocol = 'unknown_protocol' | 'http1' | 'h2c'

export type ContainerSandbox = 'unknown_sandbox' | 'v1' | 'v2'

export type ContainerStatus =
| 'unknown'
| 'ready'
Expand Down Expand Up @@ -217,6 +219,8 @@ export interface Container {
* - Enabled: Serve both HTTP and HTTPS traffic.
*/
httpOption: ContainerHttpOption
/** Execution environment of the container. */
sandbox: ContainerSandbox
/** Region in which the container will be deployed. */
region: Region
}
Expand Down Expand Up @@ -395,6 +399,8 @@ export type CreateContainerRequest = {
* - Enabled: Serve both HTTP and HTTPS traffic.
*/
httpOption?: ContainerHttpOption
/** Execution environment of the container. */
sandbox?: ContainerSandbox
}

export type CreateCronRequest = {
Expand Down Expand Up @@ -856,6 +862,8 @@ export type UpdateContainerRequest = {
* - Enabled: Serve both HTTP and HTTPS traffic.
*/
httpOption?: ContainerHttpOption
/** Execution environment of the container. */
sandbox?: ContainerSandbox
}

export type UpdateCronRequest = {
Expand Down
1 change: 1 addition & 0 deletions packages/clients/src/api/function/v1beta1/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export type {
FunctionHttpOption,
FunctionPrivacy,
FunctionRuntime,
FunctionSandbox,
FunctionStatus,
GetCronRequest,
GetDomainRequest,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export const unmarshalFunction = (data: unknown): Function => {
region: data.region,
runtime: data.runtime,
runtimeMessage: data.runtime_message,
sandbox: data.sandbox,
secretEnvironmentVariables: unmarshalArrayOfObject(
data.secret_environment_variables,
unmarshalSecretHashedValue,
Expand Down Expand Up @@ -445,6 +446,7 @@ export const marshalCreateFunctionRequest = (
namespace_id: request.namespaceId,
privacy: request.privacy,
runtime: request.runtime,
sandbox: request.sandbox,
secret_environment_variables:
request.secretEnvironmentVariables !== undefined
? request.secretEnvironmentVariables.map(elt =>
Expand Down Expand Up @@ -576,6 +578,7 @@ export const marshalUpdateFunctionRequest = (
privacy: request.privacy,
redeploy: request.redeploy,
runtime: request.runtime,
sandbox: request.sandbox,
secret_environment_variables:
request.secretEnvironmentVariables !== undefined
? request.secretEnvironmentVariables.map(elt =>
Expand Down
8 changes: 8 additions & 0 deletions packages/clients/src/api/function/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ export type FunctionRuntime =
| 'go122'
| 'rust179'

export type FunctionSandbox = 'unknown_sandbox' | 'v1' | 'v2'

export type FunctionStatus =
| 'unknown'
| 'ready'
Expand Down Expand Up @@ -296,6 +298,8 @@ export interface Function {
*/
httpOption: FunctionHttpOption
runtimeMessage: string
/** Execution environment of the function. */
sandbox: FunctionSandbox
}

export interface Namespace {
Expand Down Expand Up @@ -460,6 +464,8 @@ export type CreateFunctionRequest = {
* - Enabled: Serve both HTTP and HTTPS traffic.
*/
httpOption?: FunctionHttpOption
/** Execution environment of the function. */
sandbox?: FunctionSandbox
}

export type CreateNamespaceRequest = {
Expand Down Expand Up @@ -945,6 +951,8 @@ export type UpdateFunctionRequest = {
* - Enabled: Serve both HTTP and HTTPS traffic.
*/
httpOption?: FunctionHttpOption
/** Execution environment of the function. */
sandbox?: FunctionSandbox
}

export type UpdateNamespaceRequest = {
Expand Down