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.
37702 37703 37704 37705 37706 |
# File 'lib/ovirtsdk4/types.rb', line 37702 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.
37711 37712 37713 37714 37715 |
# File 'lib/ovirtsdk4/types.rb', line 37711 def ==(other) super && @external_network_provider == other.external_network_provider && @host == other.host end |
#comment ⇒ String
Returns the value of the comment
attribute.
37565 37566 37567 |
# File 'lib/ovirtsdk4/types.rb', line 37565 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
37574 37575 37576 |
# File 'lib/ovirtsdk4/types.rb', line 37574 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
37583 37584 37585 |
# File 'lib/ovirtsdk4/types.rb', line 37583 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
37592 37593 37594 |
# File 'lib/ovirtsdk4/types.rb', line 37592 def description=(value) @description = value end |
#external_network_provider ⇒ ExternalProvider
Returns the value of the external_network_provider
attribute.
37601 37602 37603 |
# File 'lib/ovirtsdk4/types.rb', line 37601 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.
37614 37615 37616 37617 37618 37619 |
# File 'lib/ovirtsdk4/types.rb', line 37614 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.
37720 37721 37722 37723 37724 |
# File 'lib/ovirtsdk4/types.rb', line 37720 def hash super + @external_network_provider.hash + @host.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
37626 37627 37628 |
# File 'lib/ovirtsdk4/types.rb', line 37626 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.
37639 37640 37641 37642 37643 37644 |
# File 'lib/ovirtsdk4/types.rb', line 37639 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.
37651 37652 37653 |
# File 'lib/ovirtsdk4/types.rb', line 37651 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
37660 37661 37662 |
# File 'lib/ovirtsdk4/types.rb', line 37660 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
37669 37670 37671 |
# File 'lib/ovirtsdk4/types.rb', line 37669 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
37678 37679 37680 |
# File 'lib/ovirtsdk4/types.rb', line 37678 def name=(value) @name = value end |