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.
37128 37129 37130 37131 37132 37133 37134 37135 |
# File 'lib/ovirtsdk4/types.rb', line 37128 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.
37140 37141 37142 37143 37144 37145 37146 37147 |
# File 'lib/ovirtsdk4/types.rb', line 37140 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.
36938 36939 36940 |
# File 'lib/ovirtsdk4/types.rb', line 36938 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
36947 36948 36949 |
# File 'lib/ovirtsdk4/types.rb', line 36947 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
36956 36957 36958 |
# File 'lib/ovirtsdk4/types.rb', line 36956 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
36965 36966 36967 |
# File 'lib/ovirtsdk4/types.rb', line 36965 def description=(value) @description = value end |
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the external_host_provider
attribute.
36974 36975 36976 |
# File 'lib/ovirtsdk4/types.rb', line 36974 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.
36987 36988 36989 36990 36991 36992 |
# File 'lib/ovirtsdk4/types.rb', line 36987 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.
37152 37153 37154 37155 37156 37157 37158 37159 |
# File 'lib/ovirtsdk4/types.rb', line 37152 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.
36999 37000 37001 |
# File 'lib/ovirtsdk4/types.rb', line 36999 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
37008 37009 37010 |
# File 'lib/ovirtsdk4/types.rb', line 37008 def id=(value) @id = value end |
#ip ⇒ String
Returns the value of the ip
attribute.
37017 37018 37019 |
# File 'lib/ovirtsdk4/types.rb', line 37017 def ip @ip end |
#ip=(value) ⇒ Object
Sets the value of the ip
attribute.
37026 37027 37028 |
# File 'lib/ovirtsdk4/types.rb', line 37026 def ip=(value) @ip = value end |
#last_report ⇒ String
Returns the value of the last_report
attribute.
37035 37036 37037 |
# File 'lib/ovirtsdk4/types.rb', line 37035 def last_report @last_report end |
#last_report=(value) ⇒ Object
Sets the value of the last_report
attribute.
37044 37045 37046 |
# File 'lib/ovirtsdk4/types.rb', line 37044 def last_report=(value) @last_report = value end |
#mac ⇒ String
Returns the value of the mac
attribute.
37053 37054 37055 |
# File 'lib/ovirtsdk4/types.rb', line 37053 def mac @mac end |
#mac=(value) ⇒ Object
Sets the value of the mac
attribute.
37062 37063 37064 |
# File 'lib/ovirtsdk4/types.rb', line 37062 def mac=(value) @mac = value end |
#name ⇒ String
Returns the value of the name
attribute.
37071 37072 37073 |
# File 'lib/ovirtsdk4/types.rb', line 37071 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
37080 37081 37082 |
# File 'lib/ovirtsdk4/types.rb', line 37080 def name=(value) @name = value end |
#subnet_name ⇒ String
Returns the value of the subnet_name
attribute.
37089 37090 37091 |
# File 'lib/ovirtsdk4/types.rb', line 37089 def subnet_name @subnet_name end |
#subnet_name=(value) ⇒ Object
Sets the value of the subnet_name
attribute.
37098 37099 37100 |
# File 'lib/ovirtsdk4/types.rb', line 37098 def subnet_name=(value) @subnet_name = value end |