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
true
ifself
andother
have the same attributes and values. -
#authentication_url ⇒ String
Returns the value of the
authentication_url
attribute. -
#authentication_url=(value) ⇒ Object
Sets the value of the
authentication_url
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
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 = {}) ⇒ ExternalProvider
constructor
Creates a new instance of the ExternalProvider 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. -
#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.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ExternalProvider
Creates a new instance of the OvirtSDK4::ExternalProvider class.
38522 38523 38524 38525 38526 38527 38528 38529 38530 |
# File 'lib/ovirtsdk4/types.rb', line 38522 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.
38535 38536 38537 38538 38539 38540 38541 38542 38543 |
# File 'lib/ovirtsdk4/types.rb', line 38535 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.
38311 38312 38313 |
# File 'lib/ovirtsdk4/types.rb', line 38311 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
38320 38321 38322 |
# File 'lib/ovirtsdk4/types.rb', line 38320 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
38329 38330 38331 |
# File 'lib/ovirtsdk4/types.rb', line 38329 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
38338 38339 38340 |
# File 'lib/ovirtsdk4/types.rb', line 38338 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
38347 38348 38349 |
# File 'lib/ovirtsdk4/types.rb', line 38347 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
38356 38357 38358 |
# File 'lib/ovirtsdk4/types.rb', line 38356 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
38548 38549 38550 38551 38552 38553 38554 38555 38556 |
# File 'lib/ovirtsdk4/types.rb', line 38548 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.
38365 38366 38367 |
# File 'lib/ovirtsdk4/types.rb', line 38365 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
38374 38375 38376 |
# File 'lib/ovirtsdk4/types.rb', line 38374 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
38383 38384 38385 |
# File 'lib/ovirtsdk4/types.rb', line 38383 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
38392 38393 38394 |
# File 'lib/ovirtsdk4/types.rb', line 38392 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
38401 38402 38403 |
# File 'lib/ovirtsdk4/types.rb', line 38401 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
38410 38411 38412 |
# File 'lib/ovirtsdk4/types.rb', line 38410 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
38419 38420 38421 |
# File 'lib/ovirtsdk4/types.rb', line 38419 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
38428 38429 38430 38431 38432 38433 38434 38435 38436 38437 38438 |
# File 'lib/ovirtsdk4/types.rb', line 38428 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.
38445 38446 38447 |
# File 'lib/ovirtsdk4/types.rb', line 38445 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
38454 38455 38456 |
# File 'lib/ovirtsdk4/types.rb', line 38454 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url
attribute.
38463 38464 38465 |
# File 'lib/ovirtsdk4/types.rb', line 38463 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
38472 38473 38474 |
# File 'lib/ovirtsdk4/types.rb', line 38472 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
38481 38482 38483 |
# File 'lib/ovirtsdk4/types.rb', line 38481 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
38490 38491 38492 |
# File 'lib/ovirtsdk4/types.rb', line 38490 def username=(value) @username = value end |