Class: OvirtSDK4::HostNicVirtualFunctionsConfiguration
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#all_networks_allowed ⇒ Boolean
Returns the value of the
all_networks_allowed
attribute. -
#all_networks_allowed=(value) ⇒ Object
Sets the value of the
all_networks_allowed
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ HostNicVirtualFunctionsConfiguration
constructor
Creates a new instance of the HostNicVirtualFunctionsConfiguration class.
-
#max_number_of_virtual_functions ⇒ Integer
Returns the value of the
max_number_of_virtual_functions
attribute. -
#max_number_of_virtual_functions=(value) ⇒ Object
Sets the value of the
max_number_of_virtual_functions
attribute. -
#number_of_virtual_functions ⇒ Integer
Returns the value of the
number_of_virtual_functions
attribute. -
#number_of_virtual_functions=(value) ⇒ Object
Sets the value of the
number_of_virtual_functions
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ HostNicVirtualFunctionsConfiguration
Creates a new instance of the OvirtSDK4::HostNicVirtualFunctionsConfiguration class.
4928 4929 4930 4931 4932 4933 |
# File 'lib/ovirtsdk4/types.rb', line 4928 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
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
4938 4939 4940 4941 4942 4943 |
# File 'lib/ovirtsdk4/types.rb', line 4938 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 ⇒ Boolean
Returns the value of the all_networks_allowed
attribute.
4865 4866 4867 |
# File 'lib/ovirtsdk4/types.rb', line 4865 def all_networks_allowed @all_networks_allowed end |
#all_networks_allowed=(value) ⇒ Object
Sets the value of the all_networks_allowed
attribute.
4874 4875 4876 |
# File 'lib/ovirtsdk4/types.rb', line 4874 def all_networks_allowed=(value) @all_networks_allowed = value end |
#hash ⇒ Object
Generates a hash value for this object.
4948 4949 4950 4951 4952 4953 |
# File 'lib/ovirtsdk4/types.rb', line 4948 def hash super + @all_networks_allowed.hash + @max_number_of_virtual_functions.hash + @number_of_virtual_functions.hash end |
#max_number_of_virtual_functions ⇒ Integer
Returns the value of the max_number_of_virtual_functions
attribute.
4883 4884 4885 |
# File 'lib/ovirtsdk4/types.rb', line 4883 def max_number_of_virtual_functions @max_number_of_virtual_functions end |
#max_number_of_virtual_functions=(value) ⇒ Object
Sets the value of the max_number_of_virtual_functions
attribute.
4892 4893 4894 |
# File 'lib/ovirtsdk4/types.rb', line 4892 def max_number_of_virtual_functions=(value) @max_number_of_virtual_functions = value end |
#number_of_virtual_functions ⇒ Integer
Returns the value of the number_of_virtual_functions
attribute.
4901 4902 4903 |
# File 'lib/ovirtsdk4/types.rb', line 4901 def number_of_virtual_functions @number_of_virtual_functions end |
#number_of_virtual_functions=(value) ⇒ Object
Sets the value of the number_of_virtual_functions
attribute.
4910 4911 4912 |
# File 'lib/ovirtsdk4/types.rb', line 4910 def number_of_virtual_functions=(value) @number_of_virtual_functions = value end |