Skip to content

Commit c3aa700

Browse files
committed
feat: update generated APIs
1 parent f9daf5c commit c3aa700

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
validatePathParam,
88
waitForResource,
99
} from '../../../bridge'
10-
import type { WaitForOptions, Zone } from '../../../bridge'
10+
import type { Zone as ScwZone, WaitForOptions } from '../../../bridge'
1111
import {
1212
SERVER_PRIVATE_NETWORK_SERVER_TRANSIENT_STATUSES,
1313
SERVER_TRANSIENT_STATUSES,
@@ -74,7 +74,7 @@ const jsonContentHeaders = {
7474
*/
7575
export class API extends ParentAPI {
7676
/** Lists the available zones of the API. */
77-
public static readonly LOCALITIES: Zone[] = ['fr-par-3']
77+
public static readonly LOCALITIES: ScwZone[] = ['fr-par-3']
7878

7979
/**
8080
* List server types. List all technical details about Apple silicon server
@@ -348,7 +348,7 @@ export class API extends ParentAPI {
348348
/** Apple silicon - Private Networks API. */
349349
export class PrivateNetworkAPI extends ParentAPI {
350350
/** Lists the available zones of the API. */
351-
public static readonly LOCALITIES: Zone[] = ['fr-par-1', 'fr-par-3']
351+
public static readonly LOCALITIES: ScwZone[] = ['fr-par-1', 'fr-par-3']
352352

353353
getServerPrivateNetwork = (
354354
request: Readonly<PrivateNetworkApiGetServerPrivateNetworkRequest>,

packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
3-
import type { Zone } from '../../../bridge'
3+
import type { Zone as ScwZone } from '../../../bridge'
44

55
export type ConnectivityDiagnosticActionType =
66
| 'reboot_server'
@@ -190,7 +190,7 @@ export interface Server {
190190
*/
191191
deletionScheduled: boolean
192192
/** Zone of the server. */
193-
zone: Zone
193+
zone: ScwZone
194194
/**
195195
* Set to true once the server has completed its provisioning steps and is
196196
* ready to use. Some OS configurations might require a reinstallation of the
@@ -217,7 +217,7 @@ export interface ConnectivityDiagnostic {
217217

218218
export type CreateServerRequest = {
219219
/** Zone to target. If none is passed will use default zone from the config. */
220-
zone?: Zone
220+
zone?: ScwZone
221221
/** Create a server with this given name. */
222222
name?: string
223223
/** Create a server in the given project ID. */
@@ -239,41 +239,41 @@ export type CreateServerRequest = {
239239

240240
export type DeleteServerRequest = {
241241
/** Zone to target. If none is passed will use default zone from the config. */
242-
zone?: Zone
242+
zone?: ScwZone
243243
/** UUID of the server you want to delete. */
244244
serverId: string
245245
}
246246

247247
export type GetConnectivityDiagnosticRequest = {
248248
/** Zone to target. If none is passed will use default zone from the config. */
249-
zone?: Zone
249+
zone?: ScwZone
250250
diagnosticId: string
251251
}
252252

253253
export type GetOSRequest = {
254254
/** Zone to target. If none is passed will use default zone from the config. */
255-
zone?: Zone
255+
zone?: ScwZone
256256
/** UUID of the OS you want to get. */
257257
osId: string
258258
}
259259

260260
export type GetServerRequest = {
261261
/** Zone to target. If none is passed will use default zone from the config. */
262-
zone?: Zone
262+
zone?: ScwZone
263263
/** UUID of the server you want to get. */
264264
serverId: string
265265
}
266266

267267
export type GetServerTypeRequest = {
268268
/** Zone to target. If none is passed will use default zone from the config. */
269-
zone?: Zone
269+
zone?: ScwZone
270270
/** Server type identifier. */
271271
serverType: string
272272
}
273273

274274
export type ListOSRequest = {
275275
/** Zone to target. If none is passed will use default zone from the config. */
276-
zone?: Zone
276+
zone?: ScwZone
277277
/** Positive integer to choose the page to return. */
278278
page?: number
279279
/**
@@ -304,7 +304,7 @@ export interface ListServerPrivateNetworksResponse {
304304

305305
export type ListServerTypesRequest = {
306306
/** Zone to target. If none is passed will use default zone from the config. */
307-
zone?: Zone
307+
zone?: ScwZone
308308
}
309309

310310
export interface ListServerTypesResponse {
@@ -314,7 +314,7 @@ export interface ListServerTypesResponse {
314314

315315
export type ListServersRequest = {
316316
/** Zone to target. If none is passed will use default zone from the config. */
317-
zone?: Zone
317+
zone?: ScwZone
318318
/** Sort order of the returned servers. */
319319
orderBy?: ListServersRequestOrderBy
320320
/** Only list servers of this project ID. */
@@ -339,7 +339,7 @@ export interface ListServersResponse {
339339

340340
export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
341341
/** Zone to target. If none is passed will use default zone from the config. */
342-
zone?: Zone
342+
zone?: ScwZone
343343
/** ID of the server. */
344344
serverId: string
345345
/** ID of the Private Network. */
@@ -350,7 +350,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
350350

351351
export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
352352
/** Zone to target. If none is passed will use default zone from the config. */
353-
zone?: Zone
353+
zone?: ScwZone
354354
/** ID of the server. */
355355
serverId: string
356356
/** ID of the Private Network. */
@@ -359,14 +359,14 @@ export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
359359

360360
export type PrivateNetworkApiGetServerPrivateNetworkRequest = {
361361
/** Zone to target. If none is passed will use default zone from the config. */
362-
zone?: Zone
362+
zone?: ScwZone
363363
serverId: string
364364
privateNetworkId: string
365365
}
366366

367367
export type PrivateNetworkApiListServerPrivateNetworksRequest = {
368368
/** Zone to target. If none is passed will use default zone from the config. */
369-
zone?: Zone
369+
zone?: ScwZone
370370
/** Sort order for the returned Private Networks. */
371371
orderBy?: ListServerPrivateNetworksRequestOrderBy
372372
/** Page number for the returned Private Networks. */
@@ -387,7 +387,7 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = {
387387

388388
export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
389389
/** Zone to target. If none is passed will use default zone from the config. */
390-
zone?: Zone
390+
zone?: ScwZone
391391
/** ID of the server. */
392392
serverId: string
393393
/**
@@ -402,14 +402,14 @@ export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
402402

403403
export type RebootServerRequest = {
404404
/** Zone to target. If none is passed will use default zone from the config. */
405-
zone?: Zone
405+
zone?: ScwZone
406406
/** UUID of the server you want to reboot. */
407407
serverId: string
408408
}
409409

410410
export type ReinstallServerRequest = {
411411
/** Zone to target. If none is passed will use default zone from the config. */
412-
zone?: Zone
412+
zone?: ScwZone
413413
/** UUID of the server you want to reinstall. */
414414
serverId: string
415415
/**
@@ -425,7 +425,7 @@ export interface SetServerPrivateNetworksResponse {
425425

426426
export type StartConnectivityDiagnosticRequest = {
427427
/** Zone to target. If none is passed will use default zone from the config. */
428-
zone?: Zone
428+
zone?: ScwZone
429429
serverId: string
430430
}
431431

@@ -435,7 +435,7 @@ export interface StartConnectivityDiagnosticResponse {
435435

436436
export type UpdateServerRequest = {
437437
/** Zone to target. If none is passed will use default zone from the config. */
438-
zone?: Zone
438+
zone?: ScwZone
439439
/** UUID of the server you want to update. */
440440
serverId: string
441441
/** Updated name for your server. */

0 commit comments

Comments
 (0)