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.
22837 22838 22839 22840 22841 |
# File 'lib/ovirtsdk4/types.rb', line 22837 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.
22846 22847 22848 22849 22850 |
# File 'lib/ovirtsdk4/types.rb', line 22846 def ==(other) super && @host == other.host && @host_nic == other.host_nic end |
#comment ⇒ String
Returns the value of the comment
attribute.
22700 22701 22702 |
# File 'lib/ovirtsdk4/types.rb', line 22700 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
22709 22710 22711 |
# File 'lib/ovirtsdk4/types.rb', line 22709 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
22718 22719 22720 |
# File 'lib/ovirtsdk4/types.rb', line 22718 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
22727 22728 22729 |
# File 'lib/ovirtsdk4/types.rb', line 22727 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
22855 22856 22857 22858 22859 |
# File 'lib/ovirtsdk4/types.rb', line 22855 def hash super + @host.hash + @host_nic.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
22736 22737 22738 |
# File 'lib/ovirtsdk4/types.rb', line 22736 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.
22749 22750 22751 22752 22753 22754 |
# File 'lib/ovirtsdk4/types.rb', line 22749 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.
22761 22762 22763 |
# File 'lib/ovirtsdk4/types.rb', line 22761 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.
22774 22775 22776 22777 22778 22779 |
# File 'lib/ovirtsdk4/types.rb', line 22774 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.
22786 22787 22788 |
# File 'lib/ovirtsdk4/types.rb', line 22786 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
22795 22796 22797 |
# File 'lib/ovirtsdk4/types.rb', line 22795 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
22804 22805 22806 |
# File 'lib/ovirtsdk4/types.rb', line 22804 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
22813 22814 22815 |
# File 'lib/ovirtsdk4/types.rb', line 22813 def name=(value) @name = value end |