Class: Google::Apis::VmmigrationV1::VmAttachmentDetails

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

Overview

Details for attachment of the disk to a VM.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmAttachmentDetails

Returns a new instance of VmAttachmentDetails.



4424
4425
4426
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4424

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

Instance Attribute Details

#device_nameString

Optional. Specifies a unique device name of your choice that is reflected into the /dev/disk/by-id/google-* tree of a Linux operating system running within the instance. If not specified, the server chooses a default device name to apply to this disk, in the form persistent-disk-x, where x is a number assigned by Google Compute Engine. This field is only applicable for persistent disks. Corresponds to the JSON property deviceName

Returns:

  • (String)


4422
4423
4424
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4422

def device_name
  @device_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4429
4430
4431
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 4429

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