Reference documentation and code samples for the Google Cloud Batch V1 Client class InstancePolicy.
InstancePolicy describes an instance type and resources attached to each VM created by this InstancePolicy.
Generated from protobuf message google.cloud.batch.v1.AllocationPolicy.InstancePolicy
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ machine_type
string
The Compute Engine machine type.
↳ min_cpu_platform
string
The minimum CPU platform. See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform . Not yet implemented.
↳ provisioning_model
int
The provisioning model.
↳ accelerators
array< Google\Cloud\Batch\V1\AllocationPolicy\Accelerator
>
The accelerators attached to each VM instance.
↳ boot_disk
Google\Cloud\Batch\V1\AllocationPolicy\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.
↳ disks
array< Google\Cloud\Batch\V1\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.
getMachineType
The Compute Engine machine type.
string
setMachineType
The Compute Engine machine type.
var
string
$this
getMinCpuPlatform
The minimum CPU platform.
See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform . Not yet implemented.
string
setMinCpuPlatform
The minimum CPU platform.
See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform . Not yet implemented.
var
string
$this
getProvisioningModel
The provisioning model.
int
setProvisioningModel
The provisioning model.
var
int
$this
getAccelerators
The accelerators attached to each VM instance.
setAccelerators
The accelerators attached to each VM instance.
$this
getBootDisk
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.
hasBootDisk
clearBootDisk
setBootDisk
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.
$this
getDisks
Non-boot disks to be attached for each VM created by this InstancePolicy.
New disks will be deleted when the VM is deleted.
setDisks
Non-boot disks to be attached for each VM created by this InstancePolicy.
New disks will be deleted when the VM is deleted.
$this