Class: Google::Apis::MigrationcenterV1::DiskEntry

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

Single disk entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskEntry

Returns a new instance of DiskEntry.



2019
2020
2021
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2019

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

Instance Attribute Details

#capacity_bytesFixnum

Disk capacity. Corresponds to the JSON property capacityBytes

Returns:

  • (Fixnum)


1982
1983
1984
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1982

def capacity_bytes
  @capacity_bytes
end

#disk_labelString

Disk label. Corresponds to the JSON property diskLabel

Returns:

  • (String)


1987
1988
1989
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1987

def disk_label
  @disk_label
end

#disk_label_typeString

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

Returns:

  • (String)


1992
1993
1994
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1992

def disk_label_type
  @disk_label_type
end

#free_bytesFixnum

Disk free space. Corresponds to the JSON property freeBytes

Returns:

  • (Fixnum)


1997
1998
1999
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1997

def free_bytes
  @free_bytes
end

#hw_addressString

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

Returns:

  • (String)


2002
2003
2004
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2002

def hw_address
  @hw_address
end

#interface_typeString

Disks interface type. Corresponds to the JSON property interfaceType

Returns:

  • (String)


2007
2008
2009
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2007

def interface_type
  @interface_type
end

#partitionsGoogle::Apis::MigrationcenterV1::DiskPartitionList

Disk partition list. Corresponds to the JSON property partitions



2012
2013
2014
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2012

def partitions
  @partitions
end

#vmwareGoogle::Apis::MigrationcenterV1::VmwareDiskConfig

VMware disk config details. Corresponds to the JSON property vmware



2017
2018
2019
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2017

def vmware
  @vmware
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 2024

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