Class: OvirtSDK4::VnicPassThrough

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

- (VnicPassThrough) initialize(opts = {})

Creates a new instance of the OvirtSDK4::VnicPassThrough 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):



20234
20235
20236
20237
# File 'lib/ovirtsdk4/types.rb', line 20234

def initialize(opts = {})
  super(opts)
  self.mode = opts[:mode]
end

Instance Method Details

- (VnicPassThroughMode) mode

Returns the value of the mode attribute.

Returns:



20211
20212
20213
# File 'lib/ovirtsdk4/types.rb', line 20211

def mode
  return @mode
end

- (Object) mode=(value)

Sets the value of the mode attribute.

Parameters:



20220
20221
20222
# File 'lib/ovirtsdk4/types.rb', line 20220

def mode=(value)
  @mode = value
end