Class: Google::Apis::VmmigrationV1alpha1::AzureDiskDetails
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::AzureDiskDetails
- 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
The details of an Azure VM disk.
Instance Attribute Summary collapse
-
#disk_id ⇒ String
Output only.
-
#disk_number ⇒ Fixnum
Output only.
-
#size_gb ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AzureDiskDetails
constructor
A new instance of AzureDiskDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AzureDiskDetails
Returns a new instance of AzureDiskDetails.
506 507 508 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 506 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_id ⇒ String
Output only. Azure disk ID.
Corresponds to the JSON property diskId
494 495 496 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 494 def disk_id @disk_id end |
#disk_number ⇒ Fixnum
Output only. The ordinal number of the disk.
Corresponds to the JSON property diskNumber
499 500 501 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 499 def disk_number @disk_number end |
#size_gb ⇒ Fixnum
Output only. Size in GB.
Corresponds to the JSON property sizeGb
504 505 506 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 504 def size_gb @size_gb end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
511 512 513 514 515 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 511 def update!(**args) @disk_id = args[:disk_id] if args.key?(:disk_id) @disk_number = args[:disk_number] if args.key?(:disk_number) @size_gb = args[:size_gb] if args.key?(:size_gb) end |