Class: Google::Apis::VmmigrationV1alpha1::VmAttachmentDetails
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::VmAttachmentDetails
- 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
-
#device_name ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmAttachmentDetails
constructor
A new instance of VmAttachmentDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_name ⇒ String
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
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 |