Class: Google::Apis::MigrationcenterV1::DiskPartition
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::DiskPartition
- 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
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 pount (Linux/Windows) or drive letter (Windows).
-
#sub_partitions ⇒ Google::Apis::MigrationcenterV1::DiskPartitionList
Disk partition list.
-
#type ⇒ String
Partition type.
-
#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.
1738 1739 1740 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1738 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capacity_bytes ⇒ Fixnum
Partition capacity.
Corresponds to the JSON property capacityBytes
1706 1707 1708 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1706 def capacity_bytes @capacity_bytes end |
#file_system ⇒ String
Partition file system.
Corresponds to the JSON property fileSystem
1711 1712 1713 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1711 def file_system @file_system end |
#free_bytes ⇒ Fixnum
Partition free space.
Corresponds to the JSON property freeBytes
1716 1717 1718 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1716 def free_bytes @free_bytes end |
#mount_point ⇒ String
Mount pount (Linux/Windows) or drive letter (Windows).
Corresponds to the JSON property mountPoint
1721 1722 1723 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1721 def mount_point @mount_point end |
#sub_partitions ⇒ Google::Apis::MigrationcenterV1::DiskPartitionList
Disk partition list.
Corresponds to the JSON property subPartitions
1726 1727 1728 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1726 def sub_partitions @sub_partitions end |
#type ⇒ String
Partition type.
Corresponds to the JSON property type
1731 1732 1733 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1731 def type @type end |
#uuid ⇒ String
Partition UUID.
Corresponds to the JSON property uuid
1736 1737 1738 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1736 def uuid @uuid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1743 1744 1745 1746 1747 1748 1749 1750 1751 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1743 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 |