Skip to content

feat: update generated APIs #2187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions packages_generated/applesilicon/src/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {
validatePathParam,
waitForResource,
} from '@scaleway/sdk-client'
import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client'
import type { WaitForOptions } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import {
SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES as SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES_APPLESILICON,
SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_APPLESILICON,
Expand Down Expand Up @@ -73,8 +75,13 @@ const jsonContentHeaders = {
This API allows you to manage your Apple silicon machines.
*/
export class API extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: ScwZone[] = ['fr-par-3']
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
zones: ['fr-par-3'],
})

/**
* List server types. List all technical details about Apple silicon server types available in the specified zone. Since there is only one Availability Zone for Apple silicon servers, the targeted value is `fr-par-3`.
Expand Down Expand Up @@ -332,8 +339,13 @@ export class API extends ParentAPI {
* Apple silicon - Private Networks API.
*/
export class PrivateNetworkAPI extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: ScwZone[] = ['fr-par-1', 'fr-par-3']
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
zones: ['fr-par-1', 'fr-par-3'],
})

getServerPrivateNetwork = (
request: Readonly<PrivateNetworkApiGetServerPrivateNetworkRequest>,
Expand Down
12 changes: 9 additions & 3 deletions packages_generated/audit_trail/src/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import {
urlParams,
validatePathParam,
} from '@scaleway/sdk-client'
import type { Region as ScwRegion } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import {
unmarshalListEventsResponse,
unmarshalListProductsResponse,
Expand All @@ -23,8 +24,13 @@ import type {
This API allows you to ensure accountability and security by recording events and changes performed within your Scaleway Organization.
*/
export class API extends ParentAPI {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: ScwRegion[] = ['fr-par', 'nl-ams']
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
regions: ['fr-par', 'nl-ams'],
})

/**
* List events. Retrieve the list of Audit Trail events for a Scaleway Organization and/or Project. You must specify the `organization_id` and optionally, the `project_id`.
Expand Down
36 changes: 24 additions & 12 deletions packages_generated/baremetal/src/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {
validatePathParam,
waitForResource,
} from '@scaleway/sdk-client'
import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client'
import type { WaitForOptions } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import { SERVER_TRANSIENT_STATUSES as SERVER_TRANSIENT_STATUSES_BAREMETAL } from './content.gen'
import {
marshalAddOptionServerRequest,
Expand Down Expand Up @@ -104,15 +106,20 @@ const jsonContentHeaders = {
This API allows you to manage your Elastic Metal servers.
*/
export class API extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: ScwZone[] = [
'fr-par-1',
'fr-par-2',
'nl-ams-1',
'nl-ams-2',
'pl-waw-2',
'pl-waw-3',
]
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
zones: [
'fr-par-1',
'fr-par-2',
'nl-ams-1',
'nl-ams-2',
'pl-waw-2',
'pl-waw-3',
],
})

protected pageOfListServers = (request: Readonly<ListServersRequest> = {}) =>
this.client.fetch<ListServersResponse>(
Expand Down Expand Up @@ -690,8 +697,13 @@ After adding the BMC option, you need to Get Remote Access to get the login/pass
* Elastic Metal - Private Network API.
*/
export class PrivateNetworkAPI extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: ScwZone[] = ['fr-par-2']
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
zones: ['fr-par-2'],
})

/**
* Add a server to a Private Network.
Expand Down
26 changes: 16 additions & 10 deletions packages_generated/baremetal/src/v3/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
urlParams,
validatePathParam,
} from '@scaleway/sdk-client'
import type { Zone as ScwZone } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import {
marshalPrivateNetworkApiAddServerPrivateNetworkRequest,
marshalPrivateNetworkApiSetServerPrivateNetworksRequest,
Expand All @@ -32,15 +33,20 @@ const jsonContentHeaders = {
* Elastic Metal - Private Networks API.
*/
export class PrivateNetworkAPI extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: ScwZone[] = [
'fr-par-1',
'fr-par-2',
'nl-ams-1',
'nl-ams-2',
'pl-waw-2',
'pl-waw-3',
]
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
zones: [
'fr-par-1',
'fr-par-2',
'nl-ams-1',
'nl-ams-2',
'pl-waw-2',
'pl-waw-3',
],
})

/**
* Add a server to a Private Network. Add an Elastic Metal server to a Private Network.
Expand Down
33 changes: 20 additions & 13 deletions packages_generated/block/src/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {
validatePathParam,
waitForResource,
} from '@scaleway/sdk-client'
import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client'
import type { WaitForOptions } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import {
SNAPSHOT_TRANSIENT_STATUSES as SNAPSHOT_TRANSIENT_STATUSES_BLOCK,
VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES_BLOCK,
Expand Down Expand Up @@ -56,18 +58,23 @@ const jsonContentHeaders = {
This API allows you to manage your Block Storage volumes.
*/
export class API extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: ScwZone[] = [
'fr-par-1',
'fr-par-2',
'fr-par-3',
'nl-ams-1',
'nl-ams-2',
'nl-ams-3',
'pl-waw-1',
'pl-waw-2',
'pl-waw-3',
]
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
zones: [
'fr-par-1',
'fr-par-2',
'fr-par-3',
'nl-ams-1',
'nl-ams-2',
'nl-ams-3',
'pl-waw-1',
'pl-waw-2',
'pl-waw-3',
],
})

