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.
37633 37634 37635 37636 37637 |
# File 'lib/ovirtsdk4/types.rb', line 37633 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.
37642 37643 37644 37645 37646 |
# File 'lib/ovirtsdk4/types.rb', line 37642 def ==(other) super && @external_network_provider == other.external_network_provider && @host == other.host end |
#comment ⇒ String
Returns the value of the comment attribute.
37496 37497 37498 |
# File 'lib/ovirtsdk4/types.rb', line 37496 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
37505 37506 37507 |
# File 'lib/ovirtsdk4/types.rb', line 37505 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
37514 37515 37516 |
# File 'lib/ovirtsdk4/types.rb', line 37514 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
37523 37524 37525 |
# File 'lib/ovirtsdk4/types.rb', line 37523 def description=(value) @description = value end |
#external_network_provider ⇒ ExternalProvider
Returns the value of the external_network_provider attribute.
37532 37533 37534 |
# File 'lib/ovirtsdk4/types.rb', line 37532 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.
37545 37546 37547 37548 37549 37550 |
# File 'lib/ovirtsdk4/types.rb', line 37545 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.
37651 37652 37653 37654 37655 |
# File 'lib/ovirtsdk4/types.rb', line 37651 def hash super + @external_network_provider.hash + @host.hash end |
#host ⇒ Host
Returns the value of the host attribute.
37557 37558 37559 |
# File 'lib/ovirtsdk4/types.rb', line 37557 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.
37570 37571 37572 37573 37574 37575 |
# File 'lib/ovirtsdk4/types.rb', line 37570 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.
37582 37583 37584 |
# File 'lib/ovirtsdk4/types.rb', line 37582 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
37591 37592 37593 |
# File 'lib/ovirtsdk4/types.rb', line 37591 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
37600 37601 37602 |
# File 'lib/ovirtsdk4/types.rb', line 37600 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
37609 37610 37611 |
# File 'lib/ovirtsdk4/types.rb', line 37609 def name=(value) @name = value end |