Class: Google::Cloud::Batch::V1::Job
- Inherits:
-
Object
- Object
- Google::Cloud::Batch::V1::Job
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/batch/v1/job.rb
Overview
The Cloud Batch Job description.
Defined Under Namespace
Classes: LabelsEntry
Instance Attribute Summary collapse
-
#allocation_policy ⇒ ::Google::Cloud::Batch::V1::AllocationPolicy
Compute resource allocation for all TaskGroups in the Job.
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Custom labels to apply to the job and any Cloud Logging LogEntry that it generates.
-
#logs_policy ⇒ ::Google::Cloud::Batch::V1::LogsPolicy
Log preservation policy for the Job.
-
#name ⇒ ::String
readonly
Output only.
-
#notifications ⇒ ::Array<::Google::Cloud::Batch::V1::JobNotification>
Notification configurations.
-
#priority ⇒ ::Integer
Priority of the Job.
-
#status ⇒ ::Google::Cloud::Batch::V1::JobStatus
readonly
Output only.
-
#task_groups ⇒ ::Array<::Google::Cloud::Batch::V1::TaskGroup>
Required.
-
#uid ⇒ ::String
readonly
Output only.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#allocation_policy ⇒ ::Google::Cloud::Batch::V1::AllocationPolicy
Returns Compute resource allocation for all TaskGroups in the Job.
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. When the Job was created.
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#labels ⇒ ::Google::Protobuf::Map{::String => ::String}
Returns 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.
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#logs_policy ⇒ ::Google::Cloud::Batch::V1::LogsPolicy
Returns Log preservation policy for the Job.
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#name ⇒ ::String (readonly)
Returns Output only. Job name. For example: "projects/123456/locations/us-central1/jobs/job01".
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#notifications ⇒ ::Array<::Google::Cloud::Batch::V1::JobNotification>
Returns Notification configurations.
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#priority ⇒ ::Integer
Returns 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.
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#status ⇒ ::Google::Cloud::Batch::V1::JobStatus (readonly)
Returns Output only. Job status. It is read only for users.
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#task_groups ⇒ ::Array<::Google::Cloud::Batch::V1::TaskGroup>
Returns Required. TaskGroups in the Job. Only one TaskGroup is supported now.
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#uid ⇒ ::String (readonly)
Returns Output only. A system generated unique ID for the Job.
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The last time the Job was updated.
74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'proto_docs/google/cloud/batch/v1/job.rb', line 74 class Job include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # @!attribute [rw] key # @return [::String] # @!attribute [rw] value # @return [::String] class LabelsEntry include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |