Class: Google::Apis::VmmigrationV1::PersistentDiskDefaults
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::PersistentDiskDefaults
- 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 creation of a Persistent Disk.
Instance Attribute Summary collapse
-
#additional_labels ⇒ Hash<String,String>
A map of labels to associate with the Persistent Disk.
-
#disk_name ⇒ String
Optional.
-
#disk_type ⇒ String
The disk type to use.
-
#source_disk_number ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PersistentDiskDefaults
constructor
A new instance of PersistentDiskDefaults.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PersistentDiskDefaults
Returns a new instance of PersistentDiskDefaults.
2768 2769 2770 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2768 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_labels ⇒ Hash<String,String>
A map of labels to associate with the Persistent Disk.
Corresponds to the JSON property additionalLabels
2751 2752 2753 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2751 def additional_labels @additional_labels end |
#disk_name ⇒ String
Optional. The name of the Persistent Disk to create.
Corresponds to the JSON property diskName
2756 2757 2758 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2756 def disk_name @disk_name end |
#disk_type ⇒ String
The disk type to use.
Corresponds to the JSON property diskType
2761 2762 2763 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2761 def disk_type @disk_type end |
#source_disk_number ⇒ Fixnum
Required. The ordinal number of the source VM disk.
Corresponds to the JSON property sourceDiskNumber
2766 2767 2768 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2766 def source_disk_number @source_disk_number end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2773 2774 2775 2776 2777 2778 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2773 def update!(**args) @additional_labels = args[:additional_labels] if args.key?(:additional_labels) @disk_name = args[:disk_name] if args.key?(:disk_name) @disk_type = args[:disk_type] if args.key?(:disk_type) @source_disk_number = args[:source_disk_number] if args.key?(:source_disk_number) end |