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.
56674 56675 56676 56677 56678 |
# File 'lib/ovirtsdk4/types.rb', line 56674 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.
56683 56684 56685 56686 56687 |
# File 'lib/ovirtsdk4/types.rb', line 56683 def ==(other) super && @certificates == other.certificates && @images == other.images end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
56387 56388 56389 |
# File 'lib/ovirtsdk4/types.rb', line 56387 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
56396 56397 56398 |
# File 'lib/ovirtsdk4/types.rb', line 56396 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
56405 56406 56407 |
# File 'lib/ovirtsdk4/types.rb', line 56405 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
56414 56415 56416 56417 56418 56419 56420 56421 56422 56423 56424 |
# File 'lib/ovirtsdk4/types.rb', line 56414 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.
56431 56432 56433 |
# File 'lib/ovirtsdk4/types.rb', line 56431 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
56440 56441 56442 |
# File 'lib/ovirtsdk4/types.rb', line 56440 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
56449 56450 56451 |
# File 'lib/ovirtsdk4/types.rb', line 56449 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
56458 56459 56460 |
# File 'lib/ovirtsdk4/types.rb', line 56458 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
56692 56693 56694 56695 56696 |
# File 'lib/ovirtsdk4/types.rb', line 56692 def hash super + @certificates.hash + @images.hash end |
#id ⇒ String
Returns the value of the id
attribute.
56467 56468 56469 |
# File 'lib/ovirtsdk4/types.rb', line 56467 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
56476 56477 56478 |
# File 'lib/ovirtsdk4/types.rb', line 56476 def id=(value) @id = value end |
#images ⇒ Array<OpenStackImage>
Returns the value of the images
attribute.
56485 56486 56487 |
# File 'lib/ovirtsdk4/types.rb', line 56485 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
56494 56495 56496 56497 56498 56499 56500 56501 56502 56503 56504 |
# File 'lib/ovirtsdk4/types.rb', line 56494 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.
56511 56512 56513 |
# File 'lib/ovirtsdk4/types.rb', line 56511 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
56520 56521 56522 |
# File 'lib/ovirtsdk4/types.rb', line 56520 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
56529 56530 56531 |
# File 'lib/ovirtsdk4/types.rb', line 56529 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
56538 56539 56540 |
# File 'lib/ovirtsdk4/types.rb', line 56538 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
56547 56548 56549 |
# File 'lib/ovirtsdk4/types.rb', line 56547 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
56556 56557 56558 56559 56560 56561 56562 56563 56564 56565 56566 |
# File 'lib/ovirtsdk4/types.rb', line 56556 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.
56573 56574 56575 |
# File 'lib/ovirtsdk4/types.rb', line 56573 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
56582 56583 56584 |
# File 'lib/ovirtsdk4/types.rb', line 56582 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
56591 56592 56593 |
# File 'lib/ovirtsdk4/types.rb', line 56591 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
56600 56601 56602 |
# File 'lib/ovirtsdk4/types.rb', line 56600 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
56609 56610 56611 |
# File 'lib/ovirtsdk4/types.rb', line 56609 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
56618 56619 56620 |
# File 'lib/ovirtsdk4/types.rb', line 56618 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
56627 56628 56629 |
# File 'lib/ovirtsdk4/types.rb', line 56627 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
56636 56637 56638 |
# File 'lib/ovirtsdk4/types.rb', line 56636 def username=(value) @username = value end |