Class Job (0.16.0)

Job(mapping=None,*,ignore_unknown_fields=False,**kwargs)

The Cloud Batch Job description.

Attributes

NameDescription
namestr
Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".
uidstr
Output only. A system generated unique ID (in UUID4 format) for the Job.
priorityint
Priority of the Job. The valid value range is [0, 100). Default value is 0. Higher value indicates higher priority. A job with higher priority value is more likely to run earlier if all other requirements are satisfied.
task_groupsMutableSequence[google.cloud.batch_v1.types.TaskGroup]
Required. TaskGroups in the Job. Only one TaskGroup is supported now.
allocation_policygoogle.cloud.batch_v1.types.AllocationPolicy
Compute resource allocation for all TaskGroups in the Job.
labelsMutableMapping[str, str]
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
statusgoogle.cloud.batch_v1.types.JobStatus
Output only. Job status. It is read only for users.
create_timegoogle.protobuf.timestamp_pb2.Timestamp
Output only. When the Job was created.
update_timegoogle.protobuf.timestamp_pb2.Timestamp
Output only. The last time the Job was updated.
logs_policygoogle.cloud.batch_v1.types.LogsPolicy
Log preservation policy for the Job.
notificationsMutableSequence[google.cloud.batch_v1.types.JobNotification]
Notification configurations.

Classes

LabelsEntry

LabelsEntry(mapping=None,*,ignore_unknown_fields=False,**kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargsdict

Keys and values corresponding to the fields of the message.

mappingUnion[dict,.Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fieldsOptional(bool)

If True, do not raise errors for unknown fields. Only applied ifmapping is a mapping type or there are keyword parameters.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-04 UTC.