Class: Google::Apis::BatchV1::AgentTaskLoggingOption

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#labelsHash<String,String>

Labels to be added to the log entry. Now only cloud logging is supported. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


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