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.
49239 49240 49241 49242 49243 49244 49245 |
# File 'lib/ovirtsdk4/types.rb', line 49239 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.
49250 49251 49252 49253 49254 49255 49256 |
# File 'lib/ovirtsdk4/types.rb', line 49250 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.
48897 48898 48899 |
# File 'lib/ovirtsdk4/types.rb', line 48897 def authentication_keys @authentication_keys end |
#authentication_keys=(list) ⇒ Object
Sets the value of the authentication_keys
attribute.
48906 48907 48908 48909 48910 48911 48912 48913 48914 48915 48916 |
# File 'lib/ovirtsdk4/types.rb', line 48906 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.
48923 48924 48925 |
# File 'lib/ovirtsdk4/types.rb', line 48923 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
48932 48933 48934 |
# File 'lib/ovirtsdk4/types.rb', line 48932 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
48941 48942 48943 |
# File 'lib/ovirtsdk4/types.rb', line 48941 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
48950 48951 48952 48953 48954 48955 48956 48957 48958 48959 48960 |
# File 'lib/ovirtsdk4/types.rb', line 48950 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.
48967 48968 48969 |
# File 'lib/ovirtsdk4/types.rb', line 48967 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
48976 48977 48978 |
# File 'lib/ovirtsdk4/types.rb', line 48976 def comment=(value) @comment = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
48985 48986 48987 |
# File 'lib/ovirtsdk4/types.rb', line 48985 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.
48998 48999 49000 49001 49002 49003 |
# File 'lib/ovirtsdk4/types.rb', line 48998 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.
49010 49011 49012 |
# File 'lib/ovirtsdk4/types.rb', line 49010 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
49019 49020 49021 |
# File 'lib/ovirtsdk4/types.rb', line 49019 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
49261 49262 49263 49264 49265 49266 49267 |
# File 'lib/ovirtsdk4/types.rb', line 49261 def hash super + @authentication_keys.hash + @certificates.hash + @data_center.hash + @volume_types.hash end |
#id ⇒ String
Returns the value of the id
attribute.
49028 49029 49030 |
# File 'lib/ovirtsdk4/types.rb', line 49028 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
49037 49038 49039 |
# File 'lib/ovirtsdk4/types.rb', line 49037 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
49046 49047 49048 |
# File 'lib/ovirtsdk4/types.rb', line 49046 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
49055 49056 49057 |
# File 'lib/ovirtsdk4/types.rb', line 49055 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
49064 49065 49066 |
# File 'lib/ovirtsdk4/types.rb', line 49064 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
49073 49074 49075 |
# File 'lib/ovirtsdk4/types.rb', line 49073 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
49082 49083 49084 |
# File 'lib/ovirtsdk4/types.rb', line 49082 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
49091 49092 49093 49094 49095 49096 49097 49098 49099 49100 49101 |
# File 'lib/ovirtsdk4/types.rb', line 49091 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.
49108 49109 49110 |
# File 'lib/ovirtsdk4/types.rb', line 49108 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
49117 49118 49119 |
# File 'lib/ovirtsdk4/types.rb', line 49117 def requires_authentication=(value) @requires_authentication = value end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
49126 49127 49128 |
# File 'lib/ovirtsdk4/types.rb', line 49126 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
49135 49136 49137 |
# File 'lib/ovirtsdk4/types.rb', line 49135 def tenant_name=(value) @tenant_name = value end |
#url ⇒ String
Returns the value of the url
attribute.
49144 49145 49146 |
# File 'lib/ovirtsdk4/types.rb', line 49144 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
49153 49154 49155 |
# File 'lib/ovirtsdk4/types.rb', line 49153 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
49162 49163 49164 |
# File 'lib/ovirtsdk4/types.rb', line 49162 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
49171 49172 49173 |
# File 'lib/ovirtsdk4/types.rb', line 49171 def username=(value) @username = value end |
#volume_types ⇒ Array<OpenStackVolumeType>
Returns the value of the volume_types
attribute.
49180 49181 49182 |
# File 'lib/ovirtsdk4/types.rb', line 49180 def volume_types @volume_types end |
#volume_types=(list) ⇒ Object
Sets the value of the volume_types
attribute.
49189 49190 49191 49192 49193 49194 49195 49196 49197 49198 49199 |
# File 'lib/ovirtsdk4/types.rb', line 49189 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 |