diff --git a/packages/clients/src/api/applesilicon/v1alpha1/content.gen.ts b/packages/clients/src/api/applesilicon/v1alpha1/content.gen.ts index 35ca3a0ad..5f1feed02 100644 --- a/packages/clients/src/api/applesilicon/v1alpha1/content.gen.ts +++ b/packages/clients/src/api/applesilicon/v1alpha1/content.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 { ServerStatus } from './types.gen' +import type { ServerPrivateNetworkStatus, ServerStatus } from './types.gen' + +/** Lists transient statutes of the enum {@link ServerPrivateNetworkStatus}. */ +export const SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: ServerPrivateNetworkStatus[] = + ['vpc_updating'] /** Lists transient statutes of the enum {@link ServerStatus}. */ export const SERVER_TRANSIENT_STATUSES: ServerStatus[] = [ diff --git a/packages/clients/src/api/applesilicon/v1alpha1/index.gen.ts b/packages/clients/src/api/applesilicon/v1alpha1/index.gen.ts index f963a33d7..71e4a9920 100644 --- a/packages/clients/src/api/applesilicon/v1alpha1/index.gen.ts +++ b/packages/clients/src/api/applesilicon/v1alpha1/index.gen.ts @@ -24,6 +24,7 @@ export type { RebootServerRequest, ReinstallServerRequest, Server, + ServerPrivateNetworkStatus, ServerStatus, ServerType, ServerTypeCPU, diff --git a/packages/clients/src/api/applesilicon/v1alpha1/marshalling.gen.ts b/packages/clients/src/api/applesilicon/v1alpha1/marshalling.gen.ts index 3aa29cd12..7ddd62ec0 100644 --- a/packages/clients/src/api/applesilicon/v1alpha1/marshalling.gen.ts +++ b/packages/clients/src/api/applesilicon/v1alpha1/marshalling.gen.ts @@ -159,6 +159,7 @@ export const unmarshalServer = (data: unknown): Server => { updatedAt: unmarshalDate(data.updated_at), vncPort: data.vnc_port, vncUrl: data.vnc_url, + vpcStatus: data.vpc_status, zone: data.zone, } as Server } @@ -263,6 +264,7 @@ export const marshalCreateServerRequest = ( request: CreateServerRequest, defaults: DefaultValues, ): Record => ({ + enable_vpc: request.enableVpc, name: request.name || randomName('as'), os_id: request.osId, project_id: request.projectId ?? defaults.defaultProjectId, @@ -287,6 +289,7 @@ export const marshalUpdateServerRequest = ( request: UpdateServerRequest, defaults: DefaultValues, ): Record => ({ + enable_vpc: request.enableVpc, name: request.name, schedule_deletion: request.scheduleDeletion, }) diff --git a/packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts b/packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts index 1743c196a..d9c805abf 100644 --- a/packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts +++ b/packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts @@ -14,6 +14,12 @@ export type ConnectivityDiagnosticDiagnosticStatus = export type ListServersRequestOrderBy = 'created_at_asc' | 'created_at_desc' +export type ServerPrivateNetworkStatus = + | 'vpc_unknown_status' + | 'vpc_enabled' + | 'vpc_updating' + | 'vpc_disabled' + export type ServerStatus = | 'unknown_status' | 'starting' @@ -158,6 +164,11 @@ export interface Server { * using the server status. */ delivered: boolean + /** + * Activation status of optional Private Network feature support for this + * server. + */ + vpcStatus: ServerPrivateNetworkStatus } export interface ConnectivityDiagnostic { @@ -184,6 +195,11 @@ export type CreateServerRequest = { * induce an extended delivery time. */ osId?: string + /** + * Activate the Private Network feature for this server. This feature is + * configured through the Apple Silicon - Private Networks API. + */ + enableVpc: boolean } export type DeleteServerRequest = { @@ -319,4 +335,6 @@ export type UpdateServerRequest = { name?: string /** Specify whether the server should be flagged for automatic deletion. */ scheduleDeletion?: boolean + /** Activate or deactivate Private Network support for this server. */ + enableVpc?: boolean }