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.
38278 38279 38280 38281 38282 |
# File 'lib/ovirtsdk4/types.rb', line 38278 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.
38287 38288 38289 38290 38291 |
# File 'lib/ovirtsdk4/types.rb', line 38287 def ==(other) super && @external_network_provider == other.external_network_provider && @host == other.host end |
#comment ⇒ String
Returns the value of the comment
attribute.
38141 38142 38143 |
# File 'lib/ovirtsdk4/types.rb', line 38141 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
38150 38151 38152 |
# File 'lib/ovirtsdk4/types.rb', line 38150 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
38159 38160 38161 |
# File 'lib/ovirtsdk4/types.rb', line 38159 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
38168 38169 38170 |
# File 'lib/ovirtsdk4/types.rb', line 38168 def description=(value) @description = value end |
#external_network_provider ⇒ ExternalProvider
Returns the value of the external_network_provider
attribute.
38177 38178 38179 |
# File 'lib/ovirtsdk4/types.rb', line 38177 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.
38190 38191 38192 38193 38194 38195 |
# File 'lib/ovirtsdk4/types.rb', line 38190 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.
38296 38297 38298 38299 38300 |
# File 'lib/ovirtsdk4/types.rb', line 38296 def hash super + @external_network_provider.hash + @host.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
38202 38203 38204 |
# File 'lib/ovirtsdk4/types.rb', line 38202 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.
38215 38216 38217 38218 38219 38220 |
# File 'lib/ovirtsdk4/types.rb', line 38215 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.
38227 38228 38229 |
# File 'lib/ovirtsdk4/types.rb', line 38227 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
38236 38237 38238 |
# File 'lib/ovirtsdk4/types.rb', line 38236 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
38245 38246 38247 |
# File 'lib/ovirtsdk4/types.rb', line 38245 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
38254 38255 38256 |
# File 'lib/ovirtsdk4/types.rb', line 38254 def name=(value) @name = value end |