sources-api-client 1.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/Gemfile.lock +11 -10
  4. data/bundler.d/.gitkeep +0 -0
  5. data/bundler.d/Gemfile.dev.rb +0 -0
  6. data/docs/Application.md +4 -2
  7. data/docs/ApplicationAuthentication.md +25 -0
  8. data/docs/ApplicationAuthenticationsCollection.md +21 -0
  9. data/docs/Authentication.md +4 -2
  10. data/docs/DefaultApi.md +333 -45
  11. data/docs/Endpoint.md +4 -2
  12. data/docs/ErrorNotFoundErrors.md +1 -1
  13. data/docs/Source.md +4 -2
  14. data/lib/sources-api-client.rb +3 -2
  15. data/lib/sources-api-client/api/default_api.rb +440 -60
  16. data/lib/sources-api-client/api_client.rb +1 -1
  17. data/lib/sources-api-client/api_error.rb +1 -1
  18. data/lib/sources-api-client/configuration.rb +4 -4
  19. data/lib/sources-api-client/models/application.rb +20 -11
  20. data/lib/sources-api-client/models/application_authentication.rb +296 -0
  21. data/lib/sources-api-client/models/{tenant.rb → application_authentications_collection.rb} +25 -23
  22. data/lib/sources-api-client/models/application_type.rb +1 -1
  23. data/lib/sources-api-client/models/application_types_collection.rb +1 -1
  24. data/lib/sources-api-client/models/applications_collection.rb +1 -1
  25. data/lib/sources-api-client/models/authentication.rb +20 -11
  26. data/lib/sources-api-client/models/authentication_extra.rb +1 -1
  27. data/lib/sources-api-client/models/authentication_extra_azure.rb +1 -1
  28. data/lib/sources-api-client/models/authentications_collection.rb +1 -1
  29. data/lib/sources-api-client/models/collection_links.rb +1 -1
  30. data/lib/sources-api-client/models/collection_metadata.rb +1 -1
  31. data/lib/sources-api-client/models/endpoint.rb +20 -11
  32. data/lib/sources-api-client/models/endpoints_collection.rb +1 -1
  33. data/lib/sources-api-client/models/error_not_found.rb +1 -1
  34. data/lib/sources-api-client/models/error_not_found_errors.rb +2 -2
  35. data/lib/sources-api-client/models/graph_ql_request.rb +1 -1
  36. data/lib/sources-api-client/models/graph_ql_response.rb +1 -1
  37. data/lib/sources-api-client/models/source.rb +20 -11
  38. data/lib/sources-api-client/models/source_type.rb +1 -1
  39. data/lib/sources-api-client/models/source_types_collection.rb +1 -1
  40. data/lib/sources-api-client/models/sources_collection.rb +1 -1
  41. data/lib/sources-api-client/version.rb +2 -2
  42. data/sources-api-client.gemspec +1 -1
  43. data/spec/api/default_api_spec.rb +91 -23
  44. data/spec/api_client_spec.rb +1 -1
  45. data/spec/configuration_spec.rb +4 -4
  46. data/spec/models/application_authentication_spec.rb +65 -0
  47. data/spec/models/{tenant_spec.rb → application_authentications_collection_spec.rb} +10 -10
  48. data/spec/models/application_spec.rb +9 -3
  49. data/spec/models/application_type_spec.rb +1 -1
  50. data/spec/models/application_types_collection_spec.rb +1 -1
  51. data/spec/models/applications_collection_spec.rb +1 -1
  52. data/spec/models/authentication_extra_azure_spec.rb +1 -1
  53. data/spec/models/authentication_extra_spec.rb +1 -1
  54. data/spec/models/authentication_spec.rb +13 -7
  55. data/spec/models/authentications_collection_spec.rb +1 -1
  56. data/spec/models/collection_links_spec.rb +1 -1
  57. data/spec/models/collection_metadata_spec.rb +1 -1
  58. data/spec/models/endpoint_spec.rb +13 -7
  59. data/spec/models/endpoints_collection_spec.rb +1 -1
  60. data/spec/models/error_not_found_errors_spec.rb +1 -1
  61. data/spec/models/error_not_found_spec.rb +1 -1
  62. data/spec/models/graph_ql_request_spec.rb +1 -1
  63. data/spec/models/graph_ql_response_spec.rb +1 -1
  64. data/spec/models/source_spec.rb +11 -5
  65. data/spec/models/source_type_spec.rb +1 -1
  66. data/spec/models/source_types_collection_spec.rb +1 -1
  67. data/spec/models/sources_collection_spec.rb +1 -1
  68. data/spec/spec_helper.rb +1 -1
  69. metadata +39 -33
  70. data/docs/Tenant.md +0 -21
  71. data/pkg/sources-api-client-1.0.0.gem +0 -0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Sources
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Sources
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Sources
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.1
@@ -128,7 +128,7 @@ module SourcesApiClient
128
128
  def initialize
