Class: OvirtSDK4::ExternalDiscoveredHost
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::ExternalDiscoveredHost
- 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. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_provider
attribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_provider
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ ExternalDiscoveredHost
constructor
Creates a new instance of the ExternalDiscoveredHost class.
-
#ip ⇒ String
Returns the value of the
ip
attribute. -
#ip=(value) ⇒ Object
Sets the value of the
ip
attribute. -
#last_report ⇒ String
Returns the value of the
last_report
attribute. -
#last_report=(value) ⇒ Object
Sets the value of the
last_report
attribute. -
#mac ⇒ String
Returns the value of the
mac
attribute. -
#mac=(value) ⇒ Object
Sets the value of the
mac
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#subnet_name ⇒ String
Returns the value of the
subnet_name
attribute. -
#subnet_name=(value) ⇒ Object
Sets the value of the
subnet_name
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ExternalDiscoveredHost
Creates a new instance of the OvirtSDK4::ExternalDiscoveredHost class.
40155 40156 40157 40158 40159 40160 40161 40162 |
# File 'lib/ovirtsdk4/types.rb', line 40155 def initialize(opts = {}) super(opts) self.external_host_provider = opts[:external_host_provider] self.ip = opts[:ip] self.last_report = opts[:last_report] self.mac = opts[:mac] self.subnet_name = opts[:subnet_name] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
40167 40168 40169 40170 40171 40172 40173 40174 |
# File 'lib/ovirtsdk4/types.rb', line 40167 def ==(other) super && @external_host_provider == other.external_host_provider && @ip == other.ip && @last_report == other.last_report && @mac == other.mac && @subnet_name == other.subnet_name end |
#comment ⇒ String
Returns the value of the comment
attribute.
39965 39966 39967 |
# File 'lib/ovirtsdk4/types.rb', line 39965 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39974 39975 39976 |
# File 'lib/ovirtsdk4/types.rb', line 39974 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
39983 39984 39985 |
# File 'lib/ovirtsdk4/types.rb', line 39983 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39992 39993 39994 |
# File 'lib/ovirtsdk4/types.rb', line 39992 def description=(value) @description = value end |
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the external_host_provider
attribute.
40001 40002 40003 |
# File 'lib/ovirtsdk4/types.rb', line 40001 def external_host_provider @external_host_provider end |
#external_host_provider=(value) ⇒ Object
Sets the value of the external_host_provider
attribute.
The value
parameter can be an instance of OvirtSDK4::ExternalHostProvider 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.
40014 40015 40016 40017 40018 40019 |
# File 'lib/ovirtsdk4/types.rb', line 40014 def external_host_provider=(value) if value.is_a?(Hash) value = ExternalHostProvider.new(value) end @external_host_provider = value end |
#hash ⇒ Object
Generates a hash value for this object.
40179 40180 40181 40182 40183 40184 40185 40186 |
# File 'lib/ovirtsdk4/types.rb', line 40179 def hash super + @external_host_provider.hash + @ip.hash + @last_report.hash + @mac.hash + @subnet_name.hash end |
#id ⇒ String
Returns the value of the id
attribute.
40026 40027 40028 |
# File 'lib/ovirtsdk4/types.rb', line 40026 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
40035 40036 40037 |
# File 'lib/ovirtsdk4/types.rb', line 40035 def id=(value) @id = value end |
#ip ⇒ String
Returns the value of the ip
attribute.
40044 40045 40046 |
# File 'lib/ovirtsdk4/types.rb', line 40044 def ip @ip end |
#ip=(value) ⇒ Object
Sets the value of the ip
attribute.
40053 40054 40055 |
# File 'lib/ovirtsdk4/types.rb', line 40053 def ip=(value) @ip = value end |
#last_report ⇒ String
Returns the value of the last_report
attribute.
40062 40063 40064 |
# File 'lib/ovirtsdk4/types.rb', line 40062 def last_report @last_report end |
#last_report=(value) ⇒ Object
Sets the value of the last_report
attribute.
40071 40072 40073 |
# File 'lib/ovirtsdk4/types.rb', line 40071 def last_report=(value) @last_report = value end |
#mac ⇒ String
Returns the value of the mac
attribute.
40080 40081 40082 |
# File 'lib/ovirtsdk4/types.rb', line 40080 def mac @mac end |
#mac=(value) ⇒ Object
Sets the value of the mac
attribute.
40089 40090 40091 |
# File 'lib/ovirtsdk4/types.rb', line 40089 def mac=(value) @mac = value end |
#name ⇒ String
Returns the value of the name
attribute.
40098 40099 40100 |
# File 'lib/ovirtsdk4/types.rb', line 40098 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
40107 40108 40109 |
# File 'lib/ovirtsdk4/types.rb', line 40107 def name=(value) @name = value end |
#subnet_name ⇒ String
Returns the value of the subnet_name
attribute.
40116 40117 40118 |
# File 'lib/ovirtsdk4/types.rb', line 40116 def subnet_name @subnet_name end |
#subnet_name=(value) ⇒ Object
Sets the value of the subnet_name
attribute.
40125 40126 40127 |
# File 'lib/ovirtsdk4/types.rb', line 40125 def subnet_name=(value) @subnet_name = value end |