Class: Google::Apis::VmmigrationV1alpha1::PersistentDiskDefaults
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::PersistentDiskDefaults
- 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 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.
-
#vm_attachment_details ⇒ Google::Apis::VmmigrationV1alpha1::VmAttachmentDetails
Details for attachment of the disk to a VM.
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.
3052 3053 3054 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3052 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
3030 3031 3032 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3030 def additional_labels @additional_labels end |
#disk_name ⇒ String
Optional. The name of the Persistent Disk to create.
Corresponds to the JSON property diskName
3035 3036 3037 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3035 def disk_name @disk_name end |
#disk_type ⇒ String
The disk type to use.
Corresponds to the JSON property diskType
3040 3041 3042 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3040 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
3045 3046 3047 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3045 def source_disk_number @source_disk_number end |
#vm_attachment_details ⇒ Google::Apis::VmmigrationV1alpha1::VmAttachmentDetails
Details for attachment of the disk to a VM.
Corresponds to the JSON property vmAttachmentDetails
3050 3051 3052 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3050 def @vm_attachment_details end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3057 3058 3059 3060 3061 3062 3063 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 3057 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) @vm_attachment_details = args[:vm_attachment_details] if args.key?(:vm_attachment_details) end |