Class: OvirtSDK4::ExternalNetworkProviderConfiguration
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::ExternalNetworkProviderConfiguration
- 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_network_provider ⇒ ExternalProvider
Returns the value of the
external_network_provider
attribute. -
#external_network_provider=(value) ⇒ Object
Sets the value of the
external_network_provider
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. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ ExternalNetworkProviderConfiguration
constructor
Creates a new instance of the ExternalNetworkProviderConfiguration 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 = {}) ⇒ ExternalNetworkProviderConfiguration
Creates a new instance of the OvirtSDK4::ExternalNetworkProviderConfiguration class.
37375 37376 37377 37378 37379 |
# File 'lib/ovirtsdk4/types.rb', line 37375 def initialize(opts = {}) super(opts) self.external_network_provider = opts[:external_network_provider] self.host = opts[:host] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
37384 37385 37386 37387 37388 |
# File 'lib/ovirtsdk4/types.rb', line 37384 def ==(other) super && @external_network_provider == other.external_network_provider && @host == other.host end |
#comment ⇒ String
Returns the value of the comment
attribute.
37238 37239 37240 |
# File 'lib/ovirtsdk4/types.rb', line 37238 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
37247 37248 37249 |
# File 'lib/ovirtsdk4/types.rb', line 37247 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
37256 37257 37258 |
# File 'lib/ovirtsdk4/types.rb', line 37256 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
37265 37266 37267 |
# File 'lib/ovirtsdk4/types.rb', line 37265 def description=(value) @description = value end |
#external_network_provider ⇒ ExternalProvider
Returns the value of the external_network_provider
attribute.
37274 37275 37276 |
# File 'lib/ovirtsdk4/types.rb', line 37274 def external_network_provider @external_network_provider end |
#external_network_provider=(value) ⇒ Object
Sets the value of the external_network_provider
attribute.
The value
parameter can be an instance of OvirtSDK4::ExternalProvider 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.
37287 37288 37289 37290 37291 37292 |
# File 'lib/ovirtsdk4/types.rb', line 37287 def external_network_provider=(value) if value.is_a?(Hash) value = ExternalProvider.new(value) end @external_network_provider = value end |
#hash ⇒ Object
Generates a hash value for this object.
37393 37394 37395 37396 37397 |
# File 'lib/ovirtsdk4/types.rb', line 37393 def hash super + @external_network_provider.hash + @host.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
37299 37300 37301 |
# File 'lib/ovirtsdk4/types.rb', line 37299 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.
37312 37313 37314 37315 37316 37317 |
# File 'lib/ovirtsdk4/types.rb', line 37312 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#id ⇒ String
Returns the value of the id
attribute.
37324 37325 37326 |
# File 'lib/ovirtsdk4/types.rb', line 37324 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
37333 37334 37335 |
# File 'lib/ovirtsdk4/types.rb', line 37333 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
37342 37343 37344 |
# File 'lib/ovirtsdk4/types.rb', line 37342 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
37351 37352 37353 |
# File 'lib/ovirtsdk4/types.rb', line 37351 def name=(value) @name = value end |