Class: Google::Apis::VmmigrationV1::AwsSourceDiskDetails
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::AwsSourceDiskDetails
- 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
Represents the source AWS Disk details.
Instance Attribute Summary collapse
-
#disk_type ⇒ String
Optional.
-
#size_gib ⇒ Fixnum
Output only.
-
#tags ⇒ Hash<String,String>
Optional.
-
#volume_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AwsSourceDiskDetails
constructor
A new instance of AwsSourceDiskDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AwsSourceDiskDetails
Returns a new instance of AwsSourceDiskDetails.
354 355 356 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 354 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_type ⇒ String
Optional. Output only. Disk type.
Corresponds to the JSON property diskType
337 338 339 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 337 def disk_type @disk_type end |
#size_gib ⇒ Fixnum
Output only. Size in GiB.
Corresponds to the JSON property sizeGib
342 343 344 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 342 def size_gib @size_gib end |
#tags ⇒ Hash<String,String>
Optional. Output only. A map of AWS volume tags.
Corresponds to the JSON property tags
347 348 349 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 347 def @tags end |
#volume_id ⇒ String
Required. AWS volume ID.
Corresponds to the JSON property volumeId
352 353 354 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 352 def volume_id @volume_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
359 360 361 362 363 364 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 359 def update!(**args) @disk_type = args[:disk_type] if args.key?(:disk_type) @size_gib = args[:size_gib] if args.key?(:size_gib) @tags = args[:tags] if args.key?(:tags) @volume_id = args[:volume_id] if args.key?(:volume_id) end |