From f330904d2614a0de87b35db68f7c4c631483d15a Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 18 Nov 2025 09:20:50 +0000 Subject: [PATCH] feat: update generated APIs --- .../container/src/v1beta1/api.gen.ts | 187 ++++++------ .../container/src/v1beta1/content.gen.ts | 7 +- .../container/src/v1beta1/index.gen.ts | 4 +- .../container/src/v1beta1/marshalling.gen.ts | 284 ++++++------------ .../container/src/v1beta1/types.gen.ts | 88 +++++- .../src/v1beta1/validation-rules.gen.ts | 3 +- 6 files changed, 266 insertions(+), 307 deletions(-) diff --git a/packages_generated/container/src/v1beta1/api.gen.ts b/packages_generated/container/src/v1beta1/api.gen.ts index f44950751..a94f32e7e 100644 --- a/packages_generated/container/src/v1beta1/api.gen.ts +++ b/packages_generated/container/src/v1beta1/api.gen.ts @@ -4,32 +4,21 @@ import { API as ParentAPI, enrichForPagination, resolveOneOf, - toApiLocality, urlParams, validatePathParam, waitForResource, + toApiLocality, } from '@scaleway/sdk-client' -import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client' -import { - CONTAINER_TRANSIENT_STATUSES as CONTAINER_TRANSIENT_STATUSES_CONTAINER, - CRON_TRANSIENT_STATUSES as CRON_TRANSIENT_STATUSES_CONTAINER, - DOMAIN_TRANSIENT_STATUSES as DOMAIN_TRANSIENT_STATUSES_CONTAINER, - NAMESPACE_TRANSIENT_STATUSES as NAMESPACE_TRANSIENT_STATUSES_CONTAINER, - TOKEN_TRANSIENT_STATUSES as TOKEN_TRANSIENT_STATUSES_CONTAINER, - TRIGGER_TRANSIENT_STATUSES as TRIGGER_TRANSIENT_STATUSES_CONTAINER, -} from './content.gen.js' +import type { WaitForOptions, ApiLocality,} from '@scaleway/sdk-client' +import {CONTAINER_TRANSIENT_STATUSES as CONTAINER_TRANSIENT_STATUSES_CONTAINER,CRON_TRANSIENT_STATUSES as CRON_TRANSIENT_STATUSES_CONTAINER,DOMAIN_TRANSIENT_STATUSES as DOMAIN_TRANSIENT_STATUSES_CONTAINER,NAMESPACE_TRANSIENT_STATUSES as NAMESPACE_TRANSIENT_STATUSES_CONTAINER,TOKEN_TRANSIENT_STATUSES as TOKEN_TRANSIENT_STATUSES_CONTAINER,TRIGGER_TRANSIENT_STATUSES as TRIGGER_TRANSIENT_STATUSES_CONTAINER,} from './content.gen.js' import { + unmarshalContainer, marshalCreateContainerRequest, marshalCreateCronRequest, marshalCreateDomainRequest, marshalCreateNamespaceRequest, marshalCreateTokenRequest, marshalCreateTriggerRequest, - marshalUpdateContainerRequest, - marshalUpdateCronRequest, - marshalUpdateNamespaceRequest, - marshalUpdateTriggerRequest, - unmarshalContainer, unmarshalCron, unmarshalDomain, unmarshalListContainersResponse, @@ -41,6 +30,10 @@ import { unmarshalNamespace, unmarshalToken, unmarshalTrigger, + marshalUpdateContainerRequest, + marshalUpdateCronRequest, + marshalUpdateNamespaceRequest, + marshalUpdateTriggerRequest, } from './marshalling.gen.js' import type { Container, @@ -100,13 +93,16 @@ export class API extends ParentAPI { * Locality of this API. * type ∈ {'zone','region','global','unspecified'} */ - public static readonly LOCALITY: ApiLocality = toApiLocality({ - regions: ['fr-par', 'nl-ams', 'pl-waw'], - }) - - protected pageOfListNamespaces = ( - request: Readonly = {}, - ) => + public static readonly LOCALITY: ApiLocality = + toApiLocality({ + regions: [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ], + }) + + protected pageOfListNamespaces = (request: Readonly = {}) => this.client.fetch( { method: 'GET', @@ -116,16 +112,13 @@ export class API extends ParentAPI { ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], - [ - 'page_size', - request.pageSize ?? this.client.settings.defaultPageSize, - ], + ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ), }, unmarshalListNamespacesResponse, ) - + /** * List all your namespaces. List all namespaces in a specified region. * @@ -135,6 +128,7 @@ export class API extends ParentAPI { listNamespaces = (request: Readonly = {}) => enrichForPagination('namespaces', this.pageOfListNamespaces, request) + /** * Get a namespace. Get the namespace associated with the specified ID. * @@ -149,7 +143,7 @@ export class API extends ParentAPI { }, unmarshalNamespace, ) - + /** * Waits for {@link Namespace} to be in a final state. * @@ -162,16 +156,13 @@ export class API extends ParentAPI { options?: Readonly>, ) => waitForResource( - options?.stop ?? - (res => - Promise.resolve( - !NAMESPACE_TRANSIENT_STATUSES_CONTAINER.includes(res.status), - )), + options?.stop ?? (res => Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES_CONTAINER.includes(res.status))), this.getNamespace, request, options, ) + /** * Create a new namespace. Create a new namespace in a specified region. * @@ -191,6 +182,7 @@ export class API extends ParentAPI { unmarshalNamespace, ) + /** * Update an existing namespace. Update the space associated with the specified ID. * @@ -210,6 +202,7 @@ export class API extends ParentAPI { unmarshalNamespace, ) + /** * Delete an existing namespace. Delete the namespace associated with the specified ID. * @@ -225,6 +218,7 @@ export class API extends ParentAPI { unmarshalNamespace, ) + protected pageOfListContainers = (request: Readonly) => this.client.fetch( { @@ -236,16 +230,13 @@ export class API extends ParentAPI { ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], - [ - 'page_size', - request.pageSize ?? this.client.settings.defaultPageSize, - ], + ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ['project_id', request.projectId], ), }, unmarshalListContainersResponse, ) - + /** * List all your containers. List all containers for a specified region. * @@ -255,6 +246,7 @@ export class API extends ParentAPI { listContainers = (request: Readonly) => enrichForPagination('containers', this.pageOfListContainers, request) + /** * Get a container. Get the container associated with the specified ID. * @@ -269,7 +261,7 @@ export class API extends ParentAPI { }, unmarshalContainer, ) - + /** * Waits for {@link Container} to be in a final state. * @@ -282,16 +274,13 @@ export class API extends ParentAPI { options?: Readonly>, ) => waitForResource( - options?.stop ?? - (res => - Promise.resolve( - !CONTAINER_TRANSIENT_STATUSES_CONTAINER.includes(res.status), - )), + options?.stop ?? (res => Promise.resolve(!CONTAINER_TRANSIENT_STATUSES_CONTAINER.includes(res.status))), this.getContainer, request, options, ) + /** * Create a new container. Create a new container in the specified region. * @@ -311,6 +300,7 @@ export class API extends ParentAPI { unmarshalContainer, ) + /** * Update an existing container. Update the container associated with the specified ID. @@ -333,6 +323,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalContainer, ) + /** * Delete a container. Delete the container associated with the specified ID. * @@ -348,6 +339,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalContainer, ) + /** * Deploy a container. Deploy a container associated with the specified ID. * @@ -365,6 +357,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalContainer, ) + protected pageOfListCrons = (request: Readonly) => this.client.fetch( { @@ -374,15 +367,12 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r ['container_id', request.containerId], ['order_by', request.orderBy], ['page', request.page], - [ - 'page_size', - request.pageSize ?? this.client.settings.defaultPageSize, - ], + ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ), }, unmarshalListCronsResponse, ) - + /** * List all your crons. * @@ -392,6 +382,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r listCrons = (request: Readonly) => enrichForPagination('crons', this.pageOfListCrons, request) + /** * Get a cron. Get the cron associated with the specified ID. * @@ -406,7 +397,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r }, unmarshalCron, ) - + /** * Waits for {@link Cron} to be in a final state. * @@ -419,16 +410,13 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r options?: Readonly>, ) => waitForResource( - options?.stop ?? - (res => - Promise.resolve( - !CRON_TRANSIENT_STATUSES_CONTAINER.includes(res.status), - )), + options?.stop ?? (res => Promise.resolve(!CRON_TRANSIENT_STATUSES_CONTAINER.includes(res.status))), this.getCron, request, options, ) + /** * Create a new cron. * @@ -448,6 +436,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalCron, ) + /** * Update an existing cron. Update the cron associated with the specified ID. * @@ -467,6 +456,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalCron, ) + /** * Delete an existing cron. Delete the cron associated with the specified ID. * @@ -482,6 +472,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalCron, ) + protected pageOfListDomains = (request: Readonly) => this.client.fetch( { @@ -491,15 +482,12 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r ['container_id', request.containerId], ['order_by', request.orderBy], ['page', request.page], - [ - 'page_size', - request.pageSize ?? this.client.settings.defaultPageSize, - ], + ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ), }, unmarshalListDomainsResponse, ) - + /** * List all custom domains. List all custom domains in a specified region. * @@ -509,6 +497,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r listDomains = (request: Readonly) => enrichForPagination('domains', this.pageOfListDomains, request) + /** * Get a custom domain. Get a custom domain for the container with the specified ID. * @@ -523,7 +512,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r }, unmarshalDomain, ) - + /** * Waits for {@link Domain} to be in a final state. * @@ -536,16 +525,13 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r options?: Readonly>, ) => waitForResource( - options?.stop ?? - (res => - Promise.resolve( - !DOMAIN_TRANSIENT_STATUSES_CONTAINER.includes(res.status), - )), + options?.stop ?? (res => Promise.resolve(!DOMAIN_TRANSIENT_STATUSES_CONTAINER.includes(res.status))), this.getDomain, request, options, ) + /** * Create a custom domain. Create a custom domain for the container with the specified ID. * @@ -565,6 +551,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalDomain, ) + /** * Delete a custom domain. Delete the custom domain with the specific ID. * @@ -580,6 +567,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalDomain, ) + /** * Create a new revocable token. * @@ -599,6 +587,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalToken, ) + /** * Get a token. Get a token with a specified ID. * @@ -613,7 +602,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r }, unmarshalToken, ) - + /** * Waits for {@link Token} to be in a final state. * @@ -626,16 +615,13 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r options?: Readonly>, ) => waitForResource( - options?.stop ?? - (res => - Promise.resolve( - !TOKEN_TRANSIENT_STATUSES_CONTAINER.includes(res.status), - )), + options?.stop ?? (res => Promise.resolve(!TOKEN_TRANSIENT_STATUSES_CONTAINER.includes(res.status))), this.getToken, request, options, ) + protected pageOfListTokens = (request: Readonly = {}) => this.client.fetch( { @@ -646,15 +632,12 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r ['namespace_id', request.namespaceId], ['order_by', request.orderBy], ['page', request.page], - [ - 'page_size', - request.pageSize ?? this.client.settings.defaultPageSize, - ], + ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], ), }, unmarshalListTokensResponse, ) - + /** * List all tokens. List all tokens belonging to a specified Organization or Project. * @@ -664,6 +647,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r listTokens = (request: Readonly = {}) => enrichForPagination('tokens', this.pageOfListTokens, request) + /** * Delete a token. Delete a token with a specified ID. * @@ -679,6 +663,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalToken, ) + /** * Create a trigger. Create a new trigger for a specified container. * @@ -698,6 +683,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalTrigger, ) + /** * Get a trigger. Get a trigger with a specified ID. * @@ -712,7 +698,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r }, unmarshalTrigger, ) - + /** * Waits for {@link Trigger} to be in a final state. * @@ -725,19 +711,14 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r options?: Readonly>, ) => waitForResource( - options?.stop ?? - (res => - Promise.resolve( - !TRIGGER_TRANSIENT_STATUSES_CONTAINER.includes(res.status), - )), + options?.stop ?? (res => Promise.resolve(!TRIGGER_TRANSIENT_STATUSES_CONTAINER.includes(res.status))), this.getTrigger, request, options, ) - protected pageOfListTriggers = ( - request: Readonly = {}, - ) => + + protected pageOfListTriggers = (request: Readonly = {}) => this.client.fetch( { method: 'GET', @@ -745,26 +726,23 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r urlParams: urlParams( ['order_by', request.orderBy], ['page', request.page], - [ - 'page_size', - request.pageSize ?? this.client.settings.defaultPageSize, - ], - ...Object.entries( - resolveOneOf([ - { param: 'container_id', value: request.containerId }, - { param: 'namespace_id', value: request.namespaceId }, - { - default: this.client.settings.defaultProjectId, - param: 'project_id', - value: request.projectId, - }, - ]), - ), + ['page_size', request.pageSize ?? this.client.settings.defaultPageSize], + ...Object.entries(resolveOneOf([ + {param: 'container_id', + value: request.containerId, + }, + {param: 'namespace_id', + value: request.namespaceId, + }, + {default: this.client.settings.defaultProjectId,param: 'project_id', + value: request.projectId, + }, + ])), ), }, unmarshalListTriggersResponse, ) - + /** * List all triggers. List all triggers belonging to a specified Organization or Project. * @@ -774,6 +752,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r listTriggers = (request: Readonly = {}) => enrichForPagination('triggers', this.pageOfListTriggers, request) + /** * Update a trigger. Update a trigger with a specified ID. * @@ -793,6 +772,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r unmarshalTrigger, ) + /** * Delete a trigger. Delete a trigger with a specified ID. * @@ -807,4 +787,7 @@ This behavior can be changed by setting the `redeploy` field to `false` in the r }, unmarshalTrigger, ) + + } + diff --git a/packages_generated/container/src/v1beta1/content.gen.ts b/packages_generated/container/src/v1beta1/content.gen.ts index 6f832c6ab..63055861a 100644 --- a/packages_generated/container/src/v1beta1/content.gen.ts +++ b/packages_generated/container/src/v1beta1/content.gen.ts @@ -9,6 +9,7 @@ import type { TriggerStatus, } from './types.gen.js' + /** Lists transient statutes of the enum {@link ContainerStatus}. */ export const CONTAINER_TRANSIENT_STATUSES: ContainerStatus[] = [ 'deleting', @@ -38,7 +39,10 @@ export const NAMESPACE_TRANSIENT_STATUSES: NamespaceStatus[] = [ ] /** Lists transient statutes of the enum {@link TokenStatus}. */ -export const TOKEN_TRANSIENT_STATUSES: TokenStatus[] = ['deleting', 'creating'] +export const TOKEN_TRANSIENT_STATUSES: TokenStatus[] = [ + 'deleting', + 'creating', +] /** Lists transient statutes of the enum {@link TriggerStatus}. */ export const TRIGGER_TRANSIENT_STATUSES: TriggerStatus[] = [ @@ -46,3 +50,4 @@ export const TRIGGER_TRANSIENT_STATUSES: TriggerStatus[] = [ 'creating', 'pending', ] + diff --git a/packages_generated/container/src/v1beta1/index.gen.ts b/packages_generated/container/src/v1beta1/index.gen.ts index ba2ab7a1b..69c27b7d2 100644 --- a/packages_generated/container/src/v1beta1/index.gen.ts +++ b/packages_generated/container/src/v1beta1/index.gen.ts @@ -1,6 +1,8 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -export { API } from './api.gen.js' +export { + API, +} from './api.gen.js' export * from './content.gen.js' export * from './marshalling.gen.js' export type { diff --git a/packages_generated/container/src/v1beta1/marshalling.gen.ts b/packages_generated/container/src/v1beta1/marshalling.gen.ts index 4a98f3676..e2b04616b 100644 --- a/packages_generated/container/src/v1beta1/marshalling.gen.ts +++ b/packages_generated/container/src/v1beta1/marshalling.gen.ts @@ -1,54 +1,47 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. import randomName from '@scaleway/random-name' -import { - isJSONObject, - resolveOneOf, - unmarshalArrayOfObject, - unmarshalDate, -} from '@scaleway/sdk-client' +import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate, } from '@scaleway/sdk-client' import type { DefaultValues } from '@scaleway/sdk-client' import type { - Container, - ContainerHealthCheckSpec, ContainerHealthCheckSpecHTTPProbe, ContainerHealthCheckSpecTCPProbe, + ContainerHealthCheckSpec, ContainerScalingOption, - CreateContainerRequest, - CreateCronRequest, - CreateDomainRequest, - CreateNamespaceRequest, - CreateTokenRequest, - CreateTriggerRequest, - CreateTriggerRequestMnqNatsClientConfig, - CreateTriggerRequestMnqSqsClientConfig, - CreateTriggerRequestSqsClientConfig, + SecretHashedValue, + Container, Cron, Domain, + Namespace, + Token, + TriggerMnqNatsClientConfig, + TriggerMnqSqsClientConfig, + TriggerSqsClientConfig, + Trigger, ListContainersResponse, ListCronsResponse, ListDomainsResponse, ListNamespacesResponse, ListTokensResponse, ListTriggersResponse, - Namespace, Secret, - SecretHashedValue, - Token, - Trigger, - TriggerMnqNatsClientConfig, - TriggerMnqSqsClientConfig, - TriggerSqsClientConfig, + CreateContainerRequest, + CreateCronRequest, + CreateDomainRequest, + CreateNamespaceRequest, + CreateTokenRequest, + CreateTriggerRequestMnqNatsClientConfig, + CreateTriggerRequestMnqSqsClientConfig, + CreateTriggerRequestSqsClientConfig, + CreateTriggerRequest, UpdateContainerRequest, UpdateCronRequest, UpdateNamespaceRequest, - UpdateTriggerRequest, UpdateTriggerRequestSqsClientConfig, + UpdateTriggerRequest, } from './types.gen.js' -const unmarshalContainerHealthCheckSpecHTTPProbe = ( - data: unknown, -): ContainerHealthCheckSpecHTTPProbe => { +const unmarshalContainerHealthCheckSpecHTTPProbe = (data: unknown): ContainerHealthCheckSpecHTTPProbe => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ContainerHealthCheckSpecHTTPProbe' failed as data isn't a dictionary.`, @@ -60,21 +53,18 @@ const unmarshalContainerHealthCheckSpecHTTPProbe = ( } as ContainerHealthCheckSpecHTTPProbe } -const unmarshalContainerHealthCheckSpecTCPProbe = ( - data: unknown, -): ContainerHealthCheckSpecTCPProbe => { +const unmarshalContainerHealthCheckSpecTCPProbe = (data: unknown): ContainerHealthCheckSpecTCPProbe => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ContainerHealthCheckSpecTCPProbe' failed as data isn't a dictionary.`, ) } - return {} as ContainerHealthCheckSpecTCPProbe + return { + } as ContainerHealthCheckSpecTCPProbe } -const unmarshalContainerHealthCheckSpec = ( - data: unknown, -): ContainerHealthCheckSpec => { +const unmarshalContainerHealthCheckSpec = (data: unknown): ContainerHealthCheckSpec => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ContainerHealthCheckSpec' failed as data isn't a dictionary.`, @@ -83,19 +73,13 @@ const unmarshalContainerHealthCheckSpec = ( return { failureThreshold: data.failure_threshold, - http: data.http - ? unmarshalContainerHealthCheckSpecHTTPProbe(data.http) - : undefined, + http: data.http ? unmarshalContainerHealthCheckSpecHTTPProbe(data.http) : undefined, interval: data.interval, - tcp: data.tcp - ? unmarshalContainerHealthCheckSpecTCPProbe(data.tcp) - : undefined, + tcp: data.tcp ? unmarshalContainerHealthCheckSpecTCPProbe(data.tcp) : undefined, } as ContainerHealthCheckSpec } -const unmarshalContainerScalingOption = ( - data: unknown, -): ContainerScalingOption => { +const unmarshalContainerScalingOption = (data: unknown): ContainerScalingOption => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ContainerScalingOption' failed as data isn't a dictionary.`, @@ -138,9 +122,7 @@ export const unmarshalContainer = (data: unknown): Container => { domainName: data.domain_name, environmentVariables: data.environment_variables, errorMessage: data.error_message, - healthCheck: data.health_check - ? unmarshalContainerHealthCheckSpec(data.health_check) - : undefined, + healthCheck: data.health_check ? unmarshalContainerHealthCheckSpec(data.health_check) : undefined, httpOption: data.http_option, id: data.id, localStorageLimit: data.local_storage_limit, @@ -158,13 +140,8 @@ export const unmarshalContainer = (data: unknown): Container => { region: data.region, registryImage: data.registry_image, sandbox: data.sandbox, - scalingOption: data.scaling_option - ? unmarshalContainerScalingOption(data.scaling_option) - : undefined, - secretEnvironmentVariables: unmarshalArrayOfObject( - data.secret_environment_variables, - unmarshalSecretHashedValue, - ), + scalingOption: data.scaling_option ? unmarshalContainerScalingOption(data.scaling_option) : undefined, + secretEnvironmentVariables: unmarshalArrayOfObject(data.secret_environment_variables, unmarshalSecretHashedValue), status: data.status, tags: data.tags, timeout: data.timeout, @@ -225,10 +202,7 @@ export const unmarshalNamespace = (data: unknown): Namespace => { region: data.region, registryEndpoint: data.registry_endpoint, registryNamespaceId: data.registry_namespace_id, - secretEnvironmentVariables: unmarshalArrayOfObject( - data.secret_environment_variables, - unmarshalSecretHashedValue, - ), + secretEnvironmentVariables: unmarshalArrayOfObject(data.secret_environment_variables, unmarshalSecretHashedValue), status: data.status, tags: data.tags, updatedAt: unmarshalDate(data.updated_at), @@ -255,9 +229,7 @@ export const unmarshalToken = (data: unknown): Token => { } as Token } -const unmarshalTriggerMnqNatsClientConfig = ( - data: unknown, -): TriggerMnqNatsClientConfig => { +const unmarshalTriggerMnqNatsClientConfig = (data: unknown): TriggerMnqNatsClientConfig => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'TriggerMnqNatsClientConfig' failed as data isn't a dictionary.`, @@ -273,9 +245,7 @@ const unmarshalTriggerMnqNatsClientConfig = ( } as TriggerMnqNatsClientConfig } -const unmarshalTriggerMnqSqsClientConfig = ( - data: unknown, -): TriggerMnqSqsClientConfig => { +const unmarshalTriggerMnqSqsClientConfig = (data: unknown): TriggerMnqSqsClientConfig => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'TriggerMnqSqsClientConfig' failed as data isn't a dictionary.`, @@ -290,9 +260,7 @@ const unmarshalTriggerMnqSqsClientConfig = ( } as TriggerMnqSqsClientConfig } -const unmarshalTriggerSqsClientConfig = ( - data: unknown, -): TriggerSqsClientConfig => { +const unmarshalTriggerSqsClientConfig = (data: unknown): TriggerSqsClientConfig => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'TriggerSqsClientConfig' failed as data isn't a dictionary.`, @@ -321,22 +289,14 @@ export const unmarshalTrigger = (data: unknown): Trigger => { id: data.id, inputType: data.input_type, name: data.name, - scwNatsConfig: data.scw_nats_config - ? unmarshalTriggerMnqNatsClientConfig(data.scw_nats_config) - : undefined, - scwSqsConfig: data.scw_sqs_config - ? unmarshalTriggerMnqSqsClientConfig(data.scw_sqs_config) - : undefined, - sqsConfig: data.sqs_config - ? unmarshalTriggerSqsClientConfig(data.sqs_config) - : undefined, + scwNatsConfig: data.scw_nats_config ? unmarshalTriggerMnqNatsClientConfig(data.scw_nats_config) : undefined, + scwSqsConfig: data.scw_sqs_config ? unmarshalTriggerMnqSqsClientConfig(data.scw_sqs_config) : undefined, + sqsConfig: data.sqs_config ? unmarshalTriggerSqsClientConfig(data.sqs_config) : undefined, status: data.status, } as Trigger } -export const unmarshalListContainersResponse = ( - data: unknown, -): ListContainersResponse => { +export const unmarshalListContainersResponse = (data: unknown): ListContainersResponse => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ListContainersResponse' failed as data isn't a dictionary.`, @@ -349,9 +309,7 @@ export const unmarshalListContainersResponse = ( } as ListContainersResponse } -export const unmarshalListCronsResponse = ( - data: unknown, -): ListCronsResponse => { +export const unmarshalListCronsResponse = (data: unknown): ListCronsResponse => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ListCronsResponse' failed as data isn't a dictionary.`, @@ -364,9 +322,7 @@ export const unmarshalListCronsResponse = ( } as ListCronsResponse } -export const unmarshalListDomainsResponse = ( - data: unknown, -): ListDomainsResponse => { +export const unmarshalListDomainsResponse = (data: unknown): ListDomainsResponse => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ListDomainsResponse' failed as data isn't a dictionary.`, @@ -379,9 +335,7 @@ export const unmarshalListDomainsResponse = ( } as ListDomainsResponse } -export const unmarshalListNamespacesResponse = ( - data: unknown, -): ListNamespacesResponse => { +export const unmarshalListNamespacesResponse = (data: unknown): ListNamespacesResponse => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary.`, @@ -394,9 +348,7 @@ export const unmarshalListNamespacesResponse = ( } as ListNamespacesResponse } -export const unmarshalListTokensResponse = ( - data: unknown, -): ListTokensResponse => { +export const unmarshalListTokensResponse = (data: unknown): ListTokensResponse => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ListTokensResponse' failed as data isn't a dictionary.`, @@ -409,9 +361,7 @@ export const unmarshalListTokensResponse = ( } as ListTokensResponse } -export const unmarshalListTriggersResponse = ( - data: unknown, -): ListTriggersResponse => { +export const unmarshalListTriggersResponse = (data: unknown): ListTriggersResponse => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'ListTriggersResponse' failed as data isn't a dictionary.`, @@ -434,28 +384,23 @@ const marshalContainerHealthCheckSpecHTTPProbe = ( const marshalContainerHealthCheckSpecTCPProbe = ( request: ContainerHealthCheckSpecTCPProbe, defaults: DefaultValues, -): Record => ({}) +): Record => ({ +}) const marshalContainerHealthCheckSpec = ( request: ContainerHealthCheckSpec, defaults: DefaultValues, ): Record => ({ failure_threshold: request.failureThreshold, - interval: request.interval, + interval: request.interval, ...resolveOneOf([ - { - param: 'http', - value: - request.http !== undefined - ? marshalContainerHealthCheckSpecHTTPProbe(request.http, defaults) - : undefined, + {param: 'http', + value: (request.http !== undefined) ? marshalContainerHealthCheckSpecHTTPProbe(request.http, defaults) + : undefined, }, - { - param: 'tcp', - value: - request.tcp !== undefined - ? marshalContainerHealthCheckSpecTCPProbe(request.tcp, defaults) - : undefined, + {param: 'tcp', + value: (request.tcp !== undefined) ? marshalContainerHealthCheckSpecTCPProbe(request.tcp, defaults) + : undefined, }, ]), }) @@ -463,14 +408,17 @@ const marshalContainerHealthCheckSpec = ( const marshalContainerScalingOption = ( request: ContainerScalingOption, defaults: DefaultValues, -): Record => ({ +): Record => ({ ...resolveOneOf([ - { - param: 'concurrent_requests_threshold', + {param: 'concurrent_requests_threshold', value: request.concurrentRequestsThreshold, }, - { param: 'cpu_usage_threshold', value: request.cpuUsageThreshold }, - { param: 'memory_usage_threshold', value: request.memoryUsageThreshold }, + {param: 'cpu_usage_threshold', + value: request.cpuUsageThreshold, + }, + {param: 'memory_usage_threshold', + value: request.memoryUsageThreshold, + }, ]), }) @@ -491,10 +439,7 @@ export const marshalCreateContainerRequest = ( cpu_limit: request.cpuLimit, description: request.description, environment_variables: request.environmentVariables, - health_check: - request.healthCheck !== undefined - ? marshalContainerHealthCheckSpec(request.healthCheck, defaults) - : undefined, + health_check: ((request.healthCheck !== undefined) ? marshalContainerHealthCheckSpec(request.healthCheck, defaults): undefined), http_option: request.httpOption, local_storage_limit: request.localStorageLimit, max_concurrency: request.maxConcurrency, @@ -509,16 +454,8 @@ export const marshalCreateContainerRequest = ( protocol: request.protocol, registry_image: request.registryImage, sandbox: request.sandbox, - scaling_option: - request.scalingOption !== undefined - ? marshalContainerScalingOption(request.scalingOption, defaults) - : undefined, - secret_environment_variables: - request.secretEnvironmentVariables !== undefined - ? request.secretEnvironmentVariables.map(elt => - marshalSecret(elt, defaults), - ) - : undefined, + scaling_option: ((request.scalingOption !== undefined) ? marshalContainerScalingOption(request.scalingOption, defaults): undefined), + secret_environment_variables: ((request.secretEnvironmentVariables !== undefined) ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt, defaults)): undefined), tags: request.tags, timeout: request.timeout, }) @@ -550,12 +487,7 @@ export const marshalCreateNamespaceRequest = ( environment_variables: request.environmentVariables, name: request.name || randomName('cns'), project_id: request.projectId ?? defaults.defaultProjectId, - secret_environment_variables: - request.secretEnvironmentVariables !== undefined - ? request.secretEnvironmentVariables.map(elt => - marshalSecret(elt, defaults), - ) - : undefined, + secret_environment_variables: ((request.secretEnvironmentVariables !== undefined) ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt, defaults)): undefined), tags: request.tags, }) @@ -564,10 +496,14 @@ export const marshalCreateTokenRequest = ( defaults: DefaultValues, ): Record => ({ description: request.description, - expires_at: request.expiresAt, + expires_at: request.expiresAt, ...resolveOneOf([ - { param: 'container_id', value: request.containerId }, - { param: 'namespace_id', value: request.namespaceId }, + {param: 'container_id', + value: request.containerId, + }, + {param: 'namespace_id', + value: request.namespaceId, + }, ]), }) @@ -606,37 +542,19 @@ export const marshalCreateTriggerRequest = ( ): Record => ({ container_id: request.containerId, description: request.description, - name: request.name, + name: request.name, ...resolveOneOf([ - { - param: 'scw_sqs_config', - value: - request.scwSqsConfig !== undefined - ? marshalCreateTriggerRequestMnqSqsClientConfig( - request.scwSqsConfig, - defaults, - ) - : undefined, + {param: 'scw_sqs_config', + value: (request.scwSqsConfig !== undefined) ? marshalCreateTriggerRequestMnqSqsClientConfig(request.scwSqsConfig, defaults) + : undefined, }, - { - param: 'scw_nats_config', - value: - request.scwNatsConfig !== undefined - ? marshalCreateTriggerRequestMnqNatsClientConfig( - request.scwNatsConfig, - defaults, - ) - : undefined, + {param: 'scw_nats_config', + value: (request.scwNatsConfig !== undefined) ? marshalCreateTriggerRequestMnqNatsClientConfig(request.scwNatsConfig, defaults) + : undefined, }, - { - param: 'sqs_config', - value: - request.sqsConfig !== undefined - ? marshalCreateTriggerRequestSqsClientConfig( - request.sqsConfig, - defaults, - ) - : undefined, + {param: 'sqs_config', + value: (request.sqsConfig !== undefined) ? marshalCreateTriggerRequestSqsClientConfig(request.sqsConfig, defaults) + : undefined, }, ]), }) @@ -650,10 +568,7 @@ export const marshalUpdateContainerRequest = ( cpu_limit: request.cpuLimit, description: request.description, environment_variables: request.environmentVariables, - health_check: - request.healthCheck !== undefined - ? marshalContainerHealthCheckSpec(request.healthCheck, defaults) - : undefined, + health_check: ((request.healthCheck !== undefined) ? marshalContainerHealthCheckSpec(request.healthCheck, defaults): undefined), http_option: request.httpOption, local_storage_limit: request.localStorageLimit, max_concurrency: request.maxConcurrency, @@ -667,16 +582,8 @@ export const marshalUpdateContainerRequest = ( redeploy: request.redeploy, registry_image: request.registryImage, sandbox: request.sandbox, - scaling_option: - request.scalingOption !== undefined - ? marshalContainerScalingOption(request.scalingOption, defaults) - : undefined, - secret_environment_variables: - request.secretEnvironmentVariables !== undefined - ? request.secretEnvironmentVariables.map(elt => - marshalSecret(elt, defaults), - ) - : undefined, + scaling_option: ((request.scalingOption !== undefined) ? marshalContainerScalingOption(request.scalingOption, defaults): undefined), + secret_environment_variables: ((request.secretEnvironmentVariables !== undefined) ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt, defaults)): undefined), tags: request.tags, timeout: request.timeout, }) @@ -697,12 +604,7 @@ export const marshalUpdateNamespaceRequest = ( ): Record => ({ description: request.description, environment_variables: request.environmentVariables, - secret_environment_variables: - request.secretEnvironmentVariables !== undefined - ? request.secretEnvironmentVariables.map(elt => - marshalSecret(elt, defaults), - ) - : undefined, + secret_environment_variables: ((request.secretEnvironmentVariables !== undefined) ? request.secretEnvironmentVariables.map(elt => marshalSecret(elt, defaults)): undefined), tags: request.tags, }) @@ -719,17 +621,11 @@ export const marshalUpdateTriggerRequest = ( defaults: DefaultValues, ): Record => ({ description: request.description, - name: request.name, + name: request.name, ...resolveOneOf([ - { - param: 'sqs_config', - value: - request.sqsConfig !== undefined - ? marshalUpdateTriggerRequestSqsClientConfig( - request.sqsConfig, - defaults, - ) - : undefined, + {param: 'sqs_config', + value: (request.sqsConfig !== undefined) ? marshalUpdateTriggerRequestSqsClientConfig(request.sqsConfig, defaults) + : undefined, }, ]), }) diff --git a/packages_generated/container/src/v1beta1/types.gen.ts b/packages_generated/container/src/v1beta1/types.gen.ts index 63f65b6a3..fd73ed1a4 100644 --- a/packages_generated/container/src/v1beta1/types.gen.ts +++ b/packages_generated/container/src/v1beta1/types.gen.ts @@ -1,17 +1,27 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { Region as ScwRegion } from '@scaleway/sdk-client' +import type { Region as ScwRegion, } from '@scaleway/sdk-client' + export type ContainerHttpOption = | 'unknown_http_option' | 'enabled' | 'redirected' -export type ContainerPrivacy = 'unknown_privacy' | 'public' | 'private' +export type ContainerPrivacy = + | 'unknown_privacy' + | 'public' + | 'private' -export type ContainerProtocol = 'unknown_protocol' | 'http1' | 'h2c' +export type ContainerProtocol = + | 'unknown_protocol' + | 'http1' + | 'h2c' -export type ContainerSandbox = 'unknown_sandbox' | 'v1' | 'v2' +export type ContainerSandbox = + | 'unknown_sandbox' + | 'v1' + | 'v2' export type ContainerStatus = | 'unknown' @@ -46,7 +56,9 @@ export type ListContainersRequestOrderBy = | 'name_asc' | 'name_desc' -export type ListCronsRequestOrderBy = 'created_at_asc' | 'created_at_desc' +export type ListCronsRequestOrderBy = + | 'created_at_asc' + | 'created_at_desc' export type ListDomainsRequestOrderBy = | 'created_at_asc' @@ -60,9 +72,13 @@ export type ListNamespacesRequestOrderBy = | 'name_asc' | 'name_desc' -export type ListTokensRequestOrderBy = 'created_at_asc' | 'created_at_desc' +export type ListTokensRequestOrderBy = + | 'created_at_asc' + | 'created_at_desc' -export type ListTriggersRequestOrderBy = 'created_at_asc' | 'created_at_desc' +export type ListTriggersRequestOrderBy = + | 'created_at_asc' + | 'created_at_desc' export type NamespaceStatus = | 'unknown' @@ -102,7 +118,10 @@ export interface ContainerHealthCheckSpecHTTPProbe { path: string } -export interface ContainerHealthCheckSpecTCPProbe {} + +export interface ContainerHealthCheckSpecTCPProbe { +} + export interface ContainerHealthCheckSpec { /** @@ -128,6 +147,7 @@ As a result, lowering this value can help to reduce the time it takes to detect interval?: string } + export interface ContainerScalingOption { /** * @@ -146,11 +166,13 @@ export interface ContainerScalingOption { memoryUsageThreshold?: number } + export interface SecretHashedValue { key: string hashedValue: string } + export interface TriggerMnqNatsClientConfig { /** * Name of the NATS subject the trigger listens to. @@ -174,6 +196,7 @@ export interface TriggerMnqNatsClientConfig { mnqCredentialId?: string } + export interface TriggerMnqSqsClientConfig { /** * Name of the SQS queue the trigger listens to. @@ -193,6 +216,7 @@ export interface TriggerMnqSqsClientConfig { mnqCredentialId?: string } + export interface TriggerSqsClientConfig { endpoint: string queueUrl: string @@ -200,11 +224,13 @@ export interface TriggerSqsClientConfig { secretKey: string } + export interface Secret { key: string value?: string } + export interface CreateTriggerRequestMnqNatsClientConfig { /** * Name of the NATS subject the trigger should listen to. @@ -224,6 +250,7 @@ export interface CreateTriggerRequestMnqNatsClientConfig { mnqRegion: string } + export interface CreateTriggerRequestMnqSqsClientConfig { /** * Name of the SQS queue the trigger should listen to. @@ -239,6 +266,7 @@ export interface CreateTriggerRequestMnqSqsClientConfig { mnqRegion: string } + export interface CreateTriggerRequestSqsClientConfig { endpoint: string queueUrl: string @@ -246,6 +274,7 @@ export interface CreateTriggerRequestSqsClientConfig { secretKey: string } + export interface Container { /** * UUID of the container. @@ -382,6 +411,7 @@ export interface Container { args: string[] } + export interface Cron { /** * UUID of the cron. @@ -409,6 +439,7 @@ export interface Cron { name: string } + export interface Domain { /** * UUID of the domain. @@ -436,6 +467,7 @@ export interface Domain { errorMessage?: string } + export interface Namespace { /** * UUID of the namespace. @@ -503,6 +535,7 @@ export interface Namespace { vpcIntegrationActivated?: boolean } + export interface Token { /** * UUID of the token. @@ -542,6 +575,7 @@ export interface Token { expiresAt?: Date } + export interface Trigger { /** * ID of the trigger. @@ -591,11 +625,13 @@ export interface Trigger { sqsConfig?: TriggerSqsClientConfig } + export interface UpdateTriggerRequestSqsClientConfig { accessKey?: string secretKey?: string } + export type CreateContainerRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -704,6 +740,7 @@ export type CreateContainerRequest = { args?: string[] } + export type CreateCronRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -727,6 +764,7 @@ export type CreateCronRequest = { name?: string } + export type CreateDomainRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -742,6 +780,7 @@ export type CreateDomainRequest = { containerId: string } + export type CreateNamespaceRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -777,6 +816,7 @@ export type CreateNamespaceRequest = { activateVpcIntegration?: boolean } + export type CreateTokenRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -804,6 +844,7 @@ export type CreateTokenRequest = { expiresAt?: Date } + export type CreateTriggerRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -841,6 +882,7 @@ export type CreateTriggerRequest = { sqsConfig?: CreateTriggerRequestSqsClientConfig } + export type DeleteContainerRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -852,6 +894,7 @@ export type DeleteContainerRequest = { containerId: string } + export type DeleteCronRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -863,6 +906,7 @@ export type DeleteCronRequest = { cronId: string } + export type DeleteDomainRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -874,6 +918,7 @@ export type DeleteDomainRequest = { domainId: string } + export type DeleteNamespaceRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -885,6 +930,7 @@ export type DeleteNamespaceRequest = { namespaceId: string } + export type DeleteTokenRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -896,6 +942,7 @@ export type DeleteTokenRequest = { tokenId: string } + export type DeleteTriggerRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -907,6 +954,7 @@ export type DeleteTriggerRequest = { triggerId: string } + export type DeployContainerRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -918,6 +966,7 @@ export type DeployContainerRequest = { containerId: string } + export type GetContainerRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -929,6 +978,7 @@ export type GetContainerRequest = { containerId: string } + export type GetCronRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -940,6 +990,7 @@ export type GetCronRequest = { cronId: string } + export type GetDomainRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -951,6 +1002,7 @@ export type GetDomainRequest = { domainId: string } + export type GetNamespaceRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -962,6 +1014,7 @@ export type GetNamespaceRequest = { namespaceId: string } + export type GetTokenRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -973,6 +1026,7 @@ export type GetTokenRequest = { tokenId: string } + export type GetTriggerRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -984,6 +1038,7 @@ export type GetTriggerRequest = { triggerId: string } + export type ListContainersRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -1019,6 +1074,7 @@ export type ListContainersRequest = { projectId?: string } + export interface ListContainersResponse { /** * Array of containers. @@ -1030,6 +1086,7 @@ export interface ListContainersResponse { totalCount: number } + export type ListCronsRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -1053,6 +1110,7 @@ export type ListCronsRequest = { containerId: string } + export interface ListCronsResponse { /** * Array of crons. @@ -1064,6 +1122,7 @@ export interface ListCronsResponse { totalCount: number } + export type ListDomainsRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -1087,6 +1146,7 @@ export type ListDomainsRequest = { containerId: string } + export interface ListDomainsResponse { /** * Array of domains. @@ -1098,6 +1158,7 @@ export interface ListDomainsResponse { totalCount: number } + export type ListNamespacesRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -1129,6 +1190,7 @@ export type ListNamespacesRequest = { projectId?: string } + export interface ListNamespacesResponse { /** * Array of the namespaces. @@ -1140,6 +1202,7 @@ export interface ListNamespacesResponse { totalCount: number } + export type ListTokensRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -1167,11 +1230,13 @@ export type ListTokensRequest = { namespaceId?: string } + export interface ListTokensResponse { tokens: Token[] totalCount: number } + export type ListTriggersRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -1209,6 +1274,7 @@ export type ListTriggersRequest = { projectId?: string } + export interface ListTriggersResponse { /** * Total count of existing triggers (matching any filters specified). @@ -1220,6 +1286,7 @@ export interface ListTriggersResponse { triggers: Trigger[] } + export type UpdateContainerRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -1339,6 +1406,7 @@ For example, the following payload will delete the `TO_DELETE` secret environmen args?: string[] } + export type UpdateCronRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -1366,6 +1434,7 @@ export type UpdateCronRequest = { name?: string } + export type UpdateNamespaceRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -1393,6 +1462,7 @@ export type UpdateNamespaceRequest = { tags?: string[] } + export type UpdateTriggerRequest = { /** * Region to target. If none is passed will use default region from the config. @@ -1417,3 +1487,5 @@ export type UpdateTriggerRequest = { */ sqsConfig?: UpdateTriggerRequestSqsClientConfig } + + diff --git a/packages_generated/container/src/v1beta1/validation-rules.gen.ts b/packages_generated/container/src/v1beta1/validation-rules.gen.ts index e501f4a70..ee3959340 100644 --- a/packages_generated/container/src/v1beta1/validation-rules.gen.ts +++ b/packages_generated/container/src/v1beta1/validation-rules.gen.ts @@ -15,7 +15,8 @@ export const ContainerHealthCheckSpecHTTPProbe = { }, } -export const ContainerScalingOption = {} +export const ContainerScalingOption = { +} export const CreateContainerRequest = { privateNetworkId: {