Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::Job.
The Cloud Batch Job description.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#allocation_policy
def allocation_policy() -> ::Google::Cloud::Batch::V1::AllocationPolicy
- (::Google::Cloud::Batch::V1::AllocationPolicy) — Compute resource allocation for all TaskGroups in the Job.
#allocation_policy=
def allocation_policy=(value) -> ::Google::Cloud::Batch::V1::AllocationPolicy
- value (::Google::Cloud::Batch::V1::AllocationPolicy) — Compute resource allocation for all TaskGroups in the Job.
- (::Google::Cloud::Batch::V1::AllocationPolicy) — Compute resource allocation for all TaskGroups in the Job.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. When the Job was created.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
-
(::Google::Protobuf::Map{::String => ::String}) — Custom labels to apply to the job and any Cloud Logging
LogEntry
that it generates.
Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple
labels
fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see Organize resources using labels.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
-
value (::Google::Protobuf::Map{::String => ::String}) — Custom labels to apply to the job and any Cloud Logging
LogEntry
that it generates.
Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple
labels
fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see Organize resources using labels.
-
(::Google::Protobuf::Map{::String => ::String}) — Custom labels to apply to the job and any Cloud Logging
LogEntry
that it generates.
Use labels to group and describe the resources they are applied to. Batch automatically applies predefined labels and supports multiple
labels
fields for each job, which each let you apply custom labels to various resources. Label names that start with "goog-" or "google-" are reserved for predefined labels. For more information about labels with Batch, see Organize resources using labels.
#logs_policy
def logs_policy() -> ::Google::Cloud::Batch::V1::LogsPolicy
- (::Google::Cloud::Batch::V1::LogsPolicy) — Log preservation policy for the Job.
#logs_policy=
def logs_policy=(value) -> ::Google::Cloud::Batch::V1::LogsPolicy
- value (::Google::Cloud::Batch::V1::LogsPolicy) — Log preservation policy for the Job.
- (::Google::Cloud::Batch::V1::LogsPolicy) — Log preservation policy for the Job.
#name
def name() -> ::String
- (::String) — Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".
#notifications
def notifications() -> ::Array<::Google::Cloud::Batch::V1::JobNotification>
- (::Array<::Google::Cloud::Batch::V1::JobNotification>) — Notification configurations.
#notifications=
def notifications=(value) -> ::Array<::Google::Cloud::Batch::V1::JobNotification>
- value (::Array<::Google::Cloud::Batch::V1::JobNotification>) — Notification configurations.
- (::Array<::Google::Cloud::Batch::V1::JobNotification>) — Notification configurations.
#priority
def priority() -> ::Integer
- (::Integer) — 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.
#priority=
def priority=(value) -> ::Integer
- value (::Integer) — 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.
- (::Integer) — 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.
#status
def status() -> ::Google::Cloud::Batch::V1::JobStatus
- (::Google::Cloud::Batch::V1::JobStatus) — Output only. Job status. It is read only for users.
#task_groups
def task_groups() -> ::Array<::Google::Cloud::Batch::V1::TaskGroup>
- (::Array<::Google::Cloud::Batch::V1::TaskGroup>) — Required. TaskGroups in the Job. Only one TaskGroup is supported now.
#task_groups=
def task_groups=(value) -> ::Array<::Google::Cloud::Batch::V1::TaskGroup>
- value (::Array<::Google::Cloud::Batch::V1::TaskGroup>) — Required. TaskGroups in the Job. Only one TaskGroup is supported now.
- (::Array<::Google::Cloud::Batch::V1::TaskGroup>) — Required. TaskGroups in the Job. Only one TaskGroup is supported now.
#uid
def uid() -> ::String
- (::String) — Output only. A system generated unique ID for the Job.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The last time the Job was updated.