Class: OvirtSDK4::NicConfiguration
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#boot_protocol ⇒ BootProtocol
Returns the value of the
boot_protocolattribute. -
#boot_protocol=(value) ⇒ Object
Sets the value of the
boot_protocolattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ NicConfiguration
constructor
Creates a new instance of the NicConfiguration 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. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#on_boot ⇒ Boolean
Returns the value of the
on_bootattribute. -
#on_boot=(value) ⇒ Object
Sets the value of the
on_bootattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ NicConfiguration
Creates a new instance of the OvirtSDK4::NicConfiguration class.
12290 12291 12292 12293 12294 12295 12296 12297 12298 |
# File 'lib/ovirtsdk4/types.rb', line 12290 def initialize(opts = {}) super(opts) self.boot_protocol = opts[:boot_protocol] self.ip = opts[:ip] self.ipv6 = opts[:ipv6] self.ipv6_boot_protocol = opts[:ipv6_boot_protocol] self.name = opts[:name] self.on_boot = opts[:on_boot] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
12303 12304 12305 12306 12307 12308 12309 12310 12311 |
# File 'lib/ovirtsdk4/types.rb', line 12303 def ==(other) super && @boot_protocol == other.boot_protocol && @ip == other.ip && @ipv6 == other.ipv6 && @ipv6_boot_protocol == other.ipv6_boot_protocol && @name == other.name && @on_boot == other.on_boot end |
#boot_protocol ⇒ BootProtocol
Returns the value of the boot_protocol attribute.
12153 12154 12155 |
# File 'lib/ovirtsdk4/types.rb', line 12153 def boot_protocol @boot_protocol end |
#boot_protocol=(value) ⇒ Object
Sets the value of the boot_protocol attribute.
12162 12163 12164 |
# File 'lib/ovirtsdk4/types.rb', line 12162 def boot_protocol=(value) @boot_protocol = value end |
#hash ⇒ Object
Generates a hash value for this object.
12316 12317 12318 12319 12320 12321 12322 12323 12324 |
# File 'lib/ovirtsdk4/types.rb', line 12316 def hash super + @boot_protocol.hash + @ip.hash + @ipv6.hash + @ipv6_boot_protocol.hash + @name.hash + @on_boot.hash end |
#ip ⇒ Ip
Returns the value of the ip attribute.
12171 12172 12173 |
# File 'lib/ovirtsdk4/types.rb', line 12171 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.
12184 12185 12186 12187 12188 12189 |
# File 'lib/ovirtsdk4/types.rb', line 12184 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.
12196 12197 12198 |
# File 'lib/ovirtsdk4/types.rb', line 12196 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.
12209 12210 12211 12212 12213 12214 |
# File 'lib/ovirtsdk4/types.rb', line 12209 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.
12221 12222 12223 |
# File 'lib/ovirtsdk4/types.rb', line 12221 def ipv6_boot_protocol @ipv6_boot_protocol end |
#ipv6_boot_protocol=(value) ⇒ Object
Sets the value of the ipv6_boot_protocol attribute.
12230 12231 12232 |
# File 'lib/ovirtsdk4/types.rb', line 12230 def ipv6_boot_protocol=(value) @ipv6_boot_protocol = value end |
#name ⇒ String
Returns the value of the name attribute.
12239 12240 12241 |
# File 'lib/ovirtsdk4/types.rb', line 12239 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
12248 12249 12250 |
# File 'lib/ovirtsdk4/types.rb', line 12248 def name=(value) @name = value end |
#on_boot ⇒ Boolean
Returns the value of the on_boot attribute.
12257 12258 12259 |
# File 'lib/ovirtsdk4/types.rb', line 12257 def on_boot @on_boot end |
#on_boot=(value) ⇒ Object
Sets the value of the on_boot attribute.
12266 12267 12268 |
# File 'lib/ovirtsdk4/types.rb', line 12266 def on_boot=(value) @on_boot = value end |