Reference documentation and code samples for the Google Cloud Batch V1 Client class ComputeResource.
Compute resource requirements
Generated from protobuf message google.cloud.batch.v1.ComputeResource
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ cpu_milli |
int|string
The milliCPU count. |
↳ memory_mib |
int|string
Memory in MiB. |
↳ boot_disk_mib |
int|string
Extra boot disk size in MiB for each task. |
getCpuMilli
The milliCPU count.
Generated from protobuf field int64 cpu_milli = 1;
Returns | |
---|---|
Type | Description |
int|string |
setCpuMilli
The milliCPU count.
Generated from protobuf field int64 cpu_milli = 1;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getMemoryMib
Memory in MiB.
Generated from protobuf field int64 memory_mib = 2;
Returns | |
---|---|
Type | Description |
int|string |
setMemoryMib
Memory in MiB.
Generated from protobuf field int64 memory_mib = 2;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |
getBootDiskMib
Extra boot disk size in MiB for each task.
Generated from protobuf field int64 boot_disk_mib = 4;
Returns | |
---|---|
Type | Description |
int|string |
setBootDiskMib
Extra boot disk size in MiB for each task.
Generated from protobuf field int64 boot_disk_mib = 4;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |