class OvirtSDK4::NicConfiguration
Public Class Methods
Creates a new instance of the {NicConfiguration} 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 [BootProtocol] :boot_protocol The value of attribute `boot_protocol`.
@option opts [Ip, Hash] :ip The value of attribute `ip`.
@option opts [String] :name The value of attribute `name`.
@option opts [Boolean] :on_boot The value of attribute `on_boot`.
# File lib/ovirtsdk4/types.rb, line 7948 def initialize(opts = {}) super(opts) self.boot_protocol = opts[:boot_protocol] self.ip = opts[:ip] self.name = opts[:name] self.on_boot = opts[:on_boot] end
Public Instance Methods
Returns the value of the `boot_protocol` attribute.
@return [BootProtocol]
# File lib/ovirtsdk4/types.rb, line 7858 def boot_protocol return @boot_protocol end
Sets the value of the `boot_protocol` attribute.
@param value [BootProtocol]
# File lib/ovirtsdk4/types.rb, line 7867 def boot_protocol=(value) @boot_protocol = value end
Returns the value of the `ip` attribute.
@return [Ip]
# File lib/ovirtsdk4/types.rb, line 7876 def ip return @ip end
Sets the value of the `ip` attribute.
@param value [Ip, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 7889 def ip=(value) if value.is_a?(Hash) value = Ip.new(value) end @ip = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 7901 def name return @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 7910 def name=(value) @name = value end
Returns the value of the `on_boot` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 7919 def on_boot return @on_boot end
Sets the value of the `on_boot` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 7928 def on_boot=(value) @on_boot = value end