Class: Google::Apis::VmmigrationV1alpha1::VmAttachmentDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/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.



4623
4624
4625
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4623

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)


4621
4622
4623
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4621

def device_name
  @device_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4628
4629
4630
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4628

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