Class: OvirtSDK4::HostNic
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::HostNic
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#ad_aggregator_id ⇒ Integer
Returns the value of the
ad_aggregator_idattribute. -
#ad_aggregator_id=(value) ⇒ Object
Sets the value of the
ad_aggregator_idattribute. -
#base_interface ⇒ String
Returns the value of the
base_interfaceattribute. -
#base_interface=(value) ⇒ Object
Sets the value of the
base_interfaceattribute. -
#bonding ⇒ Bonding
Returns the value of the
bondingattribute. -
#bonding=(value) ⇒ Object
Sets the value of the
bondingattribute. -
#boot_protocol ⇒ BootProtocol
Returns the value of the
boot_protocolattribute. -
#boot_protocol=(value) ⇒ Object
Sets the value of the
boot_protocolattribute. -
#bridged ⇒ Boolean
Returns the value of the
bridgedattribute. -
#bridged=(value) ⇒ Object
Sets the value of the
bridgedattribute. -
#check_connectivity ⇒ Boolean
Returns the value of the
check_connectivityattribute. -
#check_connectivity=(value) ⇒ Object
Sets the value of the
check_connectivityattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#custom_configuration ⇒ Boolean
Returns the value of the
custom_configurationattribute. -
#custom_configuration=(value) ⇒ Object
Sets the value of the
custom_configurationattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ HostNic
constructor
Creates a new instance of the HostNic class.
-
#ip ⇒ Ip
Returns the value of the
ipattribute. -
#ip=(value) ⇒ Object
Sets the value of the
ipattribute. -
#ipv6 ⇒ Ip
Returns the value of the
ipv6attribute. -
#ipv6=(value) ⇒ Object
Sets the value of the
ipv6attribute. -
#ipv6_boot_protocol ⇒ BootProtocol
Returns the value of the
ipv6_boot_protocolattribute. -
#ipv6_boot_protocol=(value) ⇒ Object
Sets the value of the
ipv6_boot_protocolattribute. -
#mac ⇒ Mac
Returns the value of the
macattribute. -
#mac=(value) ⇒ Object
Sets the value of the
macattribute. -
#mtu ⇒ Integer
Returns the value of the
mtuattribute. -
#mtu=(value) ⇒ Object
Sets the value of the
mtuattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#network ⇒ Network
Returns the value of the
networkattribute. -
#network=(value) ⇒ Object
Sets the value of the
networkattribute. -
#network_labels ⇒ Array<NetworkLabel>
Returns the value of the
network_labelsattribute. -
#network_labels=(list) ⇒ Object
Sets the value of the
network_labelsattribute. -
#override_configuration ⇒ Boolean
Returns the value of the
override_configurationattribute. -
#override_configuration=(value) ⇒ Object
Sets the value of the
override_configurationattribute. -
#physical_function ⇒ HostNic
Returns the value of the
physical_functionattribute. -
#physical_function=(value) ⇒ Object
Sets the value of the
physical_functionattribute. -
#properties ⇒ Array<Property>
Returns the value of the
propertiesattribute. -
#properties=(list) ⇒ Object
Sets the value of the
propertiesattribute. -
#qos ⇒ Qos
Returns the value of the
qosattribute. -
#qos=(value) ⇒ Object
Sets the value of the
qosattribute. -
#speed ⇒ Integer
Returns the value of the
speedattribute. -
#speed=(value) ⇒ Object
Sets the value of the
speedattribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statisticsattribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statisticsattribute. -
#status ⇒ NicStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#virtual_functions_configuration ⇒ HostNicVirtualFunctionsConfiguration
Returns the value of the
virtual_functions_configurationattribute. -
#virtual_functions_configuration=(value) ⇒ Object
Sets the value of the
virtual_functions_configurationattribute. -
#vlan ⇒ Vlan
Returns the value of the
vlanattribute. -
#vlan=(value) ⇒ Object
Sets the value of the
vlanattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ HostNic
Creates a new instance of the OvirtSDK4::HostNic class.
47425 47426 47427 47428 47429 47430 47431 47432 47433 47434 47435 47436 47437 47438 47439 47440 47441 47442 47443 47444 47445 47446 47447 47448 47449 47450 47451 |
# File 'lib/ovirtsdk4/types.rb', line 47425 def initialize(opts = {}) super(opts) self.ad_aggregator_id = opts[:ad_aggregator_id] self.base_interface = opts[:base_interface] self.bonding = opts[:bonding] self.boot_protocol = opts[:boot_protocol] self.bridged = opts[:bridged] self.check_connectivity = opts[:check_connectivity] self.custom_configuration = opts[:custom_configuration] self.host = opts[:host] self.ip = opts[:ip] self.ipv6 = opts[:ipv6] self.ipv6_boot_protocol = opts[:ipv6_boot_protocol] self.mac = opts[:mac] self.mtu = opts[:mtu] self.network = opts[:network] self.network_labels = opts[:network_labels] self.override_configuration = opts[:override_configuration] self.physical_function = opts[:physical_function] self.properties = opts[:properties] self.qos = opts[:qos] self.speed = opts[:speed] self.statistics = opts[:statistics] self.status = opts[:status] self.virtual_functions_configuration = opts[:virtual_functions_configuration] self.vlan = opts[:vlan] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
47456 47457 47458 47459 47460 47461 47462 47463 47464 47465 47466 47467 47468 47469 47470 47471 47472 47473 47474 47475 47476 47477 47478 47479 47480 47481 47482 |
# File 'lib/ovirtsdk4/types.rb', line 47456 def ==(other) super && @ad_aggregator_id == other.ad_aggregator_id && @base_interface == other.base_interface && @bonding == other.bonding && @boot_protocol == other.boot_protocol && @bridged == other.bridged && @check_connectivity == other.check_connectivity && @custom_configuration == other.custom_configuration && @host == other.host && @ip == other.ip && @ipv6 == other.ipv6 && @ipv6_boot_protocol == other.ipv6_boot_protocol && @mac == other.mac && @mtu == other.mtu && @network == other.network && @network_labels == other.network_labels && @override_configuration == other.override_configuration && @physical_function == other.physical_function && @properties == other.properties && @qos == other.qos && @speed == other.speed && @statistics == other.statistics && @status == other.status && @virtual_functions_configuration == other.virtual_functions_configuration && @vlan == other.vlan end |
#ad_aggregator_id ⇒ Integer
Returns the value of the ad_aggregator_id attribute.
46768 46769 46770 |
# File 'lib/ovirtsdk4/types.rb', line 46768 def ad_aggregator_id @ad_aggregator_id end |
#ad_aggregator_id=(value) ⇒ Object
Sets the value of the ad_aggregator_id attribute.
46777 46778 46779 |
# File 'lib/ovirtsdk4/types.rb', line 46777 def ad_aggregator_id=(value) @ad_aggregator_id = value end |
#base_interface ⇒ String
Returns the value of the base_interface attribute.
46786 46787 46788 |
# File 'lib/ovirtsdk4/types.rb', line 46786 def base_interface @base_interface end |
#base_interface=(value) ⇒ Object
Sets the value of the base_interface attribute.
46795 46796 46797 |
# File 'lib/ovirtsdk4/types.rb', line 46795 def base_interface=(value) @base_interface = value end |
#bonding ⇒ Bonding
Returns the value of the bonding attribute.
46804 46805 46806 |
# File 'lib/ovirtsdk4/types.rb', line 46804 def bonding @bonding end |
#bonding=(value) ⇒ Object
Sets the value of the bonding attribute.
The value parameter can be an instance of Bonding or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
46817 46818 46819 46820 46821 46822 |
# File 'lib/ovirtsdk4/types.rb', line 46817 def bonding=(value) if value.is_a?(Hash) value = Bonding.new(value) end @bonding = value end |
#boot_protocol ⇒ BootProtocol
Returns the value of the boot_protocol attribute.
46829 46830 46831 |
# File 'lib/ovirtsdk4/types.rb', line 46829 def boot_protocol @boot_protocol end |
#boot_protocol=(value) ⇒ Object
Sets the value of the boot_protocol attribute.
46838 46839 46840 |
# File 'lib/ovirtsdk4/types.rb', line 46838 def boot_protocol=(value) @boot_protocol = value end |
#bridged ⇒ Boolean
Returns the value of the bridged attribute.
46847 46848 46849 |
# File 'lib/ovirtsdk4/types.rb', line 46847 def bridged @bridged end |
#bridged=(value) ⇒ Object
Sets the value of the bridged attribute.
46856 46857 46858 |
# File 'lib/ovirtsdk4/types.rb', line 46856 def bridged=(value) @bridged = value end |
#check_connectivity ⇒ Boolean
Returns the value of the check_connectivity attribute.
46865 46866 46867 |
# File 'lib/ovirtsdk4/types.rb', line 46865 def check_connectivity @check_connectivity end |
#check_connectivity=(value) ⇒ Object
Sets the value of the check_connectivity attribute.
46874 46875 46876 |
# File 'lib/ovirtsdk4/types.rb', line 46874 def check_connectivity=(value) @check_connectivity = value end |
#comment ⇒ String
Returns the value of the comment attribute.
46883 46884 46885 |
# File 'lib/ovirtsdk4/types.rb', line 46883 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
46892 46893 46894 |
# File 'lib/ovirtsdk4/types.rb', line 46892 def comment=(value) @comment = value end |
#custom_configuration ⇒ Boolean
Returns the value of the custom_configuration attribute.
46901 46902 46903 |
# File 'lib/ovirtsdk4/types.rb', line 46901 def custom_configuration @custom_configuration end |
#custom_configuration=(value) ⇒ Object
Sets the value of the custom_configuration attribute.
46910 46911 46912 |
# File 'lib/ovirtsdk4/types.rb', line 46910 def custom_configuration=(value) @custom_configuration = value end |
#description ⇒ String
Returns the value of the description attribute.
46919 46920 46921 |
# File 'lib/ovirtsdk4/types.rb', line 46919 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
46928 46929 46930 |
# File 'lib/ovirtsdk4/types.rb', line 46928 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
47487 47488 47489 47490 47491 47492 47493 47494 47495 47496 47497 47498 47499 47500 47501 47502 47503 47504 47505 47506 47507 47508 47509 47510 47511 47512 47513 |
# File 'lib/ovirtsdk4/types.rb', line 47487 def hash super + @ad_aggregator_id.hash + @base_interface.hash + @bonding.hash + @boot_protocol.hash + @bridged.hash + @check_connectivity.hash + @custom_configuration.hash + @host.hash + @ip.hash + @ipv6.hash + @ipv6_boot_protocol.hash + @mac.hash + @mtu.hash + @network.hash + @network_labels.hash + @override_configuration.hash + @physical_function.hash + @properties.hash + @qos.hash + @speed.hash + @statistics.hash + @status.hash + @virtual_functions_configuration.hash + @vlan.hash end |
#host ⇒ Host
Returns the value of the host attribute.
46937 46938 46939 |
# File 'lib/ovirtsdk4/types.rb', line 46937 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host attribute.
The value parameter can be an instance of OvirtSDK4::Host or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
46950 46951 46952 46953 46954 46955 |
# File 'lib/ovirtsdk4/types.rb', line 46950 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#id ⇒ String
Returns the value of the id attribute.
46962 46963 46964 |
# File 'lib/ovirtsdk4/types.rb', line 46962 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
46971 46972 46973 |
# File 'lib/ovirtsdk4/types.rb', line 46971 def id=(value) @id = value end |
#ip ⇒ Ip
Returns the value of the ip attribute.
46980 46981 46982 |
# File 'lib/ovirtsdk4/types.rb', line 46980 def ip @ip end |
#ip=(value) ⇒ Object
Sets the value of the ip attribute.
The value parameter can be an instance of Ip or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
46993 46994 46995 46996 46997 46998 |
# File 'lib/ovirtsdk4/types.rb', line 46993 def ip=(value) if value.is_a?(Hash) value = Ip.new(value) end @ip = value end |
#ipv6 ⇒ Ip
Returns the value of the ipv6 attribute.
47005 47006 47007 |
# File 'lib/ovirtsdk4/types.rb', line 47005 def ipv6 @ipv6 end |
#ipv6=(value) ⇒ Object
Sets the value of the ipv6 attribute.
The value parameter can be an instance of Ip or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
47018 47019 47020 47021 47022 47023 |
# File 'lib/ovirtsdk4/types.rb', line 47018 def ipv6=(value) if value.is_a?(Hash) value = Ip.new(value) end @ipv6 = value end |
#ipv6_boot_protocol ⇒ BootProtocol
Returns the value of the ipv6_boot_protocol attribute.
47030 47031 47032 |
# File 'lib/ovirtsdk4/types.rb', line 47030 def ipv6_boot_protocol @ipv6_boot_protocol end |
#ipv6_boot_protocol=(value) ⇒ Object
Sets the value of the ipv6_boot_protocol attribute.
47039 47040 47041 |
# File 'lib/ovirtsdk4/types.rb', line 47039 def ipv6_boot_protocol=(value) @ipv6_boot_protocol = value end |
#mac ⇒ Mac
Returns the value of the mac attribute.
47048 47049 47050 |
# File 'lib/ovirtsdk4/types.rb', line 47048 def mac @mac end |
#mac=(value) ⇒ Object
Sets the value of the mac attribute.
The value parameter can be an instance of Mac or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
47061 47062 47063 47064 47065 47066 |
# File 'lib/ovirtsdk4/types.rb', line 47061 def mac=(value) if value.is_a?(Hash) value = Mac.new(value) end @mac = value end |
#mtu ⇒ Integer
Returns the value of the mtu attribute.
47073 47074 47075 |
# File 'lib/ovirtsdk4/types.rb', line 47073 def mtu @mtu end |
#mtu=(value) ⇒ Object
Sets the value of the mtu attribute.
47082 47083 47084 |
# File 'lib/ovirtsdk4/types.rb', line 47082 def mtu=(value) @mtu = value end |
#name ⇒ String
Returns the value of the name attribute.
47091 47092 47093 |
# File 'lib/ovirtsdk4/types.rb', line 47091 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
47100 47101 47102 |
# File 'lib/ovirtsdk4/types.rb', line 47100 def name=(value) @name = value end |
#network ⇒ Network
Returns the value of the network attribute.
47109 47110 47111 |
# File 'lib/ovirtsdk4/types.rb', line 47109 def network @network end |
#network=(value) ⇒ Object
Sets the value of the network attribute.
The value parameter can be an instance of Network or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
47122 47123 47124 47125 47126 47127 |
# File 'lib/ovirtsdk4/types.rb', line 47122 def network=(value) if value.is_a?(Hash) value = Network.new(value) end @network = value end |
#network_labels ⇒ Array<NetworkLabel>
Returns the value of the network_labels attribute.
47134 47135 47136 |
# File 'lib/ovirtsdk4/types.rb', line 47134 def network_labels @network_labels end |
#network_labels=(list) ⇒ Object
Sets the value of the network_labels attribute.
47143 47144 47145 47146 47147 47148 47149 47150 47151 47152 47153 |
# File 'lib/ovirtsdk4/types.rb', line 47143 def network_labels=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NetworkLabel.new(value) end end end @network_labels = list end |
#override_configuration ⇒ Boolean
Returns the value of the override_configuration attribute.
47160 47161 47162 |
# File 'lib/ovirtsdk4/types.rb', line 47160 def override_configuration @override_configuration end |
#override_configuration=(value) ⇒ Object
Sets the value of the override_configuration attribute.
47169 47170 47171 |
# File 'lib/ovirtsdk4/types.rb', line 47169 def override_configuration=(value) @override_configuration = value end |
#physical_function ⇒ HostNic
Returns the value of the physical_function attribute.
47178 47179 47180 |
# File 'lib/ovirtsdk4/types.rb', line 47178 def physical_function @physical_function end |
#physical_function=(value) ⇒ Object
Sets the value of the physical_function attribute.
The value parameter can be an instance of OvirtSDK4::HostNic or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
47191 47192 47193 47194 47195 47196 |
# File 'lib/ovirtsdk4/types.rb', line 47191 def physical_function=(value) if value.is_a?(Hash) value = HostNic.new(value) end @physical_function = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
47203 47204 47205 |
# File 'lib/ovirtsdk4/types.rb', line 47203 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
47212 47213 47214 47215 47216 47217 47218 47219 47220 47221 47222 |
# File 'lib/ovirtsdk4/types.rb', line 47212 def properties=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Property.new(value) end end end @properties = list end |
#qos ⇒ Qos
Returns the value of the qos attribute.
47229 47230 47231 |
# File 'lib/ovirtsdk4/types.rb', line 47229 def qos @qos end |
#qos=(value) ⇒ Object
Sets the value of the qos attribute.
The value parameter can be an instance of Qos or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
47242 47243 47244 47245 47246 47247 |
# File 'lib/ovirtsdk4/types.rb', line 47242 def qos=(value) if value.is_a?(Hash) value = Qos.new(value) end @qos = value end |
#speed ⇒ Integer
Returns the value of the speed attribute.
47254 47255 47256 |
# File 'lib/ovirtsdk4/types.rb', line 47254 def speed @speed end |
#speed=(value) ⇒ Object
Sets the value of the speed attribute.
47263 47264 47265 |
# File 'lib/ovirtsdk4/types.rb', line 47263 def speed=(value) @speed = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics attribute.
47272 47273 47274 |
# File 'lib/ovirtsdk4/types.rb', line 47272 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics attribute.
47281 47282 47283 47284 47285 47286 47287 47288 47289 47290 47291 |
# File 'lib/ovirtsdk4/types.rb', line 47281 def statistics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Statistic.new(value) end end end @statistics = list end |
#status ⇒ NicStatus
Returns the value of the status attribute.
47298 47299 47300 |
# File 'lib/ovirtsdk4/types.rb', line 47298 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
47307 47308 47309 |
# File 'lib/ovirtsdk4/types.rb', line 47307 def status=(value) @status = value end |
#virtual_functions_configuration ⇒ HostNicVirtualFunctionsConfiguration
Returns the value of the virtual_functions_configuration attribute.
47316 47317 47318 |
# File 'lib/ovirtsdk4/types.rb', line 47316 def virtual_functions_configuration @virtual_functions_configuration end |
#virtual_functions_configuration=(value) ⇒ Object
Sets the value of the virtual_functions_configuration attribute.
The value parameter can be an instance of OvirtSDK4::HostNicVirtualFunctionsConfiguration or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
47329 47330 47331 47332 47333 47334 |
# File 'lib/ovirtsdk4/types.rb', line 47329 def virtual_functions_configuration=(value) if value.is_a?(Hash) value = HostNicVirtualFunctionsConfiguration.new(value) end @virtual_functions_configuration = value end |
#vlan ⇒ Vlan
Returns the value of the vlan attribute.
47341 47342 47343 |
# File 'lib/ovirtsdk4/types.rb', line 47341 def vlan @vlan end |
#vlan=(value) ⇒ Object
Sets the value of the vlan attribute.
The value parameter can be an instance of Vlan or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
47354 47355 47356 47357 47358 47359 |
# File 'lib/ovirtsdk4/types.rb', line 47354 def vlan=(value) if value.is_a?(Hash) value = Vlan.new(value) end @vlan = value end |