129
129
  @scheme = 'https'
130
130
  @host = 'cloud.redhat.com'
131
- @base_path = '//api/sources/v1.0'
131
+ @base_path = '//api/sources/v3.0'
132
132
  @api_key = {}
133
133
  @api_key_prefix = {}
134
134
  @timeout = 0
@@ -212,7 +212,7 @@ module SourcesApiClient
212
212
  variables: {
213
213
  basePath: {
214
214
  description: "No descriptoin provided",
215
- default_value: "/api/sources/v1.0",
215
+ default_value: "/api/sources/v3.0",
216
216
  }
217
217
  }
218
218
  },
@@ -226,7 +226,7 @@ module SourcesApiClient
226
226
  },
227
227
  basePath: {
228
228
  description: "No descriptoin provided",
229
- default_value: "/api/sources/v1.0",
229
+ default_value: "/api/sources/v3.0",
230
230
  }
231
231
  }
232
232
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Sources
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.1
@@ -26,11 +26,13 @@ module SourcesApiClient
26
26
  # ID of the resource
27
27
  attr_accessor :id
28
28
 
29
+ attr_accessor :last_available_at
30
+
31
+ attr_accessor :last_checked_at
32
+
29
33
  # ID of the resource
30
34
  attr_accessor :source_id
31
35
 
32
- attr_accessor :tenant
33
-
34
36
  attr_accessor :updated_at
35
37
 
36
38
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -41,8 +43,9 @@ module SourcesApiClient
41
43
  :'availability_status_error' => :'availability_status_error',
42
44
  :'created_at' => :'created_at',
43
45
  :'id' => :'id',
46
+ :'last_available_at' => :'last_available_at',
47
+ :'last_checked_at' => :'last_checked_at',
44
48
  :'source_id' => :'source_id',
45
- :'tenant' => :'tenant',
46
49
  :'updated_at' => :'updated_at'
47
50
  }
48
51
  end
@@ -55,8 +58,9 @@ module SourcesApiClient
55
58
  :'availability_status_error' => :'String',
56
59
  :'created_at' => :'DateTime',
57
60
  :'id' => :'String',
61
+ :'last_available_at' => :'DateTime',
62
+ :'last_checked_at' => :'DateTime',
58
63
  :'source_id' => :'String',
59
- :'tenant' => :'String',
60
64
  :'updated_at' => :'DateTime'
61
65
  }
62
66
  end
@@ -102,12 +106,16 @@ module SourcesApiClient
102
106
  self.id = attributes[:'id']
103
107
  end
104
108
 
105
- if attributes.key?(:'source_id')
106
- self.source_id = attributes[:'source_id']
109
+ if attributes.key?(:'last_available_at')
110
+ self.last_available_at = attributes[:'last_available_at']
107
111
  end
108
112
 
109
- if attributes.key?(:'tenant')
110
- self.tenant = attributes[:'tenant']
113
+ if attributes.key?(:'last_checked_at')
114
+ self.last_checked_at = attributes[:'last_checked_at']
115
+ end
116
+
117
+ if attributes.key?(:'source_id')
118
+ self.source_id = attributes[:'source_id']
111
119
  end
112
120
 
113
121
  if attributes.key?(:'updated_at')
@@ -189,8 +197,9 @@ module SourcesApiClient
189
197
  availability_status_error == o.availability_status_error &&
190
198
  created_at == o.created_at &&
191
199
  id == o.id &&
200
+ last_available_at == o.last_available_at &&
201
+ last_checked_at == o.last_checked_at &&
192
202
  source_id == o.source_id &&
193
- tenant == o.tenant &&
194
203
  updated_at == o.updated_at
195
204
  end
196
205
 
@@ -203,7 +212,7 @@ module SourcesApiClient
203
212
  # Calculates hash code according to all attributes.
