Class: Google::Apis::MigrationcenterV1::DiskPartition

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskPartition

Returns a new instance of DiskPartition.



2094
2095
2096
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2094

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#capacity_bytesFixnum

Partition capacity. Corresponds to the JSON property capacityBytes

Returns:

  • (Fixnum)


2062
2063
2064
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2062

def capacity_bytes
  @capacity_bytes
end

#file_systemString

Partition file system. Corresponds to the JSON property fileSystem

Returns:

  • (String)


2067
2068
2069
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2067

def file_system
  @file_system
end

#free_bytesFixnum

Partition free space. Corresponds to the JSON property freeBytes

Returns:

  • (Fixnum)


2072
2073
2074
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2072

def free_bytes
  @free_bytes
end

#mount_pointString

Mount point (Linux/Windows) or drive letter (Windows). Corresponds to the JSON property mountPoint

Returns:

  • (String)


2077
2078
2079
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2077

def mount_point
  @mount_point
end

#sub_partitionsGoogle::Apis::MigrationcenterV1::DiskPartitionList

Disk partition list. Corresponds to the JSON property subPartitions



2082
2083
2084
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2082

def sub_partitions
  @sub_partitions
end

#typeString

Partition type. Corresponds to the JSON property type

Returns:

  • (String)


2087
2088
2089
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2087

def type
  @type
end

#uuidString

Partition UUID. Corresponds to the JSON property uuid

Returns:

  • (String)


2092
2093
2094
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2092

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2099
2100
2101
2102
2103
2104
2105
2106
2107
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2099

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