Class: Google::Apis::VmmigrationV1alpha1::BootDiskDefaults
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::BootDiskDefaults
- 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
BootDiskDefaults hold information about the boot disk of a VM.
Instance Attribute Summary collapse
-
#device_name ⇒ String
Optional.
-
#disk_name ⇒ String
Optional.
-
#disk_type ⇒ String
Optional.
-
#encryption ⇒ Google::Apis::VmmigrationV1alpha1::Encryption
Encryption message describes the details of the applied encryption.
-
#image ⇒ Google::Apis::VmmigrationV1alpha1::DiskImageDefaults
Contains details about the image source used to create the disk.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BootDiskDefaults
constructor
A new instance of BootDiskDefaults.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BootDiskDefaults
Returns a new instance of BootDiskDefaults.
767 768 769 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 767 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
745 746 747 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 745 def device_name @device_name end |
#disk_name ⇒ String
Optional. The name of the disk.
Corresponds to the JSON property diskName
750 751 752 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 750 def disk_name @disk_name end |
#disk_type ⇒ String
Optional. The type of disk provisioning to use for the VM.
Corresponds to the JSON property diskType
755 756 757 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 755 def disk_type @disk_type end |
#encryption ⇒ Google::Apis::VmmigrationV1alpha1::Encryption
Encryption message describes the details of the applied encryption.
Corresponds to the JSON property encryption
760 761 762 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 760 def encryption @encryption end |
#image ⇒ Google::Apis::VmmigrationV1alpha1::DiskImageDefaults
Contains details about the image source used to create the disk.
Corresponds to the JSON property image
765 766 767 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 765 def image @image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
772 773 774 775 776 777 778 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 772 def update!(**args) @device_name = args[:device_name] if args.key?(:device_name) @disk_name = args[:disk_name] if args.key?(:disk_name) @disk_type = args[:disk_type] if args.key?(:disk_type) @encryption = args[:encryption] if args.key?(:encryption) @image = args[:image] if args.key?(:image) end |