Class: IntegrationApi::AsyncApi
- Inherits:
-
Object
- Object
- IntegrationApi::AsyncApi
- Defined in:
- lib/integration_api/api/async_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_async_data(id, integration_type, service, opts = {}) ⇒ AsyncTransaction
Create async transaction for GET endpoints for bulk data Create async transaction for GET endpoints for bulk data.
-
#get_async_data1(id, integration_type, service, opts = {}) ⇒ AsyncTransaction
Create async transaction for GET endpoints for bulk data Create async transaction for GET endpoints for bulk data.
-
#get_async_data1_with_http_info(id, integration_type, service, opts = {}) ⇒ Array<(AsyncTransaction, Fixnum, Hash)>
Create async transaction for GET endpoints for bulk data Create async transaction for GET endpoints for bulk data.
-
#get_async_data2(data, integration_type, service, opts = {}) ⇒ AsyncTransaction
Create async transaction for POST endpoints for bulk data Create async transaction for POST endpoints for bulk data.
-
#get_async_data2_with_http_info(data, integration_type, service, opts = {}) ⇒ Array<(AsyncTransaction, Fixnum, Hash)>
Create async transaction for POST endpoints for bulk data Create async transaction for POST endpoints for bulk data.
-
#get_async_data_with_http_info(id, integration_type, service, opts = {}) ⇒ Array<(AsyncTransaction, Fixnum, Hash)>
Create async transaction for GET endpoints for bulk data Create async transaction for GET endpoints for bulk data.
-
#get_async_status(id, opts = {}) ⇒ AsyncTransactionVO
Get Status of async transaction created through GET/POST endpoints Get Status of async transaction created through GET/POST endpoints.
-
#get_async_status_with_http_info(id, opts = {}) ⇒ Array<(AsyncTransactionVO, Fixnum, Hash)>
Get Status of async transaction created through GET/POST endpoints Get Status of async transaction created through GET/POST endpoints.
-
#initialize(api_client = ApiClient.default) ⇒ AsyncApi
constructor
A new instance of AsyncApi.
Constructor Details
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/integration_api/api/async_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_async_data(id, integration_type, service, opts = {}) ⇒ AsyncTransaction
Create async transaction for GET endpoints for bulk data Create async transaction for GET endpoints for bulk data
29 30 31 32 |
# File 'lib/integration_api/api/async_api.rb', line 29 def get_async_data(id, integration_type, service, opts = {}) data, _status_code, _headers = get_async_data_with_http_info(id, integration_type, service, opts) data end |
#get_async_data1(id, integration_type, service, opts = {}) ⇒ AsyncTransaction
Create async transaction for GET endpoints for bulk data Create async transaction for GET endpoints for bulk data
93 94 95 96 |
# File 'lib/integration_api/api/async_api.rb', line 93 def get_async_data1(id, integration_type, service, opts = {}) data, _status_code, _headers = get_async_data1_with_http_info(id, integration_type, service, opts) data end |
#get_async_data1_with_http_info(id, integration_type, service, opts = {}) ⇒ Array<(AsyncTransaction, Fixnum, Hash)>
Create async transaction for GET endpoints for bulk data Create async transaction for GET endpoints for bulk data
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 |
# File 'lib/integration_api/api/async_api.rb', line 105 def get_async_data1_with_http_info(id, integration_type, service, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AsyncApi.get_async_data1 ...' 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 AsyncApi.get_async_data1" end # verify the required parameter 'integration_type' is set if @api_client.config.client_side_validation && integration_type.nil? fail ArgumentError, "Missing the required parameter 'integration_type' when calling AsyncApi.get_async_data1" end # verify the required parameter 'service' is set if @api_client.config.client_side_validation && service.nil? fail ArgumentError, "Missing the required parameter 'service' when calling AsyncApi.get_async_data1" end # resource path local_var_path = '/async/{integration_type}/{service}/{id}'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'integration_type' + '}', integration_type.to_s).sub('{' + 'service' + '}', service.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AsyncTransaction') if @api_client.config.debugging @api_client.config.logger.debug "API called: AsyncApi#get_async_data1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_async_data2(data, integration_type, service, opts = {}) ⇒ AsyncTransaction
Create async transaction for POST endpoints for bulk data Create async transaction for POST endpoints for bulk data
157 158 159 160 |
# File 'lib/integration_api/api/async_api.rb', line 157 def get_async_data2(data, integration_type, service, opts = {}) data, _status_code, _headers = get_async_data2_with_http_info(data, integration_type, service, opts) data end |
#get_async_data2_with_http_info(data, integration_type, service, opts = {}) ⇒ Array<(AsyncTransaction, Fixnum, Hash)>
Create async transaction for POST endpoints for bulk data Create async transaction for POST endpoints for bulk data
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
# File 'lib/integration_api/api/async_api.rb', line 169 def get_async_data2_with_http_info(data, integration_type, service, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AsyncApi.get_async_data2 ...' end # verify the required parameter 'data' is set if @api_client.config.client_side_validation && data.nil? fail ArgumentError, "Missing the required parameter 'data' when calling AsyncApi.get_async_data2" end # verify the required parameter 'integration_type' is set if @api_client.config.client_side_validation && integration_type.nil? fail ArgumentError, "Missing the required parameter 'integration_type' when calling AsyncApi.get_async_data2" end # verify the required parameter 'service' is set if @api_client.config.client_side_validation && service.nil? fail ArgumentError, "Missing the required parameter 'service' when calling AsyncApi.get_async_data2" end # resource path local_var_path = '/async/{integration_type}/{service}'.sub('{' + 'integration_type' + '}', integration_type.to_s).sub('{' + 'service' + '}', service.to_s) # query parameters query_params = {} # header parameters 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 = {} # http body (model) post_body = @api_client.object_to_http_body(data) auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AsyncTransaction') if @api_client.config.debugging @api_client.config.logger.debug "API called: AsyncApi#get_async_data2\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_async_data_with_http_info(id, integration_type, service, opts = {}) ⇒ Array<(AsyncTransaction, Fixnum, Hash)>
Create async transaction for GET endpoints for bulk data Create async transaction for GET endpoints for bulk data
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/integration_api/api/async_api.rb', line 41 def get_async_data_with_http_info(id, integration_type, service, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AsyncApi.get_async_data ...' 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 AsyncApi.get_async_data" end # verify the required parameter 'integration_type' is set if @api_client.config.client_side_validation && integration_type.nil? fail ArgumentError, "Missing the required parameter 'integration_type' when calling AsyncApi.get_async_data" end # verify the required parameter 'service' is set if @api_client.config.client_side_validation && service.nil? fail ArgumentError, "Missing the required parameter 'service' when calling AsyncApi.get_async_data" end # resource path local_var_path = '/async/{integration_type}/{service}'.sub('{' + 'id' + '}', id.to_s).sub('{' + 'integration_type' + '}', integration_type.to_s).sub('{' + 'service' + '}', service.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AsyncTransaction') if @api_client.config.debugging @api_client.config.logger.debug "API called: AsyncApi#get_async_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_async_status(id, opts = {}) ⇒ AsyncTransactionVO
Get Status of async transaction created through GET/POST endpoints Get Status of async transaction created through GET/POST endpoints
221 222 223 224 |
# File 'lib/integration_api/api/async_api.rb', line 221 def get_async_status(id, opts = {}) data, _status_code, _headers = get_async_status_with_http_info(id, opts) data end |
#get_async_status_with_http_info(id, opts = {}) ⇒ Array<(AsyncTransactionVO, Fixnum, Hash)>
Get Status of async transaction created through GET/POST endpoints Get Status of async transaction created through GET/POST endpoints
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 |
# File 'lib/integration_api/api/async_api.rb', line 231 def get_async_status_with_http_info(id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: AsyncApi.get_async_status ...' 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 AsyncApi.get_async_status" end # resource path local_var_path = '/async/status/{id}'.sub('{' + 'id' + '}', id.to_s) # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['oauth2'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'AsyncTransactionVO') if @api_client.config.debugging @api_client.config.logger.debug "API called: AsyncApi#get_async_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |