Class: Google::Apis::MigrationcenterV1alpha1::DiskEntry

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

Single disk entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskEntry

Returns a new instance of DiskEntry.



1220
1221
1222
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1220

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

Instance Attribute Details

#disk_labelString

Disk label. Corresponds to the JSON property diskLabel

Returns:

  • (String)


1178
1179
1180
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1178

def disk_label
  @disk_label
end

#disk_label_typeString

Disk label type (e.g. BIOS/GPT) Corresponds to the JSON property diskLabelType

Returns:

  • (String)


1183
1184
1185
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1183

def disk_label_type
  @disk_label_type
end

#hw_addressString

Disk hardware address (e.g. 0:1 for SCSI). Corresponds to the JSON property hwAddress

Returns:

  • (String)


1188
1189
1190
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1188

def hw_address
  @hw_address
end

#interface_typeString

Disks interface type (e.g. SATA/SCSI) Corresponds to the JSON property interfaceType

Returns:

  • (String)


1193
1194
1195
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1193

def interface_type
  @interface_type
end

#partitionsGoogle::Apis::MigrationcenterV1alpha1::DiskPartitionList

Disk partition list. Corresponds to the JSON property partitions



1198
1199
1200
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1198

def partitions
  @partitions
end

#statusString

Disk status (e.g. online). Corresponds to the JSON property status

Returns:

  • (String)


1203
1204
1205
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1203

def status
  @status
end

#total_capacity_bytesFixnum

Disk capacity. Corresponds to the JSON property totalCapacityBytes

Returns:

  • (Fixnum)


1208
1209
1210
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1208

def total_capacity_bytes
  @total_capacity_bytes
end

#total_free_bytesFixnum

Disk free space. Corresponds to the JSON property totalFreeBytes

Returns:

  • (Fixnum)


1213
1214
1215
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1213

def total_free_bytes
  @total_free_bytes
end

#vmware_configGoogle::Apis::MigrationcenterV1alpha1::VmwareDiskConfig

VMware disk config details. Corresponds to the JSON property vmwareConfig



1218
1219
1220
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1218

def vmware_config
  @vmware_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 1225

def update!(**args)
  @disk_label = args[:disk_label] if args.key?(:disk_label)
  @disk_label_type = args[:disk_label_type] if args.key?(:disk_label_type)
  @hw_address = args[:hw_address] if args.key?(:hw_address)
  @interface_type = args[:interface_type] if args.key?(:interface_type)
  @partitions = args[:partitions] if args.key?(:partitions)
  @status = args[:status] if args.key?(:status)
  @total_capacity_bytes = args[:total_capacity_bytes] if args.key?(:total_capacity_bytes)
  @total_free_bytes = args[:total_free_bytes] if args.key?(:total_free_bytes)
  @vmware_config = args[:vmware_config] if args.key?(:vmware_config)
end