Class: OvirtSDK4::HardwareInformation

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ HardwareInformation

Creates a new instance of the OvirtSDK4::HardwareInformation class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :family (String)

    The value of attribute family.

  • :manufacturer (String)

    The value of attribute manufacturer.

  • :product_name (String)

    The value of attribute product_name.

  • :serial_number (String)

    The value of attribute serial_number.

  • :supported_rng_sources (Array<RngSource>, Array<Hash>)

    The values of attribute supported_rng_sources.

  • :uuid (String)

    The value of attribute uuid.

  • :version (String)

    The value of attribute version.



4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
# File 'lib/ovirtsdk4/types.rb', line 4700

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

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.



4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
# File 'lib/ovirtsdk4/types.rb', line 4714

def ==(other)
  super &&
  @family == other.family &&
  @manufacturer == other.manufacturer &&
  @product_name == other.product_name &&
  @serial_number == other.serial_number &&
  @supported_rng_sources == other.supported_rng_sources &&
  @uuid == other.uuid &&
  @version == other.version
end

#familyString

Returns the value of the family attribute.

Returns:

  • (String)


4557
4558
4559
# File 'lib/ovirtsdk4/types.rb', line 4557

def family
  @family
end

#family=(value) ⇒ Object

Sets the value of the family attribute.

Parameters:

  • value (String)


4566
4567
4568
# File 'lib/ovirtsdk4/types.rb', line 4566

def family=(value)
  @family = value
end

#hashObject

Generates a hash value for this object.



4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
# File 'lib/ovirtsdk4/types.rb', line 4728

def hash
  super +
  @family.hash +
  @manufacturer.hash +
  @product_name.hash +
  @serial_number.hash +
  @supported_rng_sources.hash +
  @uuid.hash +
  @version.hash
end

#manufacturerString

Returns the value of the manufacturer attribute.

Returns:

  • (String)


4575
4576
4577
# File 'lib/ovirtsdk4/types.rb', line 4575

def manufacturer
  @manufacturer
end

#manufacturer=(value) ⇒ Object

Sets the value of the manufacturer attribute.

Parameters:

  • value (String)


4584
4585
4586
# File 'lib/ovirtsdk4/types.rb', line 4584

def manufacturer=(value)
  @manufacturer = value
end

#product_nameString

Returns the value of the product_name attribute.

Returns:

  • (String)


4593
4594
4595
# File 'lib/ovirtsdk4/types.rb', line 4593

def product_name
  @product_name
end

#product_name=(value) ⇒ Object

Sets the value of the product_name attribute.

Parameters:

  • value (String)


4602
4603
4604
# File 'lib/ovirtsdk4/types.rb', line 4602

def product_name=(value)
  @product_name = value
end

#serial_numberString

Returns the value of the serial_number attribute.

Returns:

  • (String)


4611
4612
4613
# File 'lib/ovirtsdk4/types.rb', line 4611

def serial_number
  @serial_number
end

#serial_number=(value) ⇒ Object

Sets the value of the serial_number attribute.

Parameters:

  • value (String)


4620
4621
4622
# File 'lib/ovirtsdk4/types.rb', line 4620

def serial_number=(value)
  @serial_number = value
end

#supported_rng_sourcesArray<RngSource>

Returns the value of the supported_rng_sources attribute.

Returns:



4629
4630
4631
# File 'lib/ovirtsdk4/types.rb', line 4629

def supported_rng_sources
  @supported_rng_sources
end

#supported_rng_sources=(list) ⇒ Object

Sets the value of the supported_rng_sources attribute.

Parameters:



4638
4639
4640
# File 'lib/ovirtsdk4/types.rb', line 4638

def supported_rng_sources=(list)
  @supported_rng_sources = list
end

#uuidString

Returns the value of the uuid attribute.

Returns:

  • (String)


4647
4648
4649
# File 'lib/ovirtsdk4/types.rb', line 4647

def uuid
  @uuid
end

#uuid=(value) ⇒ Object

Sets the value of the uuid attribute.

Parameters:

  • value (String)


4656
4657
4658
# File 'lib/ovirtsdk4/types.rb', line 4656

def uuid=(value)
  @uuid = value
end

#versionString

Returns the value of the version attribute.

Returns:

  • (String)


4665
4666
4667
# File 'lib/ovirtsdk4/types.rb', line 4665

def version
  @version
end

#version=(value) ⇒ Object

Sets the value of the version attribute.

Parameters:

  • value (String)


4674
4675
4676
# File 'lib/ovirtsdk4/types.rb', line 4674

def version=(value)
  @version = value
end