Class: OvirtSDK4::NicConfiguration
- 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. -
#boot_protocol ⇒ BootProtocol
Returns the value of the
boot_protocol
attribute. -
#boot_protocol=(value) ⇒ Object
Sets the value of the
boot_protocol
attribute. -
#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
ip
attribute. -
#ip=(value) ⇒ Object
Sets the value of the
ip
attribute. -
#ipv6 ⇒ Ip
Returns the value of the
ipv6
attribute. -
#ipv6=(value) ⇒ Object
Sets the value of the
ipv6
attribute. -
#ipv6_boot_protocol ⇒ BootProtocol
Returns the value of the
ipv6_boot_protocol
attribute. -
#ipv6_boot_protocol=(value) ⇒ Object
Sets the value of the
ipv6_boot_protocol
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#on_boot ⇒ Boolean
Returns the value of the
on_boot
attribute. -
#on_boot=(value) ⇒ Object
Sets the value of the
on_boot
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ NicConfiguration
Creates a new instance of the OvirtSDK4::NicConfiguration class.
12043 12044 12045 12046 12047 12048 12049 12050 12051 |
# File 'lib/ovirtsdk4/types.rb', line 12043 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.
12056 12057 12058 12059 12060 12061 12062 12063 12064 |
# File 'lib/ovirtsdk4/types.rb', line 12056 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.
11906 11907 11908 |
# File 'lib/ovirtsdk4/types.rb', line 11906 def boot_protocol @boot_protocol end |
#boot_protocol=(value) ⇒ Object
Sets the value of the boot_protocol
attribute.
11915 11916 11917 |
# File 'lib/ovirtsdk4/types.rb', line 11915 def boot_protocol=(value) @boot_protocol = value end |
#hash ⇒ Object
Generates a hash value for this object.
12069 12070 12071 12072 12073 12074 12075 12076 12077 |
# File 'lib/ovirtsdk4/types.rb', line 12069 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.
11924 11925 11926 |
# File 'lib/ovirtsdk4/types.rb', line 11924 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.
11937 11938 11939 11940 11941 11942 |
# File 'lib/ovirtsdk4/types.rb', line 11937 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.
11949 11950 11951 |
# File 'lib/ovirtsdk4/types.rb', line 11949 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.
11962 11963 11964 11965 11966 11967 |
# File 'lib/ovirtsdk4/types.rb', line 11962 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.
11974 11975 11976 |
# File 'lib/ovirtsdk4/types.rb', line 11974 def ipv6_boot_protocol @ipv6_boot_protocol end |
#ipv6_boot_protocol=(value) ⇒ Object
Sets the value of the ipv6_boot_protocol
attribute.
11983 11984 11985 |
# File 'lib/ovirtsdk4/types.rb', line 11983 def ipv6_boot_protocol=(value) @ipv6_boot_protocol = value end |
#name ⇒ String
Returns the value of the name
attribute.
11992 11993 11994 |
# File 'lib/ovirtsdk4/types.rb', line 11992 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
12001 12002 12003 |
# File 'lib/ovirtsdk4/types.rb', line 12001 def name=(value) @name = value end |
#on_boot ⇒ Boolean
Returns the value of the on_boot
attribute.
12010 12011 12012 |
# File 'lib/ovirtsdk4/types.rb', line 12010 def on_boot @on_boot end |
#on_boot=(value) ⇒ Object
Sets the value of the on_boot
attribute.
12019 12020 12021 |
# File 'lib/ovirtsdk4/types.rb', line 12019 def on_boot=(value) @on_boot = value end |