Skip to content

feat(serverless): add missing localities #341

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

Merged
merged 1 commit into from
Jan 3, 2023
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
2 changes: 1 addition & 1 deletion packages/clients/src/api/container/v1beta1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const jsonContentHeaders = {
*/
export class ContainerV1Beta1GenAPI extends API {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: Region[] = ['fr-par']
public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw']

protected pageOfListNamespaces = (
request: Readonly<ListNamespacesRequest> = {},
Expand Down
12 changes: 6 additions & 6 deletions packages/clients/src/api/container/v1beta1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,16 @@ export const marshalCreateContainerRequest = (
): Record<string, unknown> => ({
description: request.description,
environment_variables: request.environmentVariables,
http_option: request.httpOption,
http_option: request.httpOption ?? 'unknown_http_option',
max_concurrency: request.maxConcurrency,
max_scale: request.maxScale,
memory_limit: request.memoryLimit,
min_scale: request.minScale,
name: request.name || randomName('ctnr'),
namespace_id: request.namespaceId,
port: request.port,
privacy: request.privacy,
protocol: request.protocol,
privacy: request.privacy ?? 'unknown_privacy',
protocol: request.protocol ?? 'unknown_protocol',
registry_image: request.registryImage,
secret_environment_variables: request.secretEnvironmentVariables
? request.secretEnvironmentVariables.map(elt =>
Expand Down Expand Up @@ -342,14 +342,14 @@ export const marshalUpdateContainerRequest = (
): Record<string, unknown> => ({
description: request.description,
environment_variables: request.environmentVariables,
http_option: request.httpOption,
http_option: request.httpOption ?? 'unknown_http_option',
max_concurrency: request.maxConcurrency,
max_scale: request.maxScale,
memory_limit: request.memoryLimit,
min_scale: request.minScale,
port: request.port,
privacy: request.privacy,
protocol: request.protocol,
privacy: request.privacy ?? 'unknown_privacy',
protocol: request.protocol ?? 'unknown_protocol',
redeploy: request.redeploy,
registry_image: request.registryImage,
secret_environment_variables: request.secretEnvironmentVariables
Expand Down
12 changes: 6 additions & 6 deletions packages/clients/src/api/container/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,11 @@ export type CreateContainerRequest = {
maxScale?: number
memoryLimit?: number
timeout?: string
privacy: ContainerPrivacy
privacy?: ContainerPrivacy
description?: string
registryImage?: string
maxConcurrency?: number
protocol: ContainerProtocol
protocol?: ContainerProtocol
port?: number
secretEnvironmentVariables?: Array<Secret>
/**
Expand All @@ -307,7 +307,7 @@ export type CreateContainerRequest = {
* to use HTTPS.
* - Enabled: Serve both HTTP and HTTPS traffic.
*/
httpOption: ContainerHttpOption
httpOption?: ContainerHttpOption
}

export type UpdateContainerRequest = {
Expand All @@ -320,11 +320,11 @@ export type UpdateContainerRequest = {
memoryLimit?: number
timeout?: string
redeploy?: boolean
privacy: ContainerPrivacy
privacy?: ContainerPrivacy
description?: string
registryImage?: string
maxConcurrency?: number
protocol: ContainerProtocol
protocol?: ContainerProtocol
port?: number
secretEnvironmentVariables?: Array<Secret>
/**
Expand All @@ -334,7 +334,7 @@ export type UpdateContainerRequest = {
* to use HTTPS.
* - Enabled: Serve both HTTP and HTTPS traffic.
*/
httpOption: ContainerHttpOption
httpOption?: ContainerHttpOption
}

export type DeleteContainerRequest = {
Expand Down
2 changes: 1 addition & 1 deletion packages/clients/src/api/function/v1beta1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const jsonContentHeaders = {
*/
export class FunctionV1Beta1GenAPI extends API {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: Region[] = ['fr-par']
public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw']

protected pageOfListNamespaces = (
request: Readonly<ListNamespacesRequest> = {},
Expand Down
14 changes: 7 additions & 7 deletions packages/clients/src/api/function/v1beta1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -655,14 +655,14 @@ export const marshalCreateFunctionRequest = (
description: request.description,
environment_variables: request.environmentVariables,
handler: request.handler,
http_option: request.httpOption,
http_option: request.httpOption ?? 'unknown_http_option',
max_scale: request.maxScale,
memory_limit: request.memoryLimit,
min_scale: request.minScale,
name: request.name || randomName('fn'),
namespace_id: request.namespaceId,
privacy: request.privacy,
runtime: request.runtime,
privacy: request.privacy ?? 'unknown_privacy',
runtime: request.runtime ?? 'unknown_runtime',
secret_environment_variables: request.secretEnvironmentVariables
? request.secretEnvironmentVariables.map(elt =>
marshalSecret(elt, defaults),
Expand Down Expand Up @@ -739,7 +739,7 @@ export const marshalCreateTriggerRequest = (
description: request.description,
function_id: request.functionId,
name: request.name,
type: request.type,
type: request.type ?? 'unknown_trigger_type',
...resolveOneOf<unknown>([
{
param: 'nats_failure_handling_policy',
Expand Down Expand Up @@ -800,13 +800,13 @@ export const marshalUpdateFunctionRequest = (
description: request.description,
environment_variables: request.environmentVariables,
handler: request.handler,
http_option: request.httpOption,
http_option: request.httpOption ?? 'unknown_http_option',
max_scale: request.maxScale,
memory_limit: request.memoryLimit,
min_scale: request.minScale,
privacy: request.privacy,
privacy: request.privacy ?? 'unknown_privacy',
redeploy: request.redeploy,
runtime: request.runtime,
runtime: request.runtime ?? 'unknown_runtime',
secret_environment_variables: request.secretEnvironmentVariables
? request.secretEnvironmentVariables.map(elt =>
marshalSecret(elt, defaults),
Expand Down
14 changes: 7 additions & 7 deletions packages/clients/src/api/function/v1beta1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,11 @@ export type CreateFunctionRequest = {
environmentVariables?: Record<string, string>
minScale?: number
maxScale?: number
runtime: FunctionRuntime
runtime?: FunctionRuntime
memoryLimit?: number
timeout?: string
handler?: string
privacy: FunctionPrivacy
privacy?: FunctionPrivacy
description?: string
secretEnvironmentVariables?: Array<Secret>
/**
Expand All @@ -525,7 +525,7 @@ export type CreateFunctionRequest = {
* to use HTTPS.
* - Enabled: Serve both HTTP and HTTPS traffic.
*/
httpOption: FunctionHttpOption
httpOption?: FunctionHttpOption
}

export type UpdateFunctionRequest = {
Expand All @@ -535,12 +535,12 @@ export type UpdateFunctionRequest = {
environmentVariables?: Record<string, string>
minScale?: number
maxScale?: number
runtime: FunctionRuntime
runtime?: FunctionRuntime
memoryLimit?: number
timeout?: string
redeploy?: boolean
handler?: string
privacy: FunctionPrivacy
privacy?: FunctionPrivacy
description?: string
secretEnvironmentVariables?: Array<Secret>
/**
Expand All @@ -550,7 +550,7 @@ export type UpdateFunctionRequest = {
* to use HTTPS.
* - Enabled: Serve both HTTP and HTTPS traffic.
*/
httpOption: FunctionHttpOption
httpOption?: FunctionHttpOption
}

export type DeleteFunctionRequest = {
Expand Down Expand Up @@ -709,7 +709,7 @@ export type CreateTriggerRequest = {
name: string
description: string
functionId: string
type: TriggerType
type?: TriggerType
/**
* One-of ('failureHandlingPolicy'): at most one of
* 'natsFailureHandlingPolicy', 'sqsFailureHandlingPolicy' could be set.
Expand Down