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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_providerattribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_providerattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ ExternalDiscoveredHost
constructor
Creates a new instance of the ExternalDiscoveredHost class.
-
#ip ⇒ String
Returns the value of the
ipattribute. -
#ip=(value) ⇒ Object
Sets the value of the
ipattribute. -
#last_report ⇒ String
Returns the value of the
last_reportattribute. -
#last_report=(value) ⇒ Object
Sets the value of the
last_reportattribute. -
#mac ⇒ String
Returns the value of the
macattribute. -
#mac=(value) ⇒ Object
Sets the value of the
macattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#subnet_name ⇒ String
Returns the value of the
subnet_nameattribute. -
#subnet_name=(value) ⇒ Object
Sets the value of the
subnet_nameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ExternalDiscoveredHost
Creates a new instance of the OvirtSDK4::ExternalDiscoveredHost class.
40448 40449 40450 40451 40452 40453 40454 40455 |
# File 'lib/ovirtsdk4/types.rb', line 40448 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.
40460 40461 40462 40463 40464 40465 40466 40467 |
# File 'lib/ovirtsdk4/types.rb', line 40460 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.
40258 40259 40260 |
# File 'lib/ovirtsdk4/types.rb', line 40258 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
40267 40268 40269 |
# File 'lib/ovirtsdk4/types.rb', line 40267 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
40276 40277 40278 |
# File 'lib/ovirtsdk4/types.rb', line 40276 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
40285 40286 40287 |
# File 'lib/ovirtsdk4/types.rb', line 40285 def description=(value) @description = value end |
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the external_host_provider attribute.
40294 40295 40296 |
# File 'lib/ovirtsdk4/types.rb', line 40294 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.
40307 40308 40309 40310 40311 40312 |
# File 'lib/ovirtsdk4/types.rb', line 40307 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.
40472 40473 40474 40475 40476 40477 40478 40479 |
# File 'lib/ovirtsdk4/types.rb', line 40472 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.
40319 40320 40321 |
# File 'lib/ovirtsdk4/types.rb', line 40319 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
40328 40329 40330 |
# File 'lib/ovirtsdk4/types.rb', line 40328 def id=(value) @id = value end |
#ip ⇒ String
Returns the value of the ip attribute.
40337 40338 40339 |
# File 'lib/ovirtsdk4/types.rb', line 40337 def ip @ip end |
#ip=(value) ⇒ Object
Sets the value of the ip attribute.
40346 40347 40348 |
# File 'lib/ovirtsdk4/types.rb', line 40346 def ip=(value) @ip = value end |
#last_report ⇒ String
Returns the value of the last_report attribute.
40355 40356 40357 |
# File 'lib/ovirtsdk4/types.rb', line 40355 def last_report @last_report end |
#last_report=(value) ⇒ Object
Sets the value of the last_report attribute.
40364 40365 40366 |
# File 'lib/ovirtsdk4/types.rb', line 40364 def last_report=(value) @last_report = value end |
#mac ⇒ String
Returns the value of the mac attribute.
40373 40374 40375 |
# File 'lib/ovirtsdk4/types.rb', line 40373 def mac @mac end |
#mac=(value) ⇒ Object
Sets the value of the mac attribute.
40382 40383 40384 |
# File 'lib/ovirtsdk4/types.rb', line 40382 def mac=(value) @mac = value end |
#name ⇒ String
Returns the value of the name attribute.
40391 40392 40393 |
# File 'lib/ovirtsdk4/types.rb', line 40391 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
40400 40401 40402 |
# File 'lib/ovirtsdk4/types.rb', line 40400 def name=(value) @name = value end |
#subnet_name ⇒ String
Returns the value of the subnet_name attribute.
40409 40410 40411 |
# File 'lib/ovirtsdk4/types.rb', line 40409 def subnet_name @subnet_name end |
#subnet_name=(value) ⇒ Object
Sets the value of the subnet_name attribute.
40418 40419 40420 |
# File 'lib/ovirtsdk4/types.rb', line 40418 def subnet_name=(value) @subnet_name = value end |