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
trueifselfandotherhave the same attributes and values. -
#authentication_url ⇒ String
Returns the value of the
authentication_urlattribute. -
#authentication_url=(value) ⇒ Object
Sets the value of the
authentication_urlattribute. -
#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. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ OpenStackProvider
constructor
Creates a new instance of the OpenStackProvider class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#password ⇒ String
Returns the value of the
passwordattribute. -
#password=(value) ⇒ Object
Sets the value of the
passwordattribute. -
#properties ⇒ Array<Property>
Returns the value of the
propertiesattribute. -
#properties=(list) ⇒ Object
Sets the value of the
propertiesattribute. -
#requires_authentication ⇒ Boolean
Returns the value of the
requires_authenticationattribute. -
#requires_authentication=(value) ⇒ Object
Sets the value of the
requires_authenticationattribute. -
#tenant_name ⇒ String
Returns the value of the
tenant_nameattribute. -
#tenant_name=(value) ⇒ Object
Sets the value of the
tenant_nameattribute. -
#url ⇒ String
Returns the value of the
urlattribute. -
#url=(value) ⇒ Object
Sets the value of the
urlattribute. -
#username ⇒ String
Returns the value of the
usernameattribute. -
#username=(value) ⇒ Object
Sets the value of the
usernameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ OpenStackProvider
Creates a new instance of the OvirtSDK4::OpenStackProvider class.
49160 49161 49162 49163 |
# File 'lib/ovirtsdk4/types.rb', line 49160 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.
49168 49169 49170 49171 |
# File 'lib/ovirtsdk4/types.rb', line 49168 def ==(other) super && @tenant_name == other.tenant_name end |
#authentication_url ⇒ String
Returns the value of the authentication_url attribute.
48929 48930 48931 |
# File 'lib/ovirtsdk4/types.rb', line 48929 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url attribute.
48938 48939 48940 |
# File 'lib/ovirtsdk4/types.rb', line 48938 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment attribute.
48947 48948 48949 |
# File 'lib/ovirtsdk4/types.rb', line 48947 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
48956 48957 48958 |
# File 'lib/ovirtsdk4/types.rb', line 48956 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
48965 48966 48967 |
# File 'lib/ovirtsdk4/types.rb', line 48965 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
48974 48975 48976 |
# File 'lib/ovirtsdk4/types.rb', line 48974 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
49176 49177 49178 49179 |
# File 'lib/ovirtsdk4/types.rb', line 49176 def hash super + @tenant_name.hash end |
#id ⇒ String
Returns the value of the id attribute.
48983 48984 48985 |
# File 'lib/ovirtsdk4/types.rb', line 48983 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
48992 48993 48994 |
# File 'lib/ovirtsdk4/types.rb', line 48992 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
49001 49002 49003 |
# File 'lib/ovirtsdk4/types.rb', line 49001 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
49010 49011 49012 |
# File 'lib/ovirtsdk4/types.rb', line 49010 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
49019 49020 49021 |
# File 'lib/ovirtsdk4/types.rb', line 49019 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
49028 49029 49030 |
# File 'lib/ovirtsdk4/types.rb', line 49028 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
49037 49038 49039 |
# File 'lib/ovirtsdk4/types.rb', line 49037 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
49046 49047 49048 49049 49050 49051 49052 49053 49054 49055 49056 |
# File 'lib/ovirtsdk4/types.rb', line 49046 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.
49063 49064 49065 |
# File 'lib/ovirtsdk4/types.rb', line 49063 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication attribute.
49072 49073 49074 |
# File 'lib/ovirtsdk4/types.rb', line 49072 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name attribute.
49081 49082 49083 |
# File 'lib/ovirtsdk4/types.rb', line 49081 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name attribute.
49090 49091 49092 |
# File 'lib/ovirtsdk4/types.rb', line 49090 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url attribute.
49099 49100 49101 |
# File 'lib/ovirtsdk4/types.rb', line 49099 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url attribute.
49108 49109 49110 |
# File 'lib/ovirtsdk4/types.rb', line 49108 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username attribute.
49117 49118 49119 |
# File 'lib/ovirtsdk4/types.rb', line 49117 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
49126 49127 49128 |
# File 'lib/ovirtsdk4/types.rb', line 49126 def username=(value) @username = value end |