Class: Google::Apis::BatchV1::CloudLoggingOption
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::CloudLoggingOption
- 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
CloudLoggingOption
contains additional settings for Cloud Logging logs
generated by Batch job.
Instance Attribute Summary collapse
-
#use_generic_task_monitored_resource ⇒ Boolean
(also: #use_generic_task_monitored_resource?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudLoggingOption
constructor
A new instance of CloudLoggingOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudLoggingOption
Returns a new instance of CloudLoggingOption.
792 793 794 |
# File 'lib/google/apis/batch_v1/classes.rb', line 792 def initialize(**args) update!(**args) end |
Instance Attribute Details
#use_generic_task_monitored_resource ⇒ Boolean Also known as: use_generic_task_monitored_resource?
Optional. Set this flag to true to change the monitored resource type for Cloud Logging logs generated
by this Batch job from the batch.googleapis.com/Job
type to the
formerly used generic_task
type.
Corresponds to the JSON property useGenericTaskMonitoredResource
789 790 791 |
# File 'lib/google/apis/batch_v1/classes.rb', line 789 def use_generic_task_monitored_resource @use_generic_task_monitored_resource end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
797 798 799 |
# File 'lib/google/apis/batch_v1/classes.rb', line 797 def update!(**args) @use_generic_task_monitored_resource = args[:use_generic_task_monitored_resource] if args.key?(:use_generic_task_monitored_resource) end |