Class: Google::Apis::MigrationcenterV1alpha1::DiskEntry
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::DiskEntry
- 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
Single disk entry.
Instance Attribute Summary collapse
-
#disk_label ⇒ String
Disk label.
-
#disk_label_type ⇒ String
Disk label type (e.g. BIOS/GPT) Corresponds to the JSON property
diskLabelType
. -
#hw_address ⇒ String
Disk hardware address (e.g. 0:1 for SCSI).
-
#interface_type ⇒ String
Disks interface type (e.g. SATA/SCSI) Corresponds to the JSON property
interfaceType
. -
#partitions ⇒ Google::Apis::MigrationcenterV1alpha1::DiskPartitionList
Disk partition list.
-
#status ⇒ String
Disk status (e.g. online).
-
#total_capacity_bytes ⇒ Fixnum
Disk capacity.
-
#total_free_bytes ⇒ Fixnum
Disk free space.
-
#vmware_config ⇒ Google::Apis::MigrationcenterV1alpha1::VmwareDiskConfig
VMware disk config details.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskEntry
constructor
A new instance of DiskEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskEntry
Returns a new instance of DiskEntry.
2349 2350 2351 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2349 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_label ⇒ String
Disk label.
Corresponds to the JSON property diskLabel
2307 2308 2309 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2307 def disk_label @disk_label end |
#disk_label_type ⇒ String
Disk label type (e.g. BIOS/GPT)
Corresponds to the JSON property diskLabelType
2312 2313 2314 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2312 def disk_label_type @disk_label_type end |
#hw_address ⇒ String
Disk hardware address (e.g. 0:1 for SCSI).
Corresponds to the JSON property hwAddress
2317 2318 2319 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2317 def hw_address @hw_address end |
#interface_type ⇒ String
Disks interface type (e.g. SATA/SCSI)
Corresponds to the JSON property interfaceType
2322 2323 2324 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2322 def interface_type @interface_type end |
#partitions ⇒ Google::Apis::MigrationcenterV1alpha1::DiskPartitionList
Disk partition list.
Corresponds to the JSON property partitions
2327 2328 2329 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2327 def partitions @partitions end |
#status ⇒ String
Disk status (e.g. online).
Corresponds to the JSON property status
2332 2333 2334 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2332 def status @status end |
#total_capacity_bytes ⇒ Fixnum
Disk capacity.
Corresponds to the JSON property totalCapacityBytes
2337 2338 2339 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2337 def total_capacity_bytes @total_capacity_bytes end |
#total_free_bytes ⇒ Fixnum
Disk free space.
Corresponds to the JSON property totalFreeBytes
2342 2343 2344 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2342 def total_free_bytes @total_free_bytes end |
#vmware_config ⇒ Google::Apis::MigrationcenterV1alpha1::VmwareDiskConfig
VMware disk config details.
Corresponds to the JSON property vmwareConfig
2347 2348 2349 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2347 def vmware_config @vmware_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2354 def update!(**args) @disk_label = args[:disk_label] if args.key?(:disk_label) @disk_label_type = args[:disk_label_type] if args.key?(:disk_label_type) @hw_address = args[:hw_address] if args.key?(:hw_address) @interface_type = args[:interface_type] if args.key?(:interface_type) @partitions = args[:partitions] if args.key?(:partitions) @status = args[:status] if args.key?(:status) @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) @vmware_config = args[:vmware_config] if args.key?(:vmware_config) end |