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

#href, #href=

Constructor Details

- (HardwareInformation) initialize(opts = {})

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.



3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
# File 'lib/ovirtsdk4/types.rb', line 3305

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

- (String) family

Returns the value of the family attribute.

Returns:

  • (String)


3163
3164
3165
# File 'lib/ovirtsdk4/types.rb', line 3163

def family
  return @family
end

- (Object) family=(value)

Sets the value of the family attribute.

Parameters:

  • value (String)


3172
3173
3174
# File 'lib/ovirtsdk4/types.rb', line 3172

def family=(value)
  @family = value
end

- (String) manufacturer

Returns the value of the manufacturer attribute.

Returns:

  • (String)


3181
3182
3183
# File 'lib/ovirtsdk4/types.rb', line 3181

def manufacturer
  return @manufacturer
end

- (Object) manufacturer=(value)

Sets the value of the manufacturer attribute.

Parameters:

  • value (String)


3190
3191
3192
# File 'lib/ovirtsdk4/types.rb', line 3190

def manufacturer=(value)
  @manufacturer = value
end

- (String) product_name

Returns the value of the product_name attribute.

Returns:

  • (String)


3199
3200
3201
# File 'lib/ovirtsdk4/types.rb', line 3199

def product_name
  return @product_name
end

- (Object) product_name=(value)

Sets the value of the product_name attribute.

Parameters:

  • value (String)


3208
3209
3210
# File 'lib/ovirtsdk4/types.rb', line 3208

def product_name=(value)
  @product_name = value
end

- (String) serial_number

Returns the value of the serial_number attribute.

Returns:

  • (String)


3217
3218
3219
# File 'lib/ovirtsdk4/types.rb', line 3217

def serial_number
  return @serial_number
end

- (Object) serial_number=(value)

Sets the value of the serial_number attribute.

Parameters:

  • value (String)


3226
3227
3228
# File 'lib/ovirtsdk4/types.rb', line 3226

def serial_number=(value)
  @serial_number = value
end

- (Array<RngSource>) supported_rng_sources

Returns the value of the supported_rng_sources attribute.

Returns:



3235
3236
3237
# File 'lib/ovirtsdk4/types.rb', line 3235

def supported_rng_sources
  return @supported_rng_sources
end

- (Object) supported_rng_sources=(list)

Sets the value of the supported_rng_sources attribute.

Parameters:



3243
3244
3245
# File 'lib/ovirtsdk4/types.rb', line 3243

def supported_rng_sources=(list)
  @supported_rng_sources = list
end

- (String) uuid

Returns the value of the uuid attribute.

Returns:

  • (String)


3252
3253
3254
# File 'lib/ovirtsdk4/types.rb', line 3252

def uuid
  return @uuid
end

- (Object) uuid=(value)

Sets the value of the uuid attribute.

Parameters:

  • value (String)


3261
3262
3263
# File 'lib/ovirtsdk4/types.rb', line 3261

def uuid=(value)
  @uuid = value
end

- (String) version

Returns the value of the version attribute.

Returns:

  • (String)


3270
3271
3272
# File 'lib/ovirtsdk4/types.rb', line 3270

def version
  return @version
end

- (Object) version=(value)

Sets the value of the version attribute.

Parameters:

  • value (String)


3279
3280
3281
# File 'lib/ovirtsdk4/types.rb', line 3279

def version=(value)
  @version = value
end