InstancePolicy class
InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.
Constructors
-
InstancePolicy({Input<
List< ? accelerators, Input<Accelerator> >Disk> ? bootDisk, Input<List< ? disks, Input<AttachedDisk> >String> ? machineType, Input<String> ? minCpuPlatform, Input<InstancePolicyProvisioningModel> ? provisioningModel, Input<String> ? reservation}) -
Creates a new InstancePolicy.
acceleratorsThe accelerators attached to each VM instance.bootDiskBoot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.disksNon-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.machineTypeThe Compute Engine machine type.minCpuPlatformThe minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.provisioningModelThe provisioning model.reservationOptional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.const -
InstancePolicy.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
accelerators
→ Input<
List< ?Accelerator> > -
The accelerators attached to each VM instance.
final
-
bootDisk
→ Input<
Disk> ? -
Boot disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted. Batch API now only supports booting from image.
final
-
disks
→ Input<
List< ?AttachedDisk> > -
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted. A non-boot disk is a disk that can be of a device with a file system or a raw storage drive that is not ready for data storage and accessing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
machineType
→ Input<
String> ? -
The Compute Engine machine type.
final
-
minCpuPlatform
→ Input<
String> ? -
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
final
-
provisioningModel
→ Input<
InstancePolicyProvisioningModel> ? -
The provisioning model.
final
-
reservation
→ Input<
String> ? -
Optional. If specified, VMs will consume only the specified reservation. If not specified (default), VMs will consume any applicable reservation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited