Class: Google::Apis::BatchV1::LogsPolicy

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

LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LogsPolicy

Returns a new instance of LogsPolicy.



1280
1281
1282
# File 'lib/google/apis/batch_v1/classes.rb', line 1280

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#destinationString

Where logs should be saved. Corresponds to the JSON property destination

Returns:

  • (String)


1271
1272
1273
# File 'lib/google/apis/batch_v1/classes.rb', line 1271

def destination
  @destination
end

#logs_pathString

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

Returns:

  • (String)


1278
1279
1280
# File 'lib/google/apis/batch_v1/classes.rb', line 1278

def logs_path
  @logs_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1285
1286
1287
1288
# File 'lib/google/apis/batch_v1/classes.rb', line 1285

def update!(**args)
  @destination = args[:destination] if args.key?(:destination)
  @logs_path = args[:logs_path] if args.key?(:logs_path)
end