Class: OvirtSDK4::OpenStackVolumeProvider
- Inherits:
-
OpenStackProvider
- Object
- Struct
- Identified
- ExternalProvider
- OpenStackProvider
- OvirtSDK4::OpenStackVolumeProvider
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#authentication_keys ⇒ Array<OpenstackVolumeAuthenticationKey>
Returns the value of the
authentication_keysattribute. -
#authentication_keys=(list) ⇒ Object
Sets the value of the
authentication_keysattribute. -
#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. -
#data_center ⇒ DataCenter
Returns the value of the
data_centerattribute. -
#data_center=(value) ⇒ Object
Sets the value of the
data_centerattribute. -
#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. -
#initialize(opts = {}) ⇒ OpenStackVolumeProvider
constructor
Creates a new instance of the OpenStackVolumeProvider 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. -
#volume_types ⇒ Array<OpenStackVolumeType>
Returns the value of the
volume_typesattribute. -
#volume_types=(list) ⇒ Object
Sets the value of the
volume_typesattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ OpenStackVolumeProvider
Creates a new instance of the OvirtSDK4::OpenStackVolumeProvider class.
45671 45672 45673 45674 45675 45676 45677 |
# File 'lib/ovirtsdk4/types.rb', line 45671 def initialize(opts = {}) super(opts) self.authentication_keys = opts[:authentication_keys] self.certificates = opts[:certificates] self.data_center = opts[:data_center] self.volume_types = opts[:volume_types] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
45682 45683 45684 45685 45686 45687 45688 |
# File 'lib/ovirtsdk4/types.rb', line 45682 def ==(other) super && @authentication_keys == other.authentication_keys && @certificates == other.certificates && @data_center == other.data_center && @volume_types == other.volume_types end |
#authentication_keys ⇒ Array<OpenstackVolumeAuthenticationKey>
Returns the value of the authentication_keys attribute.
45329 45330 45331 |
# File 'lib/ovirtsdk4/types.rb', line 45329 def authentication_keys @authentication_keys end |
#authentication_keys=(list) ⇒ Object
Sets the value of the authentication_keys attribute.
45338 45339 45340 45341 45342 45343 45344 45345 45346 45347 45348 |
# File 'lib/ovirtsdk4/types.rb', line 45338 def authentication_keys=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = OpenstackVolumeAuthenticationKey.new(value) end end end @authentication_keys = list end |
#authentication_url ⇒ String
Returns the value of the authentication_url attribute.
45355 45356 45357 |
# File 'lib/ovirtsdk4/types.rb', line 45355 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url attribute.
45364 45365 45366 |
# File 'lib/ovirtsdk4/types.rb', line 45364 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates attribute.
45373 45374 45375 |
# File 'lib/ovirtsdk4/types.rb', line 45373 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates attribute.
45382 45383 45384 45385 45386 45387 45388 45389 45390 45391 45392 |
# File 'lib/ovirtsdk4/types.rb', line 45382 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.
45399 45400 45401 |
# File 'lib/ovirtsdk4/types.rb', line 45399 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
45408 45409 45410 |
# File 'lib/ovirtsdk4/types.rb', line 45408 def comment=(value) @comment = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center attribute.
45417 45418 45419 |
# File 'lib/ovirtsdk4/types.rb', line 45417 def data_center @data_center end |
#data_center=(value) ⇒ Object
Sets the value of the data_center attribute.
The value parameter can be an instance of DataCenter or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts parameter to the constructor.
45430 45431 45432 45433 45434 45435 |
# File 'lib/ovirtsdk4/types.rb', line 45430 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end |
#description ⇒ String
Returns the value of the description attribute.
45442 45443 45444 |
# File 'lib/ovirtsdk4/types.rb', line 45442 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
45451 45452 45453 |
# File 'lib/ovirtsdk4/types.rb', line 45451 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
45693 45694 45695 45696 45697 45698 45699 |
# File 'lib/ovirtsdk4/types.rb', line 45693 def hash super + @authentication_keys.hash + @certificates.hash + @data_center.hash + @volume_types.hash end |
#id ⇒ String
Returns the value of the id attribute.
45460 45461 45462 |
# File 'lib/ovirtsdk4/types.rb', line 45460 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
45469 45470 45471 |
# File 'lib/ovirtsdk4/types.rb', line 45469 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
45478 45479 45480 |
# File 'lib/ovirtsdk4/types.rb', line 45478 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
45487 45488 45489 |
# File 'lib/ovirtsdk4/types.rb', line 45487 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
45496 45497 45498 |
# File 'lib/ovirtsdk4/types.rb', line 45496 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
45505 45506 45507 |
# File 'lib/ovirtsdk4/types.rb', line 45505 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
45514 45515 45516 |
# File 'lib/ovirtsdk4/types.rb', line 45514 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
45523 45524 45525 45526 45527 45528 45529 45530 45531 45532 45533 |
# File 'lib/ovirtsdk4/types.rb', line 45523 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.
45540 45541 45542 |
# File 'lib/ovirtsdk4/types.rb', line 45540 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication attribute.
45549 45550 45551 |
# File 'lib/ovirtsdk4/types.rb', line 45549 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name attribute.
45558 45559 45560 |
# File 'lib/ovirtsdk4/types.rb', line 45558 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name attribute.
45567 45568 45569 |
# File 'lib/ovirtsdk4/types.rb', line 45567 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url attribute.
45576 45577 45578 |
# File 'lib/ovirtsdk4/types.rb', line 45576 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url attribute.
45585 45586 45587 |
# File 'lib/ovirtsdk4/types.rb', line 45585 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username attribute.
45594 45595 45596 |
# File 'lib/ovirtsdk4/types.rb', line 45594 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
45603 45604 45605 |
# File 'lib/ovirtsdk4/types.rb', line 45603 def username=(value) @username = value end |
#volume_types ⇒ Array<OpenStackVolumeType>
Returns the value of the volume_types attribute.
45612 45613 45614 |
# File 'lib/ovirtsdk4/types.rb', line 45612 def volume_types @volume_types end |
#volume_types=(list) ⇒ Object
Sets the value of the volume_types attribute.
45621 45622 45623 45624 45625 45626 45627 45628 45629 45630 45631 |
# File 'lib/ovirtsdk4/types.rb', line 45621 def volume_types=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = OpenStackVolumeType.new(value) end end end @volume_types = list end |