class OvirtSDK4::HostNicVirtualFunctionsConfiguration

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {HostNicVirtualFunctionsConfiguration} 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 [Boolean] :all_networks_allowed The value of attribute `all_networks_allowed`.

@option opts [Integer] :max_number_of_virtual_functions The value of attribute `max_number_of_virtual_functions`.

@option opts [Integer] :number_of_virtual_functions The value of attribute `number_of_virtual_functions`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 4797
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

Public Instance Methods

==(other) click to toggle source

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

Calls superclass method OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 4807
def ==(other)
  super &&
  @all_networks_allowed == other.all_networks_allowed &&
  @max_number_of_virtual_functions == other.max_number_of_virtual_functions &&
  @number_of_virtual_functions == other.number_of_virtual_functions
end
all_networks_allowed() click to toggle source

Returns the value of the `all_networks_allowed` attribute.

@return [Boolean]

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

Sets the value of the `all_networks_allowed` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 4743
def all_networks_allowed=(value)
  @all_networks_allowed = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 4817
def hash
  super +
  @all_networks_allowed.hash +
  @max_number_of_virtual_functions.hash +
  @number_of_virtual_functions.hash
end
max_number_of_virtual_functions() click to toggle source

Returns the value of the `max_number_of_virtual_functions` attribute.

@return [Integer]

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

Sets the value of the `max_number_of_virtual_functions` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 4761
def max_number_of_virtual_functions=(value)
  @max_number_of_virtual_functions = value
end
number_of_virtual_functions() click to toggle source

Returns the value of the `number_of_virtual_functions` attribute.

@return [Integer]

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

Sets the value of the `number_of_virtual_functions` attribute.

@param value [Integer]

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