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.
45368 45369 45370 45371 |
# File 'lib/ovirtsdk4/types.rb', line 45368 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.
45376 45377 45378 45379 |
# File 'lib/ovirtsdk4/types.rb', line 45376 def ==(other) super && @tenant_name == other.tenant_name end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
45137 45138 45139 |
# File 'lib/ovirtsdk4/types.rb', line 45137 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
45146 45147 45148 |
# File 'lib/ovirtsdk4/types.rb', line 45146 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
45155 45156 45157 |
# File 'lib/ovirtsdk4/types.rb', line 45155 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
45164 45165 45166 |
# File 'lib/ovirtsdk4/types.rb', line 45164 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
45173 45174 45175 |
# File 'lib/ovirtsdk4/types.rb', line 45173 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
45182 45183 45184 |
# File 'lib/ovirtsdk4/types.rb', line 45182 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
45384 45385 45386 45387 |
# File 'lib/ovirtsdk4/types.rb', line 45384 def hash super + @tenant_name.hash end |
#id ⇒ String
Returns the value of the id
attribute.
45191 45192 45193 |
# File 'lib/ovirtsdk4/types.rb', line 45191 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
45200 45201 45202 |
# File 'lib/ovirtsdk4/types.rb', line 45200 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
45209 45210 45211 |
# File 'lib/ovirtsdk4/types.rb', line 45209 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
45218 45219 45220 |
# File 'lib/ovirtsdk4/types.rb', line 45218 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
45227 45228 45229 |
# File 'lib/ovirtsdk4/types.rb', line 45227 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
45236 45237 45238 |
# File 'lib/ovirtsdk4/types.rb', line 45236 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
45245 45246 45247 |
# File 'lib/ovirtsdk4/types.rb', line 45245 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
45254 45255 45256 45257 45258 45259 45260 45261 45262 45263 45264 |
# File 'lib/ovirtsdk4/types.rb', line 45254 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.
45271 45272 45273 |
# File 'lib/ovirtsdk4/types.rb', line 45271 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
45280 45281 45282 |
# File 'lib/ovirtsdk4/types.rb', line 45280 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
45289 45290 45291 |
# File 'lib/ovirtsdk4/types.rb', line 45289 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
45298 45299 45300 |
# File 'lib/ovirtsdk4/types.rb', line 45298 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
45307 45308 45309 |
# File 'lib/ovirtsdk4/types.rb', line 45307 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
45316 45317 45318 |
# File 'lib/ovirtsdk4/types.rb', line 45316 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
45325 45326 45327 |
# File 'lib/ovirtsdk4/types.rb', line 45325 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
45334 45335 45336 |
# File 'lib/ovirtsdk4/types.rb', line 45334 def username=(value) @username = value end |