Class: Google::Apis::GenomicsV1alpha2::LocalCopy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/genomics_v1alpha2/classes.rb,
lib/google/apis/genomics_v1alpha2/representations.rb,
lib/google/apis/genomics_v1alpha2/representations.rb

Overview

LocalCopy defines how a remote file should be copied to and from the VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocalCopy

Returns a new instance of LocalCopy.



509
510
511
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 509

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

Instance Attribute Details

#diskString

Required. The name of the disk where this parameter is located. Can be the name of one of the disks specified in the Resources field, or "boot", which represents the Docker instance's boot disk and has a mount point of /. Corresponds to the JSON property disk

Returns:

  • (String)


500
501
502
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 500

def disk
  @disk
end

#pathString

Required. The path within the user's docker container where this input should be localized to and from, relative to the specified disk's mount point. For example: file.txt, Corresponds to the JSON property path

Returns:

  • (String)


507
508
509
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 507

def path
  @path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



514
515
516
517
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 514

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