Class InstancePolicy (0.9.0)

InstancePolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.

Attributes

NameDescription
allowed_machine_types MutableSequence[str]
Deprecated: please use machine_type instead.
machine_type str
The Compute Engine machine type.
min_cpu_platform str
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform. Not yet implemented.
provisioning_model google.cloud.batch_v1alpha.types.AllocationPolicy.ProvisioningModel
The provisioning model.
accelerators MutableSequence[google.cloud.batch_v1alpha.types.AllocationPolicy.Accelerator]
The accelerators attached to each VM instance.
boot_disk google.cloud.batch_v1alpha.types.AllocationPolicy.Disk
Book disk to be created and attached to each VM by this InstancePolicy. Boot disk will be deleted when the VM is deleted.
disks MutableSequence[google.cloud.batch_v1alpha.types.AllocationPolicy.AttachedDisk]
Non-boot disks to be attached for each VM created by this InstancePolicy. New disks will be deleted when the VM is deleted.
reservation str
If specified, VMs will be allocated only inside the matching reservation.