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.
52067 52068 52069 52070 52071 |
# File 'lib/ovirtsdk4/types.rb', line 52067 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.
52076 52077 52078 52079 52080 |
# File 'lib/ovirtsdk4/types.rb', line 52076 def ==(other) super && @certificates == other.certificates && @images == other.images end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
51780 51781 51782 |
# File 'lib/ovirtsdk4/types.rb', line 51780 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
51789 51790 51791 |
# File 'lib/ovirtsdk4/types.rb', line 51789 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
51798 51799 51800 |
# File 'lib/ovirtsdk4/types.rb', line 51798 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
51807 51808 51809 51810 51811 51812 51813 51814 51815 51816 51817 |
# File 'lib/ovirtsdk4/types.rb', line 51807 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.
51824 51825 51826 |
# File 'lib/ovirtsdk4/types.rb', line 51824 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
51833 51834 51835 |
# File 'lib/ovirtsdk4/types.rb', line 51833 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
51842 51843 51844 |
# File 'lib/ovirtsdk4/types.rb', line 51842 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
51851 51852 51853 |
# File 'lib/ovirtsdk4/types.rb', line 51851 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
52085 52086 52087 52088 52089 |
# File 'lib/ovirtsdk4/types.rb', line 52085 def hash super + @certificates.hash + @images.hash end |
#id ⇒ String
Returns the value of the id
attribute.
51860 51861 51862 |
# File 'lib/ovirtsdk4/types.rb', line 51860 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
51869 51870 51871 |
# File 'lib/ovirtsdk4/types.rb', line 51869 def id=(value) @id = value end |
#images ⇒ Array<OpenStackImage>
Returns the value of the images
attribute.
51878 51879 51880 |
# File 'lib/ovirtsdk4/types.rb', line 51878 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
51887 51888 51889 51890 51891 51892 51893 51894 51895 51896 51897 |
# File 'lib/ovirtsdk4/types.rb', line 51887 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.
51904 51905 51906 |
# File 'lib/ovirtsdk4/types.rb', line 51904 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
51913 51914 51915 |
# File 'lib/ovirtsdk4/types.rb', line 51913 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
51922 51923 51924 |
# File 'lib/ovirtsdk4/types.rb', line 51922 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
51931 51932 51933 |
# File 'lib/ovirtsdk4/types.rb', line 51931 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
51940 51941 51942 |
# File 'lib/ovirtsdk4/types.rb', line 51940 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
51949 51950 51951 51952 51953 51954 51955 51956 51957 51958 51959 |
# File 'lib/ovirtsdk4/types.rb', line 51949 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.
51966 51967 51968 |
# File 'lib/ovirtsdk4/types.rb', line 51966 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
51975 51976 51977 |
# File 'lib/ovirtsdk4/types.rb', line 51975 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
51984 51985 51986 |
# File 'lib/ovirtsdk4/types.rb', line 51984 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
51993 51994 51995 |
# File 'lib/ovirtsdk4/types.rb', line 51993 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
52002 52003 52004 |
# File 'lib/ovirtsdk4/types.rb', line 52002 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
52011 52012 52013 |
# File 'lib/ovirtsdk4/types.rb', line 52011 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
52020 52021 52022 |
# File 'lib/ovirtsdk4/types.rb', line 52020 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
52029 52030 52031 |
# File 'lib/ovirtsdk4/types.rb', line 52029 def username=(value) @username = value end |