Class: Google::Apis::VmmigrationV1alpha1::AwsDiskDetails
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::AwsDiskDetails
- 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 AWS instance disk.
Instance Attribute Summary collapse
-
#disk_number ⇒ Fixnum
Output only.
-
#size_gb ⇒ Fixnum
Output only.
-
#volume_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsDiskDetails
constructor
A new instance of AwsDiskDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AwsDiskDetails
Returns a new instance of AwsDiskDetails.
196 197 198 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_number ⇒ Fixnum
Output only. The ordinal number of the disk.
Corresponds to the JSON property diskNumber
184 185 186 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 184 def disk_number @disk_number end |
#size_gb ⇒ Fixnum
Output only. Size in GB.
Corresponds to the JSON property sizeGb
189 190 191 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 189 def size_gb @size_gb end |
#volume_id ⇒ String
Output only. AWS volume ID.
Corresponds to the JSON property volumeId
194 195 196 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 194 def volume_id @volume_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
201 202 203 204 205 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 201 def update!(**args) @disk_number = args[:disk_number] if args.key?(:disk_number) @size_gb = args[:size_gb] if args.key?(:size_gb) @volume_id = args[:volume_id] if args.key?(:volume_id) end |