Class: Google::Apis::MigrationcenterV1alpha1::DiskPartition
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::DiskPartition
- 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
Disk Partition details.
Instance Attribute Summary collapse
-
#capacity_bytes ⇒ Fixnum
Partition capacity.
-
#file_system ⇒ String
Partition file system.
-
#free_bytes ⇒ Fixnum
Partition free space.
-
#mount_point ⇒ String
Mount point (Linux/Windows) or drive letter (Windows).
-
#sub_partitions ⇒ Google::Apis::MigrationcenterV1alpha1::DiskPartitionList
Disk partition list.
-
#type ⇒ String
Partition type (e.g. BIOS boot).
-
#uuid ⇒ String
Partition UUID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskPartition
constructor
A new instance of DiskPartition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskPartition
Returns a new instance of DiskPartition.
3558 3559 3560 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3558 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capacity_bytes ⇒ Fixnum
Partition capacity.
Corresponds to the JSON property capacityBytes
3526 3527 3528 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3526 def capacity_bytes @capacity_bytes end |
#file_system ⇒ String
Partition file system.
Corresponds to the JSON property fileSystem
3531 3532 3533 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3531 def file_system @file_system end |
#free_bytes ⇒ Fixnum
Partition free space.
Corresponds to the JSON property freeBytes
3536 3537 3538 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3536 def free_bytes @free_bytes end |
#mount_point ⇒ String
Mount point (Linux/Windows) or drive letter (Windows).
Corresponds to the JSON property mountPoint
3541 3542 3543 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3541 def mount_point @mount_point end |
#sub_partitions ⇒ Google::Apis::MigrationcenterV1alpha1::DiskPartitionList
Disk partition list.
Corresponds to the JSON property subPartitions
3546 3547 3548 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3546 def sub_partitions @sub_partitions end |
#type ⇒ String
Partition type (e.g. BIOS boot).
Corresponds to the JSON property type
3551 3552 3553 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3551 def type @type end |
#uuid ⇒ String
Partition UUID.
Corresponds to the JSON property uuid
3556 3557 3558 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3556 def uuid @uuid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3563 3564 3565 3566 3567 3568 3569 3570 3571 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3563 def update!(**args) @capacity_bytes = args[:capacity_bytes] if args.key?(:capacity_bytes) @file_system = args[:file_system] if args.key?(:file_system) @free_bytes = args[:free_bytes] if args.key?(:free_bytes) @mount_point = args[:mount_point] if args.key?(:mount_point) @sub_partitions = args[:sub_partitions] if args.key?(:sub_partitions) @type = args[:type] if args.key?(:type) @uuid = args[:uuid] if args.key?(:uuid) end |