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 | |
---|---|
Name | Description |
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. |
getMachineType
The Compute Engine machine type.
Generated from protobuf field string machine_type = 1;
Returns | |
---|---|
Type | Description |
string |
setMachineType
The Compute Engine machine type.
Generated from protobuf field string machine_type = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getProvisioningModel
The VM instance provisioning model.
Generated from protobuf field .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2;
Returns | |
---|---|
Type | Description |
int |
setProvisioningModel
The VM instance provisioning model.
Generated from protobuf field .google.cloud.batch.v1.AllocationPolicy.ProvisioningModel provisioning_model = 2;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getTaskPack
The max number of tasks can be assigned to this instance type.
Generated from protobuf field int64 task_pack = 3;
Returns | |
---|---|
Type | Description |
int|string |
setTaskPack
The max number of tasks can be assigned to this instance type.
Generated from protobuf field int64 task_pack = 3;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |