Class: OvirtSDK4::OpenStackProvider
- Inherits:
-
ExternalProvider
- Object
- Struct
- Identified
- ExternalProvider
- OvirtSDK4::OpenStackProvider
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
OpenStackImageProvider, OpenStackNetworkProvider, OpenStackVolumeProvider
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#authentication_url ⇒ String
Returns the value of the
authentication_url
attribute. -
#authentication_url=(value) ⇒ Object
Sets the value of the
authentication_url
attribute. -
#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. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ OpenStackProvider
constructor
Creates a new instance of the OpenStackProvider class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#properties ⇒ Array<Property>
Returns the value of the
properties
attribute. -
#properties=(list) ⇒ Object
Sets the value of the
properties
attribute. -
#requires_authentication ⇒ Boolean
Returns the value of the
requires_authentication
attribute. -
#requires_authentication=(value) ⇒ Object
Sets the value of the
requires_authentication
attribute. -
#tenant_name ⇒ String
Returns the value of the
tenant_name
attribute. -
#tenant_name=(value) ⇒ Object
Sets the value of the
tenant_name
attribute. -
#url ⇒ String
Returns the value of the
url
attribute. -
#url=(value) ⇒ Object
Sets the value of the
url
attribute. -
#username ⇒ String
Returns the value of the
username
attribute. -
#username=(value) ⇒ Object
Sets the value of the
username
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ OpenStackProvider
Creates a new instance of the OvirtSDK4::OpenStackProvider class.
47702 47703 47704 47705 |
# File 'lib/ovirtsdk4/types.rb', line 47702 def initialize(opts = {}) super(opts) self.tenant_name = opts[:tenant_name] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
47710 47711 47712 47713 |
# File 'lib/ovirtsdk4/types.rb', line 47710 def ==(other) super && @tenant_name == other.tenant_name end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
47471 47472 47473 |
# File 'lib/ovirtsdk4/types.rb', line 47471 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
47480 47481 47482 |
# File 'lib/ovirtsdk4/types.rb', line 47480 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
47489 47490 47491 |
# File 'lib/ovirtsdk4/types.rb', line 47489 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
47498 47499 47500 |
# File 'lib/ovirtsdk4/types.rb', line 47498 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
47507 47508 47509 |
# File 'lib/ovirtsdk4/types.rb', line 47507 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
47516 47517 47518 |
# File 'lib/ovirtsdk4/types.rb', line 47516 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
47718 47719 47720 47721 |
# File 'lib/ovirtsdk4/types.rb', line 47718 def hash super + @tenant_name.hash end |
#id ⇒ String
Returns the value of the id
attribute.
47525 47526 47527 |
# File 'lib/ovirtsdk4/types.rb', line 47525 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
47534 47535 47536 |
# File 'lib/ovirtsdk4/types.rb', line 47534 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
47543 47544 47545 |
# File 'lib/ovirtsdk4/types.rb', line 47543 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
47552 47553 47554 |
# File 'lib/ovirtsdk4/types.rb', line 47552 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
47561 47562 47563 |
# File 'lib/ovirtsdk4/types.rb', line 47561 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
47570 47571 47572 |
# File 'lib/ovirtsdk4/types.rb', line 47570 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
47579 47580 47581 |
# File 'lib/ovirtsdk4/types.rb', line 47579 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
47588 47589 47590 47591 47592 47593 47594 47595 47596 47597 47598 |
# File 'lib/ovirtsdk4/types.rb', line 47588 def properties=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Property.new(value) end end end @properties = list end |
#requires_authentication ⇒ Boolean
Returns the value of the requires_authentication
attribute.
47605 47606 47607 |
# File 'lib/ovirtsdk4/types.rb', line 47605 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
47614 47615 47616 |
# File 'lib/ovirtsdk4/types.rb', line 47614 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
47623 47624 47625 |
# File 'lib/ovirtsdk4/types.rb', line 47623 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
47632 47633 47634 |
# File 'lib/ovirtsdk4/types.rb', line 47632 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
47641 47642 47643 |
# File 'lib/ovirtsdk4/types.rb', line 47641 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
47650 47651 47652 |
# File 'lib/ovirtsdk4/types.rb', line 47650 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
47659 47660 47661 |
# File 'lib/ovirtsdk4/types.rb', line 47659 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
47668 47669 47670 |
# File 'lib/ovirtsdk4/types.rb', line 47668 def username=(value) @username = value end |