Class: OvirtSDK4::OpenStackImageProvider
- Inherits:
-
OpenStackProvider
- Object
- Struct
- Identified
- ExternalProvider
- OpenStackProvider
- OvirtSDK4::OpenStackImageProvider
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
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. -
#certificates ⇒ Array<Certificate>
Returns the value of the
certificates
attribute. -
#certificates=(list) ⇒ Object
Sets the value of the
certificates
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. -
#images ⇒ Array<OpenStackImage>
Returns the value of the
images
attribute. -
#images=(list) ⇒ Object
Sets the value of the
images
attribute. -
#initialize(opts = {}) ⇒ OpenStackImageProvider
constructor
Creates a new instance of the OpenStackImageProvider 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 = {}) ⇒ OpenStackImageProvider
Creates a new instance of the OvirtSDK4::OpenStackImageProvider class.
52581 52582 52583 52584 52585 |
# File 'lib/ovirtsdk4/types.rb', line 52581 def initialize(opts = {}) super(opts) self.certificates = opts[:certificates] self.images = opts[:images] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
52590 52591 52592 52593 52594 |
# File 'lib/ovirtsdk4/types.rb', line 52590 def ==(other) super && @certificates == other.certificates && @images == other.images end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
52294 52295 52296 |
# File 'lib/ovirtsdk4/types.rb', line 52294 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
52303 52304 52305 |
# File 'lib/ovirtsdk4/types.rb', line 52303 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
52312 52313 52314 |
# File 'lib/ovirtsdk4/types.rb', line 52312 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
52321 52322 52323 52324 52325 52326 52327 52328 52329 52330 52331 |
# File 'lib/ovirtsdk4/types.rb', line 52321 def certificates=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Certificate.new(value) end end end @certificates = list end |
#comment ⇒ String
Returns the value of the comment
attribute.
52338 52339 52340 |
# File 'lib/ovirtsdk4/types.rb', line 52338 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
52347 52348 52349 |
# File 'lib/ovirtsdk4/types.rb', line 52347 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
52356 52357 52358 |
# File 'lib/ovirtsdk4/types.rb', line 52356 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
52365 52366 52367 |
# File 'lib/ovirtsdk4/types.rb', line 52365 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
52599 52600 52601 52602 52603 |
# File 'lib/ovirtsdk4/types.rb', line 52599 def hash super + @certificates.hash + @images.hash end |
#id ⇒ String
Returns the value of the id
attribute.
52374 52375 52376 |
# File 'lib/ovirtsdk4/types.rb', line 52374 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
52383 52384 52385 |
# File 'lib/ovirtsdk4/types.rb', line 52383 def id=(value) @id = value end |
#images ⇒ Array<OpenStackImage>
Returns the value of the images
attribute.
52392 52393 52394 |
# File 'lib/ovirtsdk4/types.rb', line 52392 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
52401 52402 52403 52404 52405 52406 52407 52408 52409 52410 52411 |
# File 'lib/ovirtsdk4/types.rb', line 52401 def images=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = OpenStackImage.new(value) end end end @images = list end |
#name ⇒ String
Returns the value of the name
attribute.
52418 52419 52420 |
# File 'lib/ovirtsdk4/types.rb', line 52418 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
52427 52428 52429 |
# File 'lib/ovirtsdk4/types.rb', line 52427 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
52436 52437 52438 |
# File 'lib/ovirtsdk4/types.rb', line 52436 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
52445 52446 52447 |
# File 'lib/ovirtsdk4/types.rb', line 52445 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
52454 52455 52456 |
# File 'lib/ovirtsdk4/types.rb', line 52454 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
52463 52464 52465 52466 52467 52468 52469 52470 52471 52472 52473 |
# File 'lib/ovirtsdk4/types.rb', line 52463 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.
52480 52481 52482 |
# File 'lib/ovirtsdk4/types.rb', line 52480 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
52489 52490 52491 |
# File 'lib/ovirtsdk4/types.rb', line 52489 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
52498 52499 52500 |
# File 'lib/ovirtsdk4/types.rb', line 52498 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
52507 52508 52509 |
# File 'lib/ovirtsdk4/types.rb', line 52507 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
52516 52517 52518 |
# File 'lib/ovirtsdk4/types.rb', line 52516 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
52525 52526 52527 |
# File 'lib/ovirtsdk4/types.rb', line 52525 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
52534 52535 52536 |
# File 'lib/ovirtsdk4/types.rb', line 52534 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
52543 52544 52545 |
# File 'lib/ovirtsdk4/types.rb', line 52543 def username=(value) @username = value end |