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.
37817 37818 37819 37820 37821 37822 37823 37824 37825 |
# File 'lib/ovirtsdk4/types.rb', line 37817 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.
37830 37831 37832 37833 37834 37835 37836 37837 37838 |
# File 'lib/ovirtsdk4/types.rb', line 37830 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.
37606 37607 37608 |
# File 'lib/ovirtsdk4/types.rb', line 37606 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
37615 37616 37617 |
# File 'lib/ovirtsdk4/types.rb', line 37615 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
37624 37625 37626 |
# File 'lib/ovirtsdk4/types.rb', line 37624 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
37633 37634 37635 |
# File 'lib/ovirtsdk4/types.rb', line 37633 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
37642 37643 37644 |
# File 'lib/ovirtsdk4/types.rb', line 37642 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
37651 37652 37653 |
# File 'lib/ovirtsdk4/types.rb', line 37651 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
37843 37844 37845 37846 37847 37848 37849 37850 37851 |
# File 'lib/ovirtsdk4/types.rb', line 37843 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.
37660 37661 37662 |
# File 'lib/ovirtsdk4/types.rb', line 37660 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
37669 37670 37671 |
# File 'lib/ovirtsdk4/types.rb', line 37669 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
37678 37679 37680 |
# File 'lib/ovirtsdk4/types.rb', line 37678 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
37687 37688 37689 |
# File 'lib/ovirtsdk4/types.rb', line 37687 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
37696 37697 37698 |
# File 'lib/ovirtsdk4/types.rb', line 37696 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
37705 37706 37707 |
# File 'lib/ovirtsdk4/types.rb', line 37705 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
37714 37715 37716 |
# File 'lib/ovirtsdk4/types.rb', line 37714 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
37723 37724 37725 37726 37727 37728 37729 37730 37731 37732 37733 |
# File 'lib/ovirtsdk4/types.rb', line 37723 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.
37740 37741 37742 |
# File 'lib/ovirtsdk4/types.rb', line 37740 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
37749 37750 37751 |
# File 'lib/ovirtsdk4/types.rb', line 37749 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url
attribute.
37758 37759 37760 |
# File 'lib/ovirtsdk4/types.rb', line 37758 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
37767 37768 37769 |
# File 'lib/ovirtsdk4/types.rb', line 37767 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
37776 37777 37778 |
# File 'lib/ovirtsdk4/types.rb', line 37776 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
37785 37786 37787 |
# File 'lib/ovirtsdk4/types.rb', line 37785 def username=(value) @username = value end |