From 60b7c23da4ede106e27ede857fb9966e6326ca18 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Mon, 17 Mar 2025 15:23:46 +0000 Subject: [PATCH 1/2] feat: update generated APIs --- .../src/api/applesilicon/v1alpha1/api.gen.ts | 10 +++-- .../clients/src/api/baremetal/v1/api.gen.ts | 6 ++- .../src/api/baremetal/v1/marshalling.gen.ts | 2 + .../clients/src/api/baremetal/v1/types.gen.ts | 1 + packages/clients/src/api/block/v1/api.gen.ts | 12 ++++-- .../clients/src/api/block/v1alpha1/api.gen.ts | 12 ++++-- .../src/api/block/v1alpha1/marshalling.gen.ts | 2 +- .../src/api/container/v1beta1/api.gen.ts | 37 +++++++++++++------ .../clients/src/api/dedibox/v1/api.gen.ts | 26 ++++++++----- .../clients/src/api/domain/v2beta1/api.gen.ts | 10 +++-- .../src/api/edge_services/v1beta1/api.gen.ts | 12 ++++-- .../src/api/flexibleip/v1alpha1/api.gen.ts | 4 +- .../src/api/function/v1beta1/api.gen.ts | 37 +++++++++++++------ .../clients/src/api/inference/v1/api.gen.ts | 12 ++++-- .../src/api/inference/v1/marshalling.gen.ts | 5 +++ .../clients/src/api/inference/v1/types.gen.ts | 32 +++++++++------- .../src/api/inference/v1beta1/api.gen.ts | 6 ++- packages/clients/src/api/iot/v1/api.gen.ts | 5 ++- packages/clients/src/api/k8s/v1/api.gen.ts | 16 +++++--- packages/clients/src/api/lb/v1/api.gen.ts | 14 ++++--- packages/clients/src/api/lb/v1/types.gen.ts | 2 +- .../src/api/mongodb/v1alpha1/api.gen.ts | 12 ++++-- .../clients/src/api/qaas/v1alpha1/api.gen.ts | 17 ++++++--- packages/clients/src/api/rdb/v1/api.gen.ts | 24 +++++++----- packages/clients/src/api/redis/v1/api.gen.ts | 6 ++- .../clients/src/api/registry/v1/api.gen.ts | 19 +++++++--- .../api/serverless_sqldb/v1alpha1/api.gen.ts | 6 ++- .../clients/src/api/tem/v1alpha1/api.gen.ts | 8 ++-- packages/clients/src/api/test/v1/api.gen.ts | 4 +- packages/clients/src/api/vpcgw/v1/api.gen.ts | 10 +++-- packages/clients/src/api/vpcgw/v2/api.gen.ts | 10 +++-- .../clients/src/api/webhosting/v1/api.gen.ts | 12 ++++-- 32 files changed, 249 insertions(+), 142 deletions(-) diff --git a/packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts b/packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts index 64ac29744..99b41b7f1 100644 --- a/packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { - SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES, - SERVER_TRANSIENT_STATUSES, + SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES as SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES_APPLESILICON, + SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_APPLESILICON, } from './content.gen' import { marshalCreateServerRequest, @@ -235,7 +235,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !SERVER_TRANSIENT_STATUSES_APPLESILICON.includes(res.status), + )), this.getServer, request, options, @@ -377,7 +379,7 @@ export class PrivateNetworkAPI extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES.includes( + !SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES_APPLESILICON.includes( res.status, ), )), diff --git a/packages/clients/src/api/baremetal/v1/api.gen.ts b/packages/clients/src/api/baremetal/v1/api.gen.ts index 08bbc6af3..f0aad937c 100644 --- a/packages/clients/src/api/baremetal/v1/api.gen.ts +++ b/packages/clients/src/api/baremetal/v1/api.gen.ts @@ -8,7 +8,7 @@ import { waitForResource, } from '../../../bridge' import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' -import { SERVER_TRANSIENT_STATUSES } from './content.gen' +import { SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_BAREMETAL } from './content.gen' import { marshalAddOptionServerRequest, marshalCreateServerRequest, @@ -177,7 +177,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !SERVER_TRANSIENT_STATUSES_BAREMETAL.includes(res.status), + )), this.getServer, request, options, diff --git a/packages/clients/src/api/baremetal/v1/marshalling.gen.ts b/packages/clients/src/api/baremetal/v1/marshalling.gen.ts index 0e49cde62..827a05d1e 100644 --- a/packages/clients/src/api/baremetal/v1/marshalling.gen.ts +++ b/packages/clients/src/api/baremetal/v1/marshalling.gen.ts @@ -77,6 +77,7 @@ const unmarshalSchemaPartition = (data: unknown): SchemaPartition => { label: data.label, number: data.number, size: data.size, + useAllAvailableSpace: data.use_all_available_space, } as SchemaPartition } @@ -787,6 +788,7 @@ const marshalSchemaPartition = ( label: request.label, number: request.number, size: request.size, + use_all_available_space: request.useAllAvailableSpace, }) const marshalSchemaPool = ( diff --git a/packages/clients/src/api/baremetal/v1/types.gen.ts b/packages/clients/src/api/baremetal/v1/types.gen.ts index 0132e970e..5aaa2b903 100644 --- a/packages/clients/src/api/baremetal/v1/types.gen.ts +++ b/packages/clients/src/api/baremetal/v1/types.gen.ts @@ -112,6 +112,7 @@ export interface SchemaPartition { label: SchemaPartitionLabel number: number size: number + useAllAvailableSpace: boolean } export interface SchemaPool { diff --git a/packages/clients/src/api/block/v1/api.gen.ts b/packages/clients/src/api/block/v1/api.gen.ts index 39acf0466..563ec5b11 100644 --- a/packages/clients/src/api/block/v1/api.gen.ts +++ b/packages/clients/src/api/block/v1/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { - SNAPSHOT_TRANSIENT_STATUSES, - VOLUME_TRANSIENT_STATUSES, + SNAPSHOT_TRANSIENT_STATUSES as SNAPSHOT_TRANSIENT_STATUSES_BLOCK, + VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES_BLOCK, } from './content.gen' import { marshalCreateSnapshotRequest, @@ -184,7 +184,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!VOLUME_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !VOLUME_TRANSIENT_STATUSES_BLOCK.includes(res.status), + )), this.getVolume, request, options, @@ -290,7 +292,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !SNAPSHOT_TRANSIENT_STATUSES_BLOCK.includes(res.status), + )), this.getSnapshot, request, options, diff --git a/packages/clients/src/api/block/v1alpha1/api.gen.ts b/packages/clients/src/api/block/v1alpha1/api.gen.ts index cf087b468..fb6c20db5 100644 --- a/packages/clients/src/api/block/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/block/v1alpha1/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { - SNAPSHOT_TRANSIENT_STATUSES, - VOLUME_TRANSIENT_STATUSES, + SNAPSHOT_TRANSIENT_STATUSES as SNAPSHOT_TRANSIENT_STATUSES_BLOCK, + VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES_BLOCK, } from './content.gen' import { marshalCreateSnapshotRequest, @@ -186,7 +186,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!VOLUME_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !VOLUME_TRANSIENT_STATUSES_BLOCK.includes(res.status), + )), this.getVolume, request, options, @@ -292,7 +294,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !SNAPSHOT_TRANSIENT_STATUSES_BLOCK.includes(res.status), + )), this.getSnapshot, request, options, diff --git a/packages/clients/src/api/block/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/block/v1alpha1/marshalling.gen.ts index 3aff55dec..d60c7d43e 100644 --- a/packages/clients/src/api/block/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/block/v1alpha1/marshalling.gen.ts @@ -30,7 +30,7 @@ import type { VolumeType, } from './types.gen' -export const unmarshalReference = (data: unknown): Reference => { +const unmarshalReference = (data: unknown): Reference => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'Reference' failed as data isn't a dictionary.`, diff --git a/packages/clients/src/api/container/v1beta1/api.gen.ts b/packages/clients/src/api/container/v1beta1/api.gen.ts index 0b23fbc4d..360caa90f 100644 --- a/packages/clients/src/api/container/v1beta1/api.gen.ts +++ b/packages/clients/src/api/container/v1beta1/api.gen.ts @@ -10,12 +10,12 @@ import { } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { - CONTAINER_TRANSIENT_STATUSES, - CRON_TRANSIENT_STATUSES, - DOMAIN_TRANSIENT_STATUSES, - NAMESPACE_TRANSIENT_STATUSES, - TOKEN_TRANSIENT_STATUSES, - TRIGGER_TRANSIENT_STATUSES, + 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' import { marshalCreateContainerRequest, @@ -162,7 +162,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !NAMESPACE_TRANSIENT_STATUSES_CONTAINER.includes(res.status), + )), this.getNamespace, request, options, @@ -282,7 +284,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!CONTAINER_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !CONTAINER_TRANSIENT_STATUSES_CONTAINER.includes(res.status), + )), this.getContainer, request, options, @@ -414,7 +418,10 @@ export class API extends ParentAPI { ) => waitForResource( options?.stop ?? - (res => Promise.resolve(!CRON_TRANSIENT_STATUSES.includes(res.status))), + (res => + Promise.resolve( + !CRON_TRANSIENT_STATUSES_CONTAINER.includes(res.status), + )), this.getCron, request, options, @@ -530,7 +537,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !DOMAIN_TRANSIENT_STATUSES_CONTAINER.includes(res.status), + )), this.getDomain, request, options, @@ -619,7 +628,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!TOKEN_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !TOKEN_TRANSIENT_STATUSES_CONTAINER.includes(res.status), + )), this.getToken, request, options, @@ -717,7 +728,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!TRIGGER_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !TRIGGER_TRANSIENT_STATUSES_CONTAINER.includes(res.status), + )), this.getTrigger, request, options, diff --git a/packages/clients/src/api/dedibox/v1/api.gen.ts b/packages/clients/src/api/dedibox/v1/api.gen.ts index 652f0992a..48946d2ba 100644 --- a/packages/clients/src/api/dedibox/v1/api.gen.ts +++ b/packages/clients/src/api/dedibox/v1/api.gen.ts @@ -9,11 +9,11 @@ import { } from '../../../bridge' import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { - BMC_ACCESS_TRANSIENT_STATUSES, - RPN_SAN_TRANSIENT_STATUSES, - RPN_V2_GROUP_TRANSIENT_STATUSES, - SERVER_INSTALL_TRANSIENT_STATUSES, - SERVER_TRANSIENT_STATUSES, + BMC_ACCESS_TRANSIENT_STATUSES as BMC_ACCESS_TRANSIENT_STATUSES_DEDIBOX, + RPN_SAN_TRANSIENT_STATUSES as RPN_SAN_TRANSIENT_STATUSES_DEDIBOX, + RPN_V2_GROUP_TRANSIENT_STATUSES as RPN_V2_GROUP_TRANSIENT_STATUSES_DEDIBOX, + SERVER_INSTALL_TRANSIENT_STATUSES as SERVER_INSTALL_TRANSIENT_STATUSES_DEDIBOX, + SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_DEDIBOX, } from './content.gen' import { marshalAttachFailoverIPToMacAddressRequest, @@ -319,7 +319,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !SERVER_TRANSIENT_STATUSES_DEDIBOX.includes(res.status), + )), this.getServer, request, options, @@ -703,7 +705,7 @@ export class API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !SERVER_INSTALL_TRANSIENT_STATUSES.includes(res.status), + !SERVER_INSTALL_TRANSIENT_STATUSES_DEDIBOX.includes(res.status), )), this.getServerInstall, request, @@ -789,7 +791,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!BMC_ACCESS_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !BMC_ACCESS_TRANSIENT_STATUSES_DEDIBOX.includes(res.status), + )), this.getBMCAccess, request, options, @@ -1513,7 +1517,9 @@ export class RpnSanAPI extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!RPN_SAN_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !RPN_SAN_TRANSIENT_STATUSES_DEDIBOX.includes(res.status), + )), this.getRpnSan, request, options, @@ -1890,7 +1896,7 @@ export class RpnV2API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !RPN_V2_GROUP_TRANSIENT_STATUSES.includes(res.status), + !RPN_V2_GROUP_TRANSIENT_STATUSES_DEDIBOX.includes(res.status), )), this.getRpnV2Group, request, diff --git a/packages/clients/src/api/domain/v2beta1/api.gen.ts b/packages/clients/src/api/domain/v2beta1/api.gen.ts index 143f8a5a3..60db77694 100644 --- a/packages/clients/src/api/domain/v2beta1/api.gen.ts +++ b/packages/clients/src/api/domain/v2beta1/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { WaitForOptions } from '../../../bridge' import { - DOMAIN_TRANSIENT_STATUSES, - SSL_CERTIFICATE_TRANSIENT_STATUSES, + DOMAIN_TRANSIENT_STATUSES as DOMAIN_TRANSIENT_STATUSES_DOMAIN, + SSL_CERTIFICATE_TRANSIENT_STATUSES as SSL_CERTIFICATE_TRANSIENT_STATUSES_DOMAIN, } from './content.gen' import { marshalCloneDNSZoneRequest, @@ -606,7 +606,7 @@ export class API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !SSL_CERTIFICATE_TRANSIENT_STATUSES.includes(res.status), + !SSL_CERTIFICATE_TRANSIENT_STATUSES_DOMAIN.includes(res.status), )), this.getSSLCertificate, request, @@ -1076,7 +1076,9 @@ export class RegistrarAPI extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !DOMAIN_TRANSIENT_STATUSES_DOMAIN.includes(res.status), + )), this.getDomain, request, options, diff --git a/packages/clients/src/api/edge_services/v1beta1/api.gen.ts b/packages/clients/src/api/edge_services/v1beta1/api.gen.ts index 300551ce5..6f4a41045 100644 --- a/packages/clients/src/api/edge_services/v1beta1/api.gen.ts +++ b/packages/clients/src/api/edge_services/v1beta1/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { WaitForOptions } from '../../../bridge' import { - PIPELINE_TRANSIENT_STATUSES, - PURGE_REQUEST_TRANSIENT_STATUSES, + PIPELINE_TRANSIENT_STATUSES as PIPELINE_TRANSIENT_STATUSES_EDGE_SERVICES, + PURGE_REQUEST_TRANSIENT_STATUSES as PURGE_REQUEST_TRANSIENT_STATUSES_EDGE_SERVICES, } from './content.gen' import { marshalAddRouteRulesRequest, @@ -240,7 +240,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!PIPELINE_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !PIPELINE_TRANSIENT_STATUSES_EDGE_SERVICES.includes(res.status), + )), this.getPipeline, request, options, @@ -1158,7 +1160,9 @@ export class API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !PURGE_REQUEST_TRANSIENT_STATUSES.includes(res.status), + !PURGE_REQUEST_TRANSIENT_STATUSES_EDGE_SERVICES.includes( + res.status, + ), )), this.getPurgeRequest, request, diff --git a/packages/clients/src/api/flexibleip/v1alpha1/api.gen.ts b/packages/clients/src/api/flexibleip/v1alpha1/api.gen.ts index 3e3b9133c..09cc352ea 100644 --- a/packages/clients/src/api/flexibleip/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/flexibleip/v1alpha1/api.gen.ts @@ -8,7 +8,7 @@ import { waitForResource, } from '../../../bridge' import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' -import { FLEXIBLE_IP_TRANSIENT_STATUSES } from './content.gen' +import { FLEXIBLE_IP_TRANSIENT_STATUSES as FLEXIBLE_IP_TRANSIENT_STATUSES_FLEXIBLEIP } from './content.gen' import { marshalAttachFlexibleIPRequest, marshalCreateFlexibleIPRequest, @@ -113,7 +113,7 @@ export class API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !FLEXIBLE_IP_TRANSIENT_STATUSES.includes(res.status), + !FLEXIBLE_IP_TRANSIENT_STATUSES_FLEXIBLEIP.includes(res.status), )), this.getFlexibleIP, request, diff --git a/packages/clients/src/api/function/v1beta1/api.gen.ts b/packages/clients/src/api/function/v1beta1/api.gen.ts index 1b2d3d0f1..b89244591 100644 --- a/packages/clients/src/api/function/v1beta1/api.gen.ts +++ b/packages/clients/src/api/function/v1beta1/api.gen.ts @@ -10,12 +10,12 @@ import { } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { - CRON_TRANSIENT_STATUSES, - DOMAIN_TRANSIENT_STATUSES, - FUNCTION_TRANSIENT_STATUSES, - NAMESPACE_TRANSIENT_STATUSES, - TOKEN_TRANSIENT_STATUSES, - TRIGGER_TRANSIENT_STATUSES, + CRON_TRANSIENT_STATUSES as CRON_TRANSIENT_STATUSES_FUNCTION, + DOMAIN_TRANSIENT_STATUSES as DOMAIN_TRANSIENT_STATUSES_FUNCTION, + FUNCTION_TRANSIENT_STATUSES as FUNCTION_TRANSIENT_STATUSES_FUNCTION, + NAMESPACE_TRANSIENT_STATUSES as NAMESPACE_TRANSIENT_STATUSES_FUNCTION, + TOKEN_TRANSIENT_STATUSES as TOKEN_TRANSIENT_STATUSES_FUNCTION, + TRIGGER_TRANSIENT_STATUSES as TRIGGER_TRANSIENT_STATUSES_FUNCTION, } from './content.gen' import { marshalCreateCronRequest, @@ -172,7 +172,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !NAMESPACE_TRANSIENT_STATUSES_FUNCTION.includes(res.status), + )), this.getNamespace, request, options, @@ -293,7 +295,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!FUNCTION_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !FUNCTION_TRANSIENT_STATUSES_FUNCTION.includes(res.status), + )), this.getFunction, request, options, @@ -476,7 +480,10 @@ export class API extends ParentAPI { ) => waitForResource( options?.stop ?? - (res => Promise.resolve(!CRON_TRANSIENT_STATUSES.includes(res.status))), + (res => + Promise.resolve( + !CRON_TRANSIENT_STATUSES_FUNCTION.includes(res.status), + )), this.getCron, request, options, @@ -594,7 +601,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !DOMAIN_TRANSIENT_STATUSES_FUNCTION.includes(res.status), + )), this.getDomain, request, options, @@ -684,7 +693,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!TOKEN_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !TOKEN_TRANSIENT_STATUSES_FUNCTION.includes(res.status), + )), this.getToken, request, options, @@ -781,7 +792,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!TRIGGER_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !TRIGGER_TRANSIENT_STATUSES_FUNCTION.includes(res.status), + )), this.getTrigger, request, options, diff --git a/packages/clients/src/api/inference/v1/api.gen.ts b/packages/clients/src/api/inference/v1/api.gen.ts index 1fad28969..5de269385 100644 --- a/packages/clients/src/api/inference/v1/api.gen.ts +++ b/packages/clients/src/api/inference/v1/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { - DEPLOYMENT_TRANSIENT_STATUSES, - MODEL_TRANSIENT_STATUSES, + DEPLOYMENT_TRANSIENT_STATUSES as DEPLOYMENT_TRANSIENT_STATUSES_INFERENCE, + MODEL_TRANSIENT_STATUSES as MODEL_TRANSIENT_STATUSES_INFERENCE, } from './content.gen' import { marshalCreateDeploymentRequest, @@ -122,7 +122,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !DEPLOYMENT_TRANSIENT_STATUSES_INFERENCE.includes(res.status), + )), this.getDeployment, request, options, @@ -306,7 +308,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!MODEL_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !MODEL_TRANSIENT_STATUSES_INFERENCE.includes(res.status), + )), this.getModel, request, options, diff --git a/packages/clients/src/api/inference/v1/marshalling.gen.ts b/packages/clients/src/api/inference/v1/marshalling.gen.ts index e32a6cc25..4d838116e 100644 --- a/packages/clients/src/api/inference/v1/marshalling.gen.ts +++ b/packages/clients/src/api/inference/v1/marshalling.gen.ts @@ -358,7 +358,12 @@ export const marshalUpdateDeploymentRequest = ( ): Record => ({ max_size: request.maxSize, min_size: request.minSize, + model_id: request.modelId, name: request.name, + quantization: + request.quantization !== undefined + ? marshalDeploymentQuantization(request.quantization, defaults) + : undefined, tags: request.tags, }) diff --git a/packages/clients/src/api/inference/v1/types.gen.ts b/packages/clients/src/api/inference/v1/types.gen.ts index eca976491..400d80a7b 100644 --- a/packages/clients/src/api/inference/v1/types.gen.ts +++ b/packages/clients/src/api/inference/v1/types.gen.ts @@ -228,7 +228,7 @@ export interface NodeType { region: ScwRegion } -export interface CreateDeploymentRequest { +export type CreateDeploymentRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -259,7 +259,7 @@ export interface CreateDeploymentRequest { quantization?: DeploymentQuantization } -export interface CreateEndpointRequest { +export type CreateEndpointRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -271,7 +271,7 @@ export interface CreateEndpointRequest { endpoint: EndpointSpec } -export interface CreateModelRequest { +export type CreateModelRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -285,7 +285,7 @@ export interface CreateModelRequest { source: ModelSource } -export interface DeleteDeploymentRequest { +export type DeleteDeploymentRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -295,7 +295,7 @@ export interface DeleteDeploymentRequest { deploymentId: string } -export interface DeleteEndpointRequest { +export type DeleteEndpointRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -305,7 +305,7 @@ export interface DeleteEndpointRequest { endpointId: string } -export interface DeleteModelRequest { +export type DeleteModelRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -315,7 +315,7 @@ export interface DeleteModelRequest { modelId: string } -export interface GetDeploymentCertificateRequest { +export type GetDeploymentCertificateRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -324,7 +324,7 @@ export interface GetDeploymentCertificateRequest { deploymentId: string } -export interface GetDeploymentRequest { +export type GetDeploymentRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -334,7 +334,7 @@ export interface GetDeploymentRequest { deploymentId: string } -export interface GetModelRequest { +export type GetModelRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -344,7 +344,7 @@ export interface GetModelRequest { modelId: string } -export interface ListDeploymentsRequest { +export type ListDeploymentsRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -373,7 +373,7 @@ export interface ListDeploymentsResponse { totalCount: number } -export interface ListModelsRequest { +export type ListModelsRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -400,7 +400,7 @@ export interface ListModelsResponse { totalCount: number } -export interface ListNodeTypesRequest { +export type ListNodeTypesRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -421,7 +421,7 @@ export interface ListNodeTypesResponse { totalCount: number } -export interface UpdateDeploymentRequest { +export type UpdateDeploymentRequest = { /** * Region to target. If none is passed will use default region from the * config. @@ -437,9 +437,13 @@ export interface UpdateDeploymentRequest { minSize?: number /** Defines the new maximum size of the pool. */ maxSize?: number + /** Id of the model to set to the deployment. */ + modelId?: string + /** Quantization to use to the deployment. */ + quantization?: DeploymentQuantization } -export interface UpdateEndpointRequest { +export type UpdateEndpointRequest = { /** * Region to target. If none is passed will use default region from the * config. diff --git a/packages/clients/src/api/inference/v1beta1/api.gen.ts b/packages/clients/src/api/inference/v1beta1/api.gen.ts index ee9755c7d..90fc9e3d7 100644 --- a/packages/clients/src/api/inference/v1beta1/api.gen.ts +++ b/packages/clients/src/api/inference/v1beta1/api.gen.ts @@ -8,7 +8,7 @@ import { waitForResource, } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' -import { DEPLOYMENT_TRANSIENT_STATUSES } from './content.gen' +import { DEPLOYMENT_TRANSIENT_STATUSES as DEPLOYMENT_TRANSIENT_STATUSES_INFERENCE } from './content.gen' import { marshalAddDeploymentACLRulesRequest, marshalCreateDeploymentRequest, @@ -131,7 +131,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!DEPLOYMENT_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !DEPLOYMENT_TRANSIENT_STATUSES_INFERENCE.includes(res.status), + )), this.getDeployment, request, options, diff --git a/packages/clients/src/api/iot/v1/api.gen.ts b/packages/clients/src/api/iot/v1/api.gen.ts index 985b31a4c..a57e7b7d7 100644 --- a/packages/clients/src/api/iot/v1/api.gen.ts +++ b/packages/clients/src/api/iot/v1/api.gen.ts @@ -8,7 +8,7 @@ import { waitForResource, } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' -import { HUB_TRANSIENT_STATUSES } from './content.gen' +import { HUB_TRANSIENT_STATUSES as HUB_TRANSIENT_STATUSES_IOT } from './content.gen' import { marshalCreateDeviceRequest, marshalCreateHubRequest, @@ -191,7 +191,8 @@ export class API extends ParentAPI { ) => waitForResource( options?.stop ?? - (res => Promise.resolve(!HUB_TRANSIENT_STATUSES.includes(res.status))), + (res => + Promise.resolve(!HUB_TRANSIENT_STATUSES_IOT.includes(res.status))), this.getHub, request, options, diff --git a/packages/clients/src/api/k8s/v1/api.gen.ts b/packages/clients/src/api/k8s/v1/api.gen.ts index b6bcff6eb..4a7b52b9e 100644 --- a/packages/clients/src/api/k8s/v1/api.gen.ts +++ b/packages/clients/src/api/k8s/v1/api.gen.ts @@ -9,9 +9,9 @@ import { } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { - CLUSTER_TRANSIENT_STATUSES, - NODE_TRANSIENT_STATUSES, - POOL_TRANSIENT_STATUSES, + CLUSTER_TRANSIENT_STATUSES as CLUSTER_TRANSIENT_STATUSES_K8S, + NODE_TRANSIENT_STATUSES as NODE_TRANSIENT_STATUSES_K8S, + POOL_TRANSIENT_STATUSES as POOL_TRANSIENT_STATUSES_K8S, } from './content.gen' import { marshalAddClusterACLRulesRequest, @@ -193,7 +193,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!CLUSTER_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !CLUSTER_TRANSIENT_STATUSES_K8S.includes(res.status), + )), this.getCluster, request, options, @@ -521,7 +523,8 @@ export class API extends ParentAPI { ) => waitForResource( options?.stop ?? - (res => Promise.resolve(!POOL_TRANSIENT_STATUSES.includes(res.status))), + (res => + Promise.resolve(!POOL_TRANSIENT_STATUSES_K8S.includes(res.status))), this.getPool, request, options, @@ -698,7 +701,8 @@ export class API extends ParentAPI { ) => waitForResource( options?.stop ?? - (res => Promise.resolve(!NODE_TRANSIENT_STATUSES.includes(res.status))), + (res => + Promise.resolve(!NODE_TRANSIENT_STATUSES_K8S.includes(res.status))), this.getNode, request, options, diff --git a/packages/clients/src/api/lb/v1/api.gen.ts b/packages/clients/src/api/lb/v1/api.gen.ts index a718b7737..3979a096c 100644 --- a/packages/clients/src/api/lb/v1/api.gen.ts +++ b/packages/clients/src/api/lb/v1/api.gen.ts @@ -13,8 +13,8 @@ import type { WaitForOptions, } from '../../../bridge' import { - CERTIFICATE_TRANSIENT_STATUSES, - LB_TRANSIENT_STATUSES, + CERTIFICATE_TRANSIENT_STATUSES as CERTIFICATE_TRANSIENT_STATUSES_LB, + LB_TRANSIENT_STATUSES as LB_TRANSIENT_STATUSES_LB, } from './content.gen' import { marshalAddBackendServersRequest, @@ -327,7 +327,8 @@ export class ZonedAPI extends ParentAPI { ) => waitForResource( options?.stop ?? - (res => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), + (res => + Promise.resolve(!LB_TRANSIENT_STATUSES_LB.includes(res.status))), this.getLb, request, options, @@ -1169,7 +1170,7 @@ export class ZonedAPI extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !CERTIFICATE_TRANSIENT_STATUSES.includes(res.status), + !CERTIFICATE_TRANSIENT_STATUSES_LB.includes(res.status), )), this.getCertificate, request, @@ -1554,7 +1555,8 @@ export class API extends ParentAPI { ) => waitForResource( options?.stop ?? - (res => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), + (res => + Promise.resolve(!LB_TRANSIENT_STATUSES_LB.includes(res.status))), this.getLb, request, options, @@ -2272,7 +2274,7 @@ export class API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !CERTIFICATE_TRANSIENT_STATUSES.includes(res.status), + !CERTIFICATE_TRANSIENT_STATUSES_LB.includes(res.status), )), this.getCertificate, request, diff --git a/packages/clients/src/api/lb/v1/types.gen.ts b/packages/clients/src/api/lb/v1/types.gen.ts index c57888b37..f1f45d9e3 100644 --- a/packages/clients/src/api/lb/v1/types.gen.ts +++ b/packages/clients/src/api/lb/v1/types.gen.ts @@ -595,7 +595,7 @@ export interface RouteMatch { */ sni?: string /** - * Value to match in the HTTP Host request header from an incoming connection. + * Value to match in the HTTP Host request header from an incoming request. * This field should be set for routes on HTTP Load Balancers. * * One-of ('matchType'): at most one of 'sni', 'hostHeader' could be set. diff --git a/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts b/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts index 00b08d3a1..62f487ccc 100644 --- a/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { - INSTANCE_TRANSIENT_STATUSES, - SNAPSHOT_TRANSIENT_STATUSES, + INSTANCE_TRANSIENT_STATUSES as INSTANCE_TRANSIENT_STATUSES_MONGODB, + SNAPSHOT_TRANSIENT_STATUSES as SNAPSHOT_TRANSIENT_STATUSES_MONGODB, } from './content.gen' import { marshalCreateEndpointRequest, @@ -206,7 +206,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!INSTANCE_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !INSTANCE_TRANSIENT_STATUSES_MONGODB.includes(res.status), + )), this.getInstance, request, options, @@ -357,7 +359,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !SNAPSHOT_TRANSIENT_STATUSES_MONGODB.includes(res.status), + )), this.getSnapshot, request, options, diff --git a/packages/clients/src/api/qaas/v1alpha1/api.gen.ts b/packages/clients/src/api/qaas/v1alpha1/api.gen.ts index f51e4994e..9f5832e47 100644 --- a/packages/clients/src/api/qaas/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/qaas/v1alpha1/api.gen.ts @@ -10,9 +10,9 @@ import { } from '../../../bridge' import type { WaitForOptions } from '../../../bridge' import { - JOB_TRANSIENT_STATUSES, - PROCESS_TRANSIENT_STATUSES, - SESSION_TRANSIENT_STATUSES, + JOB_TRANSIENT_STATUSES as JOB_TRANSIENT_STATUSES_QAAS, + PROCESS_TRANSIENT_STATUSES as PROCESS_TRANSIENT_STATUSES_QAAS, + SESSION_TRANSIENT_STATUSES as SESSION_TRANSIENT_STATUSES_QAAS, } from './content.gen' import { marshalCreateJobRequest, @@ -118,7 +118,8 @@ export class API extends ParentAPI { ) => waitForResource( options?.stop ?? - (res => Promise.resolve(!JOB_TRANSIENT_STATUSES.includes(res.status))), + (res => + Promise.resolve(!JOB_TRANSIENT_STATUSES_QAAS.includes(res.status))), this.getJob, request, options, @@ -350,7 +351,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!SESSION_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !SESSION_TRANSIENT_STATUSES_QAAS.includes(res.status), + )), this.getSession, request, options, @@ -531,7 +534,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!PROCESS_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !PROCESS_TRANSIENT_STATUSES_QAAS.includes(res.status), + )), this.getProcess, request, options, diff --git a/packages/clients/src/api/rdb/v1/api.gen.ts b/packages/clients/src/api/rdb/v1/api.gen.ts index 12e869d08..4361ee271 100644 --- a/packages/clients/src/api/rdb/v1/api.gen.ts +++ b/packages/clients/src/api/rdb/v1/api.gen.ts @@ -9,11 +9,11 @@ import { } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { - DATABASE_BACKUP_TRANSIENT_STATUSES, - INSTANCE_LOG_TRANSIENT_STATUSES, - INSTANCE_TRANSIENT_STATUSES, - READ_REPLICA_TRANSIENT_STATUSES, - SNAPSHOT_TRANSIENT_STATUSES, + DATABASE_BACKUP_TRANSIENT_STATUSES as DATABASE_BACKUP_TRANSIENT_STATUSES_RDB, + INSTANCE_LOG_TRANSIENT_STATUSES as INSTANCE_LOG_TRANSIENT_STATUSES_RDB, + INSTANCE_TRANSIENT_STATUSES as INSTANCE_TRANSIENT_STATUSES_RDB, + READ_REPLICA_TRANSIENT_STATUSES as READ_REPLICA_TRANSIENT_STATUSES_RDB, + SNAPSHOT_TRANSIENT_STATUSES as SNAPSHOT_TRANSIENT_STATUSES_RDB, } from './content.gen' import { marshalAddInstanceACLRulesRequest, @@ -329,7 +329,7 @@ export class API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !DATABASE_BACKUP_TRANSIENT_STATUSES.includes(res.status), + !DATABASE_BACKUP_TRANSIENT_STATUSES_RDB.includes(res.status), )), this.getDatabaseBackup, request, @@ -506,7 +506,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!INSTANCE_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !INSTANCE_TRANSIENT_STATUSES_RDB.includes(res.status), + )), this.getInstance, request, options, @@ -723,7 +725,7 @@ export class API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !READ_REPLICA_TRANSIENT_STATUSES.includes(res.status), + !READ_REPLICA_TRANSIENT_STATUSES_RDB.includes(res.status), )), this.getReadReplica, request, @@ -888,7 +890,7 @@ export class API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !INSTANCE_LOG_TRANSIENT_STATUSES.includes(res.status), + !INSTANCE_LOG_TRANSIENT_STATUSES_RDB.includes(res.status), )), this.getInstanceLog, request, @@ -1355,7 +1357,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!SNAPSHOT_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !SNAPSHOT_TRANSIENT_STATUSES_RDB.includes(res.status), + )), this.getSnapshot, request, options, diff --git a/packages/clients/src/api/redis/v1/api.gen.ts b/packages/clients/src/api/redis/v1/api.gen.ts index 176c971ec..fe7fd0847 100644 --- a/packages/clients/src/api/redis/v1/api.gen.ts +++ b/packages/clients/src/api/redis/v1/api.gen.ts @@ -8,7 +8,7 @@ import { waitForResource, } from '../../../bridge' import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' -import { CLUSTER_TRANSIENT_STATUSES } from './content.gen' +import { CLUSTER_TRANSIENT_STATUSES as CLUSTER_TRANSIENT_STATUSES_REDIS } from './content.gen' import { marshalAddAclRulesRequest, marshalAddClusterSettingsRequest, @@ -167,7 +167,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!CLUSTER_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !CLUSTER_TRANSIENT_STATUSES_REDIS.includes(res.status), + )), this.getCluster, request, options, diff --git a/packages/clients/src/api/registry/v1/api.gen.ts b/packages/clients/src/api/registry/v1/api.gen.ts index ee1b9f9f2..05d11aeac 100644 --- a/packages/clients/src/api/registry/v1/api.gen.ts +++ b/packages/clients/src/api/registry/v1/api.gen.ts @@ -9,9 +9,9 @@ import { } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { - IMAGE_TRANSIENT_STATUSES, - NAMESPACE_TRANSIENT_STATUSES, - TAG_TRANSIENT_STATUSES, + IMAGE_TRANSIENT_STATUSES as IMAGE_TRANSIENT_STATUSES_REGISTRY, + NAMESPACE_TRANSIENT_STATUSES as NAMESPACE_TRANSIENT_STATUSES_REGISTRY, + TAG_TRANSIENT_STATUSES as TAG_TRANSIENT_STATUSES_REGISTRY, } from './content.gen' import { marshalCreateNamespaceRequest, @@ -129,7 +129,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !NAMESPACE_TRANSIENT_STATUSES_REGISTRY.includes(res.status), + )), this.getNamespace, request, options, @@ -260,7 +262,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!IMAGE_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !IMAGE_TRANSIENT_STATUSES_REGISTRY.includes(res.status), + )), this.getImage, request, options, @@ -362,7 +366,10 @@ export class API extends ParentAPI { ) => waitForResource( options?.stop ?? - (res => Promise.resolve(!TAG_TRANSIENT_STATUSES.includes(res.status))), + (res => + Promise.resolve( + !TAG_TRANSIENT_STATUSES_REGISTRY.includes(res.status), + )), this.getTag, request, options, diff --git a/packages/clients/src/api/serverless_sqldb/v1alpha1/api.gen.ts b/packages/clients/src/api/serverless_sqldb/v1alpha1/api.gen.ts index 1ca21753e..9fe4c75b3 100644 --- a/packages/clients/src/api/serverless_sqldb/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/serverless_sqldb/v1alpha1/api.gen.ts @@ -8,7 +8,7 @@ import { waitForResource, } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' -import { DATABASE_TRANSIENT_STATUSES } from './content.gen' +import { DATABASE_TRANSIENT_STATUSES as DATABASE_TRANSIENT_STATUSES_SERVERLESS_SQLDB } from './content.gen' import { marshalCreateDatabaseRequest, marshalRestoreDatabaseFromBackupRequest, @@ -98,7 +98,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!DATABASE_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !DATABASE_TRANSIENT_STATUSES_SERVERLESS_SQLDB.includes(res.status), + )), this.getDatabase, request, options, diff --git a/packages/clients/src/api/tem/v1alpha1/api.gen.ts b/packages/clients/src/api/tem/v1alpha1/api.gen.ts index b01c77aee..d795e7688 100644 --- a/packages/clients/src/api/tem/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { - DOMAIN_TRANSIENT_STATUSES, - EMAIL_TRANSIENT_STATUSES, + DOMAIN_TRANSIENT_STATUSES as DOMAIN_TRANSIENT_STATUSES_TEM, + EMAIL_TRANSIENT_STATUSES as EMAIL_TRANSIENT_STATUSES_TEM, } from './content.gen' import { marshalBulkCreateBlocklistsRequest, @@ -154,7 +154,7 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!EMAIL_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve(!EMAIL_TRANSIENT_STATUSES_TEM.includes(res.status))), this.getEmail, request, options, @@ -296,7 +296,7 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve(!DOMAIN_TRANSIENT_STATUSES_TEM.includes(res.status))), this.getDomain, request, options, diff --git a/packages/clients/src/api/test/v1/api.gen.ts b/packages/clients/src/api/test/v1/api.gen.ts index f68a8c90b..0b2af192a 100644 --- a/packages/clients/src/api/test/v1/api.gen.ts +++ b/packages/clients/src/api/test/v1/api.gen.ts @@ -8,7 +8,7 @@ import { waitForResource, } from '../../../bridge' import type { WaitForOptions } from '../../../bridge' -import { HUMAN_TRANSIENT_STATUSES } from './content.gen' +import { HUMAN_TRANSIENT_STATUSES as HUMAN_TRANSIENT_STATUSES_TEST } from './content.gen' import { marshalCreateHumanRequest, marshalRegisterRequest, @@ -121,7 +121,7 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!HUMAN_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve(!HUMAN_TRANSIENT_STATUSES_TEST.includes(res.status))), this.getHuman, request, options, diff --git a/packages/clients/src/api/vpcgw/v1/api.gen.ts b/packages/clients/src/api/vpcgw/v1/api.gen.ts index 4404fc4eb..8f02bf889 100644 --- a/packages/clients/src/api/vpcgw/v1/api.gen.ts +++ b/packages/clients/src/api/vpcgw/v1/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { - GATEWAY_NETWORK_TRANSIENT_STATUSES, - GATEWAY_TRANSIENT_STATUSES, + GATEWAY_NETWORK_TRANSIENT_STATUSES as GATEWAY_NETWORK_TRANSIENT_STATUSES_VPCGW, + GATEWAY_TRANSIENT_STATUSES as GATEWAY_TRANSIENT_STATUSES_VPCGW, } from './content.gen' import { marshalCreateDHCPEntryRequest, @@ -189,7 +189,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!GATEWAY_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !GATEWAY_TRANSIENT_STATUSES_VPCGW.includes(res.status), + )), this.getGateway, request, options, @@ -367,7 +369,7 @@ export class API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !GATEWAY_NETWORK_TRANSIENT_STATUSES.includes(res.status), + !GATEWAY_NETWORK_TRANSIENT_STATUSES_VPCGW.includes(res.status), )), this.getGatewayNetwork, request, diff --git a/packages/clients/src/api/vpcgw/v2/api.gen.ts b/packages/clients/src/api/vpcgw/v2/api.gen.ts index 27de51d38..4c6f7bbcd 100644 --- a/packages/clients/src/api/vpcgw/v2/api.gen.ts +++ b/packages/clients/src/api/vpcgw/v2/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { - GATEWAY_NETWORK_TRANSIENT_STATUSES, - GATEWAY_TRANSIENT_STATUSES, + GATEWAY_NETWORK_TRANSIENT_STATUSES as GATEWAY_NETWORK_TRANSIENT_STATUSES_VPCGW, + GATEWAY_TRANSIENT_STATUSES as GATEWAY_TRANSIENT_STATUSES_VPCGW, } from './content.gen' import { marshalAddBastionAllowedIPsRequest, @@ -171,7 +171,9 @@ export class API extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!GATEWAY_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !GATEWAY_TRANSIENT_STATUSES_VPCGW.includes(res.status), + )), this.getGateway, request, options, @@ -337,7 +339,7 @@ export class API extends ParentAPI { options?.stop ?? (res => Promise.resolve( - !GATEWAY_NETWORK_TRANSIENT_STATUSES.includes(res.status), + !GATEWAY_NETWORK_TRANSIENT_STATUSES_VPCGW.includes(res.status), )), this.getGatewayNetwork, request, diff --git a/packages/clients/src/api/webhosting/v1/api.gen.ts b/packages/clients/src/api/webhosting/v1/api.gen.ts index 4c2fd7c70..c5c54b459 100644 --- a/packages/clients/src/api/webhosting/v1/api.gen.ts +++ b/packages/clients/src/api/webhosting/v1/api.gen.ts @@ -9,8 +9,8 @@ import { } from '../../../bridge' import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { - DOMAIN_TRANSIENT_STATUSES, - HOSTING_TRANSIENT_STATUSES, + DOMAIN_TRANSIENT_STATUSES as DOMAIN_TRANSIENT_STATUSES_WEBHOSTING, + HOSTING_TRANSIENT_STATUSES as HOSTING_TRANSIENT_STATUSES_WEBHOSTING, } from './content.gen' import { marshalDatabaseApiAssignDatabaseUserRequest, @@ -542,7 +542,9 @@ export class DnsAPI extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!DOMAIN_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !DOMAIN_TRANSIENT_STATUSES_WEBHOSTING.includes(res.status), + )), this.getDomain, request, options, @@ -693,7 +695,9 @@ export class HostingAPI extends ParentAPI { waitForResource( options?.stop ?? (res => - Promise.resolve(!HOSTING_TRANSIENT_STATUSES.includes(res.status))), + Promise.resolve( + !HOSTING_TRANSIENT_STATUSES_WEBHOSTING.includes(res.status), + )), this.getHosting, request, options, From 18ef11a96df57cb74674f41e3be6099af87664b5 Mon Sep 17 00:00:00 2001 From: devtools-ci-cd Date: Mon, 17 Mar 2025 16:50:51 +0100 Subject: [PATCH 2/2] fix: revert generated API file --- .../src/api/baremetal/v1/marshalling.gen.ts | 2 - .../clients/src/api/baremetal/v1/types.gen.ts | 65 +++--- .../src/api/block/v1alpha1/marshalling.gen.ts | 2 +- .../src/api/inference/v1/marshalling.gen.ts | 5 - .../clients/src/api/inference/v1/types.gen.ts | 32 ++- packages/clients/src/api/lb/v1/types.gen.ts | 216 +++++++++--------- 6 files changed, 155 insertions(+), 167 deletions(-) diff --git a/packages/clients/src/api/baremetal/v1/marshalling.gen.ts b/packages/clients/src/api/baremetal/v1/marshalling.gen.ts index 827a05d1e..0e49cde62 100644 --- a/packages/clients/src/api/baremetal/v1/marshalling.gen.ts +++ b/packages/clients/src/api/baremetal/v1/marshalling.gen.ts @@ -77,7 +77,6 @@ const unmarshalSchemaPartition = (data: unknown): SchemaPartition => { label: data.label, number: data.number, size: data.size, - useAllAvailableSpace: data.use_all_available_space, } as SchemaPartition } @@ -788,7 +787,6 @@ const marshalSchemaPartition = ( label: request.label, number: request.number, size: request.size, - use_all_available_space: request.useAllAvailableSpace, }) const marshalSchemaPool = ( diff --git a/packages/clients/src/api/baremetal/v1/types.gen.ts b/packages/clients/src/api/baremetal/v1/types.gen.ts index 5aaa2b903..672a9e370 100644 --- a/packages/clients/src/api/baremetal/v1/types.gen.ts +++ b/packages/clients/src/api/baremetal/v1/types.gen.ts @@ -112,7 +112,6 @@ export interface SchemaPartition { label: SchemaPartitionLabel number: number size: number - useAllAvailableSpace: boolean } export interface SchemaPool { @@ -611,7 +610,7 @@ export interface Setting { enabled: boolean } -export type AddOptionServerRequest = { +export interface AddOptionServerRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server. */ @@ -642,7 +641,7 @@ export interface BMCAccess { expiresAt?: Date } -export type CreateServerRequest = { +export interface CreateServerRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Offer ID of the new server. */ @@ -676,7 +675,7 @@ export type CreateServerRequest = { optionIds?: string[] } -export type DeleteOptionServerRequest = { +export interface DeleteOptionServerRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server. */ @@ -685,21 +684,21 @@ export type DeleteOptionServerRequest = { optionId: string } -export type DeleteServerRequest = { +export interface DeleteServerRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server to delete. */ serverId: string } -export type GetBMCAccessRequest = { +export interface GetBMCAccessRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server. */ serverId: string } -export type GetDefaultPartitioningSchemaRequest = { +export interface GetDefaultPartitioningSchemaRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the offer. */ @@ -708,28 +707,28 @@ export type GetDefaultPartitioningSchemaRequest = { osId: string } -export type GetOSRequest = { +export interface GetOSRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the OS. */ osId: string } -export type GetOfferRequest = { +export interface GetOfferRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the researched Offer. */ offerId: string } -export type GetOptionRequest = { +export interface GetOptionRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the option. */ optionId: string } -export type GetServerMetricsRequest = { +export interface GetServerMetricsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Server ID to get the metrics. */ @@ -741,14 +740,14 @@ export interface GetServerMetricsResponse { pings?: TimeSeries } -export type GetServerRequest = { +export interface GetServerRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server. */ serverId: string } -export type InstallServerRequest = { +export interface InstallServerRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Server ID to install. */ @@ -771,7 +770,7 @@ export type InstallServerRequest = { partitioningSchema?: Schema } -export type ListOSRequest = { +export interface ListOSRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Page number. */ @@ -789,7 +788,7 @@ export interface ListOSResponse { os: OS[] } -export type ListOffersRequest = { +export interface ListOffersRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Page number. */ @@ -809,7 +808,7 @@ export interface ListOffersResponse { offers: Offer[] } -export type ListOptionsRequest = { +export interface ListOptionsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Page number. */ @@ -829,7 +828,7 @@ export interface ListOptionsResponse { options: Option[] } -export type ListServerEventsRequest = { +export interface ListServerEventsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server events searched. */ @@ -854,7 +853,7 @@ export interface ListServerPrivateNetworksResponse { totalCount: number } -export type ListServersRequest = { +export interface ListServersRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Page number. */ @@ -884,7 +883,7 @@ export interface ListServersResponse { servers: Server[] } -export type ListSettingsRequest = { +export interface ListSettingsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Page number. */ @@ -904,14 +903,14 @@ export interface ListSettingsResponse { settings: Setting[] } -export type MigrateServerToMonthlyOfferRequest = { +export interface MigrateServerToMonthlyOfferRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server. */ serverId: string } -export type PrivateNetworkApiAddServerPrivateNetworkRequest = { +export interface PrivateNetworkApiAddServerPrivateNetworkRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** The ID of the server. */ @@ -920,7 +919,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = { privateNetworkId: string } -export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = { +export interface PrivateNetworkApiDeleteServerPrivateNetworkRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** The ID of the server. */ @@ -929,7 +928,7 @@ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = { privateNetworkId: string } -export type PrivateNetworkApiListServerPrivateNetworksRequest = { +export interface PrivateNetworkApiListServerPrivateNetworksRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** The sort order for the returned Private Networks. */ @@ -948,7 +947,7 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = { projectId?: string } -export type PrivateNetworkApiSetServerPrivateNetworksRequest = { +export interface PrivateNetworkApiSetServerPrivateNetworksRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** The ID of the server. */ @@ -957,7 +956,7 @@ export type PrivateNetworkApiSetServerPrivateNetworksRequest = { privateNetworkIds: string[] } -export type RebootServerRequest = { +export interface RebootServerRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server to reboot. */ @@ -970,7 +969,7 @@ export interface SetServerPrivateNetworksResponse { serverPrivateNetworks: ServerPrivateNetwork[] } -export type StartBMCAccessRequest = { +export interface StartBMCAccessRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server. */ @@ -979,7 +978,7 @@ export type StartBMCAccessRequest = { ip: string } -export type StartServerRequest = { +export interface StartServerRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server to start. */ @@ -988,21 +987,21 @@ export type StartServerRequest = { bootType?: ServerBootType } -export type StopBMCAccessRequest = { +export interface StopBMCAccessRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server. */ serverId: string } -export type StopServerRequest = { +export interface StopServerRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server to stop. */ serverId: string } -export type UpdateIPRequest = { +export interface UpdateIPRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server. */ @@ -1013,7 +1012,7 @@ export type UpdateIPRequest = { reverse?: string } -export type UpdateServerRequest = { +export interface UpdateServerRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the server to update. */ @@ -1029,7 +1028,7 @@ export type UpdateServerRequest = { tags?: string[] } -export type UpdateSettingRequest = { +export interface UpdateSettingRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the setting. */ @@ -1038,7 +1037,7 @@ export type UpdateSettingRequest = { enabled?: boolean } -export type ValidatePartitioningSchemaRequest = { +export interface ValidatePartitioningSchemaRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Partitioning schema. */ diff --git a/packages/clients/src/api/block/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/block/v1alpha1/marshalling.gen.ts index d60c7d43e..3aff55dec 100644 --- a/packages/clients/src/api/block/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/block/v1alpha1/marshalling.gen.ts @@ -30,7 +30,7 @@ import type { VolumeType, } from './types.gen' -const unmarshalReference = (data: unknown): Reference => { +export const unmarshalReference = (data: unknown): Reference => { if (!isJSONObject(data)) { throw new TypeError( `Unmarshalling the type 'Reference' failed as data isn't a dictionary.`, diff --git a/packages/clients/src/api/inference/v1/marshalling.gen.ts b/packages/clients/src/api/inference/v1/marshalling.gen.ts index 4d838116e..e32a6cc25 100644 --- a/packages/clients/src/api/inference/v1/marshalling.gen.ts +++ b/packages/clients/src/api/inference/v1/marshalling.gen.ts @@ -358,12 +358,7 @@ export const marshalUpdateDeploymentRequest = ( ): Record => ({ max_size: request.maxSize, min_size: request.minSize, - model_id: request.modelId, name: request.name, - quantization: - request.quantization !== undefined - ? marshalDeploymentQuantization(request.quantization, defaults) - : undefined, tags: request.tags, }) diff --git a/packages/clients/src/api/inference/v1/types.gen.ts b/packages/clients/src/api/inference/v1/types.gen.ts index 400d80a7b..eca976491 100644 --- a/packages/clients/src/api/inference/v1/types.gen.ts +++ b/packages/clients/src/api/inference/v1/types.gen.ts @@ -228,7 +228,7 @@ export interface NodeType { region: ScwRegion } -export type CreateDeploymentRequest = { +export interface CreateDeploymentRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -259,7 +259,7 @@ export type CreateDeploymentRequest = { quantization?: DeploymentQuantization } -export type CreateEndpointRequest = { +export interface CreateEndpointRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -271,7 +271,7 @@ export type CreateEndpointRequest = { endpoint: EndpointSpec } -export type CreateModelRequest = { +export interface CreateModelRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -285,7 +285,7 @@ export type CreateModelRequest = { source: ModelSource } -export type DeleteDeploymentRequest = { +export interface DeleteDeploymentRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -295,7 +295,7 @@ export type DeleteDeploymentRequest = { deploymentId: string } -export type DeleteEndpointRequest = { +export interface DeleteEndpointRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -305,7 +305,7 @@ export type DeleteEndpointRequest = { endpointId: string } -export type DeleteModelRequest = { +export interface DeleteModelRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -315,7 +315,7 @@ export type DeleteModelRequest = { modelId: string } -export type GetDeploymentCertificateRequest = { +export interface GetDeploymentCertificateRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -324,7 +324,7 @@ export type GetDeploymentCertificateRequest = { deploymentId: string } -export type GetDeploymentRequest = { +export interface GetDeploymentRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -334,7 +334,7 @@ export type GetDeploymentRequest = { deploymentId: string } -export type GetModelRequest = { +export interface GetModelRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -344,7 +344,7 @@ export type GetModelRequest = { modelId: string } -export type ListDeploymentsRequest = { +export interface ListDeploymentsRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -373,7 +373,7 @@ export interface ListDeploymentsResponse { totalCount: number } -export type ListModelsRequest = { +export interface ListModelsRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -400,7 +400,7 @@ export interface ListModelsResponse { totalCount: number } -export type ListNodeTypesRequest = { +export interface ListNodeTypesRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -421,7 +421,7 @@ export interface ListNodeTypesResponse { totalCount: number } -export type UpdateDeploymentRequest = { +export interface UpdateDeploymentRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -437,13 +437,9 @@ export type UpdateDeploymentRequest = { minSize?: number /** Defines the new maximum size of the pool. */ maxSize?: number - /** Id of the model to set to the deployment. */ - modelId?: string - /** Quantization to use to the deployment. */ - quantization?: DeploymentQuantization } -export type UpdateEndpointRequest = { +export interface UpdateEndpointRequest { /** * Region to target. If none is passed will use default region from the * config. diff --git a/packages/clients/src/api/lb/v1/types.gen.ts b/packages/clients/src/api/lb/v1/types.gen.ts index f1f45d9e3..d26a9a711 100644 --- a/packages/clients/src/api/lb/v1/types.gen.ts +++ b/packages/clients/src/api/lb/v1/types.gen.ts @@ -595,7 +595,7 @@ export interface RouteMatch { */ sni?: string /** - * Value to match in the HTTP Host request header from an incoming request. + * Value to match in the HTTP Host request header from an incoming connection. * This field should be set for routes on HTTP Load Balancers. * * One-of ('matchType'): at most one of 'sni', 'hostHeader' could be set. @@ -758,7 +758,7 @@ export interface AclSpec { description: string } -export type AddBackendServersRequest = { +export interface AddBackendServersRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -770,7 +770,7 @@ export type AddBackendServersRequest = { serverIp: string[] } -export type AttachPrivateNetworkRequest = { +export interface AttachPrivateNetworkRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -813,7 +813,7 @@ export type AttachPrivateNetworkRequest = { } /** Add an ACL to a Load Balancer frontend. */ -export type CreateAclRequest = { +export interface CreateAclRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -839,7 +839,7 @@ export type CreateAclRequest = { description: string } -export type CreateBackendRequest = { +export interface CreateBackendRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -926,7 +926,7 @@ export type CreateBackendRequest = { timeoutQueue?: string } -export type CreateCertificateRequest = { +export interface CreateCertificateRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -952,7 +952,7 @@ export type CreateCertificateRequest = { customCertificate?: CreateCertificateRequestCustomCertificate } -export type CreateFrontendRequest = { +export interface CreateFrontendRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -981,7 +981,7 @@ export type CreateFrontendRequest = { connectionRateLimit?: number } -export type CreateIpRequest = { +export interface CreateIpRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1010,7 +1010,7 @@ export type CreateIpRequest = { tags?: string[] } -export type CreateLbRequest = { +export interface CreateLbRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1069,7 +1069,7 @@ export type CreateLbRequest = { sslCompatibilityLevel?: SSLCompatibilityLevel } -export type CreateRouteRequest = { +export interface CreateRouteRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1089,7 +1089,7 @@ export type CreateRouteRequest = { } /** Create a new alert subscriber (webhook or email). */ -export type CreateSubscriberRequest = { +export interface CreateSubscriberRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1127,7 +1127,7 @@ export type CreateSubscriberRequest = { projectId?: string } -export type DeleteAclRequest = { +export interface DeleteAclRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1137,7 +1137,7 @@ export type DeleteAclRequest = { aclId: string } -export type DeleteBackendRequest = { +export interface DeleteBackendRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1147,7 +1147,7 @@ export type DeleteBackendRequest = { backendId: string } -export type DeleteCertificateRequest = { +export interface DeleteCertificateRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1157,7 +1157,7 @@ export type DeleteCertificateRequest = { certificateId: string } -export type DeleteFrontendRequest = { +export interface DeleteFrontendRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1167,7 +1167,7 @@ export type DeleteFrontendRequest = { frontendId: string } -export type DeleteLbRequest = { +export interface DeleteLbRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1183,7 +1183,7 @@ export type DeleteLbRequest = { releaseIp: boolean } -export type DeleteRouteRequest = { +export interface DeleteRouteRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1193,7 +1193,7 @@ export type DeleteRouteRequest = { routeId: string } -export type DeleteSubscriberRequest = { +export interface DeleteSubscriberRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1203,7 +1203,7 @@ export type DeleteSubscriberRequest = { subscriberId: string } -export type DetachPrivateNetworkRequest = { +export interface DetachPrivateNetworkRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1215,7 +1215,7 @@ export type DetachPrivateNetworkRequest = { privateNetworkId: string } -export type GetAclRequest = { +export interface GetAclRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1225,7 +1225,7 @@ export type GetAclRequest = { aclId: string } -export type GetBackendRequest = { +export interface GetBackendRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1235,7 +1235,7 @@ export type GetBackendRequest = { backendId: string } -export type GetCertificateRequest = { +export interface GetCertificateRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1245,7 +1245,7 @@ export type GetCertificateRequest = { certificateId: string } -export type GetFrontendRequest = { +export interface GetFrontendRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1255,7 +1255,7 @@ export type GetFrontendRequest = { frontendId: string } -export type GetIpRequest = { +export interface GetIpRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1265,7 +1265,7 @@ export type GetIpRequest = { ipId: string } -export type GetLbRequest = { +export interface GetLbRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1276,7 +1276,7 @@ export type GetLbRequest = { } /** Get Load Balancer stats. */ -export type GetLbStatsRequest = { +export interface GetLbStatsRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1288,7 +1288,7 @@ export type GetLbStatsRequest = { backendId?: string } -export type GetRouteRequest = { +export interface GetRouteRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1298,7 +1298,7 @@ export type GetRouteRequest = { routeId: string } -export type GetSubscriberRequest = { +export interface GetSubscriberRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1320,7 +1320,7 @@ export interface ListAclResponse { totalCount: number } -export type ListAclsRequest = { +export interface ListAclsRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1341,7 +1341,7 @@ export type ListAclsRequest = { name?: string } -export type ListBackendStatsRequest = { +export interface ListBackendStatsRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1364,7 +1364,7 @@ export interface ListBackendStatsResponse { totalCount: number } -export type ListBackendsRequest = { +export interface ListBackendsRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1389,7 +1389,7 @@ export interface ListBackendsResponse { totalCount: number } -export type ListCertificatesRequest = { +export interface ListCertificatesRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1417,7 +1417,7 @@ export interface ListCertificatesResponse { totalCount: number } -export type ListFrontendsRequest = { +export interface ListFrontendsRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1442,7 +1442,7 @@ export interface ListFrontendsResponse { totalCount: number } -export type ListIPsRequest = { +export interface ListIPsRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1480,7 +1480,7 @@ export interface ListIpsResponse { totalCount: number } -export type ListLbPrivateNetworksRequest = { +export interface ListLbPrivateNetworksRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1503,7 +1503,7 @@ export interface ListLbPrivateNetworksResponse { totalCount: number } -export type ListLbTypesRequest = { +export interface ListLbTypesRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1522,7 +1522,7 @@ export interface ListLbTypesResponse { totalCount: number } -export type ListLbsRequest = { +export interface ListLbsRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1560,7 +1560,7 @@ export interface ListLbsResponse { totalCount: number } -export type ListRoutesRequest = { +export interface ListRoutesRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1583,7 +1583,7 @@ export interface ListRoutesResponse { totalCount: number } -export type ListSubscriberRequest = { +export interface ListSubscriberRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1610,7 +1610,7 @@ export interface ListSubscriberResponse { totalCount: number } -export type MigrateLbRequest = { +export interface MigrateLbRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1625,7 +1625,7 @@ export type MigrateLbRequest = { type: string } -export type ReleaseIpRequest = { +export interface ReleaseIpRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1635,7 +1635,7 @@ export type ReleaseIpRequest = { ipId: string } -export type RemoveBackendServersRequest = { +export interface RemoveBackendServersRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1654,7 +1654,7 @@ export interface SetAclsResponse { totalCount: number } -export type SetBackendServersRequest = { +export interface SetBackendServersRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1669,7 +1669,7 @@ export type SetBackendServersRequest = { serverIp: string[] } -export type SubscribeToLbRequest = { +export interface SubscribeToLbRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1681,7 +1681,7 @@ export type SubscribeToLbRequest = { subscriberId: string } -export type UnsubscribeFromLbRequest = { +export interface UnsubscribeFromLbRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1691,7 +1691,7 @@ export type UnsubscribeFromLbRequest = { lbId: string } -export type UpdateAclRequest = { +export interface UpdateAclRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1717,7 +1717,7 @@ export type UpdateAclRequest = { description?: string } -export type UpdateBackendRequest = { +export interface UpdateBackendRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1794,7 +1794,7 @@ export type UpdateBackendRequest = { timeoutQueue?: string } -export type UpdateCertificateRequest = { +export interface UpdateCertificateRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1806,7 +1806,7 @@ export type UpdateCertificateRequest = { name: string } -export type UpdateFrontendRequest = { +export interface UpdateFrontendRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1835,7 +1835,7 @@ export type UpdateFrontendRequest = { connectionRateLimit?: number } -export type UpdateHealthCheckRequest = { +export interface UpdateHealthCheckRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1922,7 +1922,7 @@ export type UpdateHealthCheckRequest = { transientCheckDelay?: string } -export type UpdateIpRequest = { +export interface UpdateIpRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1938,7 +1938,7 @@ export type UpdateIpRequest = { tags?: string[] } -export type UpdateLbRequest = { +export interface UpdateLbRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1963,7 +1963,7 @@ export type UpdateLbRequest = { sslCompatibilityLevel?: SSLCompatibilityLevel } -export type UpdateRouteRequest = { +export interface UpdateRouteRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -1982,7 +1982,7 @@ export type UpdateRouteRequest = { match?: RouteMatch } -export type UpdateSubscriberRequest = { +export interface UpdateSubscriberRequest { /** * Region to target. If none is passed will use default region from the * config. @@ -2008,7 +2008,7 @@ export type UpdateSubscriberRequest = { webhookConfig?: SubscriberWebhookConfig } -export type ZonedApiAddBackendServersRequest = { +export interface ZonedApiAddBackendServersRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Backend ID. */ @@ -2017,7 +2017,7 @@ export type ZonedApiAddBackendServersRequest = { serverIp: string[] } -export type ZonedApiAttachPrivateNetworkRequest = { +export interface ZonedApiAttachPrivateNetworkRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2057,7 +2057,7 @@ export type ZonedApiAttachPrivateNetworkRequest = { } /** Add an ACL to a Load Balancer frontend. */ -export type ZonedApiCreateAclRequest = { +export interface ZonedApiCreateAclRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Frontend ID to attach the ACL to. */ @@ -2080,7 +2080,7 @@ export type ZonedApiCreateAclRequest = { description: string } -export type ZonedApiCreateBackendRequest = { +export interface ZonedApiCreateBackendRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2164,7 +2164,7 @@ export type ZonedApiCreateBackendRequest = { timeoutQueue?: string } -export type ZonedApiCreateCertificateRequest = { +export interface ZonedApiCreateCertificateRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2187,7 +2187,7 @@ export type ZonedApiCreateCertificateRequest = { customCertificate?: CreateCertificateRequestCustomCertificate } -export type ZonedApiCreateFrontendRequest = { +export interface ZonedApiCreateFrontendRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID (ID of the Load Balancer to attach the frontend to). */ @@ -2213,7 +2213,7 @@ export type ZonedApiCreateFrontendRequest = { connectionRateLimit?: number } -export type ZonedApiCreateIpRequest = { +export interface ZonedApiCreateIpRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** @@ -2239,7 +2239,7 @@ export type ZonedApiCreateIpRequest = { tags?: string[] } -export type ZonedApiCreateLbRequest = { +export interface ZonedApiCreateLbRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** @@ -2295,7 +2295,7 @@ export type ZonedApiCreateLbRequest = { sslCompatibilityLevel?: SSLCompatibilityLevel } -export type ZonedApiCreateRouteRequest = { +export interface ZonedApiCreateRouteRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the source frontend to create the route on. */ @@ -2312,7 +2312,7 @@ export type ZonedApiCreateRouteRequest = { } /** Create a new alert subscriber (webhook or email). */ -export type ZonedApiCreateSubscriberRequest = { +export interface ZonedApiCreateSubscriberRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Subscriber name. */ @@ -2347,35 +2347,35 @@ export type ZonedApiCreateSubscriberRequest = { projectId?: string } -export type ZonedApiDeleteAclRequest = { +export interface ZonedApiDeleteAclRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ACL ID. */ aclId: string } -export type ZonedApiDeleteBackendRequest = { +export interface ZonedApiDeleteBackendRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the backend to delete. */ backendId: string } -export type ZonedApiDeleteCertificateRequest = { +export interface ZonedApiDeleteCertificateRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Certificate ID. */ certificateId: string } -export type ZonedApiDeleteFrontendRequest = { +export interface ZonedApiDeleteFrontendRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the frontend to delete. */ frontendId: string } -export type ZonedApiDeleteLbRequest = { +export interface ZonedApiDeleteLbRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ID of the Load Balancer to delete. */ @@ -2388,21 +2388,21 @@ export type ZonedApiDeleteLbRequest = { releaseIp: boolean } -export type ZonedApiDeleteRouteRequest = { +export interface ZonedApiDeleteRouteRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Route ID. */ routeId: string } -export type ZonedApiDeleteSubscriberRequest = { +export interface ZonedApiDeleteSubscriberRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Subscriber ID. */ subscriberId: string } -export type ZonedApiDetachPrivateNetworkRequest = { +export interface ZonedApiDetachPrivateNetworkRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load balancer ID. */ @@ -2411,42 +2411,42 @@ export type ZonedApiDetachPrivateNetworkRequest = { privateNetworkId: string } -export type ZonedApiGetAclRequest = { +export interface ZonedApiGetAclRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ACL ID. */ aclId: string } -export type ZonedApiGetBackendRequest = { +export interface ZonedApiGetBackendRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Backend ID. */ backendId: string } -export type ZonedApiGetCertificateRequest = { +export interface ZonedApiGetCertificateRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Certificate ID. */ certificateId: string } -export type ZonedApiGetFrontendRequest = { +export interface ZonedApiGetFrontendRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Frontend ID. */ frontendId: string } -export type ZonedApiGetIpRequest = { +export interface ZonedApiGetIpRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** IP address ID. */ ipId: string } -export type ZonedApiGetLbRequest = { +export interface ZonedApiGetLbRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2454,7 +2454,7 @@ export type ZonedApiGetLbRequest = { } /** Get Load Balancer stats. */ -export type ZonedApiGetLbStatsRequest = { +export interface ZonedApiGetLbStatsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2463,21 +2463,21 @@ export type ZonedApiGetLbStatsRequest = { backendId?: string } -export type ZonedApiGetRouteRequest = { +export interface ZonedApiGetRouteRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Route ID. */ routeId: string } -export type ZonedApiGetSubscriberRequest = { +export interface ZonedApiGetSubscriberRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Subscriber ID. */ subscriberId: string } -export type ZonedApiListAclsRequest = { +export interface ZonedApiListAclsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** @@ -2495,7 +2495,7 @@ export type ZonedApiListAclsRequest = { name?: string } -export type ZonedApiListBackendStatsRequest = { +export interface ZonedApiListBackendStatsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2508,7 +2508,7 @@ export type ZonedApiListBackendStatsRequest = { backendId?: string } -export type ZonedApiListBackendsRequest = { +export interface ZonedApiListBackendsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2523,7 +2523,7 @@ export type ZonedApiListBackendsRequest = { pageSize?: number } -export type ZonedApiListCertificatesRequest = { +export interface ZonedApiListCertificatesRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2541,7 +2541,7 @@ export type ZonedApiListCertificatesRequest = { name?: string } -export type ZonedApiListFrontendsRequest = { +export interface ZonedApiListFrontendsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2556,7 +2556,7 @@ export type ZonedApiListFrontendsRequest = { pageSize?: number } -export type ZonedApiListIPsRequest = { +export interface ZonedApiListIPsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** The page number to return, from the paginated results. */ @@ -2584,7 +2584,7 @@ export type ZonedApiListIPsRequest = { tags?: string[] } -export type ZonedApiListLbPrivateNetworksRequest = { +export interface ZonedApiListLbPrivateNetworksRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2597,7 +2597,7 @@ export type ZonedApiListLbPrivateNetworksRequest = { page?: number } -export type ZonedApiListLbTypesRequest = { +export interface ZonedApiListLbTypesRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** The page number to return, from the paginated results. */ @@ -2606,7 +2606,7 @@ export type ZonedApiListLbTypesRequest = { pageSize?: number } -export type ZonedApiListLbsRequest = { +export interface ZonedApiListLbsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer name to filter for. */ @@ -2634,7 +2634,7 @@ export type ZonedApiListLbsRequest = { tags?: string[] } -export type ZonedApiListRoutesRequest = { +export interface ZonedApiListRoutesRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Sort order of routes in the response. */ @@ -2647,7 +2647,7 @@ export type ZonedApiListRoutesRequest = { frontendId?: string } -export type ZonedApiListSubscriberRequest = { +export interface ZonedApiListSubscriberRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Sort order of subscribers in the response. */ @@ -2664,7 +2664,7 @@ export type ZonedApiListSubscriberRequest = { projectId?: string } -export type ZonedApiMigrateLbRequest = { +export interface ZonedApiMigrateLbRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2676,14 +2676,14 @@ export type ZonedApiMigrateLbRequest = { type: string } -export type ZonedApiReleaseIpRequest = { +export interface ZonedApiReleaseIpRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** IP address ID. */ ipId: string } -export type ZonedApiRemoveBackendServersRequest = { +export interface ZonedApiRemoveBackendServersRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Backend ID. */ @@ -2692,7 +2692,7 @@ export type ZonedApiRemoveBackendServersRequest = { serverIp: string[] } -export type ZonedApiSetAclsRequest = { +export interface ZonedApiSetAclsRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Frontend ID. */ @@ -2704,7 +2704,7 @@ export type ZonedApiSetAclsRequest = { acls: AclSpec[] } -export type ZonedApiSetBackendServersRequest = { +export interface ZonedApiSetBackendServersRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Backend ID. */ @@ -2716,7 +2716,7 @@ export type ZonedApiSetBackendServersRequest = { serverIp: string[] } -export type ZonedApiSubscribeToLbRequest = { +export interface ZonedApiSubscribeToLbRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2725,14 +2725,14 @@ export type ZonedApiSubscribeToLbRequest = { subscriberId: string } -export type ZonedApiUnsubscribeFromLbRequest = { +export interface ZonedApiUnsubscribeFromLbRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ lbId: string } -export type ZonedApiUpdateAclRequest = { +export interface ZonedApiUpdateAclRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** ACL ID. */ @@ -2755,7 +2755,7 @@ export type ZonedApiUpdateAclRequest = { description?: string } -export type ZonedApiUpdateBackendRequest = { +export interface ZonedApiUpdateBackendRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Backend ID. */ @@ -2829,7 +2829,7 @@ export type ZonedApiUpdateBackendRequest = { timeoutQueue?: string } -export type ZonedApiUpdateCertificateRequest = { +export interface ZonedApiUpdateCertificateRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Certificate ID. */ @@ -2838,7 +2838,7 @@ export type ZonedApiUpdateCertificateRequest = { name: string } -export type ZonedApiUpdateFrontendRequest = { +export interface ZonedApiUpdateFrontendRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Frontend ID. */ @@ -2864,7 +2864,7 @@ export type ZonedApiUpdateFrontendRequest = { connectionRateLimit?: number } -export type ZonedApiUpdateHealthCheckRequest = { +export interface ZonedApiUpdateHealthCheckRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Backend ID. */ @@ -2948,7 +2948,7 @@ export type ZonedApiUpdateHealthCheckRequest = { transientCheckDelay?: string } -export type ZonedApiUpdateIpRequest = { +export interface ZonedApiUpdateIpRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** IP address ID. */ @@ -2961,7 +2961,7 @@ export type ZonedApiUpdateIpRequest = { tags?: string[] } -export type ZonedApiUpdateLbRequest = { +export interface ZonedApiUpdateLbRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Load Balancer ID. */ @@ -2983,7 +2983,7 @@ export type ZonedApiUpdateLbRequest = { sslCompatibilityLevel?: SSLCompatibilityLevel } -export type ZonedApiUpdateRouteRequest = { +export interface ZonedApiUpdateRouteRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Route ID. */ @@ -2999,7 +2999,7 @@ export type ZonedApiUpdateRouteRequest = { match?: RouteMatch } -export type ZonedApiUpdateSubscriberRequest = { +export interface ZonedApiUpdateSubscriberRequest { /** Zone to target. If none is passed will use default zone from the config. */ zone?: ScwZone /** Subscriber ID. */