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.
52445 52446 52447 52448 52449 |
# File 'lib/ovirtsdk4/types.rb', line 52445 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.
52454 52455 52456 52457 52458 |
# File 'lib/ovirtsdk4/types.rb', line 52454 def ==(other) super && @certificates == other.certificates && @images == other.images end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
52158 52159 52160 |
# File 'lib/ovirtsdk4/types.rb', line 52158 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
52167 52168 52169 |
# File 'lib/ovirtsdk4/types.rb', line 52167 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
52176 52177 52178 |
# File 'lib/ovirtsdk4/types.rb', line 52176 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
52185 52186 52187 52188 52189 52190 52191 52192 52193 52194 52195 |
# File 'lib/ovirtsdk4/types.rb', line 52185 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.
52202 52203 52204 |
# File 'lib/ovirtsdk4/types.rb', line 52202 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
52211 52212 52213 |
# File 'lib/ovirtsdk4/types.rb', line 52211 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
52220 52221 52222 |
# File 'lib/ovirtsdk4/types.rb', line 52220 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
52229 52230 52231 |
# File 'lib/ovirtsdk4/types.rb', line 52229 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
52463 52464 52465 52466 52467 |
# File 'lib/ovirtsdk4/types.rb', line 52463 def hash super + @certificates.hash + @images.hash end |
#id ⇒ String
Returns the value of the id
attribute.
52238 52239 52240 |
# File 'lib/ovirtsdk4/types.rb', line 52238 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
52247 52248 52249 |
# File 'lib/ovirtsdk4/types.rb', line 52247 def id=(value) @id = value end |
#images ⇒ Array<OpenStackImage>
Returns the value of the images
attribute.
52256 52257 52258 |
# File 'lib/ovirtsdk4/types.rb', line 52256 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images
attribute.
52265 52266 52267 52268 52269 52270 52271 52272 52273 52274 52275 |
# File 'lib/ovirtsdk4/types.rb', line 52265 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.
52282 52283 52284 |
# File 'lib/ovirtsdk4/types.rb', line 52282 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
52291 52292 52293 |
# File 'lib/ovirtsdk4/types.rb', line 52291 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
52300 52301 52302 |
# File 'lib/ovirtsdk4/types.rb', line 52300 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
52309 52310 52311 |
# File 'lib/ovirtsdk4/types.rb', line 52309 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
52318 52319 52320 |
# File 'lib/ovirtsdk4/types.rb', line 52318 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
52327 52328 52329 52330 52331 52332 52333 52334 52335 52336 52337 |
# File 'lib/ovirtsdk4/types.rb', line 52327 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.
52344 52345 52346 |
# File 'lib/ovirtsdk4/types.rb', line 52344 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
52353 52354 52355 |
# File 'lib/ovirtsdk4/types.rb', line 52353 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
52362 52363 52364 |
# File 'lib/ovirtsdk4/types.rb', line 52362 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
52371 52372 52373 |
# File 'lib/ovirtsdk4/types.rb', line 52371 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
52380 52381 52382 |
# File 'lib/ovirtsdk4/types.rb', line 52380 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
52389 52390 52391 |
# File 'lib/ovirtsdk4/types.rb', line 52389 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
52398 52399 52400 |
# File 'lib/ovirtsdk4/types.rb', line 52398 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
52407 52408 52409 |
# File 'lib/ovirtsdk4/types.rb', line 52407 def username=(value) @username = value end |