Class: Google::Apis::MigrationcenterV1alpha1::DiskPartition

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskPartition

Returns a new instance of DiskPartition.



2217
2218
2219
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2217

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

Instance Attribute Details

#capacity_bytesFixnum

Partition capacity. Corresponds to the JSON property capacityBytes

Returns:

  • (Fixnum)


2185
2186
2187
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2185

def capacity_bytes
  @capacity_bytes
end

#file_systemString

Partition file system. Corresponds to the JSON property fileSystem

Returns:

  • (String)


2190
2191
2192
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2190

def file_system
  @file_system
end

#free_bytesFixnum

Partition free space. Corresponds to the JSON property freeBytes

Returns:

  • (Fixnum)


2195
2196
2197
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2195

def free_bytes
  @free_bytes
end

#mount_pointString

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

Returns:

  • (String)


2200
2201
2202
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2200

def mount_point
  @mount_point
end

#sub_partitionsGoogle::Apis::MigrationcenterV1alpha1::DiskPartitionList

Disk partition list. Corresponds to the JSON property subPartitions



2205
2206
2207
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2205

def sub_partitions
  @sub_partitions
end

#typeString

Partition type (e.g. BIOS boot). Corresponds to the JSON property type

Returns:

  • (String)


2210
2211
2212
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2210

def type
  @type
end

#uuidString

Partition UUID. Corresponds to the JSON property uuid

Returns:

  • (String)


2215
2216
2217
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2215

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2222
2223
2224
2225
2226
2227
2228
2229
2230
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2222

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