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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#external_network_provider ⇒ ExternalProvider
Returns the value of the
external_network_providerattribute. -
#external_network_provider=(value) ⇒ Object
Sets the value of the
external_network_providerattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ ExternalNetworkProviderConfiguration
constructor
Creates a new instance of the ExternalNetworkProviderConfiguration class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ExternalNetworkProviderConfiguration
Creates a new instance of the OvirtSDK4::ExternalNetworkProviderConfiguration class.
41022 41023 41024 41025 41026 |
# File 'lib/ovirtsdk4/types.rb', line 41022 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.
41031 41032 41033 41034 41035 |
# File 'lib/ovirtsdk4/types.rb', line 41031 def ==(other) super && @external_network_provider == other.external_network_provider && @host == other.host end |
#comment ⇒ String
Returns the value of the comment attribute.
40885 40886 40887 |
# File 'lib/ovirtsdk4/types.rb', line 40885 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
40894 40895 40896 |
# File 'lib/ovirtsdk4/types.rb', line 40894 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
40903 40904 40905 |
# File 'lib/ovirtsdk4/types.rb', line 40903 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
40912 40913 40914 |
# File 'lib/ovirtsdk4/types.rb', line 40912 def description=(value) @description = value end |
#external_network_provider ⇒ ExternalProvider
Returns the value of the external_network_provider attribute.
40921 40922 40923 |
# File 'lib/ovirtsdk4/types.rb', line 40921 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.
40934 40935 40936 40937 40938 40939 |
# File 'lib/ovirtsdk4/types.rb', line 40934 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.
41040 41041 41042 41043 41044 |
# File 'lib/ovirtsdk4/types.rb', line 41040 def hash super + @external_network_provider.hash + @host.hash end |
#host ⇒ Host
Returns the value of the host attribute.
40946 40947 40948 |
# File 'lib/ovirtsdk4/types.rb', line 40946 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.
40959 40960 40961 40962 40963 40964 |
# File 'lib/ovirtsdk4/types.rb', line 40959 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.
40971 40972 40973 |
# File 'lib/ovirtsdk4/types.rb', line 40971 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
40980 40981 40982 |
# File 'lib/ovirtsdk4/types.rb', line 40980 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
40989 40990 40991 |
# File 'lib/ovirtsdk4/types.rb', line 40989 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
40998 40999 41000 |
# File 'lib/ovirtsdk4/types.rb', line 40998 def name=(value) @name = value end |