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.
37573 37574 37575 37576 37577 |
# File 'lib/ovirtsdk4/types.rb', line 37573 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.
37582 37583 37584 37585 37586 |
# File 'lib/ovirtsdk4/types.rb', line 37582 def ==(other) super && @external_network_provider == other.external_network_provider && @host == other.host end |
#comment ⇒ String
Returns the value of the comment
attribute.
37436 37437 37438 |
# File 'lib/ovirtsdk4/types.rb', line 37436 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
37445 37446 37447 |
# File 'lib/ovirtsdk4/types.rb', line 37445 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
37454 37455 37456 |
# File 'lib/ovirtsdk4/types.rb', line 37454 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
37463 37464 37465 |
# File 'lib/ovirtsdk4/types.rb', line 37463 def description=(value) @description = value end |
#external_network_provider ⇒ ExternalProvider
Returns the value of the external_network_provider
attribute.
37472 37473 37474 |
# File 'lib/ovirtsdk4/types.rb', line 37472 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.
37485 37486 37487 37488 37489 37490 |
# File 'lib/ovirtsdk4/types.rb', line 37485 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.
37591 37592 37593 37594 37595 |
# File 'lib/ovirtsdk4/types.rb', line 37591 def hash super + @external_network_provider.hash + @host.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
37497 37498 37499 |
# File 'lib/ovirtsdk4/types.rb', line 37497 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.
37510 37511 37512 37513 37514 37515 |
# File 'lib/ovirtsdk4/types.rb', line 37510 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.
37522 37523 37524 |
# File 'lib/ovirtsdk4/types.rb', line 37522 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
37531 37532 37533 |
# File 'lib/ovirtsdk4/types.rb', line 37531 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
37540 37541 37542 |
# File 'lib/ovirtsdk4/types.rb', line 37540 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
37549 37550 37551 |
# File 'lib/ovirtsdk4/types.rb', line 37549 def name=(value) @name = value end |