Class: OvirtSDK4::HostNicVirtualFunctionsConfiguration

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

- (HostNicVirtualFunctionsConfiguration) initialize(opts = {})

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

  • :all_networks_allowed (Boolean)

    The value of attribute all_networks_allowed.

  • :max_number_of_virtual_functions (Integer)

    The value of attribute max_number_of_virtual_functions.

  • :number_of_virtual_functions (Integer)

    The value of attribute number_of_virtual_functions.



3483
3484
3485
3486
3487
3488
# File 'lib/ovirtsdk4/types.rb', line 3483

def initialize(opts = {})
  super(opts)
  self.all_networks_allowed = opts[:all_networks_allowed]
  self.max_number_of_virtual_functions = opts[:max_number_of_virtual_functions]
  self.number_of_virtual_functions = opts[:number_of_virtual_functions]
end

Instance Method Details

- (Boolean) all_networks_allowed

Returns the value of the all_networks_allowed attribute.

Returns:

  • (Boolean)


3420
3421
3422
# File 'lib/ovirtsdk4/types.rb', line 3420

def all_networks_allowed
  return @all_networks_allowed
end

- (Object) all_networks_allowed=(value)

Sets the value of the all_networks_allowed attribute.

Parameters:

  • value (Boolean)


3429
3430
3431
# File 'lib/ovirtsdk4/types.rb', line 3429

def all_networks_allowed=(value)
  @all_networks_allowed = value
end

- (Integer) max_number_of_virtual_functions

Returns the value of the max_number_of_virtual_functions attribute.

Returns:

  • (Integer)


3438
3439
3440
# File 'lib/ovirtsdk4/types.rb', line 3438

def max_number_of_virtual_functions
  return @max_number_of_virtual_functions
end

- (Object) max_number_of_virtual_functions=(value)

Sets the value of the max_number_of_virtual_functions attribute.

Parameters:

  • value (Integer)


3447
3448
3449
# File 'lib/ovirtsdk4/types.rb', line 3447

def max_number_of_virtual_functions=(value)
  @max_number_of_virtual_functions = value
end

- (Integer) number_of_virtual_functions

Returns the value of the number_of_virtual_functions attribute.

Returns:

  • (Integer)


3456
3457
3458
# File 'lib/ovirtsdk4/types.rb', line 3456

def number_of_virtual_functions
  return @number_of_virtual_functions
end

- (Object) number_of_virtual_functions=(value)

Sets the value of the number_of_virtual_functions attribute.

Parameters:

  • value (Integer)


3465
3466
3467
# File 'lib/ovirtsdk4/types.rb', line 3465

def number_of_virtual_functions=(value)
  @number_of_virtual_functions = value
end