Reference documentation and code samples for the Batch V1 API class Google::Cloud::Batch::V1::LogsPolicy.
LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cloud_logging_option
def cloud_logging_option() -> ::Google::Cloud::Batch::V1::LogsPolicy::CloudLoggingOption
Returns
-
(::Google::Cloud::Batch::V1::LogsPolicy::CloudLoggingOption) — Optional. Additional settings for Cloud Logging. It will only take effect
when the destination of
LogsPolicy
is set toCLOUD_LOGGING
.
#cloud_logging_option=
def cloud_logging_option=(value) -> ::Google::Cloud::Batch::V1::LogsPolicy::CloudLoggingOption
Parameter
-
value (::Google::Cloud::Batch::V1::LogsPolicy::CloudLoggingOption) — Optional. Additional settings for Cloud Logging. It will only take effect
when the destination of
LogsPolicy
is set toCLOUD_LOGGING
.
Returns
-
(::Google::Cloud::Batch::V1::LogsPolicy::CloudLoggingOption) — Optional. Additional settings for Cloud Logging. It will only take effect
when the destination of
LogsPolicy
is set toCLOUD_LOGGING
.
#destination
def destination() -> ::Google::Cloud::Batch::V1::LogsPolicy::Destination
Returns
- (::Google::Cloud::Batch::V1::LogsPolicy::Destination) — Where logs should be saved.
#destination=
def destination=(value) -> ::Google::Cloud::Batch::V1::LogsPolicy::Destination
Parameter
- value (::Google::Cloud::Batch::V1::LogsPolicy::Destination) — Where logs should be saved.
Returns
- (::Google::Cloud::Batch::V1::LogsPolicy::Destination) — Where logs should be saved.
#logs_path
def logs_path() -> ::String
Returns
- (::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.
#logs_path=
def logs_path=(value) -> ::String
Parameter
- value (::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.
Returns
- (::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.