class SourcesApiClient::DefaultApi
Attributes
Public Class Methods
# File lib/sources-api-client/api/default_api.rb, line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
Checks Availability of a Source
Checks Availability of a Source
@param id [String] ID of the resource @param [Hash] opts the optional parameters @return [nil]
# File lib/sources-api-client/api/default_api.rb, line 27 def check_availability_source(id, opts = {}) check_availability_source_with_http_info(id, opts) nil end
Checks Availability of a Source
Checks Availability of a Source
@param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 37 def check_availability_source_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.check_availability_source ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.check_availability_source" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.check_availability_source, must conform to the pattern #{pattern}." end # resource path local_var_path = '/sources/{id}/check_availability'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#check_availability_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Create a new Application
Creates a Application
object @param application [Application] Application
attributes to create @param [Hash] opts the optional parameters @return [Application]
# File lib/sources-api-client/api/default_api.rb, line 94 def create_application(application, opts = {}) data, _status_code, _headers = create_application_with_http_info(application, opts) data end
Create a new ApplicationAuthentication
Creates a ApplicationAuthentication
object @param application_authentication [ApplicationAuthentication] ApplicationAuthentication
attributes to create @param [Hash] opts the optional parameters @return [ApplicationAuthentication]
# File lib/sources-api-client/api/default_api.rb, line 158 def create_application_authentication(application_authentication, opts = {}) data, _status_code, _headers = create_application_authentication_with_http_info(application_authentication, opts) data end
Create a new ApplicationAuthentication
Creates a ApplicationAuthentication
object @param application_authentication [ApplicationAuthentication] ApplicationAuthentication
attributes to create @param [Hash] opts the optional parameters @return [Array<(ApplicationAuthentication
, Integer, Hash)>] ApplicationAuthentication
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 168 def create_application_authentication_with_http_info(application_authentication, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_application_authentication ...' end # verify the required parameter 'application_authentication' is set if @api_client.config.client_side_validation && application_authentication.nil? fail ArgumentError, "Missing the required parameter 'application_authentication' when calling DefaultApi.create_application_authentication" end # resource path local_var_path = '/application_authentications' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(application_authentication) # return_type return_type = opts[:return_type] || 'ApplicationAuthentication' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_application_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Create a new Application
Creates a Application
object @param application [Application] Application
attributes to create @param [Hash] opts the optional parameters @return [Array<(Application
, Integer, Hash)>] Application
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 104 def create_application_with_http_info(application, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_application ...' end # verify the required parameter 'application' is set if @api_client.config.client_side_validation && application.nil? fail ArgumentError, "Missing the required parameter 'application' when calling DefaultApi.create_application" end # resource path local_var_path = '/applications' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(application) # return_type return_type = opts[:return_type] || 'Application' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Create a new Authentication
Creates a Authentication
object @param authentication [Authentication] Authentication
attributes to create @param [Hash] opts the optional parameters @return [Authentication]
# File lib/sources-api-client/api/default_api.rb, line 222 def create_authentication(authentication, opts = {}) data, _status_code, _headers = create_authentication_with_http_info(authentication, opts) data end
Create a new Authentication
Creates a Authentication
object @param authentication [Authentication] Authentication
attributes to create @param [Hash] opts the optional parameters @return [Array<(Authentication
, Integer, Hash)>] Authentication
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 232 def create_authentication_with_http_info(authentication, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_authentication ...' end # verify the required parameter 'authentication' is set if @api_client.config.client_side_validation && authentication.nil? fail ArgumentError, "Missing the required parameter 'authentication' when calling DefaultApi.create_authentication" end # resource path local_var_path = '/authentications' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(authentication) # return_type return_type = opts[:return_type] || 'Authentication' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Create a new Endpoint
Creates a Endpoint
object @param endpoint [Endpoint] Endpoint
attributes to create @param [Hash] opts the optional parameters @return [Endpoint]
# File lib/sources-api-client/api/default_api.rb, line 286 def create_endpoint(endpoint, opts = {}) data, _status_code, _headers = create_endpoint_with_http_info(endpoint, opts) data end
Create a new Endpoint
Creates a Endpoint
object @param endpoint [Endpoint] Endpoint
attributes to create @param [Hash] opts the optional parameters @return [Array<(Endpoint
, Integer, Hash)>] Endpoint
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 296 def create_endpoint_with_http_info(endpoint, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_endpoint ...' end # verify the required parameter 'endpoint' is set if @api_client.config.client_side_validation && endpoint.nil? fail ArgumentError, "Missing the required parameter 'endpoint' when calling DefaultApi.create_endpoint" end # resource path local_var_path = '/endpoints' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(endpoint) # return_type return_type = opts[:return_type] || 'Endpoint' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Create a new Source
Creates a Source
object @param source [Source] Source
attributes to create @param [Hash] opts the optional parameters @return [Source]
# File lib/sources-api-client/api/default_api.rb, line 350 def create_source(source, opts = {}) data, _status_code, _headers = create_source_with_http_info(source, opts) data end
Create a new Source
Creates a Source
object @param source [Source] Source
attributes to create @param [Hash] opts the optional parameters @return [Array<(Source
, Integer, Hash)>] Source
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 360 def create_source_with_http_info(source, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_source ...' end # verify the required parameter 'source' is set if @api_client.config.client_side_validation && source.nil? fail ArgumentError, "Missing the required parameter 'source' when calling DefaultApi.create_source" end # resource path local_var_path = '/sources' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(source) # return_type return_type = opts[:return_type] || 'Source' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#create_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Delete an existing Application
Deletes a Application
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [nil]
# File lib/sources-api-client/api/default_api.rb, line 414 def delete_application(id, opts = {}) delete_application_with_http_info(id, opts) nil end
Delete an existing ApplicationAuthentication
Deletes a ApplicationAuthentication
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [nil]
# File lib/sources-api-client/api/default_api.rb, line 481 def delete_application_authentication(id, opts = {}) delete_application_authentication_with_http_info(id, opts) nil end
Delete an existing ApplicationAuthentication
Deletes a ApplicationAuthentication
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 491 def delete_application_authentication_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_application_authentication ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_application_authentication" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_application_authentication, must conform to the pattern #{pattern}." end # resource path local_var_path = '/application_authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#delete_application_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Delete an existing Application
Deletes a Application
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 424 def delete_application_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_application ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_application" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_application, must conform to the pattern #{pattern}." end # resource path local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#delete_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Delete an existing Authentication
Deletes a Authentication
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [nil]
# File lib/sources-api-client/api/default_api.rb, line 548 def delete_authentication(id, opts = {}) delete_authentication_with_http_info(id, opts) nil end
Delete an existing Authentication
Deletes a Authentication
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 558 def delete_authentication_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_authentication ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_authentication" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_authentication, must conform to the pattern #{pattern}." end # resource path local_var_path = '/authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#delete_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Delete an existing Endpoint
Deletes a Endpoint
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 625 def delete_endpoint_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_endpoint ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_endpoint" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_endpoint, must conform to the pattern #{pattern}." end # resource path local_var_path = '/endpoints/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#delete_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Delete an existing Source
Deletes a Source
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 692 def delete_source_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.delete_source ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.delete_source" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.delete_source, must conform to the pattern #{pattern}." end # resource path local_var_path = '/sources/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#delete_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Return this API document in JSON format @param [Hash] opts the optional parameters @return [Object]
# File lib/sources-api-client/api/default_api.rb, line 747 def get_documentation(opts = {}) data, _status_code, _headers = get_documentation_with_http_info(opts) data end
Return this API document in JSON format @param [Hash] opts the optional parameters @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 755 def get_documentation_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.get_documentation ...' end # resource path local_var_path = '/openapi.json' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Object' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#get_documentation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ApplicationAuthentications Returns an array of ApplicationAuthentication
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ApplicationAuthenticationsCollection]
# File lib/sources-api-client/api/default_api.rb, line 806 def list_all_application_authentications(opts = {}) data, _status_code, _headers = list_all_application_authentications_with_http_info(opts) data end
List ApplicationAuthentications Returns an array of ApplicationAuthentication
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ApplicationAuthenticationsCollection
, Integer, Hash)>] ApplicationAuthenticationsCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 819 def list_all_application_authentications_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_all_application_authentications ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_all_application_authentications, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_all_application_authentications, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_all_application_authentications, must be greater than or equal to 0.' end # resource path local_var_path = '/application_authentications' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ApplicationAuthenticationsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_all_application_authentications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Authentications for Application
Returns an array of Authentication
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [AuthenticationsCollection]
# File lib/sources-api-client/api/default_api.rb, line 887 def list_application_authentications(id, opts = {}) data, _status_code, _headers = list_application_authentications_with_http_info(id, opts) data end
List Authentications for Application
Returns an array of Authentication
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(AuthenticationsCollection
, Integer, Hash)>] AuthenticationsCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 901 def list_application_authentications_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_application_authentications ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_application_authentications" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_application_authentications, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_authentications, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_authentications, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_application_authentications, must be greater than or equal to 0.' end # resource path local_var_path = '/applications/{id}/authentications'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'AuthenticationsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_application_authentications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Sources for ApplicationType
Returns an array of Source
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SourcesCollection]
# File lib/sources-api-client/api/default_api.rb, line 978 def list_application_type_sources(id, opts = {}) data, _status_code, _headers = list_application_type_sources_with_http_info(id, opts) data end
List Sources for ApplicationType
Returns an array of Source
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SourcesCollection
, Integer, Hash)>] SourcesCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 992 def list_application_type_sources_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_application_type_sources ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_application_type_sources" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_application_type_sources, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_type_sources, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_type_sources, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_application_type_sources, must be greater than or equal to 0.' end # resource path local_var_path = '/application_types/{id}/sources'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SourcesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_application_type_sources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ApplicationTypes Returns an array of ApplicationType
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ApplicationTypesCollection]
# File lib/sources-api-client/api/default_api.rb, line 1068 def list_application_types(opts = {}) data, _status_code, _headers = list_application_types_with_http_info(opts) data end
List ApplicationTypes Returns an array of ApplicationType
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ApplicationTypesCollection
, Integer, Hash)>] ApplicationTypesCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1081 def list_application_types_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_application_types ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_types, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_application_types, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_application_types, must be greater than or equal to 0.' end # resource path local_var_path = '/application_types' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ApplicationTypesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_application_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Applications Returns an array of Application
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ApplicationsCollection]
# File lib/sources-api-client/api/default_api.rb, line 1148 def list_applications(opts = {}) data, _status_code, _headers = list_applications_with_http_info(opts) data end
List Applications Returns an array of Application
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ApplicationsCollection
, Integer, Hash)>] ApplicationsCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1161 def list_applications_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_applications ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_applications, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_applications, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_applications, must be greater than or equal to 0.' end # resource path local_var_path = '/applications' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ApplicationsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Authentications Returns an array of Authentication
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [AuthenticationsCollection]
# File lib/sources-api-client/api/default_api.rb, line 1228 def list_authentications(opts = {}) data, _status_code, _headers = list_authentications_with_http_info(opts) data end
List Authentications Returns an array of Authentication
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(AuthenticationsCollection
, Integer, Hash)>] AuthenticationsCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1241 def list_authentications_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_authentications ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_authentications, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_authentications, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_authentications, must be greater than or equal to 0.' end # resource path local_var_path = '/authentications' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'AuthenticationsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_authentications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Authentications for Endpoint
Returns an array of Authentication
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [AuthenticationsCollection]
# File lib/sources-api-client/api/default_api.rb, line 1309 def list_endpoint_authentications(id, opts = {}) data, _status_code, _headers = list_endpoint_authentications_with_http_info(id, opts) data end
List Authentications for Endpoint
Returns an array of Authentication
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(AuthenticationsCollection
, Integer, Hash)>] AuthenticationsCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1323 def list_endpoint_authentications_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_endpoint_authentications ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_endpoint_authentications" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_endpoint_authentications, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_endpoint_authentications, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_endpoint_authentications, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_endpoint_authentications, must be greater than or equal to 0.' end # resource path local_var_path = '/endpoints/{id}/authentications'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'AuthenticationsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_endpoint_authentications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Endpoints Returns an array of Endpoint
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [EndpointsCollection]
# File lib/sources-api-client/api/default_api.rb, line 1399 def list_endpoints(opts = {}) data, _status_code, _headers = list_endpoints_with_http_info(opts) data end
List Endpoints Returns an array of Endpoint
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(EndpointsCollection
, Integer, Hash)>] EndpointsCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1412 def list_endpoints_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_endpoints ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_endpoints, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_endpoints, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_endpoints, must be greater than or equal to 0.' end # resource path local_var_path = '/endpoints' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'EndpointsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List ApplicationTypes for Source
Returns an array of ApplicationType
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ApplicationTypesCollection]
# File lib/sources-api-client/api/default_api.rb, line 1480 def list_source_application_types(id, opts = {}) data, _status_code, _headers = list_source_application_types_with_http_info(id, opts) data end
List ApplicationTypes for Source
Returns an array of ApplicationType
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ApplicationTypesCollection
, Integer, Hash)>] ApplicationTypesCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1494 def list_source_application_types_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_application_types ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_application_types" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_application_types, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_application_types, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_application_types, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_application_types, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/application_types'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ApplicationTypesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_application_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Applications for Source
Returns an array of Application
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [ApplicationsCollection]
# File lib/sources-api-client/api/default_api.rb, line 1571 def list_source_applications(id, opts = {}) data, _status_code, _headers = list_source_applications_with_http_info(id, opts) data end
List Applications for Source
Returns an array of Application
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(ApplicationsCollection
, Integer, Hash)>] ApplicationsCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1585 def list_source_applications_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_applications ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_applications" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_applications, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_applications, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_applications, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_applications, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/applications'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ApplicationsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Endpoints for Source
Returns an array of Endpoint
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [EndpointsCollection]
# File lib/sources-api-client/api/default_api.rb, line 1662 def list_source_endpoints(id, opts = {}) data, _status_code, _headers = list_source_endpoints_with_http_info(id, opts) data end
List Endpoints for Source
Returns an array of Endpoint
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(EndpointsCollection
, Integer, Hash)>] EndpointsCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1676 def list_source_endpoints_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_endpoints ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_endpoints" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_endpoints, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_endpoints, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_endpoints, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_endpoints, must be greater than or equal to 0.' end # resource path local_var_path = '/sources/{id}/endpoints'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'EndpointsCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_endpoints\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Sources for SourceType
Returns an array of Source
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SourcesCollection]
# File lib/sources-api-client/api/default_api.rb, line 1753 def list_source_type_sources(id, opts = {}) data, _status_code, _headers = list_source_type_sources_with_http_info(id, opts) data end
List Sources for SourceType
Returns an array of Source
objects @param id [String] ID of the resource @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SourcesCollection
, Integer, Hash)>] SourcesCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1767 def list_source_type_sources_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_type_sources ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.list_source_type_sources" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.list_source_type_sources, must conform to the pattern #{pattern}." end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_type_sources, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_type_sources, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_type_sources, must be greater than or equal to 0.' end # resource path local_var_path = '/source_types/{id}/sources'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SourcesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_type_sources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List SourceTypes Returns an array of SourceType
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SourceTypesCollection]
# File lib/sources-api-client/api/default_api.rb, line 1843 def list_source_types(opts = {}) data, _status_code, _headers = list_source_types_with_http_info(opts) data end
List SourceTypes Returns an array of SourceType
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SourceTypesCollection
, Integer, Hash)>] SourceTypesCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1856 def list_source_types_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_source_types ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_types, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_source_types, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_source_types, must be greater than or equal to 0.' end # resource path local_var_path = '/source_types' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SourceTypesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_source_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
List Sources Returns an array of Source
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. (default to 100) @option opts [Integer] :offset The number of items to skip before starting to collect the result set. (default to 0) @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [SourcesCollection]
# File lib/sources-api-client/api/default_api.rb, line 1923 def list_sources(opts = {}) data, _status_code, _headers = list_sources_with_http_info(opts) data end
List Sources Returns an array of Source
objects @param [Hash] opts the optional parameters @option opts [Integer] :limit The numbers of items to return per page. @option opts [Integer] :offset The number of items to skip before starting to collect the result set. @option opts [Object] :filter Filter for querying collections. @option opts [Object] :sort_by The list of attribute and order to sort the result set by. @return [Array<(SourcesCollection
, Integer, Hash)>] SourcesCollection
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 1936 def list_sources_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_sources ...' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_sources, must be smaller than or equal to 1000.' end if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1 fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling DefaultApi.list_sources, must be greater than or equal to 1.' end if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0 fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling DefaultApi.list_sources, must be greater than or equal to 0.' end # resource path local_var_path = '/sources' # query parameters query_params = opts[:query_params] || {} query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? query_params[:'filter'] = opts[:'filter'] if !opts[:'filter'].nil? query_params[:'sort_by'] = opts[:'sort_by'] if !opts[:'sort_by'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SourcesCollection' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#list_sources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Perform a GraphQL Query Performs a GraphQL Query @param graph_ql_request [GraphQLRequest] GraphQL Query Request @param [Hash] opts the optional parameters @return [GraphQLResponse]
# File lib/sources-api-client/api/default_api.rb, line 2000 def post_graph_ql(graph_ql_request, opts = {}) data, _status_code, _headers = post_graph_ql_with_http_info(graph_ql_request, opts) data end
Perform a GraphQL Query Performs a GraphQL Query @param graph_ql_request [GraphQLRequest] GraphQL Query Request @param [Hash] opts the optional parameters @return [Array<(GraphQLResponse
, Integer, Hash)>] GraphQLResponse
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2010 def post_graph_ql_with_http_info(graph_ql_request, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.post_graph_ql ...' end # verify the required parameter 'graph_ql_request' is set if @api_client.config.client_side_validation && graph_ql_request.nil? fail ArgumentError, "Missing the required parameter 'graph_ql_request' when calling DefaultApi.post_graph_ql" end # resource path local_var_path = '/graphql' # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(graph_ql_request) # return_type return_type = opts[:return_type] || 'GraphQLResponse' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#post_graph_ql\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Application
Returns a Application
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Application]
# File lib/sources-api-client/api/default_api.rb, line 2064 def show_application(id, opts = {}) data, _status_code, _headers = show_application_with_http_info(id, opts) data end
Show an existing ApplicationAuthentication
Returns a ApplicationAuthentication
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ApplicationAuthentication]
# File lib/sources-api-client/api/default_api.rb, line 2131 def show_application_authentication(id, opts = {}) data, _status_code, _headers = show_application_authentication_with_http_info(id, opts) data end
Show an existing ApplicationAuthentication
Returns a ApplicationAuthentication
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ApplicationAuthentication
, Integer, Hash)>] ApplicationAuthentication
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2141 def show_application_authentication_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_application_authentication ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_application_authentication" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_application_authentication, must conform to the pattern #{pattern}." end # resource path local_var_path = '/application_authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ApplicationAuthentication' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_application_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing ApplicationType
Returns a ApplicationType
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [ApplicationType]
# File lib/sources-api-client/api/default_api.rb, line 2198 def show_application_type(id, opts = {}) data, _status_code, _headers = show_application_type_with_http_info(id, opts) data end
Show an existing ApplicationType
Returns a ApplicationType
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(ApplicationType
, Integer, Hash)>] ApplicationType
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2208 def show_application_type_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_application_type ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_application_type" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_application_type, must conform to the pattern #{pattern}." end # resource path local_var_path = '/application_types/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'ApplicationType' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_application_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Application
Returns a Application
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Application
, Integer, Hash)>] Application
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2074 def show_application_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_application ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_application" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_application, must conform to the pattern #{pattern}." end # resource path local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Application' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Authentication
Returns a Authentication
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Authentication]
# File lib/sources-api-client/api/default_api.rb, line 2265 def show_authentication(id, opts = {}) data, _status_code, _headers = show_authentication_with_http_info(id, opts) data end
Show an existing Authentication
Returns a Authentication
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Authentication
, Integer, Hash)>] Authentication
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2275 def show_authentication_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_authentication ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_authentication" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_authentication, must conform to the pattern #{pattern}." end # resource path local_var_path = '/authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Authentication' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Endpoint
Returns a Endpoint
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Endpoint]
# File lib/sources-api-client/api/default_api.rb, line 2332 def show_endpoint(id, opts = {}) data, _status_code, _headers = show_endpoint_with_http_info(id, opts) data end
Show an existing Endpoint
Returns a Endpoint
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Endpoint
, Integer, Hash)>] Endpoint
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2342 def show_endpoint_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_endpoint ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_endpoint" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_endpoint, must conform to the pattern #{pattern}." end # resource path local_var_path = '/endpoints/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Endpoint' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Source
Returns a Source
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Source]
# File lib/sources-api-client/api/default_api.rb, line 2399 def show_source(id, opts = {}) data, _status_code, _headers = show_source_with_http_info(id, opts) data end
Show an existing SourceType
Returns a SourceType
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [SourceType]
# File lib/sources-api-client/api/default_api.rb, line 2466 def show_source_type(id, opts = {}) data, _status_code, _headers = show_source_type_with_http_info(id, opts) data end
Show an existing SourceType
Returns a SourceType
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(SourceType
, Integer, Hash)>] SourceType
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2476 def show_source_type_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_source_type ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_source_type" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_source_type, must conform to the pattern #{pattern}." end # resource path local_var_path = '/source_types/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SourceType' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_source_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Show an existing Source
Returns a Source
object @param id [String] ID of the resource @param [Hash] opts the optional parameters @return [Array<(Source
, Integer, Hash)>] Source
data, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2409 def show_source_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.show_source ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.show_source" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.show_source, must conform to the pattern #{pattern}." end # resource path local_var_path = '/sources/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Source' # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#show_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update an existing Application
Updates a Application
object @param id [String] ID of the resource @param application [Application] Application
attributes to update @param [Hash] opts the optional parameters @return [nil]
# File lib/sources-api-client/api/default_api.rb, line 2534 def update_application(id, application, opts = {}) update_application_with_http_info(id, application, opts) nil end
Update an existing ApplicationAuthentication
Updates a ApplicationAuthentication
object @param id [String] ID of the resource @param application_authentication [ApplicationAuthentication] ApplicationAuthentication
attributes to update @param [Hash] opts the optional parameters @return [nil]
# File lib/sources-api-client/api/default_api.rb, line 2609 def update_application_authentication(id, application_authentication, opts = {}) update_application_authentication_with_http_info(id, application_authentication, opts) nil end
Update an existing ApplicationAuthentication
Updates a ApplicationAuthentication
object @param id [String] ID of the resource @param application_authentication [ApplicationAuthentication] ApplicationAuthentication
attributes to update @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2620 def update_application_authentication_with_http_info(id, application_authentication, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_application_authentication ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_application_authentication" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_application_authentication, must conform to the pattern #{pattern}." end # verify the required parameter 'application_authentication' is set if @api_client.config.client_side_validation && application_authentication.nil? fail ArgumentError, "Missing the required parameter 'application_authentication' when calling DefaultApi.update_application_authentication" end # resource path local_var_path = '/application_authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(application_authentication) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#update_application_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update an existing Application
Updates a Application
object @param id [String] ID of the resource @param application [Application] Application
attributes to update @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2545 def update_application_with_http_info(id, application, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_application ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_application" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_application, must conform to the pattern #{pattern}." end # verify the required parameter 'application' is set if @api_client.config.client_side_validation && application.nil? fail ArgumentError, "Missing the required parameter 'application' when calling DefaultApi.update_application" end # resource path local_var_path = '/applications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(application) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#update_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update an existing Authentication
Updates a Authentication
object @param id [String] ID of the resource @param authentication [Authentication] Authentication
attributes to update @param [Hash] opts the optional parameters @return [nil]
# File lib/sources-api-client/api/default_api.rb, line 2684 def update_authentication(id, authentication, opts = {}) update_authentication_with_http_info(id, authentication, opts) nil end
Update an existing Authentication
Updates a Authentication
object @param id [String] ID of the resource @param authentication [Authentication] Authentication
attributes to update @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2695 def update_authentication_with_http_info(id, authentication, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_authentication ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_authentication" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_authentication, must conform to the pattern #{pattern}." end # verify the required parameter 'authentication' is set if @api_client.config.client_side_validation && authentication.nil? fail ArgumentError, "Missing the required parameter 'authentication' when calling DefaultApi.update_authentication" end # resource path local_var_path = '/authentications/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(authentication) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#update_authentication\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update an existing Endpoint
Updates a Endpoint
object @param id [String] ID of the resource @param endpoint [Endpoint] Endpoint
attributes to update @param [Hash] opts the optional parameters @return [nil]
# File lib/sources-api-client/api/default_api.rb, line 2759 def update_endpoint(id, endpoint, opts = {}) update_endpoint_with_http_info(id, endpoint, opts) nil end
Update an existing Endpoint
Updates a Endpoint
object @param id [String] ID of the resource @param endpoint [Endpoint] Endpoint
attributes to update @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2770 def update_endpoint_with_http_info(id, endpoint, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_endpoint ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_endpoint" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_endpoint, must conform to the pattern #{pattern}." end # verify the required parameter 'endpoint' is set if @api_client.config.client_side_validation && endpoint.nil? fail ArgumentError, "Missing the required parameter 'endpoint' when calling DefaultApi.update_endpoint" end # resource path local_var_path = '/endpoints/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(endpoint) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#update_endpoint\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
Update an existing Source
Updates a Source
object @param id [String] ID of the resource @param source [Source] Source
attributes to update @param [Hash] opts the optional parameters @return [nil]
# File lib/sources-api-client/api/default_api.rb, line 2834 def update_source(id, source, opts = {}) update_source_with_http_info(id, source, opts) nil end
Update an existing Source
Updates a Source
object @param id [String] ID of the resource @param source [Source] Source
attributes to update @param [Hash] opts the optional parameters @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
# File lib/sources-api-client/api/default_api.rb, line 2845 def update_source_with_http_info(id, source, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.update_source ...' end # verify the required parameter 'id' is set if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling DefaultApi.update_source" end pattern = Regexp.new(/^\d+$/) if @api_client.config.client_side_validation && id !~ pattern fail ArgumentError, "invalid value for 'id' when calling DefaultApi.update_source, must conform to the pattern #{pattern}." end # verify the required parameter 'source' is set if @api_client.config.client_side_validation && source.nil? fail ArgumentError, "Missing the required parameter 'source' when calling DefaultApi.update_source" end # resource path local_var_path = '/sources/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)) # query parameters query_params = opts[:query_params] || {} # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(source) # return_type return_type = opts[:return_type] # auth_names auth_names = opts[:auth_names] || ['UserSecurity'] new_options = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options) if @api_client.config.debugging @api_client.config.logger.debug "API called: DefaultApi#update_source\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end