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.
39874 39875 39876 39877 39878 |
# File 'lib/ovirtsdk4/types.rb', line 39874 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.
39883 39884 39885 39886 39887 |
# File 'lib/ovirtsdk4/types.rb', line 39883 def ==(other) super && @external_network_provider == other.external_network_provider && @host == other.host end |
#comment ⇒ String
Returns the value of the comment
attribute.
39737 39738 39739 |
# File 'lib/ovirtsdk4/types.rb', line 39737 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39746 39747 39748 |
# File 'lib/ovirtsdk4/types.rb', line 39746 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
39755 39756 39757 |
# File 'lib/ovirtsdk4/types.rb', line 39755 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39764 39765 39766 |
# File 'lib/ovirtsdk4/types.rb', line 39764 def description=(value) @description = value end |
#external_network_provider ⇒ ExternalProvider
Returns the value of the external_network_provider
attribute.
39773 39774 39775 |
# File 'lib/ovirtsdk4/types.rb', line 39773 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.
39786 39787 39788 39789 39790 39791 |
# File 'lib/ovirtsdk4/types.rb', line 39786 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.
39892 39893 39894 39895 39896 |
# File 'lib/ovirtsdk4/types.rb', line 39892 def hash super + @external_network_provider.hash + @host.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
39798 39799 39800 |
# File 'lib/ovirtsdk4/types.rb', line 39798 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.
39811 39812 39813 39814 39815 39816 |
# File 'lib/ovirtsdk4/types.rb', line 39811 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.
39823 39824 39825 |
# File 'lib/ovirtsdk4/types.rb', line 39823 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
39832 39833 39834 |
# File 'lib/ovirtsdk4/types.rb', line 39832 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
39841 39842 39843 |
# File 'lib/ovirtsdk4/types.rb', line 39841 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
39850 39851 39852 |
# File 'lib/ovirtsdk4/types.rb', line 39850 def name=(value) @name = value end |