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.
40118 40119 40120 40121 40122 40123 40124 40125 40126 |
# File 'lib/ovirtsdk4/types.rb', line 40118 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.
40131 40132 40133 40134 40135 40136 40137 40138 40139 |
# File 'lib/ovirtsdk4/types.rb', line 40131 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.
39907 39908 39909 |
# File 'lib/ovirtsdk4/types.rb', line 39907 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
39916 39917 39918 |
# File 'lib/ovirtsdk4/types.rb', line 39916 def authentication_url=(value) @authentication_url = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
39925 39926 39927 |
# File 'lib/ovirtsdk4/types.rb', line 39925 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39934 39935 39936 |
# File 'lib/ovirtsdk4/types.rb', line 39934 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
39943 39944 39945 |
# File 'lib/ovirtsdk4/types.rb', line 39943 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39952 39953 39954 |
# File 'lib/ovirtsdk4/types.rb', line 39952 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
40144 40145 40146 40147 40148 40149 40150 40151 40152 |
# File 'lib/ovirtsdk4/types.rb', line 40144 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.
39961 39962 39963 |
# File 'lib/ovirtsdk4/types.rb', line 39961 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
39970 39971 39972 |
# File 'lib/ovirtsdk4/types.rb', line 39970 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
39979 39980 39981 |
# File 'lib/ovirtsdk4/types.rb', line 39979 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
39988 39989 39990 |
# File 'lib/ovirtsdk4/types.rb', line 39988 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
39997 39998 39999 |
# File 'lib/ovirtsdk4/types.rb', line 39997 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
40006 40007 40008 |
# File 'lib/ovirtsdk4/types.rb', line 40006 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
40015 40016 40017 |
# File 'lib/ovirtsdk4/types.rb', line 40015 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
40024 40025 40026 40027 40028 40029 40030 40031 40032 40033 40034 |
# File 'lib/ovirtsdk4/types.rb', line 40024 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.
40041 40042 40043 |
# File 'lib/ovirtsdk4/types.rb', line 40041 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
40050 40051 40052 |
# File 'lib/ovirtsdk4/types.rb', line 40050 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url
attribute.
40059 40060 40061 |
# File 'lib/ovirtsdk4/types.rb', line 40059 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
40068 40069 40070 |
# File 'lib/ovirtsdk4/types.rb', line 40068 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
40077 40078 40079 |
# File 'lib/ovirtsdk4/types.rb', line 40077 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
40086 40087 40088 |
# File 'lib/ovirtsdk4/types.rb', line 40086 def username=(value) @username = value end |