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.
37704 37705 37706 37707 37708 37709 37710 37711 |
# File 'lib/ovirtsdk4/types.rb', line 37704 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.
37716 37717 37718 37719 37720 37721 37722 37723 |
# File 'lib/ovirtsdk4/types.rb', line 37716 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.
37514 37515 37516 |
# File 'lib/ovirtsdk4/types.rb', line 37514 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
37523 37524 37525 |
# File 'lib/ovirtsdk4/types.rb', line 37523 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
37532 37533 37534 |
# File 'lib/ovirtsdk4/types.rb', line 37532 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
37541 37542 37543 |
# File 'lib/ovirtsdk4/types.rb', line 37541 def description=(value) @description = value end |
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the external_host_provider
attribute.
37550 37551 37552 |
# File 'lib/ovirtsdk4/types.rb', line 37550 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.
37563 37564 37565 37566 37567 37568 |
# File 'lib/ovirtsdk4/types.rb', line 37563 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.
37728 37729 37730 37731 37732 37733 37734 37735 |
# File 'lib/ovirtsdk4/types.rb', line 37728 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.
37575 37576 37577 |
# File 'lib/ovirtsdk4/types.rb', line 37575 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
37584 37585 37586 |
# File 'lib/ovirtsdk4/types.rb', line 37584 def id=(value) @id = value end |
#ip ⇒ String
Returns the value of the ip
attribute.
37593 37594 37595 |
# File 'lib/ovirtsdk4/types.rb', line 37593 def ip @ip end |
#ip=(value) ⇒ Object
Sets the value of the ip
attribute.
37602 37603 37604 |
# File 'lib/ovirtsdk4/types.rb', line 37602 def ip=(value) @ip = value end |
#last_report ⇒ String
Returns the value of the last_report
attribute.
37611 37612 37613 |
# File 'lib/ovirtsdk4/types.rb', line 37611 def last_report @last_report end |
#last_report=(value) ⇒ Object
Sets the value of the last_report
attribute.
37620 37621 37622 |
# File 'lib/ovirtsdk4/types.rb', line 37620 def last_report=(value) @last_report = value end |
#mac ⇒ String
Returns the value of the mac
attribute.
37629 37630 37631 |
# File 'lib/ovirtsdk4/types.rb', line 37629 def mac @mac end |
#mac=(value) ⇒ Object
Sets the value of the mac
attribute.
37638 37639 37640 |
# File 'lib/ovirtsdk4/types.rb', line 37638 def mac=(value) @mac = value end |
#name ⇒ String
Returns the value of the name
attribute.
37647 37648 37649 |
# File 'lib/ovirtsdk4/types.rb', line 37647 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
37656 37657 37658 |
# File 'lib/ovirtsdk4/types.rb', line 37656 def name=(value) @name = value end |
#subnet_name ⇒ String
Returns the value of the subnet_name
attribute.
37665 37666 37667 |
# File 'lib/ovirtsdk4/types.rb', line 37665 def subnet_name @subnet_name end |
#subnet_name=(value) ⇒ Object
Sets the value of the subnet_name
attribute.
37674 37675 37676 |
# File 'lib/ovirtsdk4/types.rb', line 37674 def subnet_name=(value) @subnet_name = value end |