204
213
  # @return [Integer] Hash code
205
214
  def hash
206
- [application_type_id, availability_status, availability_status_error, created_at, id, source_id, tenant, updated_at].hash
215
+ [application_type_id, availability_status, availability_status_error, created_at, id, last_available_at, last_checked_at, source_id, updated_at].hash
207
216
  end
208
217
 
209
218
  # Builds the object from hash
@@ -0,0 +1,296 @@
1
+ =begin
2
+ #Sources
3
+
4
+ #Sources
5
+
6
+ The version of the OpenAPI document: 3.0.0
7
+ Contact: support@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module SourcesApiClient
16
+ class ApplicationAuthentication
17
+ # ID of the resource
18
+ attr_accessor :application_id
19
+
20
+ # ID of the resource
21
+ attr_accessor :authentication_id
22
+
23
+ attr_accessor :created_at
24
+
25
+ # ID of the resource
26
+ attr_accessor :id
27
+
28
+ attr_accessor :updated_at
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'application_id' => :'application_id',
34
+ :'authentication_id' => :'authentication_id',
35
+ :'created_at' => :'created_at',
36
+ :'id' => :'id',
37
+ :'updated_at' => :'updated_at'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'application_id' => :'String',
45
+ :'authentication_id' => :'String',
46
+ :'created_at' => :'DateTime',
47
+ :'id' => :'String',
48
+ :'updated_at' => :'DateTime'
49
+ }
50
+ end
51
+
52
+ # List of attributes with nullable: true
53
+ def self.openapi_nullable
54
+ Set.new([
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SourcesApiClient::ApplicationAuthentication` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h|
67
+ if (!self.class.attribute_map.key?(k.to_sym))
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SourcesApiClient::ApplicationAuthentication`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ end
70
+ h[k.to_sym] = v
71
+ }
72
+
73
+ if attributes.key?(:'application_id')
74
+ self.application_id = attributes[:'application_id']
75
+ end
76
+
77
+ if attributes.key?(:'authentication_id')
78
+ self.authentication_id = attributes[:'authentication_id']
79
+ end
80
+
81
+ if attributes.key?(:'created_at')
82
+ self.created_at = attributes[:'created_at']
83
+ end
84
+
85
+ if attributes.key?(:'id')
86
+ self.id = attributes[:'id']
87
+ end
88
+
89
+ if attributes.key?(:'updated_at')
90
+ self.updated_at = attributes[:'updated_at']
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ pattern = Regexp.new(/^\d+$/)
99
+ if !@application_id.nil? && @application_id !~ pattern
100
+ invalid_properties.push("invalid value for \"application_id\", must conform to the pattern #{pattern}.")
101
+ end
102
+
103
+ pattern = Regexp.new(/^\d+$/)
104
+ if !@authentication_id.nil? && @authentication_id !~ pattern
105
+ invalid_properties.push("invalid value for \"authentication_id\", must conform to the pattern #{pattern}.")
106
+ end
107
+
108
+ pattern = Regexp.new(/^\d+$/)
109
+ if !@id.nil? && @id !~ pattern
110
+ invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
111
+ end
112
+
113
+ invalid_properties
114
+ end
115
+
116
+ # Check to see if the all the properties in the model are valid
117
+ # @return true if the model is valid
118
+ def valid?
119
+ return false if !@application_id.nil? && @application_id !~ Regexp.new(/^\d+$/)
120
+ return false if !@authentication_id.nil? && @authentication_id !~ Regexp.new(/^\d+$/)
121
+ return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
122
+ true
123
+ end
124
+
125
+ # Custom attribute writer method with validation
126
+ # @param [Object] application_id Value to be assigned
127
+ def application_id=(application_id)
128
+ pattern = Regexp.new(/^\d+$/)
129
+ if !application_id.nil? && application_id !~ pattern
130
+ fail ArgumentError, "invalid value for \"application_id\", must conform to the pattern #{pattern}."
131
+ end
132
+
133
+ @application_id = application_id
134
+ end
135
+
136
+ # Custom attribute writer method with validation
137
+ # @param [Object] authentication_id Value to be assigned
138
+ def authentication_id=(authentication_id)
139
+ pattern = Regexp.new(/^\d+$/)
140
+ if !authentication_id.nil? && authentication_id !~ pattern
141
+ fail ArgumentError, "invalid value for \"authentication_id\", must conform to the pattern #{pattern}."
142
+ end
143
+
144
+ @authentication_id = authentication_id
145
+ end
146
+
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] id Value to be assigned
149
+ def id=(id)
150
+ pattern = Regexp.new(/^\d+$/)
151
+ if !id.nil? && id !~ pattern
152
+ fail ArgumentError, "invalid value for \"id\", must conform to the pattern #{pattern}."
153
+ end
154
+
155
+ @id = id
156
+ end
157
+
158
+ # Checks equality by comparing each attribute.
159
+ # @param [Object] Object to be compared
160
+ def ==(o)
161
+ return true if self.equal?(o)
162
+ self.class == o.class &&
163
+ application_id == o.application_id &&
164
+ authentication_id == o.authentication_id &&
165
+ created_at == o.created_at &&
166
+ id == o.id &&
167
+ updated_at == o.updated_at
168
+ end
169
+
170
+ # @see the `==` method
171
+ # @param [Object] Object to be compared
172
+ def eql?(o)
173
+ self == o
174
+ end
175
+
176
+ # Calculates hash code according to all attributes.
177
+ # @return [Integer] Hash code
178
+ def hash
179
+ [application_id, authentication_id, created_at, id, updated_at].hash
180
+ end
181
+
182
+ # Builds the object from hash
183
+ # @param [Hash] attributes Model attributes in the form of hash
184
+ # @return [Object] Returns the model itself
185
+ def self.build_from_hash(attributes)
186
+ new.build_from_hash(attributes)
187
+ end
188
+
189
+ # Builds the object from hash
190
+ # @param [Hash] attributes Model attributes in the form of hash
191
+ # @return [Object] Returns the model itself
192
+ def build_from_hash(attributes)
193
+ return nil unless attributes.is_a?(Hash)
194
+ self.class.openapi_types.each_pair do |key, type|
195
+ if type =~ /\AArray<(.*)>/i
196
+ # check to ensure the input is an array given that the attribute
197
+ # is documented as an array but the input is not
198
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
199
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
200
+ end
201
+ elsif !attributes[self.class.attribute_map[key]].nil?
202
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
203
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
204
+ end
205
+
206
+ self
207
+ end
208
+
209
+ # Deserializes the data based on type
210
+ # @param string type Data type
211
+ # @param string value Value to be deserialized
212
+ # @return [Object] Deserialized data
213
+ def _deserialize(type, value)
214
+ case type.to_sym
215
+ when :DateTime
216
+ DateTime.parse(value)
217
+ when :Date
218
+ Date.parse(value)
219
+ when :String
220
+ value.to_s
221
+ when :Integer
222
+ value.to_i
223
+ when :Float
224
+ value.to_f
225
+ when :Boolean
226
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
227
+ true
228
+ else
229
+ false
230
+ end
231
+ when :Object
232
+ # generic object (usually a Hash), return directly
233
+ value
234
+ when /\AArray<(?<inner_type>.+)>\z/
235
+ inner_type = Regexp.last_match[:inner_type]
236
+ value.map { |v| _deserialize(inner_type, v) }
237
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
238
+ k_type = Regexp.last_match[:k_type]
239
+ v_type = Regexp.last_match[:v_type]
240
+ {}.tap do |hash|
241
+ value.each do |k, v|
242
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
243
+ end
244
+ end
245
+ else # model
246
+ SourcesApiClient.const_get(type).build_from_hash(value)
247
+ end
248
+ end
249
+
250
+ # Returns the string representation of the object
251
+ # @return [String] String presentation of the object
252
+ def to_s
253
+ to_hash.to_s
254
+ end
255
+
256
+ # to_body is an alias to to_hash (backward compatibility)
257
+ # @return [Hash] Returns the object in the form of hash
258
+ def to_body
259
+ to_hash
260
+ end
261
+
262
+ # Returns the object in the form of hash
263
+ # @return [Hash] Returns the object in the form of hash
264
+ def to_hash
265
+ hash = {}
266
+ self.class.attribute_map.each_pair do |attr, param|
267
+ value = self.send(attr)
268
+ if value.nil?
269
+ is_nullable = self.class.openapi_nullable.include?(attr)
270
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
271
+ end
272
+
273
+ hash[param] = _to_hash(value)
274
+ end
275
+ hash
276
+ end
277
+
278
+ # Outputs non-array value in the form of hash
279
+ # For object, use to_hash. Otherwise, just return the value
280
+ # @param [Object] value Any valid value
281
+ # @return [Hash] Returns the value in the form of hash
282
+ def _to_hash(value)
283
+ if value.is_a?(Array)
284
+ value.compact.map { |v| _to_hash(v) }
285
+ elsif value.is_a?(Hash)
286
+ {}.tap do |hash|
287
+ value.each { |k, v| hash[k] = _to_hash(v) }
288
+ end
289
+ elsif value.respond_to? :to_hash
290
+ value.to_hash
291
+ else
292
+ value
293
+ end
294
+ end
295
+ end
296
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Sources
5
5
 
