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.
45299 45300 45301 45302 |
# File 'lib/ovirtsdk4/types.rb', line 45299 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.
45307 45308 45309 45310 |
# File 'lib/ovirtsdk4/types.rb', line 45307 def ==(other) super && @tenant_name == other.tenant_name end |
#authentication_url ⇒ String
Returns the value of the authentication_url attribute.
45068 45069 45070 |
# File 'lib/ovirtsdk4/types.rb', line 45068 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url attribute.
45077 45078 45079 |
# File 'lib/ovirtsdk4/types.rb', line 45077 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment attribute.
45086 45087 45088 |
# File 'lib/ovirtsdk4/types.rb', line 45086 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
45095 45096 45097 |
# File 'lib/ovirtsdk4/types.rb', line 45095 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
45104 45105 45106 |
# File 'lib/ovirtsdk4/types.rb', line 45104 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
45113 45114 45115 |
# File 'lib/ovirtsdk4/types.rb', line 45113 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
45315 45316 45317 45318 |
# File 'lib/ovirtsdk4/types.rb', line 45315 def hash super + @tenant_name.hash end |
#id ⇒ String
Returns the value of the id attribute.
45122 45123 45124 |
# File 'lib/ovirtsdk4/types.rb', line 45122 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
45131 45132 45133 |
# File 'lib/ovirtsdk4/types.rb', line 45131 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
45140 45141 45142 |
# File 'lib/ovirtsdk4/types.rb', line 45140 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
45149 45150 45151 |
# File 'lib/ovirtsdk4/types.rb', line 45149 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
45158 45159 45160 |
# File 'lib/ovirtsdk4/types.rb', line 45158 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
45167 45168 45169 |
# File 'lib/ovirtsdk4/types.rb', line 45167 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
45176 45177 45178 |
# File 'lib/ovirtsdk4/types.rb', line 45176 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
45185 45186 45187 45188 45189 45190 45191 45192 45193 45194 45195 |
# File 'lib/ovirtsdk4/types.rb', line 45185 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.
45202 45203 45204 |
# File 'lib/ovirtsdk4/types.rb', line 45202 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication attribute.
45211 45212 45213 |
# File 'lib/ovirtsdk4/types.rb', line 45211 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name attribute.
45220 45221 45222 |
# File 'lib/ovirtsdk4/types.rb', line 45220 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name attribute.
45229 45230 45231 |
# File 'lib/ovirtsdk4/types.rb', line 45229 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url attribute.
45238 45239 45240 |
# File 'lib/ovirtsdk4/types.rb', line 45238 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url attribute.
45247 45248 45249 |
# File 'lib/ovirtsdk4/types.rb', line 45247 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username attribute.
45256 45257 45258 |
# File 'lib/ovirtsdk4/types.rb', line 45256 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
45265 45266 45267 |
# File 'lib/ovirtsdk4/types.rb', line 45265 def username=(value) @username = value end |