diff --git a/.github/workflows/packer.yaml b/.github/workflows/packer.yaml index 643e6429f..24049db03 100644 --- a/.github/workflows/packer.yaml +++ b/.github/workflows/packer.yaml @@ -46,7 +46,7 @@ jobs: CLOUDFLARE_TOKEN: ${{secrets.CLOUDFLARE_TOKEN}} SSL_CERT: ${{secrets.SSL_CERT}} SSL_KEY: ${{secrets.SSL_KEY}} - API_VERSION: 0d09c72d39fd1afbf2b46431ab23c72e3d000cfc + API_VERSION: a86e70ffd35eaa2e94b67b08cff2ded50dc3a419 # get the image information from gcloud - name: Get image information diff --git a/libs/api/__generated__/.openapi-generator/FILES b/libs/api/__generated__/.openapi-generator/FILES index af305ce0f..91c8a07d4 100644 --- a/libs/api/__generated__/.openapi-generator/FILES +++ b/libs/api/__generated__/.openapi-generator/FILES @@ -2,7 +2,6 @@ apis/DefaultApi.ts apis/index.ts index.ts models/ApiDiskAttachment.ts -models/ApiDiskAttachment1.ts models/ApiDiskCreateParams.ts models/ApiDiskState.ts models/ApiDiskStateAnyOf.ts @@ -10,27 +9,22 @@ models/ApiDiskStateAnyOf1.ts models/ApiDiskStateAnyOf2.ts models/ApiDiskStateAnyOf3.ts models/ApiDiskView.ts -models/ApiDiskView1.ts models/ApiDiskViewResultsPage.ts models/ApiIdSortMode.ts models/ApiIdentityMetadata.ts models/ApiInstanceCreateParams.ts models/ApiInstanceState.ts models/ApiInstanceView.ts -models/ApiInstanceView1.ts models/ApiInstanceViewResultsPage.ts models/ApiNameOrIdSortMode.ts models/ApiNameSortMode.ts models/ApiProjectCreateParams.ts models/ApiProjectUpdateParams.ts models/ApiProjectView.ts -models/ApiProjectView1.ts models/ApiProjectViewResultsPage.ts models/ApiRackView.ts -models/ApiRackView1.ts models/ApiRackViewResultsPage.ts models/ApiSledView.ts -models/ApiSledView1.ts models/ApiSledViewResultsPage.ts models/index.ts runtime.ts diff --git a/libs/api/__generated__/OMICRON_VERSION b/libs/api/__generated__/OMICRON_VERSION index 26922c6f7..c74c13edc 100644 --- a/libs/api/__generated__/OMICRON_VERSION +++ b/libs/api/__generated__/OMICRON_VERSION @@ -1,2 +1,2 @@ # generated file. do not update manually. see docs/update-pinned-api.md -0d09c72d39fd1afbf2b46431ab23c72e3d000cfc +a86e70ffd35eaa2e94b67b08cff2ded50dc3a419 diff --git a/libs/api/__generated__/apis/DefaultApi.ts b/libs/api/__generated__/apis/DefaultApi.ts index 792003c67..c637917b8 100644 --- a/libs/api/__generated__/apis/DefaultApi.ts +++ b/libs/api/__generated__/apis/DefaultApi.ts @@ -17,15 +17,12 @@ import { ApiDiskAttachment, ApiDiskAttachmentFromJSON, ApiDiskAttachmentToJSON, - ApiDiskAttachment1, - ApiDiskAttachment1FromJSON, - ApiDiskAttachment1ToJSON, ApiDiskCreateParams, ApiDiskCreateParamsFromJSON, ApiDiskCreateParamsToJSON, - ApiDiskView1, - ApiDiskView1FromJSON, - ApiDiskView1ToJSON, + ApiDiskView, + ApiDiskViewFromJSON, + ApiDiskViewToJSON, ApiDiskViewResultsPage, ApiDiskViewResultsPageFromJSON, ApiDiskViewResultsPageToJSON, @@ -35,9 +32,9 @@ import { ApiInstanceCreateParams, ApiInstanceCreateParamsFromJSON, ApiInstanceCreateParamsToJSON, - ApiInstanceView1, - ApiInstanceView1FromJSON, - ApiInstanceView1ToJSON, + ApiInstanceView, + ApiInstanceViewFromJSON, + ApiInstanceViewToJSON, ApiInstanceViewResultsPage, ApiInstanceViewResultsPageFromJSON, ApiInstanceViewResultsPageToJSON, @@ -53,21 +50,21 @@ import { ApiProjectUpdateParams, ApiProjectUpdateParamsFromJSON, ApiProjectUpdateParamsToJSON, - ApiProjectView1, - ApiProjectView1FromJSON, - ApiProjectView1ToJSON, + ApiProjectView, + ApiProjectViewFromJSON, + ApiProjectViewToJSON, ApiProjectViewResultsPage, ApiProjectViewResultsPageFromJSON, ApiProjectViewResultsPageToJSON, - ApiRackView1, - ApiRackView1FromJSON, - ApiRackView1ToJSON, + ApiRackView, + ApiRackViewFromJSON, + ApiRackViewToJSON, ApiRackViewResultsPage, ApiRackViewResultsPageFromJSON, ApiRackViewResultsPageToJSON, - ApiSledView1, - ApiSledView1FromJSON, - ApiSledView1ToJSON, + ApiSledView, + ApiSledViewFromJSON, + ApiSledViewToJSON, ApiSledViewResultsPage, ApiSledViewResultsPageFromJSON, ApiSledViewResultsPageToJSON, @@ -251,7 +248,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiHardwareRacksGetRackRaw( requestParameters: ApiHardwareRacksGetRackRequest - ): Promise> { + ): Promise> { if ( requestParameters.rackId === null || requestParameters.rackId === undefined @@ -277,7 +274,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiRackView1FromJSON(jsonValue) + ApiRackViewFromJSON(jsonValue) ) } @@ -286,7 +283,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiHardwareRacksGetRack( requestParameters: ApiHardwareRacksGetRackRequest - ): Promise { + ): Promise { const response = await this.apiHardwareRacksGetRackRaw(requestParameters) return await response.value() } @@ -340,7 +337,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiHardwareSledsGetSledRaw( requestParameters: ApiHardwareSledsGetSledRequest - ): Promise> { + ): Promise> { if ( requestParameters.sledId === null || requestParameters.sledId === undefined @@ -366,7 +363,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiSledView1FromJSON(jsonValue) + ApiSledViewFromJSON(jsonValue) ) } @@ -375,7 +372,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiHardwareSledsGetSled( requestParameters: ApiHardwareSledsGetSledRequest - ): Promise { + ): Promise { const response = await this.apiHardwareSledsGetSledRaw(requestParameters) return await response.value() } @@ -516,7 +513,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiInstanceDisksGetDiskRaw( requestParameters: ApiInstanceDisksGetDiskRequest - ): Promise> { + ): Promise> { if ( requestParameters.diskName === null || requestParameters.diskName === undefined @@ -571,7 +568,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiDiskAttachment1FromJSON(jsonValue) + ApiDiskAttachmentFromJSON(jsonValue) ) } @@ -580,7 +577,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiInstanceDisksGetDisk( requestParameters: ApiInstanceDisksGetDiskRequest - ): Promise { + ): Promise { const response = await this.apiInstanceDisksGetDiskRaw(requestParameters) return await response.value() } @@ -590,7 +587,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiInstanceDisksPutDiskRaw( requestParameters: ApiInstanceDisksPutDiskRequest - ): Promise> { + ): Promise> { if ( requestParameters.diskName === null || requestParameters.diskName === undefined @@ -645,7 +642,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiDiskAttachment1FromJSON(jsonValue) + ApiDiskAttachmentFromJSON(jsonValue) ) } @@ -654,7 +651,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiInstanceDisksPutDisk( requestParameters: ApiInstanceDisksPutDiskRequest - ): Promise { + ): Promise { const response = await this.apiInstanceDisksPutDiskRaw(requestParameters) return await response.value() } @@ -778,7 +775,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectDisksGetDiskRaw( requestParameters: ApiProjectDisksGetDiskRequest - ): Promise> { + ): Promise> { if ( requestParameters.diskName === null || requestParameters.diskName === undefined @@ -819,7 +816,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiDiskView1FromJSON(jsonValue) + ApiDiskViewFromJSON(jsonValue) ) } @@ -828,7 +825,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectDisksGetDisk( requestParameters: ApiProjectDisksGetDiskRequest - ): Promise { + ): Promise { const response = await this.apiProjectDisksGetDiskRaw(requestParameters) return await response.value() } @@ -838,7 +835,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectDisksPostRaw( requestParameters: ApiProjectDisksPostRequest - ): Promise> { + ): Promise> { if ( requestParameters.projectName === null || requestParameters.projectName === undefined @@ -877,7 +874,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiDiskView1FromJSON(jsonValue) + ApiDiskViewFromJSON(jsonValue) ) } @@ -886,7 +883,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectDisksPost( requestParameters: ApiProjectDisksPostRequest - ): Promise { + ): Promise { const response = await this.apiProjectDisksPostRaw(requestParameters) return await response.value() } @@ -1010,7 +1007,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectInstancesGetInstanceRaw( requestParameters: ApiProjectInstancesGetInstanceRequest - ): Promise> { + ): Promise> { if ( requestParameters.instanceName === null || requestParameters.instanceName === undefined @@ -1051,7 +1048,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiInstanceView1FromJSON(jsonValue) + ApiInstanceViewFromJSON(jsonValue) ) } @@ -1060,7 +1057,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectInstancesGetInstance( requestParameters: ApiProjectInstancesGetInstanceRequest - ): Promise { + ): Promise { const response = await this.apiProjectInstancesGetInstanceRaw( requestParameters ) @@ -1072,7 +1069,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectInstancesInstanceRebootRaw( requestParameters: ApiProjectInstancesInstanceRebootRequest - ): Promise> { + ): Promise> { if ( requestParameters.instanceName === null || requestParameters.instanceName === undefined @@ -1113,7 +1110,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiInstanceView1FromJSON(jsonValue) + ApiInstanceViewFromJSON(jsonValue) ) } @@ -1122,7 +1119,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectInstancesInstanceReboot( requestParameters: ApiProjectInstancesInstanceRebootRequest - ): Promise { + ): Promise { const response = await this.apiProjectInstancesInstanceRebootRaw( requestParameters ) @@ -1134,7 +1131,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectInstancesInstanceStartRaw( requestParameters: ApiProjectInstancesInstanceStartRequest - ): Promise> { + ): Promise> { if ( requestParameters.instanceName === null || requestParameters.instanceName === undefined @@ -1175,7 +1172,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiInstanceView1FromJSON(jsonValue) + ApiInstanceViewFromJSON(jsonValue) ) } @@ -1184,7 +1181,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectInstancesInstanceStart( requestParameters: ApiProjectInstancesInstanceStartRequest - ): Promise { + ): Promise { const response = await this.apiProjectInstancesInstanceStartRaw( requestParameters ) @@ -1196,7 +1193,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectInstancesInstanceStopRaw( requestParameters: ApiProjectInstancesInstanceStopRequest - ): Promise> { + ): Promise> { if ( requestParameters.instanceName === null || requestParameters.instanceName === undefined @@ -1237,7 +1234,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiInstanceView1FromJSON(jsonValue) + ApiInstanceViewFromJSON(jsonValue) ) } @@ -1246,7 +1243,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectInstancesInstanceStop( requestParameters: ApiProjectInstancesInstanceStopRequest - ): Promise { + ): Promise { const response = await this.apiProjectInstancesInstanceStopRaw( requestParameters ) @@ -1258,7 +1255,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectInstancesPostRaw( requestParameters: ApiProjectInstancesPostRequest - ): Promise> { + ): Promise> { if ( requestParameters.projectName === null || requestParameters.projectName === undefined @@ -1299,7 +1296,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiInstanceView1FromJSON(jsonValue) + ApiInstanceViewFromJSON(jsonValue) ) } @@ -1308,7 +1305,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectInstancesPost( requestParameters: ApiProjectInstancesPostRequest - ): Promise { + ): Promise { const response = await this.apiProjectInstancesPostRaw(requestParameters) return await response.value() } @@ -1404,7 +1401,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectsGetProjectRaw( requestParameters: ApiProjectsGetProjectRequest - ): Promise> { + ): Promise> { if ( requestParameters.projectName === null || requestParameters.projectName === undefined @@ -1430,7 +1427,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiProjectView1FromJSON(jsonValue) + ApiProjectViewFromJSON(jsonValue) ) } @@ -1439,7 +1436,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectsGetProject( requestParameters: ApiProjectsGetProjectRequest - ): Promise { + ): Promise { const response = await this.apiProjectsGetProjectRaw(requestParameters) return await response.value() } @@ -1449,7 +1446,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectsPostRaw( requestParameters: ApiProjectsPostRequest - ): Promise> { + ): Promise> { if ( requestParameters.apiProjectCreateParams === null || requestParameters.apiProjectCreateParams === undefined @@ -1477,7 +1474,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiProjectView1FromJSON(jsonValue) + ApiProjectViewFromJSON(jsonValue) ) } @@ -1486,7 +1483,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectsPost( requestParameters: ApiProjectsPostRequest - ): Promise { + ): Promise { const response = await this.apiProjectsPostRaw(requestParameters) return await response.value() } @@ -1496,7 +1493,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectsPutProjectRaw( requestParameters: ApiProjectsPutProjectRequest - ): Promise> { + ): Promise> { if ( requestParameters.projectName === null || requestParameters.projectName === undefined @@ -1537,7 +1534,7 @@ export class DefaultApi extends runtime.BaseAPI { }) return new runtime.JSONApiResponse(response, (jsonValue) => - ApiProjectView1FromJSON(jsonValue) + ApiProjectViewFromJSON(jsonValue) ) } @@ -1546,7 +1543,7 @@ export class DefaultApi extends runtime.BaseAPI { */ async apiProjectsPutProject( requestParameters: ApiProjectsPutProjectRequest - ): Promise { + ): Promise { const response = await this.apiProjectsPutProjectRaw(requestParameters) return await response.value() } diff --git a/libs/api/__generated__/models/ApiDiskAttachment1.ts b/libs/api/__generated__/models/ApiDiskAttachment1.ts deleted file mode 100644 index 5e1cc6ac7..000000000 --- a/libs/api/__generated__/models/ApiDiskAttachment1.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -import { - ApiDiskState, - ApiDiskStateFromJSON, - ApiDiskStateFromJSONTyped, - ApiDiskStateToJSON, -} from './' - -/** - * Describes a Disk's attachment to an Instance - * @export - * @interface ApiDiskAttachment1 - */ -export interface ApiDiskAttachment1 { - /** - * - * @type {string} - * @memberof ApiDiskAttachment1 - */ - diskId: string - /** - * Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. - * @type {string} - * @memberof ApiDiskAttachment1 - */ - diskName: string - /** - * - * @type {ApiDiskState} - * @memberof ApiDiskAttachment1 - */ - diskState: ApiDiskState - /** - * - * @type {string} - * @memberof ApiDiskAttachment1 - */ - instanceId: string -} - -export function ApiDiskAttachment1FromJSON(json: any): ApiDiskAttachment1 { - return ApiDiskAttachment1FromJSONTyped(json, false) -} - -export function ApiDiskAttachment1FromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ApiDiskAttachment1 { - if (json === undefined || json === null) { - return json - } - return { - diskId: json['diskId'], - diskName: json['diskName'], - diskState: ApiDiskStateFromJSON(json['diskState']), - instanceId: json['instanceId'], - } -} - -export function ApiDiskAttachment1ToJSON( - value?: ApiDiskAttachment1 | null -): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - diskId: value.diskId, - diskName: value.diskName, - diskState: ApiDiskStateToJSON(value.diskState), - instanceId: value.instanceId, - } -} diff --git a/libs/api/__generated__/models/ApiDiskView1.ts b/libs/api/__generated__/models/ApiDiskView1.ts deleted file mode 100644 index 2db8860f8..000000000 --- a/libs/api/__generated__/models/ApiDiskView1.ts +++ /dev/null @@ -1,137 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -import { - ApiDiskState, - ApiDiskStateFromJSON, - ApiDiskStateFromJSONTyped, - ApiDiskStateToJSON, -} from './' - -/** - * Client view of an [`ApiDisk`] - * @export - * @interface ApiDiskView1 - */ -export interface ApiDiskView1 { - /** - * human-readable free-form text about a resource - * @type {string} - * @memberof ApiDiskView1 - */ - description: string - /** - * - * @type {string} - * @memberof ApiDiskView1 - */ - devicePath: string - /** - * unique, immutable, system-controlled identifier for each resource - * @type {string} - * @memberof ApiDiskView1 - */ - id: string - /** - * Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. - * @type {string} - * @memberof ApiDiskView1 - */ - name: string - /** - * - * @type {string} - * @memberof ApiDiskView1 - */ - projectId: string - /** - * A count of bytes, typically used either for memory or storage capacity - * - * The maximum supported byte count is [`i64::MAX`]. This makes it somewhat inconvenient to define constructors: a u32 constructor can be infallible, but an i64 constructor can fail (if the value is negative) and a u64 constructor can fail (if the value is larger than i64::MAX). We provide all of these for consumers' convenience. - * @type {number} - * @memberof ApiDiskView1 - */ - size: number - /** - * - * @type {string} - * @memberof ApiDiskView1 - */ - snapshotId?: string - /** - * - * @type {ApiDiskState} - * @memberof ApiDiskView1 - */ - state: ApiDiskState - /** - * timestamp when this resource was created - * @type {Date} - * @memberof ApiDiskView1 - */ - timeCreated: Date - /** - * timestamp when this resource was last modified - * @type {Date} - * @memberof ApiDiskView1 - */ - timeModified: Date -} - -export function ApiDiskView1FromJSON(json: any): ApiDiskView1 { - return ApiDiskView1FromJSONTyped(json, false) -} - -export function ApiDiskView1FromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ApiDiskView1 { - if (json === undefined || json === null) { - return json - } - return { - description: json['description'], - devicePath: json['devicePath'], - id: json['id'], - name: json['name'], - projectId: json['projectId'], - size: json['size'], - snapshotId: !exists(json, 'snapshotId') ? undefined : json['snapshotId'], - state: ApiDiskStateFromJSON(json['state']), - timeCreated: new Date(json['timeCreated']), - timeModified: new Date(json['timeModified']), - } -} - -export function ApiDiskView1ToJSON(value?: ApiDiskView1 | null): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - description: value.description, - devicePath: value.devicePath, - id: value.id, - name: value.name, - projectId: value.projectId, - size: value.size, - snapshotId: value.snapshotId, - state: ApiDiskStateToJSON(value.state), - timeCreated: value.timeCreated.toISOString(), - timeModified: value.timeModified.toISOString(), - } -} diff --git a/libs/api/__generated__/models/ApiInstanceView1.ts b/libs/api/__generated__/models/ApiInstanceView1.ts deleted file mode 100644 index 60aaf3235..000000000 --- a/libs/api/__generated__/models/ApiInstanceView1.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -import { - ApiInstanceState, - ApiInstanceStateFromJSON, - ApiInstanceStateFromJSONTyped, - ApiInstanceStateToJSON, -} from './' - -/** - * Client view of an [`ApiInstance`] - * @export - * @interface ApiInstanceView1 - */ -export interface ApiInstanceView1 { - /** - * human-readable free-form text about a resource - * @type {string} - * @memberof ApiInstanceView1 - */ - description: string - /** - * RFC1035-compliant hostname for the Instance. - * @type {string} - * @memberof ApiInstanceView1 - */ - hostname: string - /** - * unique, immutable, system-controlled identifier for each resource - * @type {string} - * @memberof ApiInstanceView1 - */ - id: string - /** - * A count of bytes, typically used either for memory or storage capacity - * - * The maximum supported byte count is [`i64::MAX`]. This makes it somewhat inconvenient to define constructors: a u32 constructor can be infallible, but an i64 constructor can fail (if the value is negative) and a u64 constructor can fail (if the value is larger than i64::MAX). We provide all of these for consumers' convenience. - * @type {number} - * @memberof ApiInstanceView1 - */ - memory: number - /** - * Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. - * @type {string} - * @memberof ApiInstanceView1 - */ - name: string - /** - * The number of CPUs in an Instance - * @type {number} - * @memberof ApiInstanceView1 - */ - ncpus: number - /** - * id for the project containing this Instance - * @type {string} - * @memberof ApiInstanceView1 - */ - projectId: string - /** - * - * @type {ApiInstanceState} - * @memberof ApiInstanceView1 - */ - runState: ApiInstanceState - /** - * timestamp when this resource was created - * @type {Date} - * @memberof ApiInstanceView1 - */ - timeCreated: Date - /** - * timestamp when this resource was last modified - * @type {Date} - * @memberof ApiInstanceView1 - */ - timeModified: Date - /** - * - * @type {Date} - * @memberof ApiInstanceView1 - */ - timeRunStateUpdated: Date -} - -export function ApiInstanceView1FromJSON(json: any): ApiInstanceView1 { - return ApiInstanceView1FromJSONTyped(json, false) -} - -export function ApiInstanceView1FromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ApiInstanceView1 { - if (json === undefined || json === null) { - return json - } - return { - description: json['description'], - hostname: json['hostname'], - id: json['id'], - memory: json['memory'], - name: json['name'], - ncpus: json['ncpus'], - projectId: json['projectId'], - runState: ApiInstanceStateFromJSON(json['runState']), - timeCreated: new Date(json['timeCreated']), - timeModified: new Date(json['timeModified']), - timeRunStateUpdated: new Date(json['timeRunStateUpdated']), - } -} - -export function ApiInstanceView1ToJSON(value?: ApiInstanceView1 | null): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - description: value.description, - hostname: value.hostname, - id: value.id, - memory: value.memory, - name: value.name, - ncpus: value.ncpus, - projectId: value.projectId, - runState: ApiInstanceStateToJSON(value.runState), - timeCreated: value.timeCreated.toISOString(), - timeModified: value.timeModified.toISOString(), - timeRunStateUpdated: value.timeRunStateUpdated.toISOString(), - } -} diff --git a/libs/api/__generated__/models/ApiProjectView1.ts b/libs/api/__generated__/models/ApiProjectView1.ts deleted file mode 100644 index e17aba059..000000000 --- a/libs/api/__generated__/models/ApiProjectView1.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -/** - * Client view of an [`ApiProject`] - * @export - * @interface ApiProjectView1 - */ -export interface ApiProjectView1 { - /** - * human-readable free-form text about a resource - * @type {string} - * @memberof ApiProjectView1 - */ - description: string - /** - * unique, immutable, system-controlled identifier for each resource - * @type {string} - * @memberof ApiProjectView1 - */ - id: string - /** - * Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. - * @type {string} - * @memberof ApiProjectView1 - */ - name: string - /** - * timestamp when this resource was created - * @type {Date} - * @memberof ApiProjectView1 - */ - timeCreated: Date - /** - * timestamp when this resource was last modified - * @type {Date} - * @memberof ApiProjectView1 - */ - timeModified: Date -} - -export function ApiProjectView1FromJSON(json: any): ApiProjectView1 { - return ApiProjectView1FromJSONTyped(json, false) -} - -export function ApiProjectView1FromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ApiProjectView1 { - if (json === undefined || json === null) { - return json - } - return { - description: json['description'], - id: json['id'], - name: json['name'], - timeCreated: new Date(json['timeCreated']), - timeModified: new Date(json['timeModified']), - } -} - -export function ApiProjectView1ToJSON(value?: ApiProjectView1 | null): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - description: value.description, - id: value.id, - name: value.name, - timeCreated: value.timeCreated.toISOString(), - timeModified: value.timeModified.toISOString(), - } -} diff --git a/libs/api/__generated__/models/ApiRackView1.ts b/libs/api/__generated__/models/ApiRackView1.ts deleted file mode 100644 index cc35cbf72..000000000 --- a/libs/api/__generated__/models/ApiRackView1.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -import { - ApiIdentityMetadata, - ApiIdentityMetadataFromJSON, - ApiIdentityMetadataFromJSONTyped, - ApiIdentityMetadataToJSON, -} from './' - -/** - * Client view of an [`ApiRack`] - * @export - * @interface ApiRackView1 - */ -export interface ApiRackView1 { - /** - * - * @type {ApiIdentityMetadata} - * @memberof ApiRackView1 - */ - identity: ApiIdentityMetadata -} - -export function ApiRackView1FromJSON(json: any): ApiRackView1 { - return ApiRackView1FromJSONTyped(json, false) -} - -export function ApiRackView1FromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ApiRackView1 { - if (json === undefined || json === null) { - return json - } - return { - identity: ApiIdentityMetadataFromJSON(json['identity']), - } -} - -export function ApiRackView1ToJSON(value?: ApiRackView1 | null): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - identity: ApiIdentityMetadataToJSON(value.identity), - } -} diff --git a/libs/api/__generated__/models/ApiSledView1.ts b/libs/api/__generated__/models/ApiSledView1.ts deleted file mode 100644 index f48841251..000000000 --- a/libs/api/__generated__/models/ApiSledView1.ts +++ /dev/null @@ -1,96 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -/** - * Client view of an [`ApiSled`] - * @export - * @interface ApiSledView1 - */ -export interface ApiSledView1 { - /** - * human-readable free-form text about a resource - * @type {string} - * @memberof ApiSledView1 - */ - description: string - /** - * unique, immutable, system-controlled identifier for each resource - * @type {string} - * @memberof ApiSledView1 - */ - id: string - /** - * Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and '-', and may not end with a '-'. - * @type {string} - * @memberof ApiSledView1 - */ - name: string - /** - * - * @type {string} - * @memberof ApiSledView1 - */ - serviceAddress: string - /** - * timestamp when this resource was created - * @type {Date} - * @memberof ApiSledView1 - */ - timeCreated: Date - /** - * timestamp when this resource was last modified - * @type {Date} - * @memberof ApiSledView1 - */ - timeModified: Date -} - -export function ApiSledView1FromJSON(json: any): ApiSledView1 { - return ApiSledView1FromJSONTyped(json, false) -} - -export function ApiSledView1FromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ApiSledView1 { - if (json === undefined || json === null) { - return json - } - return { - description: json['description'], - id: json['id'], - name: json['name'], - serviceAddress: json['serviceAddress'], - timeCreated: new Date(json['timeCreated']), - timeModified: new Date(json['timeModified']), - } -} - -export function ApiSledView1ToJSON(value?: ApiSledView1 | null): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - description: value.description, - id: value.id, - name: value.name, - serviceAddress: value.serviceAddress, - timeCreated: value.timeCreated.toISOString(), - timeModified: value.timeModified.toISOString(), - } -} diff --git a/libs/api/__generated__/models/ResultsPageForApiDiskView.ts b/libs/api/__generated__/models/ResultsPageForApiDiskView.ts deleted file mode 100644 index 27941ef66..000000000 --- a/libs/api/__generated__/models/ResultsPageForApiDiskView.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -import { - ApiDiskView, - ApiDiskViewFromJSON, - ApiDiskViewFromJSONTyped, - ApiDiskViewToJSON, -} from './' - -/** - * A single page of results - * @export - * @interface ResultsPageForApiDiskView - */ -export interface ResultsPageForApiDiskView { - /** - * list of items on this page of results - * @type {Array} - * @memberof ResultsPageForApiDiskView - */ - items: Array - /** - * token used to fetch the next page of results (if any) - * @type {string} - * @memberof ResultsPageForApiDiskView - */ - nextPage?: string -} - -export function ResultsPageForApiDiskViewFromJSON( - json: any -): ResultsPageForApiDiskView { - return ResultsPageForApiDiskViewFromJSONTyped(json, false) -} - -export function ResultsPageForApiDiskViewFromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ResultsPageForApiDiskView { - if (json === undefined || json === null) { - return json - } - return { - items: (json['items'] as Array).map(ApiDiskViewFromJSON), - nextPage: !exists(json, 'next_page') ? undefined : json['next_page'], - } -} - -export function ResultsPageForApiDiskViewToJSON( - value?: ResultsPageForApiDiskView | null -): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - items: (value.items as Array).map(ApiDiskViewToJSON), - next_page: value.nextPage, - } -} diff --git a/libs/api/__generated__/models/ResultsPageForApiInstanceView.ts b/libs/api/__generated__/models/ResultsPageForApiInstanceView.ts deleted file mode 100644 index 74fd7bf9c..000000000 --- a/libs/api/__generated__/models/ResultsPageForApiInstanceView.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -import { - ApiInstanceView, - ApiInstanceViewFromJSON, - ApiInstanceViewFromJSONTyped, - ApiInstanceViewToJSON, -} from './' - -/** - * A single page of results - * @export - * @interface ResultsPageForApiInstanceView - */ -export interface ResultsPageForApiInstanceView { - /** - * list of items on this page of results - * @type {Array} - * @memberof ResultsPageForApiInstanceView - */ - items: Array - /** - * token used to fetch the next page of results (if any) - * @type {string} - * @memberof ResultsPageForApiInstanceView - */ - nextPage?: string -} - -export function ResultsPageForApiInstanceViewFromJSON( - json: any -): ResultsPageForApiInstanceView { - return ResultsPageForApiInstanceViewFromJSONTyped(json, false) -} - -export function ResultsPageForApiInstanceViewFromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ResultsPageForApiInstanceView { - if (json === undefined || json === null) { - return json - } - return { - items: (json['items'] as Array).map(ApiInstanceViewFromJSON), - nextPage: !exists(json, 'next_page') ? undefined : json['next_page'], - } -} - -export function ResultsPageForApiInstanceViewToJSON( - value?: ResultsPageForApiInstanceView | null -): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - items: (value.items as Array).map(ApiInstanceViewToJSON), - next_page: value.nextPage, - } -} diff --git a/libs/api/__generated__/models/ResultsPageForApiProjectView.ts b/libs/api/__generated__/models/ResultsPageForApiProjectView.ts deleted file mode 100644 index ace044117..000000000 --- a/libs/api/__generated__/models/ResultsPageForApiProjectView.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -import { - ApiProjectView, - ApiProjectViewFromJSON, - ApiProjectViewFromJSONTyped, - ApiProjectViewToJSON, -} from './' - -/** - * A single page of results - * @export - * @interface ResultsPageForApiProjectView - */ -export interface ResultsPageForApiProjectView { - /** - * list of items on this page of results - * @type {Array} - * @memberof ResultsPageForApiProjectView - */ - items: Array - /** - * token used to fetch the next page of results (if any) - * @type {string} - * @memberof ResultsPageForApiProjectView - */ - nextPage?: string -} - -export function ResultsPageForApiProjectViewFromJSON( - json: any -): ResultsPageForApiProjectView { - return ResultsPageForApiProjectViewFromJSONTyped(json, false) -} - -export function ResultsPageForApiProjectViewFromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ResultsPageForApiProjectView { - if (json === undefined || json === null) { - return json - } - return { - items: (json['items'] as Array).map(ApiProjectViewFromJSON), - nextPage: !exists(json, 'next_page') ? undefined : json['next_page'], - } -} - -export function ResultsPageForApiProjectViewToJSON( - value?: ResultsPageForApiProjectView | null -): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - items: (value.items as Array).map(ApiProjectViewToJSON), - next_page: value.nextPage, - } -} diff --git a/libs/api/__generated__/models/ResultsPageForApiRackView.ts b/libs/api/__generated__/models/ResultsPageForApiRackView.ts deleted file mode 100644 index 77ba9f9f2..000000000 --- a/libs/api/__generated__/models/ResultsPageForApiRackView.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -import { - ApiRackView, - ApiRackViewFromJSON, - ApiRackViewFromJSONTyped, - ApiRackViewToJSON, -} from './' - -/** - * A single page of results - * @export - * @interface ResultsPageForApiRackView - */ -export interface ResultsPageForApiRackView { - /** - * list of items on this page of results - * @type {Array} - * @memberof ResultsPageForApiRackView - */ - items: Array - /** - * token used to fetch the next page of results (if any) - * @type {string} - * @memberof ResultsPageForApiRackView - */ - nextPage?: string -} - -export function ResultsPageForApiRackViewFromJSON( - json: any -): ResultsPageForApiRackView { - return ResultsPageForApiRackViewFromJSONTyped(json, false) -} - -export function ResultsPageForApiRackViewFromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ResultsPageForApiRackView { - if (json === undefined || json === null) { - return json - } - return { - items: (json['items'] as Array).map(ApiRackViewFromJSON), - nextPage: !exists(json, 'next_page') ? undefined : json['next_page'], - } -} - -export function ResultsPageForApiRackViewToJSON( - value?: ResultsPageForApiRackView | null -): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - items: (value.items as Array).map(ApiRackViewToJSON), - next_page: value.nextPage, - } -} diff --git a/libs/api/__generated__/models/ResultsPageForApiSledView.ts b/libs/api/__generated__/models/ResultsPageForApiSledView.ts deleted file mode 100644 index 1fbf2ce6c..000000000 --- a/libs/api/__generated__/models/ResultsPageForApiSledView.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* tslint:disable */ -/* eslint-disable */ -/** - * Oxide Region API - * API for interacting with the Oxide control plane - * - * The version of the OpenAPI document: 0.0.1 - * Contact: api@oxide.computer - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { exists, mapValues } from '../runtime' -import { - ApiSledView, - ApiSledViewFromJSON, - ApiSledViewFromJSONTyped, - ApiSledViewToJSON, -} from './' - -/** - * A single page of results - * @export - * @interface ResultsPageForApiSledView - */ -export interface ResultsPageForApiSledView { - /** - * list of items on this page of results - * @type {Array} - * @memberof ResultsPageForApiSledView - */ - items: Array - /** - * token used to fetch the next page of results (if any) - * @type {string} - * @memberof ResultsPageForApiSledView - */ - nextPage?: string -} - -export function ResultsPageForApiSledViewFromJSON( - json: any -): ResultsPageForApiSledView { - return ResultsPageForApiSledViewFromJSONTyped(json, false) -} - -export function ResultsPageForApiSledViewFromJSONTyped( - json: any, - ignoreDiscriminator: boolean -): ResultsPageForApiSledView { - if (json === undefined || json === null) { - return json - } - return { - items: (json['items'] as Array).map(ApiSledViewFromJSON), - nextPage: !exists(json, 'next_page') ? undefined : json['next_page'], - } -} - -export function ResultsPageForApiSledViewToJSON( - value?: ResultsPageForApiSledView | null -): any { - if (value === undefined) { - return undefined - } - if (value === null) { - return null - } - return { - items: (value.items as Array).map(ApiSledViewToJSON), - next_page: value.nextPage, - } -} diff --git a/libs/api/__generated__/models/index.ts b/libs/api/__generated__/models/index.ts index da6f2be67..6b05201c8 100644 --- a/libs/api/__generated__/models/index.ts +++ b/libs/api/__generated__/models/index.ts @@ -1,5 +1,4 @@ export * from './ApiDiskAttachment' -export * from './ApiDiskAttachment1' export * from './ApiDiskCreateParams' export * from './ApiDiskState' export * from './ApiDiskStateAnyOf' @@ -7,25 +6,20 @@ export * from './ApiDiskStateAnyOf1' export * from './ApiDiskStateAnyOf2' export * from './ApiDiskStateAnyOf3' export * from './ApiDiskView' -export * from './ApiDiskView1' export * from './ApiDiskViewResultsPage' export * from './ApiIdSortMode' export * from './ApiIdentityMetadata' export * from './ApiInstanceCreateParams' export * from './ApiInstanceState' export * from './ApiInstanceView' -export * from './ApiInstanceView1' export * from './ApiInstanceViewResultsPage' export * from './ApiNameOrIdSortMode' export * from './ApiNameSortMode' export * from './ApiProjectCreateParams' export * from './ApiProjectUpdateParams' export * from './ApiProjectView' -export * from './ApiProjectView1' export * from './ApiProjectViewResultsPage' export * from './ApiRackView' -export * from './ApiRackView1' export * from './ApiRackViewResultsPage' export * from './ApiSledView' -export * from './ApiSledView1' export * from './ApiSledViewResultsPage' diff --git a/tools/create_gcp_instance.sh b/tools/create_gcp_instance.sh index 8ca9ea821..6af7eeff2 100755 --- a/tools/create_gcp_instance.sh +++ b/tools/create_gcp_instance.sh @@ -20,7 +20,7 @@ gcloud compute instances create "$INSTANCE_NAME" \ --description="Machine automatically generated from branch ${BRANCH_NAME} of the oxidecomputer/console git repo." \ --hostname="${INSTANCE_NAME}.internal.oxide.computer" \ --zone=$ZONE \ - --image=packer-1618521446 \ + --image=packer-1618611165 \ --maintenance-policy=TERMINATE \ --restart-on-failure \ --machine-type=$INSTANCE_TYPE \