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.
23791 23792 23793 23794 23795 |
# File 'lib/ovirtsdk4/types.rb', line 23791 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.
23800 23801 23802 23803 23804 |
# File 'lib/ovirtsdk4/types.rb', line 23800 def ==(other) super && @host == other.host && @host_nic == other.host_nic end |
#comment ⇒ String
Returns the value of the comment
attribute.
23654 23655 23656 |
# File 'lib/ovirtsdk4/types.rb', line 23654 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
23663 23664 23665 |
# File 'lib/ovirtsdk4/types.rb', line 23663 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
23672 23673 23674 |
# File 'lib/ovirtsdk4/types.rb', line 23672 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
23681 23682 23683 |
# File 'lib/ovirtsdk4/types.rb', line 23681 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
23809 23810 23811 23812 23813 |
# File 'lib/ovirtsdk4/types.rb', line 23809 def hash super + @host.hash + @host_nic.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
23690 23691 23692 |
# File 'lib/ovirtsdk4/types.rb', line 23690 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.
23703 23704 23705 23706 23707 23708 |
# File 'lib/ovirtsdk4/types.rb', line 23703 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.
23715 23716 23717 |
# File 'lib/ovirtsdk4/types.rb', line 23715 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.
23728 23729 23730 23731 23732 23733 |
# File 'lib/ovirtsdk4/types.rb', line 23728 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.
23740 23741 23742 |
# File 'lib/ovirtsdk4/types.rb', line 23740 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
23749 23750 23751 |
# File 'lib/ovirtsdk4/types.rb', line 23749 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
23758 23759 23760 |
# File 'lib/ovirtsdk4/types.rb', line 23758 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
23767 23768 23769 |
# File 'lib/ovirtsdk4/types.rb', line 23767 def name=(value) @name = value end |