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.
48867 48868 48869 48870 |
# File 'lib/ovirtsdk4/types.rb', line 48867 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.
48875 48876 48877 48878 |
# File 'lib/ovirtsdk4/types.rb', line 48875 def ==(other) super && @tenant_name == other.tenant_name end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
48636 48637 48638 |
# File 'lib/ovirtsdk4/types.rb', line 48636 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
48645 48646 48647 |
# File 'lib/ovirtsdk4/types.rb', line 48645 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
48654 48655 48656 |
# File 'lib/ovirtsdk4/types.rb', line 48654 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
48663 48664 48665 |
# File 'lib/ovirtsdk4/types.rb', line 48663 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
48672 48673 48674 |
# File 'lib/ovirtsdk4/types.rb', line 48672 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
48681 48682 48683 |
# File 'lib/ovirtsdk4/types.rb', line 48681 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
48883 48884 48885 48886 |
# File 'lib/ovirtsdk4/types.rb', line 48883 def hash super + @tenant_name.hash end |
#id ⇒ String
Returns the value of the id
attribute.
48690 48691 48692 |
# File 'lib/ovirtsdk4/types.rb', line 48690 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
48699 48700 48701 |
# File 'lib/ovirtsdk4/types.rb', line 48699 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
48708 48709 48710 |
# File 'lib/ovirtsdk4/types.rb', line 48708 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
48717 48718 48719 |
# File 'lib/ovirtsdk4/types.rb', line 48717 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
48726 48727 48728 |
# File 'lib/ovirtsdk4/types.rb', line 48726 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
48735 48736 48737 |
# File 'lib/ovirtsdk4/types.rb', line 48735 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
48744 48745 48746 |
# File 'lib/ovirtsdk4/types.rb', line 48744 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
48753 48754 48755 48756 48757 48758 48759 48760 48761 48762 48763 |
# File 'lib/ovirtsdk4/types.rb', line 48753 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.
48770 48771 48772 |
# File 'lib/ovirtsdk4/types.rb', line 48770 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
48779 48780 48781 |
# File 'lib/ovirtsdk4/types.rb', line 48779 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
48788 48789 48790 |
# File 'lib/ovirtsdk4/types.rb', line 48788 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
48797 48798 48799 |
# File 'lib/ovirtsdk4/types.rb', line 48797 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
48806 48807 48808 |
# File 'lib/ovirtsdk4/types.rb', line 48806 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
48815 48816 48817 |
# File 'lib/ovirtsdk4/types.rb', line 48815 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
48824 48825 48826 |
# File 'lib/ovirtsdk4/types.rb', line 48824 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
48833 48834 48835 |
# File 'lib/ovirtsdk4/types.rb', line 48833 def username=(value) @username = value end |