Class: Google::Apis::LifesciencesV2beta::ExistingDisk

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

Overview

Configuration for an existing disk to be attached to the VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExistingDisk

Returns a new instance of ExistingDisk.



571
572
573
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 571

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

Instance Attribute Details

#diskString

If disk contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If disk does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form zones//disks/, where `is the zone in which the instance is allocated. The disk must be ext4 formatted. If allMountreferences to this disk have theread_onlyflag set to true, the disk will be attached inread- onlymode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared. Corresponds to the JSON propertydisk`

Returns:

  • (String)


569
570
571
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 569

def disk
  @disk
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



576
577
578
# File 'lib/google/apis/lifesciences_v2beta/classes.rb', line 576

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