Class: OvirtSDK4::UnmanagedNetwork
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::UnmanagedNetwork
- 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. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#host_nic ⇒ HostNic
Returns the value of the
host_nic
attribute. -
#host_nic=(value) ⇒ Object
Sets the value of the
host_nic
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ UnmanagedNetwork
constructor
Creates a new instance of the UnmanagedNetwork class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ UnmanagedNetwork
Creates a new instance of the OvirtSDK4::UnmanagedNetwork class.
23318 23319 23320 23321 23322 |
# File 'lib/ovirtsdk4/types.rb', line 23318 def initialize(opts = {}) super(opts) self.host = opts[:host] self.host_nic = opts[:host_nic] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
23327 23328 23329 23330 23331 |
# File 'lib/ovirtsdk4/types.rb', line 23327 def ==(other) super && @host == other.host && @host_nic == other.host_nic end |
#comment ⇒ String
Returns the value of the comment
attribute.
23181 23182 23183 |
# File 'lib/ovirtsdk4/types.rb', line 23181 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
23190 23191 23192 |
# File 'lib/ovirtsdk4/types.rb', line 23190 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
23199 23200 23201 |
# File 'lib/ovirtsdk4/types.rb', line 23199 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
23208 23209 23210 |
# File 'lib/ovirtsdk4/types.rb', line 23208 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
23336 23337 23338 23339 23340 |
# File 'lib/ovirtsdk4/types.rb', line 23336 def hash super + @host.hash + @host_nic.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
23217 23218 23219 |
# File 'lib/ovirtsdk4/types.rb', line 23217 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host
attribute.
The value
parameter can be an instance of 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.
23230 23231 23232 23233 23234 23235 |
# File 'lib/ovirtsdk4/types.rb', line 23230 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#host_nic ⇒ HostNic
Returns the value of the host_nic
attribute.
23242 23243 23244 |
# File 'lib/ovirtsdk4/types.rb', line 23242 def host_nic @host_nic end |
#host_nic=(value) ⇒ Object
Sets the value of the host_nic
attribute.
The value
parameter can be an instance of 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.
23255 23256 23257 23258 23259 23260 |
# File 'lib/ovirtsdk4/types.rb', line 23255 def host_nic=(value) if value.is_a?(Hash) value = HostNic.new(value) end @host_nic = value end |
#id ⇒ String
Returns the value of the id
attribute.
23267 23268 23269 |
# File 'lib/ovirtsdk4/types.rb', line 23267 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
23276 23277 23278 |
# File 'lib/ovirtsdk4/types.rb', line 23276 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
23285 23286 23287 |
# File 'lib/ovirtsdk4/types.rb', line 23285 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
23294 23295 23296 |
# File 'lib/ovirtsdk4/types.rb', line 23294 def name=(value) @name = value end |