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
trueifselfandotherhave the same attributes and values. -
#authentication_url ⇒ String
Returns the value of the
authentication_urlattribute. -
#authentication_url=(value) ⇒ Object
Sets the value of the
authentication_urlattribute. -
#certificates ⇒ Array<Certificate>
Returns the value of the
certificatesattribute. -
#certificates=(list) ⇒ Object
Sets the value of the
certificatesattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#images ⇒ Array<OpenStackImage>
Returns the value of the
imagesattribute. -
#images=(list) ⇒ Object
Sets the value of the
imagesattribute. -
#initialize(opts = {}) ⇒ OpenStackImageProvider
constructor
Creates a new instance of the OpenStackImageProvider class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#password ⇒ String
Returns the value of the
passwordattribute. -
#password=(value) ⇒ Object
Sets the value of the
passwordattribute. -
#properties ⇒ Array<Property>
Returns the value of the
propertiesattribute. -
#properties=(list) ⇒ Object
Sets the value of the
propertiesattribute. -
#requires_authentication ⇒ Boolean
Returns the value of the
requires_authenticationattribute. -
#requires_authentication=(value) ⇒ Object
Sets the value of the
requires_authenticationattribute. -
#tenant_name ⇒ String
Returns the value of the
tenant_nameattribute. -
#tenant_name=(value) ⇒ Object
Sets the value of the
tenant_nameattribute. -
#url ⇒ String
Returns the value of the
urlattribute. -
#url=(value) ⇒ Object
Sets the value of the
urlattribute. -
#username ⇒ String
Returns the value of the
usernameattribute. -
#username=(value) ⇒ Object
Sets the value of the
usernameattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ OpenStackImageProvider
Creates a new instance of the OvirtSDK4::OpenStackImageProvider class.
52376 52377 52378 52379 52380 |
# File 'lib/ovirtsdk4/types.rb', line 52376 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.
52385 52386 52387 52388 52389 |
# File 'lib/ovirtsdk4/types.rb', line 52385 def ==(other) super && @certificates == other.certificates && @images == other.images end |
#authentication_url ⇒ String
Returns the value of the authentication_url attribute.
52089 52090 52091 |
# File 'lib/ovirtsdk4/types.rb', line 52089 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url attribute.
52098 52099 52100 |
# File 'lib/ovirtsdk4/types.rb', line 52098 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates attribute.
52107 52108 52109 |
# File 'lib/ovirtsdk4/types.rb', line 52107 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates attribute.
52116 52117 52118 52119 52120 52121 52122 52123 52124 52125 52126 |
# File 'lib/ovirtsdk4/types.rb', line 52116 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.
52133 52134 52135 |
# File 'lib/ovirtsdk4/types.rb', line 52133 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
52142 52143 52144 |
# File 'lib/ovirtsdk4/types.rb', line 52142 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
52151 52152 52153 |
# File 'lib/ovirtsdk4/types.rb', line 52151 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
52160 52161 52162 |
# File 'lib/ovirtsdk4/types.rb', line 52160 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
52394 52395 52396 52397 52398 |
# File 'lib/ovirtsdk4/types.rb', line 52394 def hash super + @certificates.hash + @images.hash end |
#id ⇒ String
Returns the value of the id attribute.
52169 52170 52171 |
# File 'lib/ovirtsdk4/types.rb', line 52169 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
52178 52179 52180 |
# File 'lib/ovirtsdk4/types.rb', line 52178 def id=(value) @id = value end |
#images ⇒ Array<OpenStackImage>
Returns the value of the images attribute.
52187 52188 52189 |
# File 'lib/ovirtsdk4/types.rb', line 52187 def images @images end |
#images=(list) ⇒ Object
Sets the value of the images attribute.
52196 52197 52198 52199 52200 52201 52202 52203 52204 52205 52206 |
# File 'lib/ovirtsdk4/types.rb', line 52196 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.
52213 52214 52215 |
# File 'lib/ovirtsdk4/types.rb', line 52213 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
52222 52223 52224 |
# File 'lib/ovirtsdk4/types.rb', line 52222 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
52231 52232 52233 |
# File 'lib/ovirtsdk4/types.rb', line 52231 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
52240 52241 52242 |
# File 'lib/ovirtsdk4/types.rb', line 52240 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
52249 52250 52251 |
# File 'lib/ovirtsdk4/types.rb', line 52249 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
52258 52259 52260 52261 52262 52263 52264 52265 52266 52267 52268 |
# File 'lib/ovirtsdk4/types.rb', line 52258 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.
52275 52276 52277 |
# File 'lib/ovirtsdk4/types.rb', line 52275 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication attribute.
52284 52285 52286 |
# File 'lib/ovirtsdk4/types.rb', line 52284 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name attribute.
52293 52294 52295 |
# File 'lib/ovirtsdk4/types.rb', line 52293 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name attribute.
52302 52303 52304 |
# File 'lib/ovirtsdk4/types.rb', line 52302 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url attribute.
52311 52312 52313 |
# File 'lib/ovirtsdk4/types.rb', line 52311 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url attribute.
52320 52321 52322 |
# File 'lib/ovirtsdk4/types.rb', line 52320 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username attribute.
52329 52330 52331 |
# File 'lib/ovirtsdk4/types.rb', line 52329 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
52338 52339 52340 |
# File 'lib/ovirtsdk4/types.rb', line 52338 def username=(value) @username = value end |