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
@@ -11,13 +11,14 @@ Name | Type | Description | Notes
11
11
  **default** | **Boolean** | | [optional]
12
12
  **host** | **String** | URI host component | [optional]
13
13
  **id** | **String** | ID of the resource | [optional] [readonly]
14
+ **last_available_at** | **DateTime** | | [optional]
15
+ **last_checked_at** | **DateTime** | | [optional]
14
16
  **path** | **String** | URI path component | [optional]
15
17
  **port** | **Integer** | URI port component | [optional]
16
18
  **receptor_node** | **String** | Identifier of a receptor node | [optional]
17
19
  **role** | **String** | | [optional]
18
20
  **scheme** | **String** | URI scheme component | [optional]
19
21
  **source_id** | **String** | ID of the resource | [optional] [readonly]
20
- **tenant** | **String** | | [optional] [readonly]
21
22
  **updated_at** | **DateTime** | | [optional] [readonly]
22
23
  **verify_ssl** | **Boolean** | Should SSL be verified | [optional]
23
24
 
@@ -33,13 +34,14 @@ instance = SourcesApiClient::Endpoint.new(availability_status: null,
33
34
  default: null,
34
35
  host: www.example.com,
35
36
  id: null,
37
+ last_available_at: null,
38
+ last_checked_at: null,
36
39
  path: /api/v1,
37
40
  port: 80,
38
41
  receptor_node: null,
39
42
  role: default,
40
43
  scheme: https,
41
44
  source_id: null,
42
- tenant: null,
43
45
  updated_at: null,
44
46
  verify_ssl: true)