6
- The version of the OpenAPI document: 1.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.1
@@ -13,28 +13,28 @@ OpenAPI Generator version: 4.2.1
13
13
  require 'date'
14
14
 
15
15
  module SourcesApiClient
16
- class Tenant
17
- attr_accessor :name
16
+ class ApplicationAuthenticationsCollection
17
+ attr_accessor :meta
18
18
 
19
- attr_accessor :description
19
+ attr_accessor :links
20
20
 
21
- attr_accessor :external_tenant
21
+ attr_accessor :data
22
22
 
23
23
  # Attribute mapping from ruby-style variable name to JSON key.
24
24
  def self.attribute_map
25
25
  {
26
- :'name' => :'name',
27
- :'description' => :'description',
28
- :'external_tenant' => :'external_tenant'
26
+ :'meta' => :'meta',
27
+ :'links' => :'links',
28
+ :'data' => :'data'
29
29
  }
30
30
  end
31
31
 
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'name' => :'String',
36
- :'description' => :'String',
37
- :'external_tenant' => :'String'
35
+ :'meta' => :'CollectionMetadata',
36
+ :'links' => :'CollectionLinks',
37
+ :'data' => :'Array<ApplicationAuthentication>'
38
38
  }
39
39
  end
40
40
 
@@ -48,27 +48,29 @@ module SourcesApiClient
48
48
  # @param [Hash] attributes Model attributes in the form of hash
