UNPKG

cdktf-crd

Version:
108 lines (107 loc) 5.93 kB
import { Construct } from "constructs"; import { Manifest, type ManifestConfig } from "@cdktn/provider-kubernetes/lib/manifest"; export declare class ComputeCnrmCloudGoogleComComputeReservationV1beta1 extends Manifest { constructor(scope: Construct, id: string, config: ComputeCnrmCloudGoogleComComputeReservationV1beta1Config); } export interface ComputeCnrmCloudGoogleComComputeReservationV1beta1Config extends ManifestConfig { manifest: { apiVersion: "compute.cnrm.cloud.google.com/v1beta1"; kind: "ComputeReservation"; metadata: { annotations?: { [key: string]: string; }; labels?: { [key: string]: string; }; name: string; namespace?: string; }; spec: { /** @description Immutable. An optional description of this resource. */ description?: string; /** @description Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. */ resourceID?: string; /** @description Reservation for instances with specific machine shapes. */ specificReservation: { /** @description The number of resources that are allocated. */ count: number; /** @description How many instances are in use. */ inUseCount?: number; /** @description Immutable. The instance properties for the reservation. */ instanceProperties: { /** @description Immutable. Guest accelerator type and count. */ guestAccelerators?: { /** * @description Immutable. The number of the guest accelerator cards exposed to * this instance. */ acceleratorCount: number; /** * @description Immutable. The full or partial URL of the accelerator type to * attach to this instance. For example: * 'projects/my-project/zones/us-central1-c/acceleratorTypes/nvidia-tesla-p100' * * If you are creating an instance template, specify only the accelerator name. */ acceleratorType: string; }[]; /** * @description Immutable. The amount of local ssd to reserve with each instance. This * reserves disks of type 'local-ssd'. */ localSsds?: { /** @description Immutable. The size of the disk in base-2 GB. */ diskSizeGb: number; /** @description Immutable. The disk interface to use for attaching this disk. Default value: "SCSI" Possible values: ["SCSI", "NVME"]. */ interface?: string; }[]; /** @description Immutable. The name of the machine type to reserve. */ machineType: string; /** * @description Immutable. The minimum CPU platform for the reservation. For example, * '"Intel Skylake"'. See * the CPU platform availability reference](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform#availablezones) * for information on available CPU platforms. */ minCpuPlatform?: string; }; }; /** * @description Immutable. When set to true, only VMs that target this reservation by name can * consume this reservation. Otherwise, it can be consumed by VMs with * affinity for any reservation. Defaults to false. */ specificReservationRequired?: boolean; /** @description Immutable. The zone where the reservation is made. */ zone: string; }; status?: { /** * @description Full or partial URL to a parent commitment. This field displays for * reservations that are tied to a commitment. */ commitment?: string; /** @description Conditions represent the latest available observation of the resource's current state. */ conditions?: { /** @description Last time the condition transitioned from one status to another. */ lastTransitionTime?: string; /** @description Human-readable message indicating details about last transition. */ message?: string; /** @description Unique, one-word, CamelCase reason for the condition's last transition. */ reason?: string; /** @description Status is the status of the condition. Can be True, False, Unknown. */ status?: string; /** @description Type is the type of the condition. */ type?: string; }[]; /** @description Creation timestamp in RFC3339 text format. */ creationTimestamp?: string; /** @description ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. */ observedGeneration?: number; selfLink?: string; /** @description The status of the reservation. */ status?: string; }; }; }