Class: Google::Apis::MigrationcenterV1::DiskEntry
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::DiskEntry
- 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
Single disk entry.
Instance Attribute Summary collapse
-
#capacity_bytes ⇒ Fixnum
Disk capacity.
-
#disk_label ⇒ String
Disk label.
-
#disk_label_type ⇒ String
Disk label type (e.g. BIOS/GPT) Corresponds to the JSON property
diskLabelType
. -
#free_bytes ⇒ Fixnum
Disk free space.
-
#hw_address ⇒ String
Disk hardware address (e.g. 0:1 for SCSI).
-
#interface_type ⇒ String
Disks interface type.
-
#partitions ⇒ Google::Apis::MigrationcenterV1::DiskPartitionList
Disk partition list.
-
#vmware ⇒ Google::Apis::MigrationcenterV1::VmwareDiskConfig
VMware disk config details.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskEntry
constructor
A new instance of DiskEntry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskEntry
Returns a new instance of DiskEntry.
1257 1258 1259 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1257 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capacity_bytes ⇒ Fixnum
Disk capacity.
Corresponds to the JSON property capacityBytes
1220 1221 1222 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1220 def capacity_bytes @capacity_bytes end |
#disk_label ⇒ String
Disk label.
Corresponds to the JSON property diskLabel
1225 1226 1227 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1225 def disk_label @disk_label end |
#disk_label_type ⇒ String
Disk label type (e.g. BIOS/GPT)
Corresponds to the JSON property diskLabelType
1230 1231 1232 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1230 def disk_label_type @disk_label_type end |
#free_bytes ⇒ Fixnum
Disk free space.
Corresponds to the JSON property freeBytes
1235 1236 1237 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1235 def free_bytes @free_bytes end |
#hw_address ⇒ String
Disk hardware address (e.g. 0:1 for SCSI).
Corresponds to the JSON property hwAddress
1240 1241 1242 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1240 def hw_address @hw_address end |
#interface_type ⇒ String
Disks interface type.
Corresponds to the JSON property interfaceType
1245 1246 1247 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1245 def interface_type @interface_type end |
#partitions ⇒ Google::Apis::MigrationcenterV1::DiskPartitionList
Disk partition list.
Corresponds to the JSON property partitions
1250 1251 1252 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1250 def partitions @partitions end |
#vmware ⇒ Google::Apis::MigrationcenterV1::VmwareDiskConfig
VMware disk config details.
Corresponds to the JSON property vmware
1255 1256 1257 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1255 def vmware @vmware end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1262 def update!(**args) @capacity_bytes = args[:capacity_bytes] if args.key?(:capacity_bytes) @disk_label = args[:disk_label] if args.key?(:disk_label) @disk_label_type = args[:disk_label_type] if args.key?(:disk_label_type) @free_bytes = args[:free_bytes] if args.key?(:free_bytes) @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) @vmware = args[:vmware] if args.key?(:vmware) end |