49
49
  def initialize(attributes = {})
50
50
  if (!attributes.is_a?(Hash))
51
- fail ArgumentError, "The input argument (attributes) must be a hash in `SourcesApiClient::Tenant` initialize method"
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `SourcesApiClient::ApplicationAuthenticationsCollection` initialize method"
52
52
  end
53
53
 
54
54
  # check to see if the attribute exists and convert string to symbol for hash key
55
55
  attributes = attributes.each_with_object({}) { |(k, v), h|
56
56
  if (!self.class.attribute_map.key?(k.to_sym))
57
- fail ArgumentError, "`#{k}` is not a valid attribute in `SourcesApiClient::Tenant`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `SourcesApiClient::ApplicationAuthenticationsCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
58
  end
59
59
  h[k.to_sym] = v
60
60
  }
61
61
 
62
- if attributes.key?(:'name')
63
- self.name = attributes[:'name']
62
+ if attributes.key?(:'meta')
63
+ self.meta = attributes[:'meta']
64
64
  end
65
65
 
66
- if attributes.key?(:'description')
67
- self.description = attributes[:'description']
66
+ if attributes.key?(:'links')
67
+ self.links = attributes[:'links']
68
68
  end
69
69
 
70
- if attributes.key?(:'external_tenant')
71
- self.external_tenant = attributes[:'external_tenant']
70
+ if attributes.key?(:'data')
71
+ if (value = attributes[:'data']).is_a?(Array)
72
+ self.data = value
73
+ end
72
74
  end
73
75
  end
74
76
 
@@ -90,9 +92,9 @@ module SourcesApiClient
90
92
  def ==(o)
91
93
  return true if self.equal?(o)
92
94
  self.class == o.class &&
93
- name == o.name &&
94
- description == o.description &&
95
- external_tenant == o.external_tenant
95
+ meta == o.meta &&
96
+ links == o.links &&
97
+ data == o.data
96
98
  end
97
99
 
98
100
  # @see the `==` method
@@ -104,7 +106,7 @@ module SourcesApiClient
104
106
  # Calculates hash code according to all attributes.
105
107
  # @return [Integer] Hash code
106
108
  def hash
107
- [name, description, external_tenant].hash
109
+ [meta, links, data].hash
108
110
  end
109
111
 
110
112
  # Builds the object from hash