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.
46052 46053 46054 46055 |
# File 'lib/ovirtsdk4/types.rb', line 46052 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.
46060 46061 46062 46063 |
# File 'lib/ovirtsdk4/types.rb', line 46060 def ==(other) super && @tenant_name == other.tenant_name end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
45821 45822 45823 |
# File 'lib/ovirtsdk4/types.rb', line 45821 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
45830 45831 45832 |
# File 'lib/ovirtsdk4/types.rb', line 45830 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
45839 45840 45841 |
# File 'lib/ovirtsdk4/types.rb', line 45839 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
45848 45849 45850 |
# File 'lib/ovirtsdk4/types.rb', line 45848 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
45857 45858 45859 |
# File 'lib/ovirtsdk4/types.rb', line 45857 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
45866 45867 45868 |
# File 'lib/ovirtsdk4/types.rb', line 45866 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
46068 46069 46070 46071 |
# File 'lib/ovirtsdk4/types.rb', line 46068 def hash super + @tenant_name.hash end |
#id ⇒ String
Returns the value of the id
attribute.
45875 45876 45877 |
# File 'lib/ovirtsdk4/types.rb', line 45875 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
45884 45885 45886 |
# File 'lib/ovirtsdk4/types.rb', line 45884 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
45893 45894 45895 |
# File 'lib/ovirtsdk4/types.rb', line 45893 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
45902 45903 45904 |
# File 'lib/ovirtsdk4/types.rb', line 45902 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
45911 45912 45913 |
# File 'lib/ovirtsdk4/types.rb', line 45911 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
45920 45921 45922 |
# File 'lib/ovirtsdk4/types.rb', line 45920 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
45929 45930 45931 |
# File 'lib/ovirtsdk4/types.rb', line 45929 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
45938 45939 45940 45941 45942 45943 45944 45945 45946 45947 45948 |
# File 'lib/ovirtsdk4/types.rb', line 45938 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.
45955 45956 45957 |
# File 'lib/ovirtsdk4/types.rb', line 45955 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
45964 45965 45966 |
# File 'lib/ovirtsdk4/types.rb', line 45964 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
45973 45974 45975 |
# File 'lib/ovirtsdk4/types.rb', line 45973 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
45982 45983 45984 |
# File 'lib/ovirtsdk4/types.rb', line 45982 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
45991 45992 45993 |
# File 'lib/ovirtsdk4/types.rb', line 45991 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
46000 46001 46002 |
# File 'lib/ovirtsdk4/types.rb', line 46000 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
46009 46010 46011 |
# File 'lib/ovirtsdk4/types.rb', line 46009 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
46018 46019 46020 |
# File 'lib/ovirtsdk4/types.rb', line 46018 def username=(value) @username = value end |