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.
54899 54900 54901 54902 54903 |
# File 'lib/ovirtsdk4/types.rb', line 54899 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.
54908 54909 54910 54911 54912 |
# File 'lib/ovirtsdk4/types.rb', line 54908 def ==(other) super && @certificates == other.certificates && @images == other.images end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
54612 54613 54614 |
# File 'lib/ovirtsdk4/types.rb', line 54612 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
54621 54622 54623 |
# File 'lib/ovirtsdk4/types.rb', line 54621 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
54630 54631 54632 |
# File 'lib/ovirtsdk4/types.rb', line 54630 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
54639 54640 54641 54642 54643 54644 54645 54646 54647 54648 54649 |
# File 'lib/ovirtsdk4/types.rb', line 54639 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.
54656 54657 54658 |
# File 'lib/ovirtsdk4/types.rb', line 54656 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
54665 54666 54667 |
# File 'lib/ovirtsdk4/types.rb', line 54665 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
54674 54675 54676 |
# File 'lib/ovirtsdk4/types.rb', line 54674 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
54683 54684 54685 |
# File 'lib/ovirtsdk4/types.rb', line 54683 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
54917 54918 54919 54920 54921 |
# File 'lib/ovirtsdk4/types.rb', line 54917 def hash super + @certificates.hash + @images.hash end |
#id ⇒ String
Returns the value of the id
attribute.
54692 54693 54694 |
# File 'lib/ovirtsdk4/types.rb', line 54692 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
54701 54702 54703 |
# File 'lib/ovirtsdk4/types.rb', line 54701 def id=(value) @id = value end |
#images ⇒ Array<OpenStackImage>
Returns the value of the images
attribute.
54710 54711 54712 |
# File 'lib/ovirtsdk4/types.rb', line 54710 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
54719 54720 54721 54722 54723 54724 54725 54726 54727 54728 54729 |
# File 'lib/ovirtsdk4/types.rb', line 54719 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.
54736 54737 54738 |
# File 'lib/ovirtsdk4/types.rb', line 54736 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
54745 54746 54747 |
# File 'lib/ovirtsdk4/types.rb', line 54745 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
54754 54755 54756 |
# File 'lib/ovirtsdk4/types.rb', line 54754 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
54763 54764 54765 |
# File 'lib/ovirtsdk4/types.rb', line 54763 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
54772 54773 54774 |
# File 'lib/ovirtsdk4/types.rb', line 54772 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
54781 54782 54783 54784 54785 54786 54787 54788 54789 54790 54791 |
# File 'lib/ovirtsdk4/types.rb', line 54781 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.
54798 54799 54800 |
# File 'lib/ovirtsdk4/types.rb', line 54798 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
54807 54808 54809 |
# File 'lib/ovirtsdk4/types.rb', line 54807 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
54816 54817 54818 |
# File 'lib/ovirtsdk4/types.rb', line 54816 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
54825 54826 54827 |
# File 'lib/ovirtsdk4/types.rb', line 54825 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
54834 54835 54836 |
# File 'lib/ovirtsdk4/types.rb', line 54834 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
54843 54844 54845 |
# File 'lib/ovirtsdk4/types.rb', line 54843 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
54852 54853 54854 |
# File 'lib/ovirtsdk4/types.rb', line 54852 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
54861 54862 54863 |
# File 'lib/ovirtsdk4/types.rb', line 54861 def username=(value) @username = value end |