protected pageOfListVolumeTypes = (
request: Readonly<ListVolumeTypesRequest> = {},
Expand Down
33 changes: 20 additions & 13 deletions packages_generated/block/src/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {
validatePathParam,
waitForResource,
} from '@scaleway/sdk-client'
import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client'
import type { WaitForOptions } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import {
SNAPSHOT_TRANSIENT_STATUSES as SNAPSHOT_TRANSIENT_STATUSES_BLOCK,
VOLUME_TRANSIENT_STATUSES as VOLUME_TRANSIENT_STATUSES_BLOCK,
Expand Down Expand Up @@ -58,18 +60,23 @@ const jsonContentHeaders = {
This API allows you to manage your Block Storage volumes.
*/
export class API extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: ScwZone[] = [
'fr-par-1',
'fr-par-2',
'fr-par-3',
'nl-ams-1',
'nl-ams-2',
'nl-ams-3',
'pl-waw-1',
'pl-waw-2',
'pl-waw-3',
]
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
zones: [
'fr-par-1',
'fr-par-2',
'fr-par-3',
'nl-ams-1',
'nl-ams-2',
'nl-ams-3',
'pl-waw-1',
'pl-waw-2',
'pl-waw-3',
],
})

protected pageOfListVolumeTypes = (
request: Readonly<ListVolumeTypesRequest> = {},
Expand Down
16 changes: 9 additions & 7 deletions packages_generated/cockpit/src/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import {
urlParams,
validatePathParam,
} from '@scaleway/sdk-client'
import type { Region as ScwRegion } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import {
marshalGlobalApiCreateGrafanaUserRequest,
marshalGlobalApiResetGrafanaUserPasswordRequest,
Expand Down Expand Up @@ -386,12 +387,13 @@ Deprecated: retention is now managed at the data source level.
The Cockpit API allows you to create data sources and Cockpit tokens to store and query data types such as metrics, logs, and traces. You can also push your data into Cockpit, and send alerts to your contact points when your resources may require your attention, using the regional Alert manager.
*/
export class RegionalAPI extends ParentAPI {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: ScwRegion[] = [
'fr-par',
'nl-ams',
'pl-waw',
]
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
regions: ['fr-par', 'nl-ams', 'pl-waw'],
})

/**
* Get the Cockpit configuration.
Expand Down
17 changes: 10 additions & 7 deletions packages_generated/container/src/v1beta1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import {
validatePathParam,
waitForResource,
} from '@scaleway/sdk-client'
import type { Region as ScwRegion, WaitForOptions } from '@scaleway/sdk-client'
import type { WaitForOptions } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import {
CONTAINER_TRANSIENT_STATUSES as CONTAINER_TRANSIENT_STATUSES_CONTAINER,
CRON_TRANSIENT_STATUSES as CRON_TRANSIENT_STATUSES_CONTAINER,
Expand Down Expand Up @@ -95,12 +97,13 @@ const jsonContentHeaders = {
This API allows you to manage your Serverless Containers.
*/
export class API extends ParentAPI {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: ScwRegion[] = [
'fr-par',
'nl-ams',
'pl-waw',
]
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
regions: ['fr-par', 'nl-ams', 'pl-waw'],
})

protected pageOfListNamespaces = (
request: Readonly<ListNamespacesRequest> = {},
Expand Down
17 changes: 10 additions & 7 deletions packages_generated/dedibox/src/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {
validatePathParam,
waitForResource,
} from '@scaleway/sdk-client'
import type { Zone as ScwZone, WaitForOptions } from '@scaleway/sdk-client'
import type { WaitForOptions } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import {
BMC_ACCESS_TRANSIENT_STATUSES as BMC_ACCESS_TRANSIENT_STATUSES_DEDIBOX,
RPN_SAN_TRANSIENT_STATUSES as RPN_SAN_TRANSIENT_STATUSES_DEDIBOX,
Expand Down Expand Up @@ -253,12 +255,13 @@ const jsonContentHeaders = {
* Dedibox Phoenix API.
*/
export class API extends ParentAPI {
/** Lists the available zones of the API. */
public static readonly LOCALITIES: ScwZone[] = [
'fr-par-1',
'fr-par-2',
'nl-ams-1',
]
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
zones: ['fr-par-1', 'fr-par-2', 'nl-ams-1'],
})

protected pageOfListServers = (request: Readonly<ListServersRequest> = {}) =>
this.client.fetch<ListServersResponse>(
Expand Down
13 changes: 10 additions & 3 deletions packages_generated/file/src/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import {
validatePathParam,
waitForResource,
} from '@scaleway/sdk-client'
import type { Region as ScwRegion, WaitForOptions } from '@scaleway/sdk-client'
import type { WaitForOptions } from '@scaleway/sdk-client'
import type { ApiLocality } from '../types/locality'
import { toApiLocality } from '../types/locality'
import { FILE_SYSTEM_TRANSIENT_STATUSES as FILE_SYSTEM_TRANSIENT_STATUSES_FILE } from './content.gen'
import {
marshalCreateFileSystemRequest,
Expand Down Expand Up @@ -38,8 +40,13 @@ const jsonContentHeaders = {
This API allows you to manage your File Storage resources.
*/
export class API extends ParentAPI {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: ScwRegion[] = ['fr-par']
/**
* Locality of this API.
* type ∈ {'zone','region','global','unspecified'}
*/
public static readonly LOCALITY: ApiLocality = toApiLocality({
regions: ['fr-par'],
})

/**
* Get filesystem details. Retrieve all properties and current status of a specific filesystem identified by its ID.
Expand Down
Loading
Loading