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.



1207
1208
1209
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1207

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

Instance Attribute Details

#capacity_bytesFixnum

Partition capacity. Corresponds to the JSON property capacityBytes

Returns:

  • (Fixnum)


1175
1176
1177
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1175

def capacity_bytes
  @capacity_bytes
end

#file_systemString

Partition file system. Corresponds to the JSON property fileSystem

Returns:

  • (String)


1180
1181
1182
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1180

def file_system
  @file_system
end

#free_bytesFixnum

Partition free space. Corresponds to the JSON property freeBytes

Returns:

  • (Fixnum)


1185
1186
1187
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1185

def free_bytes
  @free_bytes
end

#mount_pointString

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

Returns:

  • (String)


1190
1191
1192
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1190

def mount_point
  @mount_point
end

#sub_partitionsGoogle::Apis::MigrationcenterV1::DiskPartitionList

Disk partition list. Corresponds to the JSON property subPartitions



1195
1196
1197
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1195

def sub_partitions
  @sub_partitions
end

#typeString

Partition type. Corresponds to the JSON property type

Returns:

  • (String)


1200
1201
1202
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1200

def type
  @type
end

#uuidString

Partition UUID. Corresponds to the JSON property uuid

Returns:

  • (String)


1205
1206
1207
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1205

def uuid
  @uuid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1212
1213
1214
1215
1216
1217
1218
1219
1220
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1212

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