Class: OvirtSDK4::ExternalProvider
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::ExternalProvider
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
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. -
#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. -
#initialize(opts = {}) ⇒ ExternalProvider
constructor
Creates a new instance of the ExternalProvider 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. -
#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 = {}) ⇒ ExternalProvider
Creates a new instance of the OvirtSDK4::ExternalProvider class.
41266 41267 41268 41269 41270 41271 41272 41273 41274 |
# File 'lib/ovirtsdk4/types.rb', line 41266 def initialize(opts = {}) super(opts) self.authentication_url = opts[:authentication_url] self.password = opts[:password] self.properties = opts[:properties] self.requires_authentication = opts[:requires_authentication] self.url = opts[:url] self.username = opts[:username] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
41279 41280 41281 41282 41283 41284 41285 41286 41287 |
# File 'lib/ovirtsdk4/types.rb', line 41279 def ==(other) super && @authentication_url == other.authentication_url && @password == other.password && @properties == other.properties && @requires_authentication == other.requires_authentication && @url == other.url && @username == other.username end |
#authentication_url ⇒ String
Returns the value of the authentication_url attribute.
41055 41056 41057 |
# File 'lib/ovirtsdk4/types.rb', line 41055 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url attribute.
41064 41065 41066 |
# File 'lib/ovirtsdk4/types.rb', line 41064 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment attribute.
41073 41074 41075 |
# File 'lib/ovirtsdk4/types.rb', line 41073 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
41082 41083 41084 |
# File 'lib/ovirtsdk4/types.rb', line 41082 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
41091 41092 41093 |
# File 'lib/ovirtsdk4/types.rb', line 41091 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
41100 41101 41102 |
# File 'lib/ovirtsdk4/types.rb', line 41100 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
41292 41293 41294 41295 41296 41297 41298 41299 41300 |
# File 'lib/ovirtsdk4/types.rb', line 41292 def hash super + @authentication_url.hash + @password.hash + @properties.hash + @requires_authentication.hash + @url.hash + @username.hash end |
#id ⇒ String
Returns the value of the id attribute.
41109 41110 41111 |
# File 'lib/ovirtsdk4/types.rb', line 41109 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
41118 41119 41120 |
# File 'lib/ovirtsdk4/types.rb', line 41118 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
41127 41128 41129 |
# File 'lib/ovirtsdk4/types.rb', line 41127 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
41136 41137 41138 |
# File 'lib/ovirtsdk4/types.rb', line 41136 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
41145 41146 41147 |
# File 'lib/ovirtsdk4/types.rb', line 41145 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
41154 41155 41156 |
# File 'lib/ovirtsdk4/types.rb', line 41154 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
41163 41164 41165 |
# File 'lib/ovirtsdk4/types.rb', line 41163 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
41172 41173 41174 41175 41176 41177 41178 41179 41180 41181 41182 |
# File 'lib/ovirtsdk4/types.rb', line 41172 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.
41189 41190 41191 |
# File 'lib/ovirtsdk4/types.rb', line 41189 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication attribute.
41198 41199 41200 |
# File 'lib/ovirtsdk4/types.rb', line 41198 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url attribute.
41207 41208 41209 |
# File 'lib/ovirtsdk4/types.rb', line 41207 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url attribute.
41216 41217 41218 |
# File 'lib/ovirtsdk4/types.rb', line 41216 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username attribute.
41225 41226 41227 |
# File 'lib/ovirtsdk4/types.rb', line 41225 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
41234 41235 41236 |
# File 'lib/ovirtsdk4/types.rb', line 41234 def username=(value) @username = value end |