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.
37877 37878 37879 37880 37881 37882 37883 37884 37885 |
# File 'lib/ovirtsdk4/types.rb', line 37877 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.
37890 37891 37892 37893 37894 37895 37896 37897 37898 |
# File 'lib/ovirtsdk4/types.rb', line 37890 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.
37666 37667 37668 |
# File 'lib/ovirtsdk4/types.rb', line 37666 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url attribute.
37675 37676 37677 |
# File 'lib/ovirtsdk4/types.rb', line 37675 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment attribute.
37684 37685 37686 |
# File 'lib/ovirtsdk4/types.rb', line 37684 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
37693 37694 37695 |
# File 'lib/ovirtsdk4/types.rb', line 37693 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
37702 37703 37704 |
# File 'lib/ovirtsdk4/types.rb', line 37702 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
37711 37712 37713 |
# File 'lib/ovirtsdk4/types.rb', line 37711 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
37903 37904 37905 37906 37907 37908 37909 37910 37911 |
# File 'lib/ovirtsdk4/types.rb', line 37903 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.
37720 37721 37722 |
# File 'lib/ovirtsdk4/types.rb', line 37720 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
37729 37730 37731 |
# File 'lib/ovirtsdk4/types.rb', line 37729 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name attribute.
37738 37739 37740 |
# File 'lib/ovirtsdk4/types.rb', line 37738 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
37747 37748 37749 |
# File 'lib/ovirtsdk4/types.rb', line 37747 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password attribute.
37756 37757 37758 |
# File 'lib/ovirtsdk4/types.rb', line 37756 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
37765 37766 37767 |
# File 'lib/ovirtsdk4/types.rb', line 37765 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties attribute.
37774 37775 37776 |
# File 'lib/ovirtsdk4/types.rb', line 37774 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties attribute.
37783 37784 37785 37786 37787 37788 37789 37790 37791 37792 37793 |
# File 'lib/ovirtsdk4/types.rb', line 37783 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.
37800 37801 37802 |
# File 'lib/ovirtsdk4/types.rb', line 37800 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication attribute.
37809 37810 37811 |
# File 'lib/ovirtsdk4/types.rb', line 37809 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url attribute.
37818 37819 37820 |
# File 'lib/ovirtsdk4/types.rb', line 37818 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url attribute.
37827 37828 37829 |
# File 'lib/ovirtsdk4/types.rb', line 37827 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username attribute.
37836 37837 37838 |
# File 'lib/ovirtsdk4/types.rb', line 37836 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
37845 37846 37847 |
# File 'lib/ovirtsdk4/types.rb', line 37845 def username=(value) @username = value end |