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
true
ifself
andother
have the same attributes and values. -
#authentication_keys ⇒ Array<OpenstackVolumeAuthenticationKey>
Returns the value of the
authentication_keys
attribute. -
#authentication_keys=(list) ⇒ Object
Sets the value of the
authentication_keys
attribute. -
#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. -
#data_center ⇒ DataCenter
Returns the value of the
data_center
attribute. -
#data_center=(value) ⇒ Object
Sets the value of the
data_center
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. -
#initialize(opts = {}) ⇒ OpenStackVolumeProvider
constructor
Creates a new instance of the OpenStackVolumeProvider 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. -
#volume_types ⇒ Array<OpenStackVolumeType>
Returns the value of the
volume_types
attribute. -
#volume_types=(list) ⇒ Object
Sets the value of the
volume_types
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ OpenStackVolumeProvider
Creates a new instance of the OvirtSDK4::OpenStackVolumeProvider class.
45740 45741 45742 45743 45744 45745 45746 |
# File 'lib/ovirtsdk4/types.rb', line 45740 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.
45751 45752 45753 45754 45755 45756 45757 |
# File 'lib/ovirtsdk4/types.rb', line 45751 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.
45398 45399 45400 |
# File 'lib/ovirtsdk4/types.rb', line 45398 def authentication_keys @authentication_keys end |
#authentication_keys=(list) ⇒ Object
Sets the value of the authentication_keys
attribute.
45407 45408 45409 45410 45411 45412 45413 45414 45415 45416 45417 |
# File 'lib/ovirtsdk4/types.rb', line 45407 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.
45424 45425 45426 |
# File 'lib/ovirtsdk4/types.rb', line 45424 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
45433 45434 45435 |
# File 'lib/ovirtsdk4/types.rb', line 45433 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
45442 45443 45444 |
# File 'lib/ovirtsdk4/types.rb', line 45442 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
45451 45452 45453 45454 45455 45456 45457 45458 45459 45460 45461 |
# File 'lib/ovirtsdk4/types.rb', line 45451 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.
45468 45469 45470 |
# File 'lib/ovirtsdk4/types.rb', line 45468 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
45477 45478 45479 |
# File 'lib/ovirtsdk4/types.rb', line 45477 def comment=(value) @comment = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
45486 45487 45488 |
# File 'lib/ovirtsdk4/types.rb', line 45486 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.
45499 45500 45501 45502 45503 45504 |
# File 'lib/ovirtsdk4/types.rb', line 45499 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.
45511 45512 45513 |
# File 'lib/ovirtsdk4/types.rb', line 45511 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
45520 45521 45522 |
# File 'lib/ovirtsdk4/types.rb', line 45520 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
45762 45763 45764 45765 45766 45767 45768 |
# File 'lib/ovirtsdk4/types.rb', line 45762 def hash super + @authentication_keys.hash + @certificates.hash + @data_center.hash + @volume_types.hash end |
#id ⇒ String
Returns the value of the id
attribute.
45529 45530 45531 |
# File 'lib/ovirtsdk4/types.rb', line 45529 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
45538 45539 45540 |
# File 'lib/ovirtsdk4/types.rb', line 45538 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
45547 45548 45549 |
# File 'lib/ovirtsdk4/types.rb', line 45547 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
45556 45557 45558 |
# File 'lib/ovirtsdk4/types.rb', line 45556 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
45565 45566 45567 |
# File 'lib/ovirtsdk4/types.rb', line 45565 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
45574 45575 45576 |
# File 'lib/ovirtsdk4/types.rb', line 45574 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
45583 45584 45585 |
# File 'lib/ovirtsdk4/types.rb', line 45583 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
45592 45593 45594 45595 45596 45597 45598 45599 45600 45601 45602 |
# File 'lib/ovirtsdk4/types.rb', line 45592 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.
45609 45610 45611 |
# File 'lib/ovirtsdk4/types.rb', line 45609 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
45618 45619 45620 |
# File 'lib/ovirtsdk4/types.rb', line 45618 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
45627 45628 45629 |
# File 'lib/ovirtsdk4/types.rb', line 45627 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
45636 45637 45638 |
# File 'lib/ovirtsdk4/types.rb', line 45636 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
45645 45646 45647 |
# File 'lib/ovirtsdk4/types.rb', line 45645 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
45654 45655 45656 |
# File 'lib/ovirtsdk4/types.rb', line 45654 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
45663 45664 45665 |
# File 'lib/ovirtsdk4/types.rb', line 45663 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
45672 45673 45674 |
# File 'lib/ovirtsdk4/types.rb', line 45672 def username=(value) @username = value end |
#volume_types ⇒ Array<OpenStackVolumeType>
Returns the value of the volume_types
attribute.
45681 45682 45683 |
# File 'lib/ovirtsdk4/types.rb', line 45681 def volume_types @volume_types end |
#volume_types=(list) ⇒ Object
Sets the value of the volume_types
attribute.
45690 45691 45692 45693 45694 45695 45696 45697 45698 45699 45700 |
# File 'lib/ovirtsdk4/types.rb', line 45690 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 |