Class: Google::Apis::BatchV1::AgentTaskLoggingOption
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::AgentTaskLoggingOption
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/batch_v1/classes.rb,
lib/google/apis/batch_v1/representations.rb,
lib/google/apis/batch_v1/representations.rb
Overview
AgentTaskLoggingOption contains the options for the logging of the task.
Instance Attribute Summary collapse
-
#labels ⇒ Hash<String,String>
Labels to be added to the log entry.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AgentTaskLoggingOption
constructor
A new instance of AgentTaskLoggingOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AgentTaskLoggingOption
Returns a new instance of AgentTaskLoggingOption.
448 449 450 |
# File 'lib/google/apis/batch_v1/classes.rb', line 448 def initialize(**args) update!(**args) end |
Instance Attribute Details
#labels ⇒ Hash<String,String>
Labels to be added to the log entry. Now only cloud logging is supported.
Corresponds to the JSON property labels
446 447 448 |
# File 'lib/google/apis/batch_v1/classes.rb', line 446 def labels @labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
453 454 455 |
# File 'lib/google/apis/batch_v1/classes.rb', line 453 def update!(**args) @labels = args[:labels] if args.key?(:labels) end |