45
47
  ```
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **status** | **Integer** | | [optional]
7
+ **status** | **String** | | [optional]
8
8
  **detail** | **String** | | [optional]
9
9
 
10
10
  ## Code Sample
@@ -8,10 +8,11 @@ Name | Type | Description | Notes
8
8
  **created_at** | **DateTime** | | [optional] [readonly]
9
9
  **id** | **String** | ID of the resource | [optional] [readonly]
10
10
  **imported** | **String** | | [optional]
11
+ **last_available_at** | **DateTime** | | [optional]
12
+ **last_checked_at** | **DateTime** | | [optional]
11
13
  **name** | **String** | | [optional]
12
14
  **source_ref** | **String** | | [optional]
13
15
  **source_type_id** | **String** | ID of the resource | [optional] [readonly]
14
- **tenant** | **String** | | [optional] [readonly]
15
16
  **uid** | **String** | | [optional] [readonly]
16
17
  **updated_at** | **DateTime** | | [optional] [readonly]
17
18
  **version** | **String** | | [optional] [readonly]
@@ -25,10 +26,11 @@ instance = SourcesApiClient::Source.new(availability_status: null,
25
26
  created_at: null,
26
27
  id: null,
27
28
  imported: null,
29
+ last_available_at: null,
30
+ last_checked_at: null,
28
31
  name: Sample Provider,
29
32
  source_ref: null,
30
33
  source_type_id: null,
31
- tenant: null,
32
34
  uid: null,
33
35
  updated_at: null,
34
36
  version: 6.5.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
@@ -18,6 +18,8 @@ require 'sources-api-client/configuration'
18
18
 
19
19
  # Models
20
20
  require 'sources-api-client/models/application'
21
+ require 'sources-api-client/models/application_authentication'
22
+ require 'sources-api-client/models/application_authentications_collection'
21
23
  require 'sources-api-client/models/application_type'
22
24
  require 'sources-api-client/models/application_types_collection'
23
25
  require 'sources-api-client/models/applications_collection'
@@ -37,7 +39,6 @@ require 'sources-api-client/models/source'
37
39
  require 'sources-api-client/models/source_type'
38
40
  require 'sources-api-client/models/source_types_collection'
39
41
  require 'sources-api-client/models/sources_collection'
40
- require 'sources-api-client/models/tenant'
41
42
 
42
43
  # APIs
43
44
  require 'sources-api-client/api/default_api'
@@ -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
@@ -150,6 +150,70 @@ module SourcesApiClient
150
150
  return data, status_code, headers
151
151
  end
152
152
 
153
+ # Create a new ApplicationAuthentication
154
+ # Creates a ApplicationAuthentication object
155
+ # @param application_authentication [ApplicationAuthentication] ApplicationAuthentication attributes to create
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [ApplicationAuthentication]
158
+ def create_application_authentication(application_authentication, opts = {})
159
+ data, _status_code, _headers = create_application_authentication_with_http_info(application_authentication, opts)
160
+ data
161
+ end
162
+
163
+ # Create a new ApplicationAuthentication
164
+ # Creates a ApplicationAuthentication object
165
+ # @param application_authentication [ApplicationAuthentication] ApplicationAuthentication attributes to create
166
+ # @param [Hash] opts the optional parameters
167
+ # @return [Array<(ApplicationAuthentication, Integer, Hash)>] ApplicationAuthentication data, response status code and response headers
168
+ def create_application_authentication_with_http_info(application_authentication, opts = {})
169
+ if @api_client.config.debugging
170
+ @api_client.config.logger.debug 'Calling API: DefaultApi.create_application_authentication ...'
171
+ end
172
+ # verify the required parameter 'application_authentication' is set
173
+ if @api_client.config.client_side_validation && application_authentication.nil?
174
+ fail ArgumentError, "Missing the required parameter 'application_authentication' when calling DefaultApi.create_application_authentication"
175
+ end
176
+ # resource path
177
+ local_var_path = '/application_authentications'
178
+
179
+ # query parameters
180
+ query_params = opts[:query_params] || {}
181
+
182
+ # header parameters
183
+ header_params = opts[:header_params] || {}
184
+ # HTTP header 'Accept' (if needed)
185
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
186
+ # HTTP header 'Content-Type'
187
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
188
+
189
+ # form parameters
190
+ form_params = opts[:form_params] || {}
191
+
192
+ # http body (model)
193
+ post_body = opts[:body] || @api_client.object_to_http_body(application_authentication)
194
+
195
+ # return_type
196
+ return_type = opts[:return_type] || 'ApplicationAuthentication'
197
+
198
+ # auth_names
199
+ auth_names = opts[:auth_names] || ['UserSecurity']
200
+
201
+ new_options = opts.merge(
202
+ :header_params => header_params,
203
+ :query_params => query_params,
204
+ :form_params => form_params,
205
+ :body => post_body,
206
+ :auth_names => auth_names,
207
+ :return_type => return_type
208
+ )
209
+
210
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
211
+ if @api_client.config.debugging
212
+ @api_client.config.logger.debug "API called: DefaultApi#create_application_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
+ end
214
+ return data, status_code, headers
215
+ end
216
+
153
217
  # Create a new Authentication
154
218
  # Creates a Authentication object
155
219
  # @param authentication [Authentication] Authentication attributes to create
@@ -342,31 +406,36 @@ module SourcesApiClient
342
406
  return data, status_code, headers
343
407
  end
344
408
 
345
- # Create a new SourceType
346
- # Creates a SourceType object
347
- # @param source_type [SourceType] SourceType attributes to create
409
+ # Delete an existing Application
410
+ # Deletes a Application object
411
+ # @param id [String] ID of the resource
348
412
  # @param [Hash] opts the optional parameters
349
- # @return [SourceType]
350
- def create_source_type(source_type, opts = {})
351
- data, _status_code, _headers = create_source_type_with_http_info(source_type, opts)
352
- data
413
+ # @return [nil]
414
+ def delete_application(id, opts = {})
415
+ delete_application_with_http_info(id, opts)
416
+ nil
353
417
  end
354
418
 
355
- # Create a new SourceType
356
- # Creates a SourceType object
357
- # @param source_type [SourceType] SourceType attributes to create
419
+ # Delete an existing Application
420
+ # Deletes a Application object
421
+ # @param id [String] ID of the resource
358
422
  # @param [Hash] opts the optional parameters
359
- # @return [Array<(SourceType, Integer, Hash)>] SourceType data, response status code and response headers
360
- def create_source_type_with_http_info(source_type, opts = {})
423
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
424
+ def delete_application_with_http_info(id, opts = {})
361
425
  if @api_client.config.debugging
362
- @api_client.config.logger.debug 'Calling API: DefaultApi.create_source_type ...'
426
+ @api_client.config.logger.debug 'Calling API: DefaultApi.delete_application ...'
427
+ end
428
+ # verify the required parameter 'id' is set
429
+ if @api_client.config.client_side_validation && id.nil?
430
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_application"
363
431
  end
364
- # verify the required parameter 'source_type' is set
365
- if @api_client.config.client_side_validation && source_type.nil?
366
- fail ArgumentError, "Missing the required parameter 'source_type' when calling DefaultApi.create_source_type"
432
+ pattern = Regexp.new(/^\d+$/)
433
+ if @api_client.config.client_side_validation && id !~ pattern
434
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_application, must conform to the pattern #{pattern}."
367
435
  end
436
+
368
437
  # resource path
369
- local_var_path = '/source_types'
438
+ local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
370
439
 
371
440
  # query parameters
372
441
  query_params = opts[:query_params] || {}
@@ -375,17 +444,15 @@ module SourcesApiClient
375
444
  header_params = opts[:header_params] || {}
376
445
  # HTTP header 'Accept' (if needed)
377
446
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
378
- # HTTP header 'Content-Type'
379
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
380
447
 
381
448
  # form parameters
382
449
  form_params = opts[:form_params] || {}
383
450
 
384
451
  # http body (model)
385
- post_body = opts[:body] || @api_client.object_to_http_body(source_type)
452
+ post_body = opts[:body]
386
453
 
387
454
  # return_type
388
- return_type = opts[:return_type] || 'SourceType'
455
+ return_type = opts[:return_type]
389
456
 
390
457
  # auth_names
391
458
  auth_names = opts[:auth_names] || ['UserSecurity']
@@ -399,43 +466,43 @@ module SourcesApiClient
399
466
  :return_type => return_type
400
467
  )
401
468
 
402
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
469
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
403
470
  if @api_client.config.debugging
404
- @api_client.config.logger.debug "API called: DefaultApi#create_source_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
471
+ @api_client.config.logger.debug "API called: DefaultApi#delete_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
405
472
  end
406
473
  return data, status_code, headers
407
474
  end
408
475
 
409
- # Delete an existing Application
410
- # Deletes a Application object
476
+ # Delete an existing ApplicationAuthentication
477
+ # Deletes a ApplicationAuthentication object
411
478
  # @param id [String] ID of the resource
412
479
  # @param [Hash] opts the optional parameters
413
480
  # @return [nil]
414
- def delete_application(id, opts = {})
415
- delete_application_with_http_info(id, opts)
481
+ def delete_application_authentication(id, opts = {})
482
+ delete_application_authentication_with_http_info(id, opts)
416
483
  nil
417
484
  end
418
485
 
419
- # Delete an existing Application
420
- # Deletes a Application object
486
+ # Delete an existing ApplicationAuthentication
487
+ # Deletes a ApplicationAuthentication object
421
488
  # @param id [String] ID of the resource
422
489
  # @param [Hash] opts the optional parameters
423
490
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
424
- def delete_application_with_http_info(id, opts = {})
491
+ def delete_application_authentication_with_http_info(id, opts = {})
425
492
  if @api_client.config.debugging
426
- @api_client.config.logger.debug 'Calling API: DefaultApi.delete_application ...'
493
+ @api_client.config.logger.debug 'Calling API: DefaultApi.delete_application_authentication ...'
427
494
  end
428
495
  # verify the required parameter 'id' is set
429
496
  if @api_client.config.client_side_validation && id.nil?
430
- fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_application"
497
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_application_authentication"
431
498
  end
432
499
  pattern = Regexp.new(/^\d+$/)
433
500
  if @api_client.config.client_side_validation && id !~ pattern
434
- fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_application, must conform to the pattern #{pattern}."
501
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_application_authentication, must conform to the pattern #{pattern}."
435
502
  end
436
503
 
437
504
  # resource path
438
- local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
505
+ local_var_path = '/application_authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
439
506
 
440
507
  # query parameters
441
508
  query_params = opts[:query_params] || {}
@@ -468,7 +535,7 @@ module SourcesApiClient
468
535
 
469
536
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
470
537
  if @api_client.config.debugging
471
- @api_client.config.logger.debug "API called: DefaultApi#delete_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
538
+ @api_client.config.logger.debug "API called: DefaultApi#delete_application_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
472
539
  end
473
540
  return data, status_code, headers
474
541
  end
@@ -728,6 +795,177 @@ module SourcesApiClient
728
795
  return data, status_code, headers
729
796
  end
730
797
 
798
+ # List ApplicationAuthentications
799
+ # Returns an array of ApplicationAuthentication objects
800
+ # @param [Hash] opts the optional parameters
801
+ # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
802
+ # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
803
+ # @option opts [Object] :filter Filter for querying collections.
804
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
805
+ # @return [ApplicationAuthenticationsCollection]
806
+ def list_all_application_authentications(opts = {})
807
+ data, _status_code, _headers = list_all_application_authentications_with_http_info(opts)
808
+ data
809
+ end
810
+
811
+ # List ApplicationAuthentications
812
+ # Returns an array of ApplicationAuthentication objects
813
+ # @param [Hash] opts the optional parameters
814
+ # @option opts [Integer] :limit The numbers of items to return per page.
815
+ # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
816
+ # @option opts [Object] :filter Filter for querying collections.
817
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
818
+ # @return [Array<(ApplicationAuthenticationsCollection, Integer, Hash)>] ApplicationAuthenticationsCollection data, response status code and response headers
819
+ def list_all_application_authentications_with_http_info(opts = {})
820
+ if @api_client.config.debugging
821
+ @api_client.config.logger.debug 'Calling API: DefaultApi.list_all_application_authentications ...'
822
+ end
823
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
824
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_all_application_authentications, must be smaller than or equal to 1000.'
825
+ end
826
+
827
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
828
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_all_application_authentications, must be greater than or equal to 1.'
829
+ end
830
+
831
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
832
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_all_application_authentications, must be greater than or equal to 0.'
833
+ end
834
+
835
+ # resource path
836
+ local_var_path = '/application_authentications'
837
+
838
+ # query parameters
839
+ query_params = opts[:query_params] || {}
840
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
841
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
842
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
843
+ query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
844
+
845
+ # header parameters
846
+ header_params = opts[:header_params] || {}
847
+ # HTTP header 'Accept' (if needed)
848
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
849
+
850
+ # form parameters
851
+ form_params = opts[:form_params] || {}
852
+
853
+ # http body (model)
854
+ post_body = opts[:body]
855
+
856
+ # return_type
857
+ return_type = opts[:return_type] || 'ApplicationAuthenticationsCollection'
858
+
859
+ # auth_names
860
+ auth_names = opts[:auth_names] || ['UserSecurity']
861
+
862
+ new_options = opts.merge(
863
+ :header_params => header_params,
864
+ :query_params => query_params,
865
+ :form_params => form_params,
866
+ :body => post_body,
867
+ :auth_names => auth_names,
868
+ :return_type => return_type
869
+ )
870
+
871
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
872
+ if @api_client.config.debugging
873
+ @api_client.config.logger.debug "API called: DefaultApi#list_all_application_authentications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
874
+ end
875
+ return data, status_code, headers
876
+ end
877
+
878
+ # List Authentications for Application
879
+ # Returns an array of Authentication objects
880
+ # @param id [String] ID of the resource
881
+ # @param [Hash] opts the optional parameters
882
+ # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
883
+ # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
884
+ # @option opts [Object] :filter Filter for querying collections.
885
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
886
+ # @return [AuthenticationsCollection]
887
+ def list_application_authentications(id, opts = {})
888
+ data, _status_code, _headers = list_application_authentications_with_http_info(id, opts)
889
+ data
890
+ end
891
+
892
+ # List Authentications for Application
893
+ # Returns an array of Authentication objects
894
+ # @param id [String] ID of the resource
895
+ # @param [Hash] opts the optional parameters
896
+ # @option opts [Integer] :limit The numbers of items to return per page.
897
+ # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
898
+ # @option opts [Object] :filter Filter for querying collections.
899
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
900
+ # @return [Array<(AuthenticationsCollection, Integer, Hash)>] AuthenticationsCollection data, response status code and response headers
901
+ def list_application_authentications_with_http_info(id, opts = {})
902
+ if @api_client.config.debugging
903
+ @api_client.config.logger.debug 'Calling API: DefaultApi.list_application_authentications ...'
904
+ end
905
+ # verify the required parameter 'id' is set
906
+ if @api_client.config.client_side_validation && id.nil?
907
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_application_authentications"
908
+ end
909
+ pattern = Regexp.new(/^\d+$/)
910
+ if @api_client.config.client_side_validation && id !~ pattern
911
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_application_authentications, must conform to the pattern #{pattern}."
912
+ end
913
+
914
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
915
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_authentications, must be smaller than or equal to 1000.'
916
+ end
917
+
918
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
919
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_authentications, must be greater than or equal to 1.'
920
+ end
921
+
922
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
923
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_application_authentications, must be greater than or equal to 0.'
924
+ end
925
+
926
+ # resource path
927
+ local_var_path = '/applications/{id}/authentications'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
928
+
929
+ # query parameters
930
+ query_params = opts[:query_params] || {}
931
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
932
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
933
+ query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil?
934
+ query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
935
+
936
+ # header parameters
937
+ header_params = opts[:header_params] || {}
938
+ # HTTP header 'Accept' (if needed)
939
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
940
+
941
+ # form parameters
942
+ form_params = opts[:form_params] || {}
943
+
944
+ # http body (model)
945
+ post_body = opts[:body]
946
+
947
+ # return_type
948
+ return_type = opts[:return_type] || 'AuthenticationsCollection'
949
+
950
+ # auth_names
951
+ auth_names = opts[:auth_names] || ['UserSecurity']
952
+
953
+ new_options = opts.merge(
954
+ :header_params => header_params,
955
+ :query_params => query_params,
956
+ :form_params => form_params,
957
+ :body => post_body,
958
+ :auth_names => auth_names,
959
+ :return_type => return_type
960
+ )
961
+
962
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
963
+ if @api_client.config.debugging
964
+ @api_client.config.logger.debug "API called: DefaultApi#list_application_authentications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
965
+ end
966
+ return data, status_code, headers
967
+ end
968
+
731
969
  # List Sources for ApplicationType
732
970
  # Returns an array of Source objects
733
971
  # @param id [String] ID of the resource
@@ -735,7 +973,7 @@ module SourcesApiClient
735
973
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
736
974
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
737
975
  # @option opts [Object] :filter Filter for querying collections.
738
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
976
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
739
977
  # @return [SourcesCollection]
740
978
  def list_application_type_sources(id, opts = {})
741
979
  data, _status_code, _headers = list_application_type_sources_with_http_info(id, opts)
@@ -749,7 +987,7 @@ module SourcesApiClient
749
987
  # @option opts [Integer] :limit The numbers of items to return per page.
750
988
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
751
989
  # @option opts [Object] :filter Filter for querying collections.
752
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
990
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
753
991
  # @return [Array<(SourcesCollection, Integer, Hash)>] SourcesCollection data, response status code and response headers
754
992
  def list_application_type_sources_with_http_info(id, opts = {})
755
993
  if @api_client.config.debugging
@@ -825,7 +1063,7 @@ module SourcesApiClient
825
1063
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
826
1064
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
827
1065
  # @option opts [Object] :filter Filter for querying collections.
828
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1066
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
829
1067
  # @return [ApplicationTypesCollection]
830
1068
  def list_application_types(opts = {})
831
1069
  data, _status_code, _headers = list_application_types_with_http_info(opts)
@@ -838,7 +1076,7 @@ module SourcesApiClient
838
1076
  # @option opts [Integer] :limit The numbers of items to return per page.
839
1077
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
840
1078
  # @option opts [Object] :filter Filter for querying collections.
841
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1079
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
842
1080
  # @return [Array<(ApplicationTypesCollection, Integer, Hash)>] ApplicationTypesCollection data, response status code and response headers
843
1081
  def list_application_types_with_http_info(opts = {})
844
1082
  if @api_client.config.debugging
@@ -905,7 +1143,7 @@ module SourcesApiClient
905
1143
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
906
1144
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
907
1145
  # @option opts [Object] :filter Filter for querying collections.
908
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1146
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
909
1147
  # @return [ApplicationsCollection]
910
1148
  def list_applications(opts = {})
911
1149
  data, _status_code, _headers = list_applications_with_http_info(opts)
@@ -918,7 +1156,7 @@ module SourcesApiClient
918
1156
  # @option opts [Integer] :limit The numbers of items to return per page.
919
1157
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
920
1158
  # @option opts [Object] :filter Filter for querying collections.
921
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1159
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
922
1160
  # @return [Array<(ApplicationsCollection, Integer, Hash)>] ApplicationsCollection data, response status code and response headers
923
1161
  def list_applications_with_http_info(opts = {})
924
1162
  if @api_client.config.debugging
@@ -985,7 +1223,7 @@ module SourcesApiClient
985
1223
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
986
1224
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
987
1225
  # @option opts [Object] :filter Filter for querying collections.
988
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1226
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
989
1227
  # @return [AuthenticationsCollection]
990
1228
  def list_authentications(opts = {})
991
1229
  data, _status_code, _headers = list_authentications_with_http_info(opts)
@@ -998,7 +1236,7 @@ module SourcesApiClient
998
1236
  # @option opts [Integer] :limit The numbers of items to return per page.
999
1237
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
1000
1238
  # @option opts [Object] :filter Filter for querying collections.
1001
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1239
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1002
1240
  # @return [Array<(AuthenticationsCollection, Integer, Hash)>] AuthenticationsCollection data, response status code and response headers
1003
1241
  def list_authentications_with_http_info(opts = {})
1004
1242
  if @api_client.config.debugging
@@ -1066,7 +1304,7 @@ module SourcesApiClient
1066
1304
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
1067
1305
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
1068
1306
  # @option opts [Object] :filter Filter for querying collections.
1069
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1307
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1070
1308
  # @return [AuthenticationsCollection]
1071
1309
  def list_endpoint_authentications(id, opts = {})
1072
1310
  data, _status_code, _headers = list_endpoint_authentications_with_http_info(id, opts)
@@ -1080,7 +1318,7 @@ module SourcesApiClient
1080
1318
  # @option opts [Integer] :limit The numbers of items to return per page.
1081
1319
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
1082
1320
  # @option opts [Object] :filter Filter for querying collections.
1083
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1321
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1084
1322
  # @return [Array<(AuthenticationsCollection, Integer, Hash)>] AuthenticationsCollection data, response status code and response headers
1085
1323
  def list_endpoint_authentications_with_http_info(id, opts = {})
1086
1324
  if @api_client.config.debugging
@@ -1156,7 +1394,7 @@ module SourcesApiClient
1156
1394
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
1157
1395
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
1158
1396
  # @option opts [Object] :filter Filter for querying collections.
1159
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1397
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1160
1398
  # @return [EndpointsCollection]
1161
1399
  def list_endpoints(opts = {})
1162
1400
  data, _status_code, _headers = list_endpoints_with_http_info(opts)
@@ -1169,7 +1407,7 @@ module SourcesApiClient
1169
1407
  # @option opts [Integer] :limit The numbers of items to return per page.
1170
1408
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
1171
1409
  # @option opts [Object] :filter Filter for querying collections.
1172
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1410
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1173
1411
  # @return [Array<(EndpointsCollection, Integer, Hash)>] EndpointsCollection data, response status code and response headers
1174
1412
  def list_endpoints_with_http_info(opts = {})
1175
1413
  if @api_client.config.debugging
@@ -1237,7 +1475,7 @@ module SourcesApiClient
1237
1475
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
1238
1476
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
1239
1477
  # @option opts [Object] :filter Filter for querying collections.
1240
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1478
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1241
1479
  # @return [ApplicationTypesCollection]
1242
1480
  def list_source_application_types(id, opts = {})
1243
1481
  data, _status_code, _headers = list_source_application_types_with_http_info(id, opts)
@@ -1251,7 +1489,7 @@ module SourcesApiClient
1251
1489
  # @option opts [Integer] :limit The numbers of items to return per page.
1252
1490
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
1253
1491
  # @option opts [Object] :filter Filter for querying collections.
1254
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1492
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1255
1493
  # @return [Array<(ApplicationTypesCollection, Integer, Hash)>] ApplicationTypesCollection data, response status code and response headers
1256
1494
  def list_source_application_types_with_http_info(id, opts = {})
1257
1495
  if @api_client.config.debugging
@@ -1328,7 +1566,7 @@ module SourcesApiClient
1328
1566
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
1329
1567
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
1330
1568
  # @option opts [Object] :filter Filter for querying collections.
1331
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1569
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1332
1570
  # @return [ApplicationsCollection]
1333
1571
  def list_source_applications(id, opts = {})
1334
1572
  data, _status_code, _headers = list_source_applications_with_http_info(id, opts)
@@ -1342,7 +1580,7 @@ module SourcesApiClient
1342
1580
  # @option opts [Integer] :limit The numbers of items to return per page.
1343
1581
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
1344
1582
  # @option opts [Object] :filter Filter for querying collections.
1345
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1583
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1346
1584
  # @return [Array<(ApplicationsCollection, Integer, Hash)>] ApplicationsCollection data, response status code and response headers
1347
1585
  def list_source_applications_with_http_info(id, opts = {})
1348
1586
  if @api_client.config.debugging
@@ -1419,7 +1657,7 @@ module SourcesApiClient
1419
1657
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
1420
1658
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
1421
1659
  # @option opts [Object] :filter Filter for querying collections.
1422
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1660
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1423
1661
  # @return [EndpointsCollection]
1424
1662
  def list_source_endpoints(id, opts = {})
1425
1663
  data, _status_code, _headers = list_source_endpoints_with_http_info(id, opts)
@@ -1433,7 +1671,7 @@ module SourcesApiClient
1433
1671
  # @option opts [Integer] :limit The numbers of items to return per page.
1434
1672
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
1435
1673
  # @option opts [Object] :filter Filter for querying collections.
1436
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1674
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1437
1675
  # @return [Array<(EndpointsCollection, Integer, Hash)>] EndpointsCollection data, response status code and response headers
1438
1676
  def list_source_endpoints_with_http_info(id, opts = {})
1439
1677
  if @api_client.config.debugging
@@ -1510,7 +1748,7 @@ module SourcesApiClient
1510
1748
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
1511
1749
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
1512
1750
  # @option opts [Object] :filter Filter for querying collections.
1513
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1751
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1514
1752
  # @return [SourcesCollection]
1515
1753
  def list_source_type_sources(id, opts = {})
1516
1754
  data, _status_code, _headers = list_source_type_sources_with_http_info(id, opts)
@@ -1524,7 +1762,7 @@ module SourcesApiClient
1524
1762
  # @option opts [Integer] :limit The numbers of items to return per page.
1525
1763
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
1526
1764
  # @option opts [Object] :filter Filter for querying collections.
1527
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1765
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1528
1766
  # @return [Array<(SourcesCollection, Integer, Hash)>] SourcesCollection data, response status code and response headers
1529
1767
  def list_source_type_sources_with_http_info(id, opts = {})
1530
1768
  if @api_client.config.debugging
@@ -1600,7 +1838,7 @@ module SourcesApiClient
1600
1838
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
1601
1839
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
1602
1840
  # @option opts [Object] :filter Filter for querying collections.
1603
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1841
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1604
1842
  # @return [SourceTypesCollection]
1605
1843
  def list_source_types(opts = {})
1606
1844
  data, _status_code, _headers = list_source_types_with_http_info(opts)
@@ -1613,7 +1851,7 @@ module SourcesApiClient
1613
1851
  # @option opts [Integer] :limit The numbers of items to return per page.
1614
1852
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
1615
1853
  # @option opts [Object] :filter Filter for querying collections.
1616
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1854
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1617
1855
  # @return [Array<(SourceTypesCollection, Integer, Hash)>] SourceTypesCollection data, response status code and response headers
1618
1856
  def list_source_types_with_http_info(opts = {})
1619
1857
  if @api_client.config.debugging
@@ -1680,7 +1918,7 @@ module SourcesApiClient
1680
1918
  # @option opts [Integer] :limit The numbers of items to return per page. (default to 100)
1681
1919
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0)
1682
1920
  # @option opts [Object] :filter Filter for querying collections.
1683
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1921
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1684
1922
  # @return [SourcesCollection]
1685
1923
  def list_sources(opts = {})
1686
1924
  data, _status_code, _headers = list_sources_with_http_info(opts)
@@ -1693,7 +1931,7 @@ module SourcesApiClient
1693
1931
  # @option opts [Integer] :limit The numbers of items to return per page.
1694
1932
  # @option opts [Integer] :offset The number of items to skip before starting to collect the result set.
1695
1933
  # @option opts [Object] :filter Filter for querying collections.
1696
- # @option opts [OneOfstringarray] :sort_by The list of attribute and order to sort the result set by.
1934
+ # @option opts [Object] :sort_by The list of attribute and order to sort the result set by.
1697
1935
  # @return [Array<(SourcesCollection, Integer, Hash)>] SourcesCollection data, response status code and response headers
1698
1936
  def list_sources_with_http_info(opts = {})
1699
1937
  if @api_client.config.debugging
@@ -1885,6 +2123,73 @@ module SourcesApiClient
1885
2123
  return data, status_code, headers
1886
2124
  end
1887
2125
 
2126
+ # Show an existing ApplicationAuthentication
2127
+ # Returns a ApplicationAuthentication object
2128
+ # @param id [String] ID of the resource
2129
+ # @param [Hash] opts the optional parameters
2130
+ # @return [ApplicationAuthentication]
2131
+ def show_application_authentication(id, opts = {})
2132
+ data, _status_code, _headers = show_application_authentication_with_http_info(id, opts)
2133
+ data
2134
+ end
2135
+
2136
+ # Show an existing ApplicationAuthentication
2137
+ # Returns a ApplicationAuthentication object
2138
+ # @param id [String] ID of the resource
2139
+ # @param [Hash] opts the optional parameters
2140
+ # @return [Array<(ApplicationAuthentication, Integer, Hash)>] ApplicationAuthentication data, response status code and response headers
2141
+ def show_application_authentication_with_http_info(id, opts = {})
2142
+ if @api_client.config.debugging
2143
+ @api_client.config.logger.debug 'Calling API: DefaultApi.show_application_authentication ...'
2144
+ end
2145
+ # verify the required parameter 'id' is set
2146
+ if @api_client.config.client_side_validation && id.nil?
2147
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_application_authentication"
2148
+ end
2149
+ pattern = Regexp.new(/^\d+$/)
2150
+ if @api_client.config.client_side_validation && id !~ pattern
2151
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_application_authentication, must conform to the pattern #{pattern}."
2152
+ end
2153
+
2154
+ # resource path
2155
+ local_var_path = '/application_authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2156
+
2157
+ # query parameters
2158
+ query_params = opts[:query_params] || {}
2159
+
2160
+ # header parameters
2161
+ header_params = opts[:header_params] || {}
2162
+ # HTTP header 'Accept' (if needed)
2163
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2164
+
2165
+ # form parameters
2166
+ form_params = opts[:form_params] || {}
2167
+
2168
+ # http body (model)
2169
+ post_body = opts[:body]
2170
+
2171
+ # return_type
2172
+ return_type = opts[:return_type] || 'ApplicationAuthentication'
2173
+
2174
+ # auth_names
2175
+ auth_names = opts[:auth_names] || ['UserSecurity']
2176
+
2177
+ new_options = opts.merge(
2178
+ :header_params => header_params,
2179
+ :query_params => query_params,
2180
+ :form_params => form_params,
2181
+ :body => post_body,
2182
+ :auth_names => auth_names,
2183
+ :return_type => return_type
2184
+ )
2185
+
2186
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2187
+ if @api_client.config.debugging
2188
+ @api_client.config.logger.debug "API called: DefaultApi#show_application_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2189
+ end
2190
+ return data, status_code, headers
2191
+ end
2192
+
1888
2193
  # Show an existing ApplicationType
1889
2194
  # Returns a ApplicationType object
1890
2195
  # @param id [String] ID of the resource
@@ -2295,6 +2600,81 @@ module SourcesApiClient
2295
2600
  return data, status_code, headers
2296
2601
  end
2297
2602
 
2603
+ # Update an existing ApplicationAuthentication
2604
+ # Updates a ApplicationAuthentication object
2605
+ # @param id [String] ID of the resource
2606
+ # @param application_authentication [ApplicationAuthentication] ApplicationAuthentication attributes to update
2607
+ # @param [Hash] opts the optional parameters
2608
+ # @return [nil]
2609
+ def update_application_authentication(id, application_authentication, opts = {})
2610
+ update_application_authentication_with_http_info(id, application_authentication, opts)
2611
+ nil
2612
+ end
2613
+
2614
+ # Update an existing ApplicationAuthentication
2615
+ # Updates a ApplicationAuthentication object
2616
+ # @param id [String] ID of the resource
2617
+ # @param application_authentication [ApplicationAuthentication] ApplicationAuthentication attributes to update
2618
+ # @param [Hash] opts the optional parameters
2619
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2620
+ def update_application_authentication_with_http_info(id, application_authentication, opts = {})
2621
+ if @api_client.config.debugging
2622
+ @api_client.config.logger.debug 'Calling API: DefaultApi.update_application_authentication ...'
2623
+ end
2624
+ # verify the required parameter 'id' is set
2625
+ if @api_client.config.client_side_validation && id.nil?
2626
+ fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_application_authentication"
2627
+ end
2628
+ pattern = Regexp.new(/^\d+$/)
2629
+ if @api_client.config.client_side_validation && id !~ pattern
2630
+ fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_application_authentication, must conform to the pattern #{pattern}."
2631
+ end
2632
+
2633
+ # verify the required parameter 'application_authentication' is set
2634
+ if @api_client.config.client_side_validation && application_authentication.nil?
2635
+ fail ArgumentError, "Missing the required parameter 'application_authentication' when calling DefaultApi.update_application_authentication"
2636
+ end
2637
+ # resource path
2638
+ local_var_path = '/application_authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2639
+
2640
+ # query parameters
2641
+ query_params = opts[:query_params] || {}
2642
+
2643
+ # header parameters
2644
+ header_params = opts[:header_params] || {}
2645
+ # HTTP header 'Accept' (if needed)
2646
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2647
+ # HTTP header 'Content-Type'
2648
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2649
+
2650
+ # form parameters
2651
+ form_params = opts[:form_params] || {}
2652
+
2653
+ # http body (model)
2654
+ post_body = opts[:body] || @api_client.object_to_http_body(application_authentication)
2655
+
2656
+ # return_type
2657
+ return_type = opts[:return_type]
2658
+
2659
+ # auth_names
2660
+ auth_names = opts[:auth_names] || ['UserSecurity']
2661
+
2662
+ new_options = opts.merge(
2663
+ :header_params => header_params,
2664
+ :query_params => query_params,
2665
+ :form_params => form_params,
2666
+ :body => post_body,
2667
+ :auth_names => auth_names,
2668
+ :return_type => return_type
2669
+ )
2670
+
2671
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2672
+ if @api_client.config.debugging
2673
+ @api_client.config.logger.debug "API called: DefaultApi#update_application_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2674
+ end
2675
+ return data, status_code, headers
2676
+ end
2677
+
2298
2678
  # Update an existing Authentication
2299
2679
  # Updates a Authentication object
2300
2680
  # @param id [String] ID of the resource