Class: Google::Apis::MigrationcenterV1alpha1::MachineDiskDetails
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::MachineDiskDetails
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
Details of machine disks.
Instance Attribute Summary collapse
-
#disks ⇒ Google::Apis::MigrationcenterV1alpha1::DiskEntryList
VM disks.
-
#raw_scan_result ⇒ String
Raw disk scan result.
-
#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.
5158 5159 5160 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5158 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disks ⇒ Google::Apis::MigrationcenterV1alpha1::DiskEntryList
VM disks.
Corresponds to the JSON property disks
5139 5140 5141 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5139 def disks @disks end |
#raw_scan_result ⇒ String
Raw disk scan result. This field is intended for human inspection. The format
of this field may be lsblk output or any another raw output. The exact format
may change without notice and should not be relied upon.
Corresponds to the JSON property rawScanResult
5146 5147 5148 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5146 def raw_scan_result @raw_scan_result end |
#total_capacity_bytes ⇒ Fixnum
Disk total Capacity.
Corresponds to the JSON property totalCapacityBytes
5151 5152 5153 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5151 def total_capacity_bytes @total_capacity_bytes end |
#total_free_bytes ⇒ Fixnum
Total disk free space.
Corresponds to the JSON property totalFreeBytes
5156 5157 5158 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5156 def total_free_bytes @total_free_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5163 5164 5165 5166 5167 5168 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5163 def update!(**args) @disks = args[:disks] if args.key?(:disks) @raw_scan_result = args[:raw_scan_result] if args.key?(:raw_scan_result) @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 |