Class: Google::Apis::VmmigrationV1::BootDiskDefaults
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::BootDiskDefaults
- 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
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::VmmigrationV1::Encryption
Encryption message describes the details of the applied encryption.
-
#image ⇒ Google::Apis::VmmigrationV1::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.
779 780 781 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 779 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
757 758 759 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 757 def device_name @device_name end |
#disk_name ⇒ String
Optional. The name of the disk.
Corresponds to the JSON property diskName
762 763 764 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 762 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
767 768 769 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 767 def disk_type @disk_type end |
#encryption ⇒ Google::Apis::VmmigrationV1::Encryption
Encryption message describes the details of the applied encryption.
Corresponds to the JSON property encryption
772 773 774 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 772 def encryption @encryption end |
#image ⇒ Google::Apis::VmmigrationV1::DiskImageDefaults
Contains details about the image source used to create the disk.
Corresponds to the JSON property image
777 778 779 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 777 def image @image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
784 785 786 787 788 789 790 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 784 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 |