Class: Google::Apis::MigrationcenterV1::MachineDiskDetails
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::MachineDiskDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb
Overview
Details of machine disks.
Instance Attribute Summary collapse
-
#disks ⇒ Google::Apis::MigrationcenterV1::DiskEntryList
VM disks.
-
#total_capacity_bytes ⇒ Fixnum
Disk total Capacity.
-
#total_free_bytes ⇒ Fixnum
Total disk free space.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MachineDiskDetails
constructor
A new instance of MachineDiskDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MachineDiskDetails
Returns a new instance of MachineDiskDetails.
3336 3337 3338 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3336 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disks ⇒ Google::Apis::MigrationcenterV1::DiskEntryList
VM disks.
Corresponds to the JSON property disks
3324 3325 3326 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3324 def disks @disks end |
#total_capacity_bytes ⇒ Fixnum
Disk total Capacity.
Corresponds to the JSON property totalCapacityBytes
3329 3330 3331 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3329 def total_capacity_bytes @total_capacity_bytes end |
#total_free_bytes ⇒ Fixnum
Total disk free space.
Corresponds to the JSON property totalFreeBytes
3334 3335 3336 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3334 def total_free_bytes @total_free_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3341 3342 3343 3344 3345 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3341 def update!(**args) @disks = args[:disks] if args.key?(:disks) @total_capacity_bytes = args[:total_capacity_bytes] if args.key?(:total_capacity_bytes) @total_free_bytes = args[:total_free_bytes] if args.key?(:total_free_bytes) end |