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.
52265 52266 52267 52268 52269 |
# File 'lib/ovirtsdk4/types.rb', line 52265 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.
52274 52275 52276 52277 52278 |
# File 'lib/ovirtsdk4/types.rb', line 52274 def ==(other) super && @certificates == other.certificates && @images == other.images end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
51978 51979 51980 |
# File 'lib/ovirtsdk4/types.rb', line 51978 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
51987 51988 51989 |
# File 'lib/ovirtsdk4/types.rb', line 51987 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
51996 51997 51998 |
# File 'lib/ovirtsdk4/types.rb', line 51996 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
52005 52006 52007 52008 52009 52010 52011 52012 52013 52014 52015 |
# File 'lib/ovirtsdk4/types.rb', line 52005 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.
52022 52023 52024 |
# File 'lib/ovirtsdk4/types.rb', line 52022 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
52031 52032 52033 |
# File 'lib/ovirtsdk4/types.rb', line 52031 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
52040 52041 52042 |
# File 'lib/ovirtsdk4/types.rb', line 52040 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
52049 52050 52051 |
# File 'lib/ovirtsdk4/types.rb', line 52049 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
52283 52284 52285 52286 52287 |
# File 'lib/ovirtsdk4/types.rb', line 52283 def hash super + @certificates.hash + @images.hash end |
#id ⇒ String
Returns the value of the id
attribute.
52058 52059 52060 |
# File 'lib/ovirtsdk4/types.rb', line 52058 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
52067 52068 52069 |
# File 'lib/ovirtsdk4/types.rb', line 52067 def id=(value) @id = value end |
#images ⇒ Array<OpenStackImage>
Returns the value of the images
attribute.
52076 52077 52078 |
# File 'lib/ovirtsdk4/types.rb', line 52076 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
52085 52086 52087 52088 52089 52090 52091 52092 52093 52094 52095 |
# File 'lib/ovirtsdk4/types.rb', line 52085 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.
52102 52103 52104 |
# File 'lib/ovirtsdk4/types.rb', line 52102 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
52111 52112 52113 |
# File 'lib/ovirtsdk4/types.rb', line 52111 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
52120 52121 52122 |
# File 'lib/ovirtsdk4/types.rb', line 52120 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
52129 52130 52131 |
# File 'lib/ovirtsdk4/types.rb', line 52129 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
52138 52139 52140 |
# File 'lib/ovirtsdk4/types.rb', line 52138 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
52147 52148 52149 52150 52151 52152 52153 52154 52155 52156 52157 |
# File 'lib/ovirtsdk4/types.rb', line 52147 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.
52164 52165 52166 |
# File 'lib/ovirtsdk4/types.rb', line 52164 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
52173 52174 52175 |
# File 'lib/ovirtsdk4/types.rb', line 52173 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
52182 52183 52184 |
# File 'lib/ovirtsdk4/types.rb', line 52182 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
52191 52192 52193 |
# File 'lib/ovirtsdk4/types.rb', line 52191 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
52200 52201 52202 |
# File 'lib/ovirtsdk4/types.rb', line 52200 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
52209 52210 52211 |
# File 'lib/ovirtsdk4/types.rb', line 52209 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
52218 52219 52220 |
# File 'lib/ovirtsdk4/types.rb', line 52218 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
52227 52228 52229 |
# File 'lib/ovirtsdk4/types.rb', line 52227 def username=(value) @username = value end |