class OvirtSDK4::HardwareInformation

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {HardwareInformation} class.

@param opts [Hash] A hash containing the attributes of the object. The keys of the hash

should be symbols corresponding to the names of the attributes. The values of the hash
should be the values of the attributes.

@option opts [String] :family The value of attribute `family`.

@option opts [String] :manufacturer The value of attribute `manufacturer`.

@option opts [String] :product_name The value of attribute `product_name`.

@option opts [String] :serial_number The value of attribute `serial_number`.

@option opts [Array<RngSource>, Array<Hash>] :supported_rng_sources The values of attribute `supported_rng_sources`.

@option opts [String] :uuid The value of attribute `uuid`.

@option opts [String] :version The value of attribute `version`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 3677
def initialize(opts = {})
  super(opts)
  self.family = opts[:family]
  self.manufacturer = opts[:manufacturer]
  self.product_name = opts[:product_name]
  self.serial_number = opts[:serial_number]
  self.supported_rng_sources = opts[:supported_rng_sources]
  self.uuid = opts[:uuid]
  self.version = opts[:version]
end

Public Instance Methods

family() click to toggle source

Returns the value of the `family` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 3535
def family
  return @family
end
family=(value) click to toggle source

Sets the value of the `family` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 3544
def family=(value)
  @family = value
end
manufacturer() click to toggle source

Returns the value of the `manufacturer` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 3553
def manufacturer
  return @manufacturer
end
manufacturer=(value) click to toggle source

Sets the value of the `manufacturer` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 3562
def manufacturer=(value)
  @manufacturer = value
end
product_name() click to toggle source

Returns the value of the `product_name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 3571
def product_name
  return @product_name
end
product_name=(value) click to toggle source

Sets the value of the `product_name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 3580
def product_name=(value)
  @product_name = value
end
serial_number() click to toggle source

Returns the value of the `serial_number` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 3589
def serial_number
  return @serial_number
end
serial_number=(value) click to toggle source

Sets the value of the `serial_number` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 3598
def serial_number=(value)
  @serial_number = value
end
supported_rng_sources() click to toggle source

Returns the value of the `supported_rng_sources` attribute.

@return [Array<RngSource>]

# File lib/ovirtsdk4/types.rb, line 3607
def supported_rng_sources
  return @supported_rng_sources
end
supported_rng_sources=(list) click to toggle source

Sets the value of the `supported_rng_sources` attribute.

@param list [Array<RngSource>]

# File lib/ovirtsdk4/types.rb, line 3615
def supported_rng_sources=(list)
  @supported_rng_sources = list
end
uuid() click to toggle source

Returns the value of the `uuid` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 3624
def uuid
  return @uuid
end
uuid=(value) click to toggle source

Sets the value of the `uuid` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 3633
def uuid=(value)
  @uuid = value
end
version() click to toggle source

Returns the value of the `version` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 3642
def version
  return @version
end
version=(value) click to toggle source

Sets the value of the `version` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 3651
def version=(value)
  @version = value
end