Reference documentation and code samples for the Google Cloud Batch V1 Client class Job.
The Cloud Batch Job description.
Generated from protobuf message google.cloud.batch.v1.Job
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".
↳ uid
string
Output only. A system generated unique ID (in UUID4 format) for the Job.
↳ priority
int|string
Priority of the Job. The valid value range is [0, 100). A job with higher priority value is more likely to run earlier if all other requirements are satisfied.
↳ task_groups
array< Google\Cloud\Batch\V1\TaskGroup
>
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
↳ allocation_policy
↳ labels
array|Google\Protobuf\Internal\MapField
Labels for the Job. Labels could be user provided or system generated. For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.
↳ status
↳ create_time
Google\Protobuf\Timestamp
Output only. When the Job was created.
↳ update_time
Google\Protobuf\Timestamp
Output only. The last time the Job was updated.
↳ logs_policy
↳ notifications
getName
Output only. Job name.
For example: "projects/123456/locations/us-central1/jobs/job01".
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
string
setName
Output only. Job name.
For example: "projects/123456/locations/us-central1/jobs/job01".
Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
var
string
$this
getUid
Output only. A system generated unique ID (in UUID4 format) for the Job.
Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
string
setUid
Output only. A system generated unique ID (in UUID4 format) for the Job.
Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
var
string
$this
getPriority
Priority of the Job.
The valid value range is [0, 100). A job with higher priority value is more likely to run earlier if all other requirements are satisfied.
Generated from protobuf field int64 priority = 3;
int|string
setPriority
Priority of the Job.
The valid value range is [0, 100). A job with higher priority value is more likely to run earlier if all other requirements are satisfied.
Generated from protobuf field int64 priority = 3;
var
int|string
$this
getTaskGroups
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
Generated from protobuf field repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
Google\Protobuf\Internal\RepeatedField
setTaskGroups
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
Generated from protobuf field repeated .google.cloud.batch.v1.TaskGroup task_groups = 4 [(.google.api.field_behavior) = REQUIRED];
$this
getAllocationPolicy
Compute resource allocation for all TaskGroups in the Job.
Generated from protobuf field .google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;
hasAllocationPolicy
clearAllocationPolicy
setAllocationPolicy
Compute resource allocation for all TaskGroups in the Job.
Generated from protobuf field .google.cloud.batch.v1.AllocationPolicy allocation_policy = 7;
$this
getLabels
Labels for the Job. Labels could be user provided or system generated.
For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.
Generated from protobuf field map<string, string> labels = 8;
Google\Protobuf\Internal\MapField
setLabels
Labels for the Job. Labels could be user provided or system generated.
For example, "labels": { "department": "finance", "environment": "test" } You can assign up to 64 labels. Google Compute Engine label restrictions apply. Label names that start with "goog-" or "google-" are reserved.
Generated from protobuf field map<string, string> labels = 8;
var
array|Google\Protobuf\Internal\MapField
$this
getStatus
Output only. Job status. It is read only for users.
Generated from protobuf field .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasStatus
clearStatus
setStatus
Output only. Job status. It is read only for users.
Generated from protobuf field .google.cloud.batch.v1.JobStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
$this
getCreateTime
Output only. When the Job was created.
Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
Google\Protobuf\Timestamp|null
hasCreateTime
clearCreateTime
setCreateTime
Output only. When the Job was created.
Generated from protobuf field .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
var
Google\Protobuf\Timestamp
$this
getUpdateTime
Output only. The last time the Job was updated.
Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Google\Protobuf\Timestamp|null
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The last time the Job was updated.
Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
var
Google\Protobuf\Timestamp
$this
getLogsPolicy
Log preservation policy for the Job.
Generated from protobuf field .google.cloud.batch.v1.LogsPolicy logs_policy = 13;
hasLogsPolicy
clearLogsPolicy
setLogsPolicy
Log preservation policy for the Job.
Generated from protobuf field .google.cloud.batch.v1.LogsPolicy logs_policy = 13;
$this
getNotifications
Notification configurations.
Generated from protobuf field repeated .google.cloud.batch.v1.JobNotification notifications = 14;
Google\Protobuf\Internal\RepeatedField
setNotifications
Notification configurations.
Generated from protobuf field repeated .google.cloud.batch.v1.JobNotification notifications = 14;
$this