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.
↳ 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.
Generated from protobuf field string machine_type = 2;
string
setMachineType
The Compute Engine machine type.
Generated from protobuf field string machine_type = 2;
var
string
$this
getMinCpuPlatform
The minimum CPU platform.
See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform
.
Not yet implemented.
Generated from protobuf field string min_cpu_platform = 3;
string
setMinCpuPlatform
The minimum CPU platform.
See https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform
.
Not yet implemented.
Generated from protobuf field string min_cpu_platform = 3;
var
string
$this
getProvisioningModel
The provisioning model.
Generated from protobuf field .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
int
setProvisioningModel
The provisioning model.
Generated from protobuf field .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 4;
var
int
$this
getAccelerators
The accelerators attached to each VM instance.
Generated from protobuf field repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;
Google\Protobuf\Internal\RepeatedField
setAccelerators
The accelerators attached to each VM instance.
Generated from protobuf field repeated .google.cloud.batch.v1.AllocationPolicy.Accelerator accelerators = 5;
$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.
Generated from protobuf field repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
Google\Protobuf\Internal\RepeatedField
setDisks
Non-boot disks to be attached for each VM created by this InstancePolicy.
New disks will be deleted when the VM is deleted.
Generated from protobuf field repeated .google.cloud.batch.v1.AllocationPolicy.AttachedDisk disks = 6;
$this