Google Cloud Batch V1 Client - Class InstanceStatus (0.4.0)

Reference documentation and code samples for the Google Cloud Batch V1 Client class InstanceStatus.

VM instance status.

Generated from protobuf message google.cloud.batch.v1.JobStatus.InstanceStatus

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ machine_type string

The Compute Engine machine type.

↳ provisioning_model int

The VM instance provisioning model.

↳ task_pack int|string

The max number of tasks can be assigned to this instance type.

↳ boot_disk Google\Cloud\Batch\V1\AllocationPolicy\Disk

The VM boot disk.

getMachineType

The Compute Engine machine type.

Returns
TypeDescription
string

setMachineType

The Compute Engine machine type.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProvisioningModel

The VM instance provisioning model.

Returns
TypeDescription
int

setProvisioningModel

The VM instance provisioning model.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTaskPack

The max number of tasks can be assigned to this instance type.

Returns
TypeDescription
int|string

setTaskPack

The max number of tasks can be assigned to this instance type.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getBootDisk

The VM boot disk.

Returns
TypeDescription
Google\Cloud\Batch\V1\AllocationPolicy\Disk|null

hasBootDisk

clearBootDisk

setBootDisk

The VM boot disk.

Parameter
NameDescription
var Google\Cloud\Batch\V1\AllocationPolicy\Disk
Returns
TypeDescription
$this