Class: Google::Apis::BatchV1::LogsPolicy
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::LogsPolicy
- 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
LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.
Instance Attribute Summary collapse
-
#cloud_logging_option ⇒ Google::Apis::BatchV1::CloudLoggingOption
CloudLoggingOptioncontains additional settings for Cloud Logging logs generated by Batch job. -
#destination ⇒ String
Where logs should be saved.
-
#logs_path ⇒ String
The path to which logs are saved when the destination = PATH.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogsPolicy
constructor
A new instance of LogsPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LogsPolicy
Returns a new instance of LogsPolicy.
1710 1711 1712 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1710 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cloud_logging_option ⇒ Google::Apis::BatchV1::CloudLoggingOption
CloudLoggingOption contains additional settings for Cloud Logging logs
generated by Batch job.
Corresponds to the JSON property cloudLoggingOption
1696 1697 1698 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1696 def cloud_logging_option @cloud_logging_option end |
#destination ⇒ String
Where logs should be saved.
Corresponds to the JSON property destination
1701 1702 1703 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1701 def destination @destination end |
#logs_path ⇒ String
The path to which logs are saved when the destination = PATH. This can be a
local file path on the VM, or under the mount point of a Persistent Disk or
Filestore, or a Cloud Storage path.
Corresponds to the JSON property logsPath
1708 1709 1710 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1708 def logs_path @logs_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1715 1716 1717 1718 1719 |
# File 'lib/google/apis/batch_v1/classes.rb', line 1715 def update!(**args) @cloud_logging_option = args[:cloud_logging_option] if args.key?(:cloud_logging_option) @destination = args[:destination] if args.key?(:destination) @logs_path = args[:logs_path] if args.key?(:logs_path) end |