From e9fc952b37cb706deb6c6e4ab845117dd4903365 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 13 Feb 2025 12:35:03 +0000 Subject: [PATCH] feat: update generated APIs --- .../clients/src/api/baremetal/v1/api.gen.ts | 6 +- .../clients/src/api/baremetal/v1/types.gen.ts | 66 ++++----- .../clients/src/api/baremetal/v3/api.gen.ts | 4 +- .../clients/src/api/baremetal/v3/types.gen.ts | 10 +- .../clients/src/api/block/v1alpha1/api.gen.ts | 4 +- .../src/api/block/v1alpha1/types.gen.ts | 34 ++--- .../src/api/container/v1beta1/api.gen.ts | 8 +- .../src/api/container/v1beta1/types.gen.ts | 64 ++++---- .../clients/src/api/dedibox/v1/api.gen.ts | 4 +- .../clients/src/api/dedibox/v1/types.gen.ts | 102 ++++++------- .../api/edge_services/v1alpha1/index.gen.ts | 1 + .../edge_services/v1alpha1/marshalling.gen.ts | 25 ++++ .../api/edge_services/v1alpha1/types.gen.ts | 35 +++++ .../src/api/flexibleip/v1alpha1/api.gen.ts | 4 +- .../src/api/flexibleip/v1alpha1/types.gen.ts | 28 ++-- .../src/api/function/v1beta1/api.gen.ts | 8 +- .../src/api/function/v1beta1/types.gen.ts | 70 ++++----- packages/clients/src/api/iot/v1/api.gen.ts | 4 +- packages/clients/src/api/iot/v1/types.gen.ts | 76 +++++----- .../clients/src/api/jobs/v1alpha1/api.gen.ts | 8 +- .../src/api/jobs/v1alpha1/types.gen.ts | 38 ++--- packages/clients/src/api/k8s/v1/api.gen.ts | 8 +- .../clients/src/api/k8s/v1/marshalling.gen.ts | 1 + packages/clients/src/api/k8s/v1/types.gen.ts | 83 +++++------ .../src/api/marketplace/v2/types.gen.ts | 6 +- .../clients/src/api/mnq/v1beta1/api.gen.ts | 8 +- .../clients/src/api/mnq/v1beta1/types.gen.ts | 62 ++++---- .../src/api/mongodb/v1alpha1/api.gen.ts | 6 +- .../src/api/mongodb/v1alpha1/types.gen.ts | 48 +++--- packages/clients/src/api/rdb/v1/api.gen.ts | 8 +- packages/clients/src/api/rdb/v1/types.gen.ts | 138 +++++++++--------- packages/clients/src/api/redis/v1/api.gen.ts | 4 +- .../clients/src/api/redis/v1/types.gen.ts | 56 +++---- .../clients/src/api/registry/v1/api.gen.ts | 8 +- .../clients/src/api/registry/v1/types.gen.ts | 28 ++-- .../clients/src/api/secret/v1beta1/api.gen.ts | 8 +- .../src/api/secret/v1beta1/types.gen.ts | 44 +++--- .../api/serverless_sqldb/v1alpha1/api.gen.ts | 4 +- .../serverless_sqldb/v1alpha1/types.gen.ts | 24 +-- .../clients/src/api/tem/v1alpha1/api.gen.ts | 4 +- .../clients/src/api/tem/v1alpha1/types.gen.ts | 50 +++---- packages/clients/src/api/vpcgw/v1/api.gen.ts | 4 +- .../clients/src/api/vpcgw/v1/types.gen.ts | 88 +++++------ packages/clients/src/api/vpcgw/v2/api.gen.ts | 4 +- .../clients/src/api/vpcgw/v2/types.gen.ts | 66 ++++----- 45 files changed, 727 insertions(+), 632 deletions(-) diff --git a/packages/clients/src/api/baremetal/v1/api.gen.ts b/packages/clients/src/api/baremetal/v1/api.gen.ts index 01ec505f9..f54ade44a 100644 --- a/packages/clients/src/api/baremetal/v1/api.gen.ts +++ b/packages/clients/src/api/baremetal/v1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { WaitForOptions, Zone } from '../../../bridge' +import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { SERVER_TRANSIENT_STATUSES } from './content.gen' import { marshalAddOptionServerRequest, @@ -104,7 +104,7 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available zones of the API. */ - public static readonly LOCALITIES: Zone[] = [ + public static readonly LOCALITIES: ScwZone[] = [ 'fr-par-1', 'fr-par-2', 'nl-ams-1', @@ -698,7 +698,7 @@ export class API extends ParentAPI { /** Elastic Metal - Private Network API. */ export class PrivateNetworkAPI extends ParentAPI { /** Lists the available zones of the API. */ - public static readonly LOCALITIES: Zone[] = ['fr-par-2'] + public static readonly LOCALITIES: ScwZone[] = ['fr-par-2'] /** * Add a server to a Private Network. diff --git a/packages/clients/src/api/baremetal/v1/types.gen.ts b/packages/clients/src/api/baremetal/v1/types.gen.ts index 77ddfd55a..a9c7aa9e2 100644 --- a/packages/clients/src/api/baremetal/v1/types.gen.ts +++ b/packages/clients/src/api/baremetal/v1/types.gen.ts @@ -1,6 +1,6 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { Money, TimeSeries, Zone } from '../../../bridge' +import type { Money, Zone as ScwZone, TimeSeries } from '../../../bridge' export type IPReverseStatus = 'unknown' | 'pending' | 'active' | 'error' @@ -585,7 +585,7 @@ export interface Server { /** Boot type of the server. */ bootType: ServerBootType /** Zone in which is the server located. */ - zone: Zone + zone: ScwZone /** Configuration of the installation. */ install?: ServerInstall /** Status of server ping. */ @@ -609,7 +609,7 @@ export interface Setting { export type AddOptionServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: string /** ID of the option to add. */ @@ -640,7 +640,7 @@ export interface BMCAccess { export type CreateServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Offer ID of the new server. */ offerId: string /** @@ -674,7 +674,7 @@ export type CreateServerRequest = { export type DeleteOptionServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: string /** ID of the option to delete. */ @@ -683,21 +683,21 @@ export type DeleteOptionServerRequest = { export type DeleteServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to delete. */ serverId: string } export type GetBMCAccessRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: string } export type GetDefaultPartitioningSchemaRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the offer. */ offerId: string /** ID of the OS. */ @@ -706,28 +706,28 @@ export type GetDefaultPartitioningSchemaRequest = { export type GetOSRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the OS. */ osId: string } export type GetOfferRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the researched Offer. */ offerId: string } export type GetOptionRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the option. */ optionId: string } export type GetServerMetricsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to get the metrics. */ serverId: string } @@ -739,14 +739,14 @@ export interface GetServerMetricsResponse { export type GetServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: string } export type InstallServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to install. */ serverId: string /** ID of the OS to installation on the server. */ @@ -769,7 +769,7 @@ export type InstallServerRequest = { export type ListOSRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** Number of OS per page. */ @@ -787,7 +787,7 @@ export interface ListOSResponse { export type ListOffersRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** Number of offers per page. */ @@ -807,7 +807,7 @@ export interface ListOffersResponse { export type ListOptionsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** Number of options per page. */ @@ -827,7 +827,7 @@ export interface ListOptionsResponse { export type ListServerEventsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server events searched. */ serverId: string /** Page number. */ @@ -852,7 +852,7 @@ export interface ListServerPrivateNetworksResponse { export type ListServersRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** Number of servers per page. */ @@ -882,7 +882,7 @@ export interface ListServersResponse { export type ListSettingsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** Set the maximum list size. */ @@ -902,7 +902,7 @@ export interface ListSettingsResponse { export type PrivateNetworkApiAddServerPrivateNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** The ID of the server. */ serverId: string /** The ID of the Private Network. */ @@ -911,7 +911,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = { export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** The ID of the server. */ serverId: string /** The ID of the Private Network. */ @@ -920,7 +920,7 @@ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = { export type PrivateNetworkApiListServerPrivateNetworksRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** The sort order for the returned Private Networks. */ orderBy?: ListServerPrivateNetworksRequestOrderBy /** The page number for the returned Private Networks. */ @@ -939,7 +939,7 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = { export type PrivateNetworkApiSetServerPrivateNetworksRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** The ID of the server. */ serverId: string /** The IDs of the Private Networks. */ @@ -948,7 +948,7 @@ export type PrivateNetworkApiSetServerPrivateNetworksRequest = { export type RebootServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to reboot. */ serverId: string /** The type of boot. */ @@ -961,7 +961,7 @@ export interface SetServerPrivateNetworksResponse { export type StartBMCAccessRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: string /** The IP authorized to connect to the server. */ @@ -970,7 +970,7 @@ export type StartBMCAccessRequest = { export type StartServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to start. */ serverId: string /** The type of boot. */ @@ -979,21 +979,21 @@ export type StartServerRequest = { export type StopBMCAccessRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: string } export type StopServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to stop. */ serverId: string } export type UpdateIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: string /** ID of the IP to update. */ @@ -1004,7 +1004,7 @@ export type UpdateIPRequest = { export type UpdateServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to update. */ serverId: string /** Name of the server (≠hostname), not updated if null. */ @@ -1020,7 +1020,7 @@ export type UpdateServerRequest = { export type UpdateSettingRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the setting. */ settingId: string /** Defines whether the setting is enabled. */ @@ -1029,7 +1029,7 @@ export type UpdateSettingRequest = { export type ValidatePartitioningSchemaRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Partitioning schema. */ partitioningSchema?: Schema /** Offer ID of the server. */ diff --git a/packages/clients/src/api/baremetal/v3/api.gen.ts b/packages/clients/src/api/baremetal/v3/api.gen.ts index cd83736fb..9dd101a8d 100644 --- a/packages/clients/src/api/baremetal/v3/api.gen.ts +++ b/packages/clients/src/api/baremetal/v3/api.gen.ts @@ -6,7 +6,7 @@ import { urlParams, validatePathParam, } from '../../../bridge' -import type { Zone } from '../../../bridge' +import type { Zone as ScwZone } from '../../../bridge' import { marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, @@ -31,7 +31,7 @@ const jsonContentHeaders = { /** Elastic Metal - Private Networks API. */ export class PrivateNetworkAPI extends ParentAPI { /** Lists the available zones of the API. */ - public static readonly LOCALITIES: Zone[] = [ + public static readonly LOCALITIES: ScwZone[] = [ 'fr-par-1', 'fr-par-2', 'nl-ams-1', diff --git a/packages/clients/src/api/baremetal/v3/types.gen.ts b/packages/clients/src/api/baremetal/v3/types.gen.ts index 2eb372352..19e056d09 100644 --- a/packages/clients/src/api/baremetal/v3/types.gen.ts +++ b/packages/clients/src/api/baremetal/v3/types.gen.ts @@ -1,6 +1,6 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { Zone } from '../../../bridge' +import type { Zone as ScwZone } from '../../../bridge' export type ListServerPrivateNetworksRequestOrderBy = | 'created_at_asc' @@ -44,7 +44,7 @@ export interface ListServerPrivateNetworksResponse { export type PrivateNetworkApiAddServerPrivateNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the server. */ serverId: string /** UUID of the Private Network. */ @@ -55,7 +55,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = { export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the server. */ serverId: string /** UUID of the Private Network. */ @@ -64,7 +64,7 @@ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = { export type PrivateNetworkApiListServerPrivateNetworksRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Sort order for the returned Private Networks. */ orderBy?: ListServerPrivateNetworksRequestOrderBy /** Page number for the returned Private Networks. */ @@ -85,7 +85,7 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = { export type PrivateNetworkApiSetServerPrivateNetworksRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the server. */ serverId: string /** diff --git a/packages/clients/src/api/block/v1alpha1/api.gen.ts b/packages/clients/src/api/block/v1alpha1/api.gen.ts index f9091162f..b0d83d01d 100644 --- a/packages/clients/src/api/block/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/block/v1alpha1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { WaitForOptions, Zone } from '../../../bridge' +import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { SNAPSHOT_TRANSIENT_STATUSES, VOLUME_TRANSIENT_STATUSES, @@ -59,7 +59,7 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available zones of the API. */ - public static readonly LOCALITIES: Zone[] = [ + public static readonly LOCALITIES: ScwZone[] = [ 'fr-par-1', 'fr-par-2', 'fr-par-3', diff --git a/packages/clients/src/api/block/v1alpha1/types.gen.ts b/packages/clients/src/api/block/v1alpha1/types.gen.ts index 2ca7ac020..dcc6ddca5 100644 --- a/packages/clients/src/api/block/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/block/v1alpha1/types.gen.ts @@ -1,6 +1,6 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { Money, Zone } from '../../../bridge' +import type { Money, Zone as ScwZone } from '../../../bridge' export type ListSnapshotsRequestOrderBy = | 'created_at_asc' @@ -135,7 +135,7 @@ export interface Snapshot { /** List of tags assigned to the volume. */ tags: string[] /** Snapshot zone. */ - zone: Zone + zone: ScwZone /** Storage class of the snapshot. */ class: StorageClass } @@ -178,7 +178,7 @@ export interface Volume { /** List of tags assigned to the volume. */ tags: string[] /** Volume zone. */ - zone: Zone + zone: ScwZone /** Specifications of the volume. */ specs?: VolumeSpecifications /** Last time the volume was detached. */ @@ -187,7 +187,7 @@ export interface Volume { export type CreateSnapshotRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the volume to snapshot. */ volumeId: string /** Name of the snapshot. */ @@ -200,7 +200,7 @@ export type CreateSnapshotRequest = { export type CreateVolumeRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Name of the volume. */ name?: string /** @@ -230,21 +230,21 @@ export type CreateVolumeRequest = { export type DeleteSnapshotRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the snapshot. */ snapshotId: string } export type DeleteVolumeRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the volume. */ volumeId: string } export type ExportSnapshotToObjectStorageRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the snapshot. */ snapshotId: string /** Scaleway Object Storage bucket where the object is stored. */ @@ -255,21 +255,21 @@ export type ExportSnapshotToObjectStorageRequest = { export type GetSnapshotRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the snapshot. */ snapshotId: string } export type GetVolumeRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the volume. */ volumeId: string } export type ImportSnapshotFromObjectStorageRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Scaleway Object Storage bucket where the object is stored. */ bucket: string /** The object key inside the given bucket. */ @@ -286,7 +286,7 @@ export type ImportSnapshotFromObjectStorageRequest = { export type ImportSnapshotFromS3Request = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Scaleway Object Storage bucket where the object is stored. */ bucket: string /** The object key inside the given bucket. */ @@ -303,7 +303,7 @@ export type ImportSnapshotFromS3Request = { export type ListSnapshotsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Criteria to use when ordering the list. */ orderBy?: ListSnapshotsRequestOrderBy /** Filter by Project ID. */ @@ -332,7 +332,7 @@ export interface ListSnapshotsResponse { export type ListVolumeTypesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** @@ -351,7 +351,7 @@ export interface ListVolumeTypesResponse { export type ListVolumesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Criteria to use when ordering the list. */ orderBy?: ListVolumesRequestOrderBy /** Filter by Project ID. */ @@ -388,7 +388,7 @@ export interface ListVolumesResponse { export type UpdateSnapshotRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the snapshot. */ snapshotId: string /** When defined, is the name of the snapshot. */ @@ -399,7 +399,7 @@ export type UpdateSnapshotRequest = { export type UpdateVolumeRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the volume. */ volumeId: string /** When defined, is the new name of the volume. */ diff --git a/packages/clients/src/api/container/v1beta1/api.gen.ts b/packages/clients/src/api/container/v1beta1/api.gen.ts index b36b6a6a0..0b23fbc4d 100644 --- a/packages/clients/src/api/container/v1beta1/api.gen.ts +++ b/packages/clients/src/api/container/v1beta1/api.gen.ts @@ -8,7 +8,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { CONTAINER_TRANSIENT_STATUSES, CRON_TRANSIENT_STATUSES, @@ -96,7 +96,11 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] protected pageOfListNamespaces = ( request: Readonly = {}, diff --git a/packages/clients/src/api/container/v1beta1/types.gen.ts b/packages/clients/src/api/container/v1beta1/types.gen.ts index 5aa8d617c..03d717213 100644 --- a/packages/clients/src/api/container/v1beta1/types.gen.ts +++ b/packages/clients/src/api/container/v1beta1/types.gen.ts @@ -1,6 +1,6 @@ // 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 } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' export type ContainerHttpOption = | 'unknown_http_option' @@ -291,7 +291,7 @@ export interface Container { /** Last date when the container was successfully deployed and set to ready. */ readyAt?: Date /** Region in which the container will be deployed. */ - region: Region + region: ScwRegion } export interface Cron { @@ -348,7 +348,7 @@ export interface Namespace { /** Secret environment variables of the namespace. */ secretEnvironmentVariables: SecretHashedValue[] /** Region in which the namespace will be created. */ - region: Region + region: ScwRegion /** [ALPHA] List of tags applied to the Serverless Container Namespace. */ tags: string[] /** Creation date of the namespace. */ @@ -432,7 +432,7 @@ export type CreateContainerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the namespace the container belongs to. */ namespaceId: string /** Name of the container. */ @@ -498,7 +498,7 @@ export type CreateCronRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the container to invoke by the cron. */ containerId: string /** UNIX cron shedule. */ @@ -514,7 +514,7 @@ export type CreateDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Domain to assign. */ hostname: string /** UUID of the container to assign the domain to. */ @@ -526,7 +526,7 @@ export type CreateNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Name of the namespace to create. */ name?: string /** Environment variables of the namespace to create. */ @@ -546,7 +546,7 @@ export type CreateTokenRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** * UUID of the container to create the token for. * @@ -570,7 +570,7 @@ export type CreateTriggerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Name of the trigger. */ name: string /** ID of the container to trigger. */ @@ -605,7 +605,7 @@ export type DeleteContainerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the container to delete. */ containerId: string } @@ -615,7 +615,7 @@ export type DeleteCronRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the cron to delete. */ cronId: string } @@ -625,7 +625,7 @@ export type DeleteDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the domain to delete. */ domainId: string } @@ -635,7 +635,7 @@ export type DeleteNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the namespace to delete. */ namespaceId: string } @@ -645,7 +645,7 @@ export type DeleteTokenRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the token to delete. */ tokenId: string } @@ -655,7 +655,7 @@ export type DeleteTriggerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the trigger to delete. */ triggerId: string } @@ -665,7 +665,7 @@ export type DeployContainerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the container to deploy. */ containerId: string } @@ -675,7 +675,7 @@ export type GetContainerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the container to get. */ containerId: string } @@ -685,7 +685,7 @@ export type GetCronRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the cron to get. */ cronId: string } @@ -695,7 +695,7 @@ export type GetDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the domain to get. */ domainId: string } @@ -705,7 +705,7 @@ export type GetNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the namespace to get. */ namespaceId: string } @@ -715,7 +715,7 @@ export type GetTokenRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the token to get. */ tokenId: string } @@ -725,7 +725,7 @@ export type GetTriggerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the trigger to get. */ triggerId: string } @@ -735,7 +735,7 @@ export type ListContainersRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number. */ page?: number /** Number of containers per page. */ @@ -764,7 +764,7 @@ export type ListCronsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number. */ page?: number /** Number of crons per page. */ @@ -787,7 +787,7 @@ export type ListDomainsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number. */ page?: number /** Number of domains per page. */ @@ -810,7 +810,7 @@ export type ListNamespacesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number. */ page?: number /** Number of namespaces per page. */ @@ -837,7 +837,7 @@ export type ListTokensRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number. */ page?: number /** Number of tokens per page. */ @@ -860,7 +860,7 @@ export type ListTriggersRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number to return. */ page?: number /** Maximum number of triggers to return per page. */ @@ -902,7 +902,7 @@ export type UpdateContainerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the container to update. */ containerId: string /** Environment variables of the container. */ @@ -965,7 +965,7 @@ export type UpdateCronRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the cron to update. */ cronId: string /** UUID of the container invoked by the cron. */ @@ -983,7 +983,7 @@ export type UpdateNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the namespace to update. */ namespaceId: string /** Environment variables of the namespace to update. */ @@ -1001,7 +1001,7 @@ export type UpdateTriggerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the trigger to update. */ triggerId: string /** Name of the trigger. */ diff --git a/packages/clients/src/api/dedibox/v1/api.gen.ts b/packages/clients/src/api/dedibox/v1/api.gen.ts index f1263c4c4..652f0992a 100644 --- a/packages/clients/src/api/dedibox/v1/api.gen.ts +++ b/packages/clients/src/api/dedibox/v1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { WaitForOptions, Zone } from '../../../bridge' +import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { BMC_ACCESS_TRANSIENT_STATUSES, RPN_SAN_TRANSIENT_STATUSES, @@ -252,7 +252,7 @@ const jsonContentHeaders = { /** Dedibox Phoenix API. */ export class API extends ParentAPI { /** Lists the available zones of the API. */ - public static readonly LOCALITIES: Zone[] = [ + public static readonly LOCALITIES: ScwZone[] = [ 'fr-par-1', 'fr-par-2', 'nl-ams-1', diff --git a/packages/clients/src/api/dedibox/v1/types.gen.ts b/packages/clients/src/api/dedibox/v1/types.gen.ts index d0cf94b97..7ecd51ed5 100644 --- a/packages/clients/src/api/dedibox/v1/types.gen.ts +++ b/packages/clients/src/api/dedibox/v1/types.gen.ts @@ -1,6 +1,6 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { Money, Zone } from '../../../bridge' +import type { Money, Zone as ScwZone } from '../../../bridge' export type AttachFailoverIPToMacAddressRequestMacType = | 'mac_type_unknown' @@ -652,7 +652,7 @@ export interface Server { /** Network interfaces of the server. */ interfaces: NetworkInterface[] /** The zone in which is the server. */ - zone: Zone + zone: ScwZone /** Options subscribe on the server. */ options: ServerOption[] /** Service level of the server. */ @@ -711,7 +711,7 @@ export interface RpnSanServer { /** RPN SANs linked to the RPN SAN server. */ sans: RpnSan[] /** The RPN SAN server zone. */ - zone: Zone + zone: ScwZone } export interface RpnV2Group { @@ -952,7 +952,7 @@ export interface RpnServerCapability { /** Server datacenter name. */ datacenterName: string /** Server zone. */ - zone: Zone + zone: ScwZone /** Private IP address (if rpn compatiblle). */ ipAddress?: string /** Supported rpn version. */ @@ -1023,7 +1023,7 @@ export interface ServerSummary { /** Network interfaces of the server. */ interfaces: NetworkInterface[] /** The zone in which is the server. */ - zone: Zone + zone: ScwZone /** Service level of the server. */ level?: ServiceLevel /** Whether the server is outsourced or not. */ @@ -1110,7 +1110,7 @@ export interface UpdatableRaidArray { export type AttachFailoverIPToMacAddressRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the failover IP. */ ipId: number /** A mac type. */ @@ -1121,7 +1121,7 @@ export type AttachFailoverIPToMacAddressRequest = { export type AttachFailoverIPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: number /** List of ID of failovers IP to attach. */ @@ -1220,14 +1220,14 @@ export interface CanOrderResponse { export type CancelServerInstallRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID of the server to cancel install. */ serverId: number } export type CreateFailoverIPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Failover IP offer ID. */ offerId: number /** Project ID. */ @@ -1243,7 +1243,7 @@ export interface CreateFailoverIPsResponse { export type CreateServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Offer ID of the new server. */ offerId: number /** Server option IDs of the new server. */ @@ -1256,49 +1256,49 @@ export type CreateServerRequest = { export type DeleteFailoverIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the failover IP to delete. */ ipId: number } export type DeleteServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to delete. */ serverId: number } export type DeleteServiceRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the service. */ serviceId: number } export type DetachFailoverIPFromMacAddressRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the failover IP. */ ipId: number } export type DetachFailoverIPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** List of IDs of failovers IP to detach. */ fipsIds: number[] } export type GetBMCAccessRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to get BMC access. */ serverId: number } export type GetFailoverIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the failover IP. */ ipId: number } @@ -1312,7 +1312,7 @@ export interface GetIPv6BlockQuotasResponse { export type GetOSRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the OS. */ osId: number /** ID of the server. */ @@ -1323,7 +1323,7 @@ export type GetOSRequest = { export type GetOfferRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of offer. */ offerId: number /** Project ID. */ @@ -1332,20 +1332,20 @@ export type GetOfferRequest = { export type GetOrderedServiceRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone orderedServiceId: number } export type GetRaidRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: number } export type GetRemainingQuotaRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Project ID. */ projectId?: string } @@ -1363,7 +1363,7 @@ export interface GetRemainingQuotaResponse { export type GetRescueRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to get rescue. */ serverId: number } @@ -1377,14 +1377,14 @@ export interface GetRpnStatusResponse { export type GetServerBackupRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID of the backup. */ serverId: number } export type GetServerDefaultPartitioningRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: number /** OS ID of the default partitioning. */ @@ -1393,21 +1393,21 @@ export type GetServerDefaultPartitioningRequest = { export type GetServerInstallRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID of the server to install. */ serverId: number } export type GetServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: number } export type GetServiceRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the service. */ serviceId: number } @@ -1472,7 +1472,7 @@ export type IPv6BlockApiUpdateIPv6BlockRequest = { export type InstallServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to install. */ serverId: number /** OS ID to install on the server. */ @@ -1511,7 +1511,7 @@ export interface Invoice { export type ListFailoverIPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** Number of failovers IP per page. */ @@ -1557,7 +1557,7 @@ export interface ListIpsResponse { export type ListOSRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** Number of OS per page. */ @@ -1581,7 +1581,7 @@ export interface ListOSResponse { export type ListOffersRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** Number of offer per page. */ @@ -1697,7 +1697,7 @@ export interface ListRpnV2MembersResponse { export type ListServerDisksRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID of the server disks. */ serverId: number /** Page number. */ @@ -1717,7 +1717,7 @@ export interface ListServerDisksResponse { export type ListServerEventsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID of the server events. */ serverId: number /** Page number. */ @@ -1737,7 +1737,7 @@ export interface ListServerEventsResponse { export type ListServersRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** Number of server per page. */ @@ -1759,7 +1759,7 @@ export interface ListServersResponse { export type ListServicesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Page number. */ page?: number /** Number of service per page. */ @@ -1779,7 +1779,7 @@ export interface ListServicesResponse { export type ListSubscribableServerOptionsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID of the subscribable server options. */ serverId: number /** Page number. */ @@ -1840,7 +1840,7 @@ export interface Raid { export type RebootServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to reboot. */ serverId: number } @@ -2198,7 +2198,7 @@ export interface ServerInstall { export type StartBMCAccessRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to start the BMC access. */ serverId: number /** The IP authorized to connect to the given server. */ @@ -2207,7 +2207,7 @@ export type StartBMCAccessRequest = { export type StartRescueRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to start rescue. */ serverId: number /** OS ID to use to start rescue. */ @@ -2216,35 +2216,35 @@ export type StartRescueRequest = { export type StartServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to start. */ serverId: number } export type StopBMCAccessRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to stop BMC access. */ serverId: number } export type StopRescueRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server to stop rescue. */ serverId: number } export type StopServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to stop. */ serverId: number } export type SubscribeServerOptionRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to subscribe server option. */ serverId: number /** Option ID to subscribe. */ @@ -2253,7 +2253,7 @@ export type SubscribeServerOptionRequest = { export type SubscribeStorageOptionsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID of the storage options to subscribe. */ serverId: number /** Option IDs of the storage options to subscribe. */ @@ -2267,7 +2267,7 @@ export interface SubscribeStorageOptionsResponse { export type UpdateRaidRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the server. */ serverId: number /** RAIDs to update. */ @@ -2276,7 +2276,7 @@ export type UpdateRaidRequest = { export type UpdateReverseRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the IP. */ ipId: number /** Reverse to apply on the IP. */ @@ -2285,7 +2285,7 @@ export type UpdateReverseRequest = { export type UpdateServerBackupRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to update backup. */ serverId: number /** Password of the server backup. */ @@ -2298,7 +2298,7 @@ export type UpdateServerBackupRequest = { export type UpdateServerRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to update. */ serverId: number /** Hostname of the server to update. */ @@ -2309,7 +2309,7 @@ export type UpdateServerRequest = { export type UpdateServerTagsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Server ID to update the tags. */ serverId: number /** Tags of server to update. */ diff --git a/packages/clients/src/api/edge_services/v1alpha1/index.gen.ts b/packages/clients/src/api/edge_services/v1alpha1/index.gen.ts index 13bc235ce..1d3db498f 100644 --- a/packages/clients/src/api/edge_services/v1alpha1/index.gen.ts +++ b/packages/clients/src/api/edge_services/v1alpha1/index.gen.ts @@ -69,6 +69,7 @@ export type { Plan, PlanDetails, PlanName, + PlanUsageDetails, PurgeRequest, PurgeRequestStatus, ScalewayLb, diff --git a/packages/clients/src/api/edge_services/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/edge_services/v1alpha1/marshalling.gen.ts index 0d16b23b3..66e2be32a 100644 --- a/packages/clients/src/api/edge_services/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/edge_services/v1alpha1/marshalling.gen.ts @@ -5,6 +5,7 @@ import { resolveOneOf, unmarshalArrayOfObject, unmarshalDate, + unmarshalMapOfObject, unmarshalMoney, } from '../../../bridge' import type { DefaultValues } from '../../../bridge' @@ -39,6 +40,7 @@ import type { PipelineStages, Plan, PlanDetails, + PlanUsageDetails, PurgeRequest, ScalewayLb, ScalewayLbBackendConfig, @@ -323,9 +325,22 @@ const unmarshalPlanDetails = (data: unknown): PlanDetails => { packageGb: data.package_gb, pipelineLimit: data.pipeline_limit, planName: data.plan_name, + wafRequests: data.waf_requests, } as PlanDetails } +const unmarshalPlanUsageDetails = (data: unknown): PlanUsageDetails => { + if (!isJSONObject(data)) { + throw new TypeError( + `Unmarshalling the type 'PlanUsageDetails' failed as data isn't a dictionary.`, + ) + } + + return { + planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : undefined, + } as PlanUsageDetails +} + export const unmarshalGetBillingResponse = ( data: unknown, ): GetBillingResponse => { @@ -340,6 +355,7 @@ export const unmarshalGetBillingResponse = ( ? unmarshalPlanDetails(data.current_plan) : undefined, currentPlanCacheUsage: data.current_plan_cache_usage, + currentPlanWafUsage: data.current_plan_waf_usage, extraCacheCost: data.extra_cache_cost ? unmarshalMoney(data.extra_cache_cost) : undefined, @@ -347,9 +363,18 @@ export const unmarshalGetBillingResponse = ( extraPipelinesCost: data.extra_pipelines_cost ? unmarshalMoney(data.extra_pipelines_cost) : undefined, + extraWafCost: data.extra_waf_cost + ? unmarshalMoney(data.extra_waf_cost) + : undefined, + extraWafUsage: data.extra_waf_usage, pipelineNumber: data.pipeline_number, planCost: data.plan_cost ? unmarshalMoney(data.plan_cost) : undefined, + plansUsageDetails: unmarshalMapOfObject( + data.plans_usage_details, + unmarshalPlanUsageDetails, + ), totalCost: data.total_cost ? unmarshalMoney(data.total_cost) : undefined, + wafAddOn: data.waf_add_on ? unmarshalMoney(data.waf_add_on) : undefined, } as GetBillingResponse } diff --git a/packages/clients/src/api/edge_services/v1alpha1/types.gen.ts b/packages/clients/src/api/edge_services/v1alpha1/types.gen.ts index 8ec548349..2e350598c 100644 --- a/packages/clients/src/api/edge_services/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/edge_services/v1alpha1/types.gen.ts @@ -297,6 +297,16 @@ export interface PlanDetails { packageGb: number /** Number of pipelines included in subscription plan. */ pipelineLimit: number + /** Number of WAF requests included in subscription plan. */ + wafRequests: number +} + +export interface PlanUsageDetails { + /** + * Cost to date (this month) for the corresponding Edge Services subscription + * plan. + */ + planCost?: Money } export interface PipelineStages { @@ -562,6 +572,31 @@ export interface GetBillingResponse { * included in the subscription plans. */ extraCacheCost?: Money + /** + * Total number of requests processed by the WAF since the beginning of the + * current month, for the active subscription plan. + */ + currentPlanWafUsage: number + /** + * Total number of extra requests processed by the WAF from the beginning of + * the month, not included in the subscription plans. + */ + extraWafUsage: number + /** + * Cost to date (this month) of the extra requests processed by the WAF that + * were not included in the subscription plans. + */ + extraWafCost?: Money + /** + * Cost of activating WAF add-on (where subscription plan does not include + * WAF). + */ + wafAddOn?: Money + /** + * Detailed costs and usage for all Edge Services subscription plans that were + * activated during the month. + */ + plansUsageDetails: Record /** * Total cost to date (this month) of all Edge Services resources including * active subscription plan, previously active plans, extra pipelines and diff --git a/packages/clients/src/api/flexibleip/v1alpha1/api.gen.ts b/packages/clients/src/api/flexibleip/v1alpha1/api.gen.ts index 871bb51eb..3e3b9133c 100644 --- a/packages/clients/src/api/flexibleip/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/flexibleip/v1alpha1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { WaitForOptions, Zone } from '../../../bridge' +import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { FLEXIBLE_IP_TRANSIENT_STATUSES } from './content.gen' import { marshalAttachFlexibleIPRequest, @@ -52,7 +52,7 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available zones of the API. */ - public static readonly LOCALITIES: Zone[] = [ + public static readonly LOCALITIES: ScwZone[] = [ 'fr-par-1', 'fr-par-2', 'nl-ams-1', diff --git a/packages/clients/src/api/flexibleip/v1alpha1/types.gen.ts b/packages/clients/src/api/flexibleip/v1alpha1/types.gen.ts index 17a506913..71c8ccf47 100644 --- a/packages/clients/src/api/flexibleip/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/flexibleip/v1alpha1/types.gen.ts @@ -1,6 +1,6 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { Zone } from '../../../bridge' +import type { Zone as ScwZone } from '../../../bridge' export type FlexibleIPStatus = | 'unknown' @@ -37,7 +37,7 @@ export interface MACAddress { /** Date on which the virtual MAC was created. */ createdAt?: Date /** MAC address IP Availability Zone. */ - zone: Zone + zone: ScwZone } export interface FlexibleIP { @@ -75,12 +75,12 @@ export interface FlexibleIP { /** Reverse DNS value. */ reverse: string /** Availability Zone of the flexible IP. */ - zone: Zone + zone: ScwZone } export type AttachFlexibleIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** * Multiple IDs can be provided, but note that flexible IPs must belong to the * same MAC group (see details about MAC groups). @@ -99,7 +99,7 @@ export interface AttachFlexibleIPsResponse { export type CreateFlexibleIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the project to associate with the Flexible IP. */ projectId?: string /** Flexible IP description (max. of 255 characters). */ @@ -116,14 +116,14 @@ export type CreateFlexibleIPRequest = { export type DeleteFlexibleIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the flexible IP to delete. */ fipId: string } export type DeleteMACAddrRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** * If the flexible IP belongs to a MAC group, the MAC will be removed from * both the MAC group and flexible IP. @@ -133,7 +133,7 @@ export type DeleteMACAddrRequest = { export type DetachFlexibleIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** * List of flexible IP IDs to detach from a server. Multiple IDs can be * provided. Note that flexible IPs must belong to the same MAC group. @@ -150,7 +150,7 @@ export interface DetachFlexibleIPsResponse { export type DuplicateMACAddrRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Note that the flexible IPs need to be attached to the same server. */ fipId: string /** Note that flexible IPs need to be attached to the same server. */ @@ -159,7 +159,7 @@ export type DuplicateMACAddrRequest = { export type GenerateMACAddrRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the flexible IP for which to generate a virtual MAC. */ fipId: string /** TODO. */ @@ -168,14 +168,14 @@ export type GenerateMACAddrRequest = { export type GetFlexibleIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the flexible IP. */ fipId: string } export type ListFlexibleIPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Sort order of the returned flexible IPs. */ orderBy?: ListFlexibleIPsRequestOrderBy /** Page number. */ @@ -212,14 +212,14 @@ export interface ListFlexibleIPsResponse { export type MoveMACAddrRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone fipId: string dstFipId: string } export type UpdateFlexibleIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the flexible IP to update. */ fipId: string /** Flexible IP description (max. 255 characters). */ diff --git a/packages/clients/src/api/function/v1beta1/api.gen.ts b/packages/clients/src/api/function/v1beta1/api.gen.ts index edff49ab4..1b2d3d0f1 100644 --- a/packages/clients/src/api/function/v1beta1/api.gen.ts +++ b/packages/clients/src/api/function/v1beta1/api.gen.ts @@ -8,7 +8,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { CRON_TRANSIENT_STATUSES, DOMAIN_TRANSIENT_STATUSES, @@ -105,7 +105,11 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] protected pageOfListNamespaces = ( request: Readonly = {}, diff --git a/packages/clients/src/api/function/v1beta1/types.gen.ts b/packages/clients/src/api/function/v1beta1/types.gen.ts index f628ee517..f28c4eb63 100644 --- a/packages/clients/src/api/function/v1beta1/types.gen.ts +++ b/packages/clients/src/api/function/v1beta1/types.gen.ts @@ -1,6 +1,6 @@ // 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 } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' export type CronStatus = | 'unknown' @@ -288,7 +288,7 @@ export interface Function { /** Secret environment variables of the function. */ secretEnvironmentVariables: SecretHashedValue[] /** Region in which the function is deployed. */ - region: Region + region: ScwRegion /** * Possible values: * @@ -332,7 +332,7 @@ export interface Namespace { /** Secret environment variables of the namespace. */ secretEnvironmentVariables: SecretHashedValue[] /** Region in which the namespace is located. */ - region: Region + region: ScwRegion /** [ALPHA] List of tags applied to the Serverless Function Namespace. */ tags: string[] /** Creation date of the namespace. */ @@ -416,7 +416,7 @@ export type CreateCronRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the function to use the cron with. */ functionId: string /** Schedule of the cron in UNIX cron format. */ @@ -432,7 +432,7 @@ export type CreateDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hostame to create. */ hostname: string /** UUID of the function to associate the domain with. */ @@ -444,7 +444,7 @@ export type CreateFunctionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Name of the function to create. */ name?: string /** UUID of the namespace the function will be created in. */ @@ -485,7 +485,7 @@ export type CreateNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion name?: string /** Environment variables of the namespace. */ environmentVariables?: Record @@ -504,7 +504,7 @@ export type CreateTokenRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** * UUID of the function to associate the token with. * @@ -528,7 +528,7 @@ export type CreateTriggerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Name of the trigger. */ name: string /** ID of the function to trigger. */ @@ -563,7 +563,7 @@ export type DeleteCronRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the cron to delete. */ cronId: string } @@ -573,7 +573,7 @@ export type DeleteDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the domain to delete. */ domainId: string } @@ -583,7 +583,7 @@ export type DeleteFunctionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the function to delete. */ functionId: string } @@ -593,7 +593,7 @@ export type DeleteNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the namespace. */ namespaceId: string } @@ -603,7 +603,7 @@ export type DeleteTokenRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the token to delete. */ tokenId: string } @@ -613,7 +613,7 @@ export type DeleteTriggerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the trigger to delete. */ triggerId: string } @@ -623,7 +623,7 @@ export type DeployFunctionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the function to deploy. */ functionId: string } @@ -638,7 +638,7 @@ export type GetCronRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the cron to get. */ cronId: string } @@ -648,7 +648,7 @@ export type GetDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the domain to get. */ domainId: string } @@ -658,7 +658,7 @@ export type GetFunctionDownloadURLRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the function to get the the download URL for. */ functionId: string } @@ -668,7 +668,7 @@ export type GetFunctionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the function. */ functionId: string } @@ -678,7 +678,7 @@ export type GetFunctionUploadURLRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the function to get the upload URL for. */ functionId: string /** Size of the archive to upload in bytes. */ @@ -690,7 +690,7 @@ export type GetNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the namespace. */ namespaceId: string } @@ -700,7 +700,7 @@ export type GetTokenRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the token to get. */ tokenId: string } @@ -710,7 +710,7 @@ export type GetTriggerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the trigger to get. */ triggerId: string } @@ -720,7 +720,7 @@ export type ListCronsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number. */ page?: number /** Number of crons per page. */ @@ -743,7 +743,7 @@ export type ListDomainsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number. */ page?: number /** Number of domains per page. */ @@ -766,7 +766,7 @@ export type ListFunctionRuntimesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion } export interface ListFunctionRuntimesResponse { @@ -781,7 +781,7 @@ export type ListFunctionsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number. */ page?: number /** Number of functions per page. */ @@ -810,7 +810,7 @@ export type ListNamespacesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number. */ page?: number /** Number of namespaces per page. */ @@ -836,7 +836,7 @@ export type ListTokensRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number. */ page?: number /** Number of tokens per page. */ @@ -859,7 +859,7 @@ export type ListTriggersRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number to return. */ page?: number /** Maximum number of triggers to return per page. */ @@ -901,7 +901,7 @@ export type UpdateCronRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the cron to update. */ cronId: string /** UUID of the function to use the cron with. */ @@ -919,7 +919,7 @@ export type UpdateFunctionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the function to update. */ functionId: string /** Environment variables of the function to update. */ @@ -961,7 +961,7 @@ export type UpdateNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the namespapce. */ namespaceId: string /** Environment variables of the namespace. */ @@ -979,7 +979,7 @@ export type UpdateTriggerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the trigger to update. */ triggerId: string /** Name of the trigger. */ diff --git a/packages/clients/src/api/iot/v1/api.gen.ts b/packages/clients/src/api/iot/v1/api.gen.ts index e13703e03..985b31a4c 100644 --- a/packages/clients/src/api/iot/v1/api.gen.ts +++ b/packages/clients/src/api/iot/v1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { HUB_TRANSIENT_STATUSES } from './content.gen' import { marshalCreateDeviceRequest, @@ -108,7 +108,7 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par'] + public static readonly LOCALITIES: ScwRegion[] = ['fr-par'] protected pageOfListHubs = (request: Readonly = {}) => this.client.fetch( diff --git a/packages/clients/src/api/iot/v1/types.gen.ts b/packages/clients/src/api/iot/v1/types.gen.ts index ef340f818..11284f861 100644 --- a/packages/clients/src/api/iot/v1/types.gen.ts +++ b/packages/clients/src/api/iot/v1/types.gen.ts @@ -1,6 +1,6 @@ // 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, TimeSeries } from '../../../bridge' +import type { Region as ScwRegion, TimeSeries } from '../../../bridge' export type DeviceMessageFiltersRulePolicy = 'unknown' | 'accept' | 'reject' @@ -214,7 +214,7 @@ export interface Hub { /** Hub events topic prefix. */ eventsTopicPrefix: string /** Region of the Hub. */ - region: Region + region: ScwRegion /** Hub creation date. */ createdAt?: Date /** Hub last modification date. */ @@ -345,7 +345,7 @@ export type CreateDeviceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Device name. */ name?: string /** Hub ID of the device. */ @@ -381,7 +381,7 @@ export type CreateHubRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hub name (up to 255 characters). */ name?: string /** @@ -409,7 +409,7 @@ export type CreateNetworkRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Network name. */ name?: string /** Type of network to connect with. */ @@ -432,7 +432,7 @@ export type CreateRouteRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Route name. */ name?: string /** Hub ID of the route. */ @@ -470,7 +470,7 @@ export type DeleteDeviceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Device ID. */ deviceId: string } @@ -480,7 +480,7 @@ export type DeleteHubRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hub ID. */ hubId: string /** @@ -495,7 +495,7 @@ export type DeleteNetworkRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Network ID. */ networkId: string } @@ -505,7 +505,7 @@ export type DeleteRouteRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Route ID. */ routeId: string } @@ -515,7 +515,7 @@ export type DeleteTwinDocumentRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Twin ID. */ twinId: string /** Name of the document. */ @@ -527,7 +527,7 @@ export type DeleteTwinDocumentsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Twin ID. */ twinId: string } @@ -537,7 +537,7 @@ export type DisableDeviceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Device ID. */ deviceId: string } @@ -547,7 +547,7 @@ export type DisableHubRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hub ID. */ hubId: string } @@ -557,7 +557,7 @@ export type EnableDeviceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Device ID. */ deviceId: string } @@ -567,7 +567,7 @@ export type EnableHubRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hub ID. */ hubId: string } @@ -577,7 +577,7 @@ export type GetDeviceCertificateRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Device ID. */ deviceId: string } @@ -594,7 +594,7 @@ export type GetDeviceMetricsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Device ID. */ deviceId: string /** Start date used to compute the best scale for the returned metrics. */ @@ -611,7 +611,7 @@ export type GetDeviceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Device ID. */ deviceId: string } @@ -621,7 +621,7 @@ export type GetHubCARequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion hubId: string } @@ -634,7 +634,7 @@ export type GetHubMetricsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hub ID. */ hubId: string /** Start date used to compute the best scale for returned metrics. */ @@ -651,7 +651,7 @@ export type GetHubRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hub ID. */ hubId: string } @@ -661,7 +661,7 @@ export type GetNetworkRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Network ID. */ networkId: string } @@ -671,7 +671,7 @@ export type GetRouteRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Route ID. */ routeId: string } @@ -681,7 +681,7 @@ export type GetTwinDocumentRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Twin ID. */ twinId: string /** Name of the document. */ @@ -693,7 +693,7 @@ export type ListDevicesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number to return, from the paginated results. */ page?: number /** Number of devices to return within a page. Maximum value is 100. */ @@ -722,7 +722,7 @@ export type ListHubsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number to return, from the paginated results. */ page?: number /** Number of Hubs to return within a page. Maximum value is 100. */ @@ -749,7 +749,7 @@ export type ListNetworksRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number to return, from the paginated results. */ page?: number /** Number of networks to return. The maximum value is 100. */ @@ -776,7 +776,7 @@ export type ListRoutesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number to return, from the paginated results. */ page?: number /** Number of routes to return within a page. Maximum value is 100. */ @@ -801,7 +801,7 @@ export type ListTwinDocumentsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Twin ID. */ twinId: string } @@ -816,7 +816,7 @@ export type PatchTwinDocumentRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Twin ID. */ twinId: string /** Name of the document. */ @@ -842,7 +842,7 @@ export type PutTwinDocumentRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Twin ID. */ twinId: string /** Name of the document. */ @@ -861,7 +861,7 @@ export type RenewDeviceCertificateRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Device ID. */ deviceId: string } @@ -919,7 +919,7 @@ export type SetDeviceCertificateRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Device ID. */ deviceId: string /** PEM-encoded custom certificate. */ @@ -936,7 +936,7 @@ export type SetHubCARequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Hub ID. */ hubId: string /** CA's PEM-encoded certificate. */ @@ -965,7 +965,7 @@ export type UpdateDeviceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Device ID. */ deviceId: string /** Description for the device. */ @@ -991,7 +991,7 @@ export type UpdateHubRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Hub you want to update. */ hubId: string /** Hub name (up to 255 characters). */ @@ -1018,7 +1018,7 @@ export type UpdateRouteRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Route id. */ routeId: string /** Route name. */ diff --git a/packages/clients/src/api/jobs/v1alpha1/api.gen.ts b/packages/clients/src/api/jobs/v1alpha1/api.gen.ts index 1285fc6cc..2619bc9dd 100644 --- a/packages/clients/src/api/jobs/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/jobs/v1alpha1/api.gen.ts @@ -6,7 +6,7 @@ import { urlParams, validatePathParam, } from '../../../bridge' -import type { Region } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' import { marshalCreateJobDefinitionRequest, marshalCreateJobDefinitionSecretsRequest, @@ -64,7 +64,11 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] /** * Create a new job definition in a specified Project. diff --git a/packages/clients/src/api/jobs/v1alpha1/types.gen.ts b/packages/clients/src/api/jobs/v1alpha1/types.gen.ts index 9f2da386e..7b0a117fd 100644 --- a/packages/clients/src/api/jobs/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/jobs/v1alpha1/types.gen.ts @@ -1,6 +1,6 @@ // 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 } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' export type JobRunState = | 'unknown_state' @@ -90,7 +90,7 @@ export interface JobDefinition { * Region to target. If none is passed will use default region from the * config. */ - region: Region + region: ScwRegion } export interface JobRun { @@ -113,7 +113,7 @@ export interface JobRun { * Region to target. If none is passed will use default region from the * config. */ - region: Region + region: ScwRegion } export interface Resource { @@ -131,7 +131,7 @@ export type CreateJobDefinitionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Name of the job definition. */ name?: string /** CPU limit of the job. */ @@ -164,7 +164,7 @@ export type CreateJobDefinitionSecretsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job definition. */ jobDefinitionId: string /** List of secrets to inject into the job. */ @@ -181,7 +181,7 @@ export type DeleteJobDefinitionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job definition to delete. */ jobDefinitionId: string } @@ -191,7 +191,7 @@ export type DeleteJobDefinitionSecretRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job definition. */ jobDefinitionId: string /** UUID of the secret reference within the job. */ @@ -203,7 +203,7 @@ export type GetJobDefinitionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job definition to get. */ jobDefinitionId: string } @@ -213,7 +213,7 @@ export type GetJobDefinitionSecretRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job definition. */ jobDefinitionId: string /** UUID of the secret reference within the job. */ @@ -225,7 +225,7 @@ export type GetJobRunRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job run to get. */ jobRunId: string } @@ -235,7 +235,7 @@ export type GetJobsLimitsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion } export interface JobsLimits { @@ -247,7 +247,7 @@ export type ListJobDefinitionSecretsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job definition. */ jobDefinitionId: string } @@ -264,7 +264,7 @@ export type ListJobDefinitionsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion page?: number pageSize?: number orderBy?: ListJobDefinitionsRequestOrderBy @@ -282,7 +282,7 @@ export type ListJobRunsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion page?: number pageSize?: number orderBy?: ListJobRunsRequestOrderBy @@ -302,7 +302,7 @@ export type ListJobsResourcesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion } export interface ListJobsResourcesResponse { @@ -314,7 +314,7 @@ export type StartJobDefinitionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job definition to start. */ jobDefinitionId: string /** Contextual startup command for this specific job run. */ @@ -334,7 +334,7 @@ export type StopJobRunRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job run to stop. */ jobRunId: string } @@ -344,7 +344,7 @@ export type UpdateJobDefinitionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job definition to update. */ jobDefinitionId: string /** Name of the job definition. */ @@ -373,7 +373,7 @@ export type UpdateJobDefinitionSecretRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the job definition. */ jobDefinitionId: string /** UUID of the secret reference within the job. */ diff --git a/packages/clients/src/api/k8s/v1/api.gen.ts b/packages/clients/src/api/k8s/v1/api.gen.ts index 143f14d1f..b6bcff6eb 100644 --- a/packages/clients/src/api/k8s/v1/api.gen.ts +++ b/packages/clients/src/api/k8s/v1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { CLUSTER_TRANSIENT_STATUSES, NODE_TRANSIENT_STATUSES, @@ -105,7 +105,11 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] protected pageOfListClusters = ( request: Readonly = {}, diff --git a/packages/clients/src/api/k8s/v1/marshalling.gen.ts b/packages/clients/src/api/k8s/v1/marshalling.gen.ts index 06e1e0c1a..46614bd64 100644 --- a/packages/clients/src/api/k8s/v1/marshalling.gen.ts +++ b/packages/clients/src/api/k8s/v1/marshalling.gen.ts @@ -321,6 +321,7 @@ export const unmarshalExternalNode = (data: unknown): ExternalNode => { cniPluginsVersion: data.cni_plugins_version, containerdVersion: data.containerd_version, externalIp: data.external_ip, + iamToken: data.iam_token, id: data.id, kubeToken: data.kube_token, kubeletConfig: data.kubelet_config, diff --git a/packages/clients/src/api/k8s/v1/types.gen.ts b/packages/clients/src/api/k8s/v1/types.gen.ts index 63017b5a6..f89a267ed 100644 --- a/packages/clients/src/api/k8s/v1/types.gen.ts +++ b/packages/clients/src/api/k8s/v1/types.gen.ts @@ -1,6 +1,6 @@ // 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, Zone } from '../../../bridge' +import type { Region as ScwRegion, Zone as ScwZone } from '../../../bridge' export type AutoscalerEstimator = 'unknown_estimator' | 'binpacking' @@ -280,7 +280,7 @@ export interface Pool { /** Pool upgrade policy. */ upgradePolicy?: PoolUpgradePolicy /** Zone in which the pool's nodes will be spawned. */ - zone: Zone + zone: ScwZone /** * - `l_ssd` is a local block storage which means your system is stored locally * on your node's hypervisor. This type is not available for all node types @@ -302,7 +302,7 @@ export interface Pool { */ publicIpDisabled: boolean /** Cluster region of the pool. */ - region: Region + region: ScwRegion } export interface ACLRuleRequest { @@ -473,7 +473,7 @@ export interface CreateClusterRequestPoolConfig { /** Pool upgrade policy. */ upgradePolicy?: CreateClusterRequestPoolConfigUpgradePolicy /** Zone in which the pool's nodes will be spawned. */ - zone: Zone + zone: ScwZone /** * - `l_ssd` is a local block storage which means your system is stored locally * on your node's hypervisor. This type is not available for all node types @@ -539,7 +539,7 @@ export interface Version { /** Label of the Kubernetes version. */ label: string /** Region in which this version is available. */ - region: Region + region: ScwRegion /** Supported Container Network Interface (CNI) plugins for this version. */ availableCnis: CNI[] /** Supported container runtimes for this version. */ @@ -564,7 +564,7 @@ export interface Cluster { /** Kubernetes version of the cluster. */ version: string /** Region in which the cluster is deployed. */ - region: Region + region: ScwRegion /** ID of the Organization owning the cluster. */ organizationId: string /** ID of the Project owning the cluster. */ @@ -630,7 +630,7 @@ export interface Node { */ providerId: string /** Cluster region of the node. */ - region: Region + region: ScwRegion /** Name of the node. */ name: string /** @deprecated Public IPv4 address of the node. */ @@ -754,7 +754,7 @@ export type AddClusterACLRulesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the cluster whose ACLs will be added. */ clusterId: string /** ACLs to add. */ @@ -771,7 +771,7 @@ export type AuthExternalNodeRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Pool the node will be attached to. */ poolId: string } @@ -781,7 +781,7 @@ export type CreateClusterRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** * @deprecated Organization ID in which the cluster will be created. * @@ -853,7 +853,7 @@ export type CreateExternalNodeRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion poolId: string } @@ -862,7 +862,7 @@ export type CreatePoolRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Cluster ID to which the pool will be attached. */ clusterId: string /** Pool name. */ @@ -910,7 +910,7 @@ export type CreatePoolRequest = { /** Pool upgrade policy. */ upgradePolicy?: CreatePoolRequestUpgradePolicy /** Zone in which the pool's nodes will be spawned. */ - zone?: Zone + zone?: ScwZone /** * - `l_ssd` is a local block storage which means your system is stored locally * on your node's hypervisor. This type is not available for all node types @@ -938,7 +938,7 @@ export type DeleteACLRuleRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the ACL rule to delete. */ aclId: string } @@ -948,7 +948,7 @@ export type DeleteClusterRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the cluster to delete. */ clusterId: string /** @@ -964,7 +964,7 @@ export type DeleteNodeRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the node to replace. */ nodeId: string /** @@ -981,7 +981,7 @@ export type DeletePoolRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the pool to delete. */ poolId: string } @@ -1000,6 +1000,7 @@ export interface ExternalNode { cniPluginsVersion: string nodeLabels: Record nodeTaints: ExternalNodeCoreV1Taint[] + iamToken: string } export interface ExternalNodeAuth { @@ -1012,7 +1013,7 @@ export type GetClusterKubeConfigRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Cluster ID for which to download the kubeconfig. */ clusterId: string /** Hide the legacy token from the kubeconfig. */ @@ -1024,7 +1025,7 @@ export type GetClusterRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the requested cluster. */ clusterId: string } @@ -1034,7 +1035,7 @@ export type GetNodeMetadataRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion } export type GetNodeRequest = { @@ -1042,7 +1043,7 @@ export type GetNodeRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the requested node. */ nodeId: string } @@ -1052,7 +1053,7 @@ export type GetPoolRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the requested pool. */ poolId: string } @@ -1062,7 +1063,7 @@ export type GetVersionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Requested version name. */ versionName: string } @@ -1072,7 +1073,7 @@ export type ListClusterACLRulesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the cluster whose ACLs will be listed. */ clusterId: string /** Page number for the returned ACLs. */ @@ -1093,7 +1094,7 @@ export type ListClusterAvailableTypesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Cluster ID for which the available Kubernetes types will be listed. */ clusterId: string } @@ -1110,7 +1111,7 @@ export type ListClusterAvailableVersionsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Cluster ID for which the available Kubernetes versions will be listed. */ clusterId: string } @@ -1125,7 +1126,7 @@ export type ListClusterTypesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Page number, from the paginated results, to return for cluster-types. */ page?: number /** Maximum number of clusters per page. */ @@ -1144,7 +1145,7 @@ export type ListClustersRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Organization ID on which to filter the returned clusters. */ organizationId?: string /** Project ID on which to filter the returned clusters. */ @@ -1183,7 +1184,7 @@ export type ListNodesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Cluster ID from which the nodes will be listed from. */ clusterId: string /** Pool ID on which to filter the returned nodes. */ @@ -1215,7 +1216,7 @@ export type ListPoolsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the cluster whose pools will be listed. */ clusterId: string /** Sort order of returned pools. */ @@ -1245,7 +1246,7 @@ export type ListVersionsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion } export interface ListVersionsResponse { @@ -1258,7 +1259,7 @@ export type MigrateClusterToSBSCSIRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** * Cluster ID for which the latest CSI compatible with Scaleway Block Storage * will be enabled. @@ -1286,7 +1287,7 @@ export type RebootNodeRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the node to reboot. */ nodeId: string } @@ -1296,7 +1297,7 @@ export type ReplaceNodeRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the node to replace. */ nodeId: string } @@ -1306,7 +1307,7 @@ export type ResetClusterAdminTokenRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Cluster ID on which the admin token will be renewed. */ clusterId: string } @@ -1316,7 +1317,7 @@ export type SetClusterACLRulesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the cluster whose ACLs will be set. */ clusterId: string /** ACLs to set. */ @@ -1333,7 +1334,7 @@ export type SetClusterTypeRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the cluster to migrate from one type to another. */ clusterId: string /** @@ -1348,7 +1349,7 @@ export type UpdateClusterRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the cluster to update. */ clusterId: string /** New external name for the cluster. */ @@ -1385,7 +1386,7 @@ export type UpdatePoolRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the pool to update. */ poolId: string /** New value for the pool autoscaling enablement. */ @@ -1414,7 +1415,7 @@ export type UpgradeClusterRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the cluster to upgrade. */ clusterId: string /** @@ -1435,7 +1436,7 @@ export type UpgradePoolRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the pool to upgrade. */ poolId: string /** New Kubernetes version for the pool. */ diff --git a/packages/clients/src/api/marketplace/v2/types.gen.ts b/packages/clients/src/api/marketplace/v2/types.gen.ts index 593e52442..131ffd8e9 100644 --- a/packages/clients/src/api/marketplace/v2/types.gen.ts +++ b/packages/clients/src/api/marketplace/v2/types.gen.ts @@ -1,6 +1,6 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { Zone } from '../../../bridge' +import type { Zone as ScwZone } from '../../../bridge' export type ListImagesRequestOrderBy = | 'name_asc' @@ -58,7 +58,7 @@ export interface LocalImage { /** Supported architecture for this local image. */ arch: string /** Availability Zone where this local image is available. */ - zone: Zone + zone: ScwZone /** This label can be used in the image field of the server creation request. */ label: string /** Type of this local image. */ @@ -139,7 +139,7 @@ export type ListLocalImagesRequest = { /** Ordering to use. */ orderBy?: ListLocalImagesRequestOrderBy /** Filter local images available on this Availability Zone. */ - zone?: Zone + zone?: ScwZone /** * Filter by image id. * diff --git a/packages/clients/src/api/mnq/v1beta1/api.gen.ts b/packages/clients/src/api/mnq/v1beta1/api.gen.ts index 443c71a7b..e9328a5dc 100644 --- a/packages/clients/src/api/mnq/v1beta1/api.gen.ts +++ b/packages/clients/src/api/mnq/v1beta1/api.gen.ts @@ -6,7 +6,7 @@ import { urlParams, validatePathParam, } from '../../../bridge' -import type { Region } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' import { marshalNatsApiCreateNatsAccountRequest, marshalNatsApiCreateNatsCredentialsRequest, @@ -79,7 +79,7 @@ const jsonContentHeaders = { */ export class NatsAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams'] + public static readonly LOCALITIES: ScwRegion[] = ['fr-par', 'nl-ams'] /** * Create a NATS account. Create a NATS account associated with a Project. @@ -291,7 +291,7 @@ export class NatsAPI extends ParentAPI { */ export class SnsAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams'] + public static readonly LOCALITIES: ScwRegion[] = ['fr-par', 'nl-ams'] /** * Activate Topics and Events. Activate Topics and Events for the specified @@ -486,7 +486,7 @@ export class SnsAPI extends ParentAPI { */ export class SqsAPI extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams'] + public static readonly LOCALITIES: ScwRegion[] = ['fr-par', 'nl-ams'] /** * Activate Queues. Activate Queues for the specified Project ID. Queues must diff --git a/packages/clients/src/api/mnq/v1beta1/types.gen.ts b/packages/clients/src/api/mnq/v1beta1/types.gen.ts index 09de3c093..fc718c620 100644 --- a/packages/clients/src/api/mnq/v1beta1/types.gen.ts +++ b/packages/clients/src/api/mnq/v1beta1/types.gen.ts @@ -1,6 +1,6 @@ // 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 } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' export type ListNatsAccountsRequestOrderBy = | 'created_at_asc' @@ -91,7 +91,7 @@ export interface NatsAccount { /** Project ID of the Project containing the NATS account. */ projectId: string /** Region where the NATS account is deployed. */ - region: Region + region: ScwRegion /** NATS account creation date. */ createdAt?: Date /** NATS account last modification date. */ @@ -126,7 +126,7 @@ export interface SnsCredentials { /** Project ID of the Project containing the credentials. */ projectId: string /** Region where the credentials exists. */ - region: Region + region: ScwRegion /** Credentials creation date. */ createdAt?: Date /** Credentials last modification date. */ @@ -152,7 +152,7 @@ export interface SqsCredentials { /** Project ID of the Project containing the credentials. */ projectId: string /** Region where the credentials exists. */ - region: Region + region: ScwRegion /** Credentials creation date. */ createdAt?: Date /** Credentials last modification date. */ @@ -200,7 +200,7 @@ export type NatsApiCreateNatsAccountRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** NATS account name. */ name?: string /** Project containing the NATS account. */ @@ -212,7 +212,7 @@ export type NatsApiCreateNatsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** NATS account containing the credentials. */ natsAccountId: string /** Name of the credentials. */ @@ -224,7 +224,7 @@ export type NatsApiDeleteNatsAccountRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the NATS account to delete. */ natsAccountId: string } @@ -234,7 +234,7 @@ export type NatsApiDeleteNatsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the credentials to delete. */ natsCredentialsId: string } @@ -244,7 +244,7 @@ export type NatsApiGetNatsAccountRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the NATS account to get. */ natsAccountId: string } @@ -254,7 +254,7 @@ export type NatsApiGetNatsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the credentials to get. */ natsCredentialsId: string } @@ -264,7 +264,7 @@ export type NatsApiListNatsAccountsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Include only NATS accounts in this Project. */ projectId?: string /** Page number to return. */ @@ -280,7 +280,7 @@ export type NatsApiListNatsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Include only NATS accounts in this Project. */ projectId?: string /** Include only credentials for this NATS account. */ @@ -298,7 +298,7 @@ export type NatsApiUpdateNatsAccountRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the NATS account to update. */ natsAccountId: string /** NATS account name. */ @@ -310,7 +310,7 @@ export type SnsApiActivateSnsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Project on which to activate the Topics and Events service. */ projectId?: string } @@ -320,7 +320,7 @@ export type SnsApiCreateSnsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Project containing the Topics and Events credentials. */ projectId?: string /** Name of the credentials. */ @@ -334,7 +334,7 @@ export type SnsApiDeactivateSnsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Project on which to deactivate the Topics and Events service. */ projectId?: string } @@ -344,7 +344,7 @@ export type SnsApiDeleteSnsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the credentials to delete. */ snsCredentialsId: string } @@ -354,7 +354,7 @@ export type SnsApiGetSnsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Topics and Events credentials to get. */ snsCredentialsId: string } @@ -364,7 +364,7 @@ export type SnsApiGetSnsInfoRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Project to retrieve Topics and Events info from. */ projectId?: string } @@ -374,7 +374,7 @@ export type SnsApiListSnsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Include only Topics and Events credentials in this Project. */ projectId?: string /** Page number to return. */ @@ -390,7 +390,7 @@ export type SnsApiUpdateSnsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Topics and Events credentials to update. */ snsCredentialsId: string /** Name of the credentials. */ @@ -403,7 +403,7 @@ export interface SnsInfo { /** Project ID of the Project containing the service. */ projectId: string /** Region of the service. */ - region: Region + region: ScwRegion /** Topics and Events creation date. */ createdAt?: Date /** Topics and Events last modification date. */ @@ -419,7 +419,7 @@ export type SqsApiActivateSqsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Project on which to activate the Queues service. */ projectId?: string } @@ -429,7 +429,7 @@ export type SqsApiCreateSqsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Project containing the Queues credentials. */ projectId?: string /** Name of the credentials. */ @@ -443,7 +443,7 @@ export type SqsApiDeactivateSqsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Project on which to deactivate the Queues service. */ projectId?: string } @@ -453,7 +453,7 @@ export type SqsApiDeleteSqsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the credentials to delete. */ sqsCredentialsId: string } @@ -463,7 +463,7 @@ export type SqsApiGetSqsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Queues credentials to get. */ sqsCredentialsId: string } @@ -473,7 +473,7 @@ export type SqsApiGetSqsInfoRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Project to retrieve Queues info from. */ projectId?: string } @@ -483,7 +483,7 @@ export type SqsApiListSqsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Include only Queues credentials in this Project. */ projectId?: string /** Page number to return. */ @@ -499,7 +499,7 @@ export type SqsApiUpdateSqsCredentialsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Queues credentials to update. */ sqsCredentialsId: string /** Name of the credentials. */ @@ -512,7 +512,7 @@ export interface SqsInfo { /** Project ID of the Project containing the service. */ projectId: string /** Region of the service. */ - region: Region + region: ScwRegion /** Queues creation date. */ createdAt?: Date /** Queues last modification date. */ diff --git a/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts b/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts index 6837d04f8..30117dc23 100644 --- a/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/mongodb/v1alpha1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { INSTANCE_TRANSIENT_STATUSES, SNAPSHOT_TRANSIENT_STATUSES, @@ -70,13 +70,13 @@ const jsonContentHeaders = { } /** - * Managed Database for MongoDB®. + * Managed MongoDB®. * * This API allows you to manage your Managed Databases for MongoDB®. */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par'] + public static readonly LOCALITIES: ScwRegion[] = ['fr-par'] protected pageOfListNodeTypes = ( request: Readonly = {}, diff --git a/packages/clients/src/api/mongodb/v1alpha1/types.gen.ts b/packages/clients/src/api/mongodb/v1alpha1/types.gen.ts index 806795949..161a37eb7 100644 --- a/packages/clients/src/api/mongodb/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/mongodb/v1alpha1/types.gen.ts @@ -1,6 +1,6 @@ // 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 } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' export type InstanceStatus = | 'unknown_status' @@ -184,7 +184,7 @@ export interface Instance { /** Creation date (must follow the ISO 8601 format). */ createdAt?: Date /** Region the Database Instance is in. */ - region: Region + region: ScwRegion } export interface NodeType { @@ -232,7 +232,7 @@ export interface Snapshot { /** Type of volume where data is stored - sbs_5k or sbs_15k. */ volumeType?: SnapshotVolumeType /** Region of the snapshot. */ - region: Region + region: ScwRegion } export interface User { @@ -263,7 +263,7 @@ export type CreateEndpointRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string /** EndpointSpec used to expose your Database Instance. */ @@ -275,7 +275,7 @@ export type CreateInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** The Project ID on which the Database Instance will be created. */ projectId?: string /** Name of the Database Instance. */ @@ -303,7 +303,7 @@ export type CreateSnapshotRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance to snapshot. */ instanceId: string /** Name of the snapshot. */ @@ -317,7 +317,7 @@ export type CreateUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance the user belongs to. */ instanceId: string /** Name of the database user. */ @@ -331,7 +331,7 @@ export type DeleteEndpointRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Endpoint to delete. */ endpointId: string } @@ -341,7 +341,7 @@ export type DeleteInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance to delete. */ instanceId: string } @@ -351,7 +351,7 @@ export type DeleteSnapshotRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the snapshot. */ snapshotId: string } @@ -361,7 +361,7 @@ export type DeleteUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance the user belongs to. */ instanceId: string /** Name of the database user. */ @@ -373,7 +373,7 @@ export type GetInstanceCertificateRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string } @@ -383,7 +383,7 @@ export type GetInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string } @@ -393,7 +393,7 @@ export type GetSnapshotRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the snapshot. */ snapshotId: string } @@ -403,7 +403,7 @@ export type ListInstancesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** List Database Instances that have a given tag. */ tags?: string[] /** Lists Database Instances that match a name pattern. */ @@ -430,7 +430,7 @@ export type ListNodeTypesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Defines whether or not to include disabled types. */ includeDisabledTypes?: boolean page?: number @@ -449,7 +449,7 @@ export type ListSnapshotsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Instance ID the snapshots belongs to. */ instanceId?: string /** Lists database snapshots that match a name pattern. */ @@ -476,7 +476,7 @@ export type ListUsersRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string /** Name of the user. */ @@ -499,7 +499,7 @@ export type ListVersionsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion version?: string page?: number pageSize?: number @@ -517,7 +517,7 @@ export type RestoreSnapshotRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the snapshot. */ snapshotId: string /** Name of the new Database Instance. */ @@ -535,7 +535,7 @@ export type UpdateInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance to update. */ instanceId: string /** Name of the Database Instance. */ @@ -549,7 +549,7 @@ export type UpdateSnapshotRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Snapshot. */ snapshotId: string /** Name of the snapshot. */ @@ -563,7 +563,7 @@ export type UpdateUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance the user belongs to. */ instanceId: string /** Name of the database user. */ @@ -577,7 +577,7 @@ export type UpgradeInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want to upgrade. */ instanceId: string /** diff --git a/packages/clients/src/api/rdb/v1/api.gen.ts b/packages/clients/src/api/rdb/v1/api.gen.ts index 0b08bf3ab..12e869d08 100644 --- a/packages/clients/src/api/rdb/v1/api.gen.ts +++ b/packages/clients/src/api/rdb/v1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { DATABASE_BACKUP_TRANSIENT_STATUSES, INSTANCE_LOG_TRANSIENT_STATUSES, @@ -174,7 +174,11 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] protected pageOfListDatabaseEngines = ( request: Readonly = {}, diff --git a/packages/clients/src/api/rdb/v1/types.gen.ts b/packages/clients/src/api/rdb/v1/types.gen.ts index 32f9b60a1..20a723223 100644 --- a/packages/clients/src/api/rdb/v1/types.gen.ts +++ b/packages/clients/src/api/rdb/v1/types.gen.ts @@ -1,6 +1,10 @@ // 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, TimeSeries, Zone } from '../../../bridge' +import type { + Region as ScwRegion, + Zone as ScwZone, + TimeSeries, +} from '../../../bridge' export type ACLRuleAction = 'allow' | 'deny' @@ -140,7 +144,7 @@ export interface EndpointPrivateNetworkDetails { /** CIDR notation of the endpoint IPv4 address. */ serviceIp: string /** Private network zone. */ - zone: Zone + zone: ScwZone /** How endpoint ips are provisioned. */ provisioningMode: EndpointPrivateNetworkDetailsProvisioningMode } @@ -333,7 +337,7 @@ export interface ReadReplica { /** Read replica status. */ status: ReadReplicaStatus /** Region the Read Replica is in. */ - region: Region + region: ScwRegion /** * Whether the replica is in the same availability zone as the main instance * nodes or not. @@ -464,7 +468,7 @@ export interface DatabaseBackup { /** Expiration date of the download link. */ downloadUrlExpiresAt?: Date /** Region of the database backup. */ - region: Region + region: ScwRegion /** Store logical backups in the same region as the source Database Instance. */ sameRegion: boolean } @@ -477,7 +481,7 @@ export interface DatabaseEngine { /** Available versions. */ versions: EngineVersion[] /** Region of this Database Instance. */ - region: Region + region: ScwRegion } export interface Database { @@ -510,7 +514,7 @@ export interface InstanceLog { /** Creation date (must follow the ISO 8601 format). */ createdAt?: Date /** Region the Database Instance is in. */ - region: Region + region: ScwRegion } export interface Instance { @@ -519,7 +523,7 @@ export interface Instance { /** Volumes of the Database Instance. */ volume?: Volume /** Region the Database Instance is in. */ - region: Region + region: ScwRegion /** UUID of the Database Instance. */ id: string /** Name of the Database Instance. */ @@ -590,7 +594,7 @@ export interface NodeType { /** Instance range associated with the NodeType offer. */ instanceRange: string /** Region the Node Type is in. */ - region: Region + region: ScwRegion } export interface Privilege { @@ -626,7 +630,7 @@ export interface Snapshot { /** Type of volume where data is stored (lssd, bssd or sbs). */ volumeType?: SnapshotVolumeType /** Region of this snapshot. */ - region: Region + region: ScwRegion } export interface User { @@ -662,7 +666,7 @@ export type AddInstanceACLRulesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want to add ACL rules to. */ instanceId: string /** ACL rules to add to the Database Instance. */ @@ -679,7 +683,7 @@ export type AddInstanceSettingsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want to add settings to. */ instanceId: string /** Settings to add to the Database Instance. */ @@ -696,7 +700,7 @@ export type ApplyInstanceMaintenanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want to apply maintenance. */ instanceId: string } @@ -706,7 +710,7 @@ export type CloneInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want to clone. */ instanceId: string /** Name of the Database Instance clone. */ @@ -720,7 +724,7 @@ export type CreateDatabaseBackupRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string /** Name of the database you want to back up. */ @@ -736,7 +740,7 @@ export type CreateDatabaseRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance where to create the database. */ instanceId: string /** Name of the database. */ @@ -748,7 +752,7 @@ export type CreateEndpointRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you to which you want to add an endpoint. */ instanceId: string /** Specification of the endpoint you want to create. */ @@ -760,7 +764,7 @@ export type CreateInstanceFromSnapshotRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Block snapshot of the Database Instance. */ snapshotId: string /** Name of the Database Instance created with the snapshot. */ @@ -779,7 +783,7 @@ export type CreateInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** * @deprecated Please use project_id instead. * @@ -839,7 +843,7 @@ export type CreateReadReplicaEndpointRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Read Replica. */ readReplicaId: string /** Specification of the endpoint you want to create. */ @@ -851,7 +855,7 @@ export type CreateReadReplicaRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want to create a Read Replica from. */ instanceId: string /** Specification of the endpoint you want to create. */ @@ -868,7 +872,7 @@ export type CreateSnapshotRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string /** Name of the snapshot. */ @@ -882,7 +886,7 @@ export type CreateUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance in which you want to create a user. */ instanceId: string /** Name of the user you want to create. */ @@ -902,7 +906,7 @@ export type DeleteDatabaseBackupRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the database backup to delete. */ databaseBackupId: string } @@ -912,7 +916,7 @@ export type DeleteDatabaseRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance where to delete the database. */ instanceId: string /** Name of the database to delete. */ @@ -924,7 +928,7 @@ export type DeleteEndpointRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** This endpoint can also be used to delete a Read Replica endpoint. */ endpointId: string } @@ -934,7 +938,7 @@ export type DeleteInstanceACLRulesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want to delete an ACL rule from. */ instanceId: string /** IP addresses defined in the ACL rules of the Database Instance. */ @@ -951,7 +955,7 @@ export type DeleteInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance to delete. */ instanceId: string } @@ -961,7 +965,7 @@ export type DeleteInstanceSettingsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance to delete settings from. */ instanceId: string /** Settings names to delete. */ @@ -978,7 +982,7 @@ export type DeleteReadReplicaRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Read Replica. */ readReplicaId: string } @@ -988,7 +992,7 @@ export type DeleteSnapshotRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the snapshot to delete. */ snapshotId: string } @@ -998,7 +1002,7 @@ export type DeleteUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance to delete the user from. */ instanceId: string /** Name of the user. */ @@ -1010,7 +1014,7 @@ export type ExportDatabaseBackupRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the database backup you want to export. */ databaseBackupId: string } @@ -1020,7 +1024,7 @@ export type GetDatabaseBackupRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the database backup. */ databaseBackupId: string } @@ -1030,7 +1034,7 @@ export type GetEndpointRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the endpoint you want to get. */ endpointId: string } @@ -1040,7 +1044,7 @@ export type GetInstanceCertificateRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string } @@ -1050,7 +1054,7 @@ export type GetInstanceLogRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the instance_log you want. */ instanceLogId: string } @@ -1060,7 +1064,7 @@ export type GetInstanceMetricsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string /** Start date to gather metrics from. */ @@ -1076,7 +1080,7 @@ export type GetInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string } @@ -1086,7 +1090,7 @@ export type GetReadReplicaRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Read Replica. */ readReplicaId: string } @@ -1096,7 +1100,7 @@ export type GetSnapshotRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the snapshot. */ snapshotId: string } @@ -1111,7 +1115,7 @@ export type ListDatabaseBackupsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Name of the database backups. */ name?: string /** Criteria to use when ordering database backups listing. */ @@ -1138,7 +1142,7 @@ export type ListDatabaseEnginesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Name of the database engine. */ name?: string /** Version of the database engine. */ @@ -1159,7 +1163,7 @@ export type ListDatabasesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance to list the databases of. */ instanceId: string /** Name of the database. */ @@ -1186,7 +1190,7 @@ export type ListInstanceACLRulesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string page?: number @@ -1205,7 +1209,7 @@ export type ListInstanceLogsDetailsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want logs of. */ instanceId: string } @@ -1220,7 +1224,7 @@ export type ListInstanceLogsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want logs of. */ instanceId: string /** Criteria to use when ordering Database Instance logs listing. */ @@ -1237,7 +1241,7 @@ export type ListInstancesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** List Database Instances that have a given tag. */ tags?: string[] /** Lists Database Instances that match a name pattern. */ @@ -1264,7 +1268,7 @@ export type ListNodeTypesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Defines whether or not to include disabled types. */ includeDisabledTypes: boolean page?: number @@ -1283,7 +1287,7 @@ export type ListPrivilegesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string /** Criteria to use when ordering privileges listing. */ @@ -1308,7 +1312,7 @@ export type ListSnapshotsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Name of the snapshot. */ name?: string /** Criteria to use when ordering snapshot listing. */ @@ -1335,7 +1339,7 @@ export type ListUsersRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string /** Name of the user. */ @@ -1358,7 +1362,7 @@ export type MigrateEndpointRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the endpoint you want to migrate. */ endpointId: string /** UUID of the instance you want to attach the endpoint to. */ @@ -1370,7 +1374,7 @@ export type PrepareInstanceLogsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want logs of. */ instanceId: string /** Start datetime of your log. (RFC 3339 format). */ @@ -1389,7 +1393,7 @@ export type PromoteReadReplicaRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Read Replica. */ readReplicaId: string } @@ -1399,7 +1403,7 @@ export type PurgeInstanceLogsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want logs of. */ instanceId: string /** Given log name to purge. */ @@ -1411,7 +1415,7 @@ export type RenewInstanceCertificateRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want logs of. */ instanceId: string } @@ -1421,7 +1425,7 @@ export type ResetReadReplicaRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Read Replica. */ readReplicaId: string } @@ -1431,7 +1435,7 @@ export type RestartInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want to restart. */ instanceId: string } @@ -1441,7 +1445,7 @@ export type RestoreDatabaseBackupRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Backup of a logical database. */ databaseBackupId: string /** @@ -1458,7 +1462,7 @@ export type SetInstanceACLRulesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance where the ACL rules must be set. */ instanceId: string /** ACL rules to define for the Database Instance. */ @@ -1475,7 +1479,7 @@ export type SetInstanceSettingsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance where the settings must be set. */ instanceId: string /** Settings to define for the Database Instance. */ @@ -1492,7 +1496,7 @@ export type SetPrivilegeRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance. */ instanceId: string /** Name of the database. */ @@ -1508,7 +1512,7 @@ export type UpdateDatabaseBackupRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the database backup to update. */ databaseBackupId: string /** Name of the Database Backup. */ @@ -1522,7 +1526,7 @@ export type UpdateInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance to update. */ instanceId: string /** In hours. */ @@ -1548,7 +1552,7 @@ export type UpdateSnapshotRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the snapshot to update. */ snapshotId: string /** Name of the snapshot. */ @@ -1562,7 +1566,7 @@ export type UpdateUserRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance the user belongs to. */ instanceId: string /** Name of the database user. */ @@ -1582,7 +1586,7 @@ export type UpgradeInstanceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Database Instance you want to upgrade. */ instanceId: string /** diff --git a/packages/clients/src/api/redis/v1/api.gen.ts b/packages/clients/src/api/redis/v1/api.gen.ts index 98f62c0b7..176c971ec 100644 --- a/packages/clients/src/api/redis/v1/api.gen.ts +++ b/packages/clients/src/api/redis/v1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { WaitForOptions, Zone } from '../../../bridge' +import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { CLUSTER_TRANSIENT_STATUSES } from './content.gen' import { marshalAddAclRulesRequest, @@ -82,7 +82,7 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available zones of the API. */ - public static readonly LOCALITIES: Zone[] = [ + public static readonly LOCALITIES: ScwZone[] = [ 'fr-par-1', 'fr-par-2', 'nl-ams-1', diff --git a/packages/clients/src/api/redis/v1/types.gen.ts b/packages/clients/src/api/redis/v1/types.gen.ts index 8b612e30e..26ac2397b 100644 --- a/packages/clients/src/api/redis/v1/types.gen.ts +++ b/packages/clients/src/api/redis/v1/types.gen.ts @@ -1,6 +1,6 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { TimeSeries, Zone } from '../../../bridge' +import type { Zone as ScwZone, TimeSeries } from '../../../bridge' export type AvailableClusterSettingPropertyType = | 'UNKNOWN' @@ -42,7 +42,7 @@ export interface PrivateNetwork { /** List of IPv4 CIDR notation addresses of the endpoint. */ serviceIps: string[] /** Zone of the Private Network. */ - zone: Zone + zone: ScwZone /** How your endpoint ips are provisioned. */ provisioningMode: PrivateNetworkProvisioningMode } @@ -158,7 +158,7 @@ export interface ClusterVersion { /** Redis™ logo url. */ logoUrl: string /** Zone of the Redis™ Database Instance. */ - zone: Zone + zone: ScwZone } export interface Cluster { @@ -191,7 +191,7 @@ export interface Cluster { /** Number of nodes of the Database Instance cluster. */ clusterSize: number /** Zone of the Database Instance. */ - zone: Zone + zone: ScwZone /** Name of the user associated to the cluster. */ userName: string /** List of engine versions the Database Instance can upgrade to. */ @@ -214,12 +214,12 @@ export interface NodeType { /** Defines whether node type is currently in beta. */ beta: boolean /** Zone of the node type. */ - zone: Zone + zone: ScwZone } export type AddAclRulesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the Database Instance you want to add ACL rules to. */ clusterId: string /** ACLs rules to add to the cluster. */ @@ -235,7 +235,7 @@ export interface AddAclRulesResponse { export type AddClusterSettingsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the Database Instance you want to add settings to. */ clusterId: string /** Settings to add to the cluster. */ @@ -244,7 +244,7 @@ export type AddClusterSettingsRequest = { export type AddEndpointsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the Database Instance you want to add endpoints to. */ clusterId: string /** Endpoints to add to the Database Instance. */ @@ -270,7 +270,7 @@ export interface ClusterSettingsResponse { export type CreateClusterRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Project ID in which to create the Database Instance. */ projectId?: string /** Name of the Database Instance. */ @@ -303,21 +303,21 @@ export type CreateClusterRequest = { export type DeleteAclRuleRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the ACL rule you want to delete. */ aclId: string } export type DeleteClusterRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the Database Instance to delete. */ clusterId: string } export type DeleteClusterSettingRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the Database Instance where the settings must be set. */ clusterId: string /** Setting name to delete. */ @@ -326,28 +326,28 @@ export type DeleteClusterSettingRequest = { export type DeleteEndpointRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the endpoint you want to delete. */ endpointId: string } export type GetAclRuleRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the ACL rule you want to get. */ aclId: string } export type GetClusterCertificateRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the cluster. */ clusterId: string } export type GetClusterMetricsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the cluster. */ clusterId: string /** Start date. */ @@ -360,21 +360,21 @@ export type GetClusterMetricsRequest = { export type GetClusterRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the cluster. */ clusterId: string } export type GetEndpointRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the endpoint you want to get. */ endpointId: string } export type ListClusterVersionsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Defines whether or not to include disabled Redis™ engine versions. */ includeDisabled: boolean /** Defines whether or not to include beta Redis™ engine versions. */ @@ -396,7 +396,7 @@ export interface ListClusterVersionsResponse { export type ListClustersRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Filter by Database Instance tags. */ tags?: string[] /** Filter by Database Instance names. */ @@ -422,7 +422,7 @@ export interface ListClustersResponse { export type ListNodeTypesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Defines whether or not to include disabled types. */ includeDisabledTypes: boolean page?: number @@ -438,7 +438,7 @@ export interface ListNodeTypesResponse { export type MigrateClusterRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the Database Instance to update. */ clusterId: string /** @@ -466,14 +466,14 @@ export type MigrateClusterRequest = { export type RenewClusterCertificateRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the cluster. */ clusterId: string } export type SetAclRulesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the Database Instance where the ACL rules have to be set. */ clusterId: string /** ACLs rules to define for the cluster. */ @@ -487,7 +487,7 @@ export interface SetAclRulesResponse { export type SetClusterSettingsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the Database Instance where the settings must be set. */ clusterId: string /** Settings to define for the Database Instance. */ @@ -496,7 +496,7 @@ export type SetClusterSettingsRequest = { export type SetEndpointsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the Database Instance where the endpoints have to be set. */ clusterId: string /** Endpoints to define for the Database Instance. */ @@ -510,7 +510,7 @@ export interface SetEndpointsResponse { export type UpdateClusterRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the Database Instance to update. */ clusterId: string /** Name of the Database Instance. */ @@ -525,7 +525,7 @@ export type UpdateClusterRequest = { export type UpdateEndpointRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** UUID of the endpoint you want to get. */ endpointId: string /** diff --git a/packages/clients/src/api/registry/v1/api.gen.ts b/packages/clients/src/api/registry/v1/api.gen.ts index fbb5aecba..ee1b9f9f2 100644 --- a/packages/clients/src/api/registry/v1/api.gen.ts +++ b/packages/clients/src/api/registry/v1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { IMAGE_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, @@ -56,7 +56,11 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] protected pageOfListNamespaces = ( request: Readonly = {}, diff --git a/packages/clients/src/api/registry/v1/types.gen.ts b/packages/clients/src/api/registry/v1/types.gen.ts index a146ca982..069a17c28 100644 --- a/packages/clients/src/api/registry/v1/types.gen.ts +++ b/packages/clients/src/api/registry/v1/types.gen.ts @@ -1,6 +1,6 @@ // 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 } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' export type ImageStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'locked' @@ -101,7 +101,7 @@ export interface Namespace { /** Number of images in the namespace. */ imageCount: number /** Region the namespace belongs to. */ - region: Region + region: ScwRegion } export interface Tag { @@ -129,7 +129,7 @@ export type CreateNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Name of the namespace. */ name?: string /** Description of the namespace. */ @@ -157,7 +157,7 @@ export type DeleteImageRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the image. */ imageId: string } @@ -167,7 +167,7 @@ export type DeleteNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the namespace. */ namespaceId: string } @@ -177,7 +177,7 @@ export type DeleteTagRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the tag. */ tagId: string /** @@ -192,7 +192,7 @@ export type GetImageRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the image. */ imageId: string } @@ -202,7 +202,7 @@ export type GetNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the namespace. */ namespaceId: string } @@ -212,7 +212,7 @@ export type GetTagRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the tag. */ tagId: string } @@ -222,7 +222,7 @@ export type ListImagesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** A positive integer to choose the page to display. */ page?: number /** @@ -258,7 +258,7 @@ export type ListNamespacesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** A positive integer to choose the page to display. */ page?: number /** @@ -292,7 +292,7 @@ export type ListTagsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the image. */ imageId: string /** A positive integer to choose the page to display. */ @@ -324,7 +324,7 @@ export type UpdateImageRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the image to update. */ imageId: string /** @@ -340,7 +340,7 @@ export type UpdateNamespaceRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the namespace to update. */ namespaceId: string /** Namespace description. */ diff --git a/packages/clients/src/api/secret/v1beta1/api.gen.ts b/packages/clients/src/api/secret/v1beta1/api.gen.ts index d44816e59..c118c7c66 100644 --- a/packages/clients/src/api/secret/v1beta1/api.gen.ts +++ b/packages/clients/src/api/secret/v1beta1/api.gen.ts @@ -6,7 +6,7 @@ import { urlParams, validatePathParam, } from '../../../bridge' -import type { Region } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' import { marshalAddSecretOwnerRequest, marshalCreateSecretRequest, @@ -66,7 +66,11 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw'] + public static readonly LOCALITIES: ScwRegion[] = [ + 'fr-par', + 'nl-ams', + 'pl-waw', + ] /** * Create a secret. Create a secret in a given region specified by the diff --git a/packages/clients/src/api/secret/v1beta1/types.gen.ts b/packages/clients/src/api/secret/v1beta1/types.gen.ts index 8bac2b849..1d4f5a970 100644 --- a/packages/clients/src/api/secret/v1beta1/types.gen.ts +++ b/packages/clients/src/api/secret/v1beta1/types.gen.ts @@ -1,6 +1,6 @@ // 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 } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' export type BrowseSecretsRequestOrderBy = | 'name_asc' @@ -156,7 +156,7 @@ export interface Secret { /** List of Scaleway resources that can access and manage the secret. */ usedBy: Product[] /** Region of the secret. */ - region: Region + region: ScwRegion } export type AccessSecretVersionByPathRequest = { @@ -164,7 +164,7 @@ export type AccessSecretVersionByPathRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** * The first version of the secret is numbered 1, and all subsequent revisions * augment by 1. Value can be either: @@ -187,7 +187,7 @@ export type AccessSecretVersionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string /** @@ -225,7 +225,7 @@ export type AddSecretOwnerRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string /** See `Product` enum for description of values. */ @@ -244,7 +244,7 @@ export type BrowseSecretsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Filter by Project ID (optional). */ projectId?: string orderBy?: BrowseSecretsRequestOrderBy @@ -272,7 +272,7 @@ export type CreateSecretRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Project containing the secret. */ projectId?: string /** Name of the secret. */ @@ -305,7 +305,7 @@ export type CreateSecretVersionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string /** The base64-encoded secret payload of the version. */ @@ -346,7 +346,7 @@ export type DeleteSecretRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string } @@ -356,7 +356,7 @@ export type DeleteSecretVersionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string /** @@ -375,7 +375,7 @@ export type DisableSecretVersionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string /** @@ -394,7 +394,7 @@ export type EnableSecretVersionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string /** @@ -413,7 +413,7 @@ export type GetSecretRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string } @@ -423,7 +423,7 @@ export type GetSecretVersionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string /** @@ -442,7 +442,7 @@ export type ListSecretTypesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Project to target. */ projectId?: string page?: number @@ -461,7 +461,7 @@ export type ListSecretVersionsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string page?: number @@ -482,7 +482,7 @@ export type ListSecretsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Filter by Organization ID (optional). */ organizationId?: string /** Filter by Project ID (optional). */ @@ -514,7 +514,7 @@ export type ListTagsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Project to target. */ projectId?: string page?: number @@ -533,7 +533,7 @@ export type ProtectSecretRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret to enable secret protection for. */ secretId: string } @@ -548,7 +548,7 @@ export type UnprotectSecretRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret to disable secret protection for. */ secretId: string } @@ -558,7 +558,7 @@ export type UpdateSecretRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string /** Secret's updated name (optional). */ @@ -581,7 +581,7 @@ export type UpdateSecretVersionRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the secret. */ secretId: string /** 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 bbccbe7c3..1ca21753e 100644 --- a/packages/clients/src/api/serverless_sqldb/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/serverless_sqldb/v1alpha1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { DATABASE_TRANSIENT_STATUSES } from './content.gen' import { marshalCreateDatabaseRequest, @@ -45,7 +45,7 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par'] + public static readonly LOCALITIES: ScwRegion[] = ['fr-par'] /** * Create a new Serverless SQL Database. You must provide the following diff --git a/packages/clients/src/api/serverless_sqldb/v1alpha1/types.gen.ts b/packages/clients/src/api/serverless_sqldb/v1alpha1/types.gen.ts index bce27d1f7..f6bf44dff 100644 --- a/packages/clients/src/api/serverless_sqldb/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/serverless_sqldb/v1alpha1/types.gen.ts @@ -1,6 +1,6 @@ // 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 } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' export type DatabaseBackupStatus = | 'unknown_status' @@ -54,7 +54,7 @@ export interface DatabaseBackup { /** Expiration date of the download URL. */ downloadUrlExpiresAt?: Date /** Region of the database backup. */ - region: Region + region: ScwRegion } export interface Database { @@ -74,7 +74,7 @@ export interface Database { /** Project ID the database belongs to. */ projectId: string /** Region of the database. */ - region: Region + region: ScwRegion /** Creation date. */ createdAt?: Date /** The minimum number of CPU units for your Serverless SQL Database. */ @@ -94,7 +94,7 @@ export type CreateDatabaseRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** The ID of your Scaleway project. */ projectId?: string /** The name of the Serverless SQL Database to be created. */ @@ -112,7 +112,7 @@ export type DeleteDatabaseRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Serverless SQL Database. */ databaseId: string } @@ -122,7 +122,7 @@ export type ExportDatabaseBackupRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Serverless SQL Database backup. */ backupId: string } @@ -132,7 +132,7 @@ export type GetDatabaseBackupRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Serverless SQL Database backup. */ backupId: string } @@ -142,7 +142,7 @@ export type GetDatabaseRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Serverless SQL DB database. */ databaseId: string } @@ -152,7 +152,7 @@ export type ListDatabaseBackupsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Filter by the UUID of the Scaleway organization. */ organizationId?: string /** Filter by the UUID of the Scaleway project. */ @@ -179,7 +179,7 @@ export type ListDatabasesRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Filter by the UUID of the Scaleway organization. */ organizationId?: string /** UUID of the Scaleway project. */ @@ -209,7 +209,7 @@ export type RestoreDatabaseFromBackupRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Serverless SQL Database. */ databaseId: string /** UUID of the Serverless SQL Database backup to restore. */ @@ -221,7 +221,7 @@ export type UpdateDatabaseRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** UUID of the Serverless SQL Database. */ databaseId: string /** The minimum number of CPU units for your Serverless SQL Database. */ diff --git a/packages/clients/src/api/tem/v1alpha1/api.gen.ts b/packages/clients/src/api/tem/v1alpha1/api.gen.ts index c07ef0526..3a0594d25 100644 --- a/packages/clients/src/api/tem/v1alpha1/api.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { Region, WaitForOptions } from '../../../bridge' +import type { Region as ScwRegion, WaitForOptions } from '../../../bridge' import { DOMAIN_TRANSIENT_STATUSES, EMAIL_TRANSIENT_STATUSES, @@ -84,7 +84,7 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available regions of the API. */ - public static readonly LOCALITIES: Region[] = ['fr-par'] + public static readonly LOCALITIES: ScwRegion[] = ['fr-par'] /** * Send an email. You must specify the `region`, the sender and the diff --git a/packages/clients/src/api/tem/v1alpha1/types.gen.ts b/packages/clients/src/api/tem/v1alpha1/types.gen.ts index 112008365..bb2974f50 100644 --- a/packages/clients/src/api/tem/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/tem/v1alpha1/types.gen.ts @@ -1,6 +1,6 @@ // 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 } from '../../../bridge' +import type { Region as ScwRegion } from '../../../bridge' export type BlocklistType = | 'unknown_type' @@ -317,7 +317,7 @@ export interface Domain { * Region to target. If none is passed will use default region from the * config. */ - region: Region + region: ScwRegion } export interface WebhookEvent { @@ -399,7 +399,7 @@ export type BulkCreateBlocklistsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Domain ID linked to the blocklist. */ domainId: string /** Email blocked by the blocklist. */ @@ -420,7 +420,7 @@ export type CancelEmailRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the email to cancel. */ emailId: string } @@ -430,7 +430,7 @@ export type CheckDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the domain to check. */ domainId: string } @@ -440,7 +440,7 @@ export type CreateDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the project to which the domain belongs. */ projectId?: string /** Fully qualified domain dame. */ @@ -456,7 +456,7 @@ export type CreateEmailRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Sender information. Must be from a checked domain declared in the Project. */ from: CreateEmailRequestAddress /** An array of the primary recipient's information. */ @@ -491,7 +491,7 @@ export type CreateWebhookRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Domain to watch for triggering events. */ domainId: string /** ID of the project to which the Webhook belongs. */ @@ -509,7 +509,7 @@ export type DeleteBlocklistRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the blocklist to delete. */ blocklistId: string } @@ -519,7 +519,7 @@ export type DeleteWebhookRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Webhook to delete. */ webhookId: string } @@ -544,7 +544,7 @@ export type GetDomainLastStatusRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the domain to delete. */ domainId: string } @@ -554,7 +554,7 @@ export type GetDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the domain. */ domainId: string } @@ -564,7 +564,7 @@ export type GetEmailRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the email to retrieve. */ emailId: string } @@ -574,7 +574,7 @@ export type GetProjectSettingsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the project. */ projectId?: string } @@ -584,7 +584,7 @@ export type GetStatisticsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** (Optional) Number of emails for this Project. */ projectId?: string /** @@ -605,7 +605,7 @@ export type GetWebhookRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Webhook to check. */ webhookId: string } @@ -615,7 +615,7 @@ export type ListBlocklistsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** (Optional) List blocklist corresponding to specific criteria. */ orderBy?: ListBlocklistsRequestOrderBy /** (Optional) Requested page number. Value must be greater or equal to 1. */ @@ -647,7 +647,7 @@ export type ListDomainsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** Requested page number. Value must be greater or equal to 1. */ page?: number /** Requested page size. Value must be between 1 and 1000. */ @@ -674,7 +674,7 @@ export type ListEmailsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion page?: number pageSize?: number /** (Optional) ID of the Project in which to list the emails. */ @@ -717,7 +717,7 @@ export type ListWebhookEventsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Webhook linked to the events. */ webhookId: string /** (Optional) List Webhook events corresponding to specific criteria. */ @@ -752,7 +752,7 @@ export type ListWebhooksRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** (Optional) List Webhooks corresponding to specific criteria. */ orderBy?: ListWebhooksRequestOrderBy /** (Optional) Requested page number. Value must be greater or equal to 1. */ @@ -784,7 +784,7 @@ export type RevokeDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the domain to delete. */ domainId: string } @@ -824,7 +824,7 @@ export type UpdateDomainRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the domain to update. */ domainId: string /** @@ -839,7 +839,7 @@ export type UpdateProjectSettingsRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the project. */ projectId?: string /** Periodic report update details - all fields are optional. */ @@ -851,7 +851,7 @@ export type UpdateWebhookRequest = { * Region to target. If none is passed will use default region from the * config. */ - region?: Region + region?: ScwRegion /** ID of the Webhook to update. */ webhookId: string /** Name of the Webhook to update. */ diff --git a/packages/clients/src/api/vpcgw/v1/api.gen.ts b/packages/clients/src/api/vpcgw/v1/api.gen.ts index 0885a4d91..5b5656b8f 100644 --- a/packages/clients/src/api/vpcgw/v1/api.gen.ts +++ b/packages/clients/src/api/vpcgw/v1/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { WaitForOptions, Zone } from '../../../bridge' +import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { GATEWAY_NETWORK_TRANSIENT_STATUSES, GATEWAY_TRANSIENT_STATUSES, @@ -109,7 +109,7 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available zones of the API. */ - public static readonly LOCALITIES: Zone[] = [ + public static readonly LOCALITIES: ScwZone[] = [ 'fr-par-1', 'fr-par-2', 'nl-ams-1', diff --git a/packages/clients/src/api/vpcgw/v1/types.gen.ts b/packages/clients/src/api/vpcgw/v1/types.gen.ts index 08af4af42..e3ec1b52a 100644 --- a/packages/clients/src/api/vpcgw/v1/types.gen.ts +++ b/packages/clients/src/api/vpcgw/v1/types.gen.ts @@ -1,6 +1,6 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { Zone } from '../../../bridge' +import type { Zone as ScwZone } from '../../../bridge' export type DHCPEntryType = 'unknown' | 'reservation' | 'lease' @@ -140,7 +140,7 @@ export interface DHCP { */ dnsLocalName: string /** Zone of this DHCP configuration. */ - zone: Zone + zone: ScwZone } export interface IpamConfig { @@ -182,7 +182,7 @@ export interface GatewayNetwork { /** IPAM IP configuration used. */ ipamConfig?: IpamConfig /** Zone of the GatewayNetwork connection. */ - zone: Zone + zone: ScwZone } export interface GatewayType { @@ -195,7 +195,7 @@ export interface GatewayType { */ bandwidth: number /** Zone the Public Gateway type is available in. */ - zone: Zone + zone: ScwZone } export interface IP { @@ -218,12 +218,12 @@ export interface IP { /** Public Gateway associated with the IP address. */ gatewayId?: string /** Zone of the IP address. */ - zone: Zone + zone: ScwZone } export type CreateDHCPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Project to create the DHCP configuration in. */ projectId?: string /** Subnet for the DHCP server. */ @@ -310,7 +310,7 @@ export interface DHCPEntry { /** Entry type, either static (DHCP reservation) or dynamic (DHCP lease). */ type: DHCPEntryType /** Zone of this DHCP entry. */ - zone: Zone + zone: ScwZone } export interface Gateway { @@ -362,7 +362,7 @@ export interface Gateway { */ ipMobilityEnabled: boolean /** Zone of the gateway. */ - zone: Zone + zone: ScwZone } export interface PATRule { @@ -383,7 +383,7 @@ export interface PATRule { /** Protocol the rule applies to. */ protocol: PATRuleProtocol /** Zone of the PAT rule. */ - zone: Zone + zone: ScwZone } export interface SetDHCPEntriesRequestEntry { @@ -419,7 +419,7 @@ export interface UpdateGatewayNetworkRequestIpamConfig { export type CreateDHCPEntryRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** GatewayNetwork on which to create a DHCP reservation. */ gatewayNetworkId: string /** MAC address to give a static entry to. */ @@ -430,7 +430,7 @@ export type CreateDHCPEntryRequest = { export type CreateGatewayNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Public Gateway to connect. */ gatewayId: string /** Private Network to connect. */ @@ -478,7 +478,7 @@ export type CreateGatewayNetworkRequest = { export type CreateGatewayRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Scaleway Project to create the gateway in. */ projectId?: string /** Name for the gateway. */ @@ -504,7 +504,7 @@ export type CreateGatewayRequest = { export type CreateIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Project to create the IP address in. */ projectId?: string /** Tags to give to the IP address. */ @@ -513,7 +513,7 @@ export type CreateIPRequest = { export type CreatePATRuleRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the Gateway on which to create the rule. */ gatewayId: string /** Public port to listen on. */ @@ -528,21 +528,21 @@ export type CreatePATRuleRequest = { export type DeleteDHCPEntryRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the DHCP entry to delete. */ dhcpEntryId: string } export type DeleteDHCPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** DHCP configuration ID to delete. */ dhcpId: string } export type DeleteGatewayNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the GatewayNetwork to delete. */ gatewayNetworkId: string /** @@ -554,7 +554,7 @@ export type DeleteGatewayNetworkRequest = { export type DeleteGatewayRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to delete. */ gatewayId: string /** @@ -566,70 +566,70 @@ export type DeleteGatewayRequest = { export type DeleteIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the IP address to delete. */ ipId: string } export type DeletePATRuleRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the PAT rule to delete. */ patRuleId: string } export type EnableIPMobilityRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to upgrade to IP mobility. */ gatewayId: string } export type GetDHCPEntryRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the DHCP entry to fetch. */ dhcpEntryId: string } export type GetDHCPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the DHCP configuration to fetch. */ dhcpId: string } export type GetGatewayNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the GatewayNetwork to fetch. */ gatewayNetworkId: string } export type GetGatewayRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to fetch. */ gatewayId: string } export type GetIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the IP address to get. */ ipId: string } export type GetPATRuleRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the PAT rule to get. */ patRuleId: string } export type ListDHCPEntriesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Order in which to return results. */ orderBy?: ListDHCPEntriesRequestOrderBy /** Page number. */ @@ -657,7 +657,7 @@ export interface ListDHCPEntriesResponse { export type ListDHCPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Order in which to return results. */ orderBy?: ListDHCPsRequestOrderBy /** Page number. */ @@ -689,7 +689,7 @@ export interface ListDHCPsResponse { export type ListGatewayNetworksRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Order in which to return results. */ orderBy?: ListGatewayNetworksRequestOrderBy /** Page number. */ @@ -720,7 +720,7 @@ export interface ListGatewayNetworksResponse { export type ListGatewayTypesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone } export interface ListGatewayTypesResponse { @@ -730,7 +730,7 @@ export interface ListGatewayTypesResponse { export type ListGatewaysRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Order in which to return results. */ orderBy?: ListGatewaysRequestOrderBy /** Page number to return. */ @@ -765,7 +765,7 @@ export interface ListGatewaysResponse { export type ListIPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Order in which to return results. */ orderBy?: ListIPsRequestOrderBy /** Page number. */ @@ -793,7 +793,7 @@ export interface ListIPsResponse { export type ListPATRulesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Order in which to return results. */ orderBy?: ListPATRulesRequestOrderBy /** Page number. */ @@ -817,14 +817,14 @@ export interface ListPATRulesResponse { export type RefreshSSHKeysRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to refresh SSH keys on. */ gatewayId: string } export type SetDHCPEntriesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the Gateway Network on which to set DHCP reservation list. */ gatewayNetworkId: string /** New list of DHCP reservations. */ @@ -838,7 +838,7 @@ export interface SetDHCPEntriesResponse { export type SetPATRulesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway on which to set the PAT rules. */ gatewayId: string /** New list of PAT rules. */ @@ -852,7 +852,7 @@ export interface SetPATRulesResponse { export type UpdateDHCPEntryRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the DHCP entry to update. */ dhcpEntryId: string /** New IP address to give to the device. */ @@ -861,7 +861,7 @@ export type UpdateDHCPEntryRequest = { export type UpdateDHCPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** DHCP configuration to update. */ dhcpId: string /** Subnet for the DHCP server. */ @@ -925,7 +925,7 @@ export type UpdateDHCPRequest = { export type UpdateGatewayNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the GatewayNetwork to update. */ gatewayNetworkId: string /** Note: this setting is ignored when passing `ipam_config`. */ @@ -963,7 +963,7 @@ export type UpdateGatewayNetworkRequest = { export type UpdateGatewayRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to update. */ gatewayId: string /** Name for the gateway. */ @@ -985,7 +985,7 @@ export type UpdateGatewayRequest = { export type UpdateIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the IP address to update. */ ipId: string /** Tags to give to the IP address. */ @@ -998,7 +998,7 @@ export type UpdateIPRequest = { export type UpdatePATRuleRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the PAT rule to update. */ patRuleId: string /** Public port to listen on. */ @@ -1013,7 +1013,7 @@ export type UpdatePATRuleRequest = { export type UpgradeGatewayRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to upgrade. */ gatewayId: string /** Gateway type (commercial offer). */ diff --git a/packages/clients/src/api/vpcgw/v2/api.gen.ts b/packages/clients/src/api/vpcgw/v2/api.gen.ts index 1c3965ee4..27de51d38 100644 --- a/packages/clients/src/api/vpcgw/v2/api.gen.ts +++ b/packages/clients/src/api/vpcgw/v2/api.gen.ts @@ -7,7 +7,7 @@ import { validatePathParam, waitForResource, } from '../../../bridge' -import type { WaitForOptions, Zone } from '../../../bridge' +import type { Zone as ScwZone, WaitForOptions } from '../../../bridge' import { GATEWAY_NETWORK_TRANSIENT_STATUSES, GATEWAY_TRANSIENT_STATUSES, @@ -91,7 +91,7 @@ const jsonContentHeaders = { */ export class API extends ParentAPI { /** Lists the available zones of the API. */ - public static readonly LOCALITIES: Zone[] = [ + public static readonly LOCALITIES: ScwZone[] = [ 'fr-par-1', 'fr-par-2', 'nl-ams-1', diff --git a/packages/clients/src/api/vpcgw/v2/types.gen.ts b/packages/clients/src/api/vpcgw/v2/types.gen.ts index 720d6f94e..4fa8574bf 100644 --- a/packages/clients/src/api/vpcgw/v2/types.gen.ts +++ b/packages/clients/src/api/vpcgw/v2/types.gen.ts @@ -1,6 +1,6 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -import type { Zone } from '../../../bridge' +import type { Zone as ScwZone } from '../../../bridge' export type GatewayNetworkStatus = | 'unknown_status' @@ -81,7 +81,7 @@ export interface GatewayNetwork { /** Use this IPAM-booked IP ID as the Gateway's IP in this Private Network. */ ipamIpId: string /** Zone of the GatewayNetwork connection. */ - zone: Zone + zone: ScwZone } export interface IP { @@ -104,7 +104,7 @@ export interface IP { /** Public Gateway associated with the IP address. */ gatewayId?: string /** Zone of the IP address. */ - zone: Zone + zone: ScwZone } export interface GatewayType { @@ -117,7 +117,7 @@ export interface GatewayType { */ bandwidth: number /** Zone the Public Gateway type is available in. */ - zone: Zone + zone: ScwZone } export interface Gateway { @@ -163,7 +163,7 @@ export interface Gateway { /** Ranges of IP addresses allowed to connect to the gateway's SSH bastion. */ bastionAllowedIps: string[] /** Zone of the gateway. */ - zone: Zone + zone: ScwZone } export interface PatRule { @@ -184,7 +184,7 @@ export interface PatRule { /** Protocol the rule applies to. */ protocol: PatRuleProtocol /** Zone of the PAT rule. */ - zone: Zone + zone: ScwZone } export interface SetPatRulesRequestRule { @@ -203,7 +203,7 @@ export interface SetPatRulesRequestRule { export type AddBastionAllowedIPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to add the allowed IP range to. */ gatewayId: string /** IP range allowed to connect to the SSH bastion. */ @@ -217,7 +217,7 @@ export interface AddBastionAllowedIPsResponse { export type CreateGatewayNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Public Gateway to connect. */ gatewayId: string /** Private Network to connect. */ @@ -232,7 +232,7 @@ export type CreateGatewayNetworkRequest = { export type CreateGatewayRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Scaleway Project to create the gateway in. */ projectId?: string /** Name for the gateway. */ @@ -253,7 +253,7 @@ export type CreateGatewayRequest = { export type CreateIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Project to create the IP address in. */ projectId?: string /** Tags to give to the IP address. */ @@ -262,7 +262,7 @@ export type CreateIPRequest = { export type CreatePatRuleRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the Gateway on which to create the rule. */ gatewayId: string /** Public port to listen on. */ @@ -277,7 +277,7 @@ export type CreatePatRuleRequest = { export type DeleteBastionAllowedIPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway on which to delete the allowed IP range. */ gatewayId: string /** IP range to delete from SSH bastion's list of allowed IPs. */ @@ -286,14 +286,14 @@ export type DeleteBastionAllowedIPsRequest = { export type DeleteGatewayNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the GatewayNetwork to delete. */ gatewayNetworkId: string } export type DeleteGatewayRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to delete. */ gatewayId: string /** Defines whether the PGW's IP should be deleted. */ @@ -302,49 +302,49 @@ export type DeleteGatewayRequest = { export type DeleteIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the IP address to delete. */ ipId: string } export type DeletePatRuleRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the PAT rule to delete. */ patRuleId: string } export type GetGatewayNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the GatewayNetwork to fetch. */ gatewayNetworkId: string } export type GetGatewayRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to fetch. */ gatewayId: string } export type GetIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the IP address to get. */ ipId: string } export type GetPatRuleRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the PAT rule to get. */ patRuleId: string } export type ListGatewayNetworksRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Order in which to return results. */ orderBy?: ListGatewayNetworksRequestOrderBy /** Page number. */ @@ -373,7 +373,7 @@ export interface ListGatewayNetworksResponse { export type ListGatewayTypesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone } export interface ListGatewayTypesResponse { @@ -383,7 +383,7 @@ export interface ListGatewayTypesResponse { export type ListGatewaysRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Order in which to return results. */ orderBy?: ListGatewaysRequestOrderBy /** Page number to return. */ @@ -420,7 +420,7 @@ export interface ListGatewaysResponse { export type ListIPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Order in which to return results. */ orderBy?: ListIPsRequestOrderBy /** Page number. */ @@ -448,7 +448,7 @@ export interface ListIPsResponse { export type ListPatRulesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** Order in which to return results. */ orderBy?: ListPatRulesRequestOrderBy /** Page number. */ @@ -472,14 +472,14 @@ export interface ListPatRulesResponse { export type RefreshSSHKeysRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to refresh SSH keys on. */ gatewayId: string } export type SetBastionAllowedIPsRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway on which to set the allowed IP range. */ gatewayId: string /** @@ -496,7 +496,7 @@ export interface SetBastionAllowedIPsResponse { export type SetPatRulesRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway on which to set the PAT rules. */ gatewayId: string /** New list of PAT rules. */ @@ -510,7 +510,7 @@ export interface SetPatRulesResponse { export type UpdateGatewayNetworkRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the GatewayNetwork to update. */ gatewayNetworkId: string /** Defines whether to enable masquerade (dynamic NAT) on the GatewayNetwork. */ @@ -523,7 +523,7 @@ export type UpdateGatewayNetworkRequest = { export type UpdateGatewayRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to update. */ gatewayId: string /** Name for the gateway. */ @@ -540,7 +540,7 @@ export type UpdateGatewayRequest = { export type UpdateIPRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the IP address to update. */ ipId: string /** Tags to give to the IP address. */ @@ -553,7 +553,7 @@ export type UpdateIPRequest = { export type UpdatePatRuleRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the PAT rule to update. */ patRuleId: string /** Public port to listen on. */ @@ -568,7 +568,7 @@ export type UpdatePatRuleRequest = { export type UpgradeGatewayRequest = { /** Zone to target. If none is passed will use default zone from the config. */ - zone?: Zone + zone?: ScwZone /** ID of the gateway to upgrade. */ gatewayId: string /** Gateway type (commercial offer). */