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.
40973 40974 40975 40976 40977 40978 40979 40980 40981 |
# File 'lib/ovirtsdk4/types.rb', line 40973 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.
40986 40987 40988 40989 40990 40991 40992 40993 40994 |
# File 'lib/ovirtsdk4/types.rb', line 40986 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.
40762 40763 40764 |
# File 'lib/ovirtsdk4/types.rb', line 40762 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
40771 40772 40773 |
# File 'lib/ovirtsdk4/types.rb', line 40771 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
40780 40781 40782 |
# File 'lib/ovirtsdk4/types.rb', line 40780 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
40789 40790 40791 |
# File 'lib/ovirtsdk4/types.rb', line 40789 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
40798 40799 40800 |
# File 'lib/ovirtsdk4/types.rb', line 40798 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
40807 40808 40809 |
# File 'lib/ovirtsdk4/types.rb', line 40807 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40999 41000 41001 41002 41003 41004 41005 41006 41007 |
# File 'lib/ovirtsdk4/types.rb', line 40999 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.
40816 40817 40818 |
# File 'lib/ovirtsdk4/types.rb', line 40816 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
40825 40826 40827 |
# File 'lib/ovirtsdk4/types.rb', line 40825 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
40834 40835 40836 |
# File 'lib/ovirtsdk4/types.rb', line 40834 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
40843 40844 40845 |
# File 'lib/ovirtsdk4/types.rb', line 40843 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
40852 40853 40854 |
# File 'lib/ovirtsdk4/types.rb', line 40852 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
40861 40862 40863 |
# File 'lib/ovirtsdk4/types.rb', line 40861 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
40870 40871 40872 |
# File 'lib/ovirtsdk4/types.rb', line 40870 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
40879 40880 40881 40882 40883 40884 40885 40886 40887 40888 40889 |
# File 'lib/ovirtsdk4/types.rb', line 40879 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.
40896 40897 40898 |
# File 'lib/ovirtsdk4/types.rb', line 40896 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
40905 40906 40907 |
# File 'lib/ovirtsdk4/types.rb', line 40905 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url
attribute.
40914 40915 40916 |
# File 'lib/ovirtsdk4/types.rb', line 40914 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
40923 40924 40925 |
# File 'lib/ovirtsdk4/types.rb', line 40923 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
40932 40933 40934 |
# File 'lib/ovirtsdk4/types.rb', line 40932 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
40941 40942 40943 |
# File 'lib/ovirtsdk4/types.rb', line 40941 def username=(value) @username = value end |