Class: ArtikCloud::WhitelistingApi
- Inherits:
-
Object
- Object
- ArtikCloud::WhitelistingApi
- Defined in:
- lib/artikcloud/api/whitelisting_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#delete_vdid(dtid, vdid, opts = {}) ⇒ WhitelistEnvelope
Delete a vdid from the devicetype whitelist.
-
#delete_vdid_with_http_info(dtid, vdid, opts = {}) ⇒ Array<(WhitelistEnvelope, Fixnum, Hash)>
Delete a vdid from the devicetype whitelist.
-
#delete_whitelist_certificate(dtid, cid, opts = {}) ⇒ WhitelistEnvelope
Delete a whitelist certificate associated with a devicetype.
-
#delete_whitelist_certificate_with_http_info(dtid, cid, opts = {}) ⇒ Array<(WhitelistEnvelope, Fixnum, Hash)>
Delete a whitelist certificate associated with a devicetype.
-
#enable_whitelist(dtid, device_type_update_info, opts = {}) ⇒ WhitelistEnvelope
Enable or disble whitelist feature of a device type Enable or disble whitelist feature of a device type.
-
#enable_whitelist_with_http_info(dtid, device_type_update_info, opts = {}) ⇒ Array<(WhitelistEnvelope, Fixnum, Hash)>
Enable or disble whitelist feature of a device type Enable or disble whitelist feature of a device type.
-
#get_rejected_row_list(dtid, upload_id, opts = {}) ⇒ RejectedCSVRowsEnvelope
Get the list of rejected rows for an uploaded CSV file.
-
#get_rejected_row_list_with_http_info(dtid, upload_id, opts = {}) ⇒ Array<(RejectedCSVRowsEnvelope, Fixnum, Hash)>
Get the list of rejected rows for an uploaded CSV file.
-
#get_upload_status(dtid, upload_id, opts = {}) ⇒ UploadStatusEnvelope
Get the status of a uploaded CSV file.
-
#get_upload_status_with_http_info(dtid, upload_id, opts = {}) ⇒ Array<(UploadStatusEnvelope, Fixnum, Hash)>
Get the status of a uploaded CSV file.
-
#get_whitelist(dtid, opts = {}) ⇒ WhitelistResultEnvelope
Get whitelisted vdids of a device type.
-
#get_whitelist_certificate(dtid, opts = {}) ⇒ CertificateEnvelope
Get whitelist certificate of device type.
-
#get_whitelist_certificate_with_http_info(dtid, opts = {}) ⇒ Array<(CertificateEnvelope, Fixnum, Hash)>
Get whitelist certificate of device type.
-
#get_whitelist_status(dtid, opts = {}) ⇒ WhitelistEnvelope
Get the status of whitelist feature (enabled/disabled) of a device type.
-
#get_whitelist_status_with_http_info(dtid, opts = {}) ⇒ Array<(WhitelistEnvelope, Fixnum, Hash)>
Get the status of whitelist feature (enabled/disabled) of a device type.
-
#get_whitelist_with_http_info(dtid, opts = {}) ⇒ Array<(WhitelistResultEnvelope, Fixnum, Hash)>
Get whitelisted vdids of a device type.
-
#initialize(api_client = ApiClient.default) ⇒ WhitelistingApi
constructor
A new instance of WhitelistingApi.
-
#upload_csv(dtid, file, opts = {}) ⇒ UploadIdEnvelope
Upload a CSV file related to the Device Type.
-
#upload_csv_with_http_info(dtid, file, opts = {}) ⇒ Array<(UploadIdEnvelope, Fixnum, Hash)>
Upload a CSV file related to the Device Type.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ WhitelistingApi
Returns a new instance of WhitelistingApi.
18 19 20 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 18 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
16 17 18 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 16 def api_client @api_client end |
Instance Method Details
#delete_vdid(dtid, vdid, opts = {}) ⇒ WhitelistEnvelope
Delete a vdid from the devicetype whitelist. Delete a vdid from the devicetype whitelist.
28 29 30 31 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 28 def delete_vdid(dtid, vdid, opts = {}) data, _status_code, _headers = delete_vdid_with_http_info(dtid, vdid, opts) return data end |
#delete_vdid_with_http_info(dtid, vdid, opts = {}) ⇒ Array<(WhitelistEnvelope, Fixnum, Hash)>
Delete a vdid from the devicetype whitelist. Delete a vdid from the devicetype whitelist.
39 40 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 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 39 def delete_vdid_with_http_info(dtid, vdid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: WhitelistingApi.delete_vdid ..." end # verify the required parameter 'dtid' is set fail ArgumentError, "Missing the required parameter 'dtid' when calling WhitelistingApi.delete_vdid" if dtid.nil? # verify the required parameter 'vdid' is set fail ArgumentError, "Missing the required parameter 'vdid' when calling WhitelistingApi.delete_vdid" if vdid.nil? # resource path local_var_path = "/devicetypes/{dtid}/whitelist/{vdid}".sub('{format}','json').sub('{' + 'dtid' + '}', dtid.to_s).sub('{' + 'vdid' + '}', vdid.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 = ['artikcloud_oauth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WhitelistEnvelope') if @api_client.config.debugging @api_client.config.logger.debug "API called: WhitelistingApi#delete_vdid\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#delete_whitelist_certificate(dtid, cid, opts = {}) ⇒ WhitelistEnvelope
Delete a whitelist certificate associated with a devicetype. Delete a whitelist certificate associated with a devicetype.
83 84 85 86 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 83 def delete_whitelist_certificate(dtid, cid, opts = {}) data, _status_code, _headers = delete_whitelist_certificate_with_http_info(dtid, cid, opts) return data end |
#delete_whitelist_certificate_with_http_info(dtid, cid, opts = {}) ⇒ Array<(WhitelistEnvelope, Fixnum, Hash)>
Delete a whitelist certificate associated with a devicetype. Delete a whitelist certificate associated with a devicetype.
94 95 96 97 98 99 100 101 102 103 104 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 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 94 def delete_whitelist_certificate_with_http_info(dtid, cid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: WhitelistingApi.delete_whitelist_certificate ..." end # verify the required parameter 'dtid' is set fail ArgumentError, "Missing the required parameter 'dtid' when calling WhitelistingApi.delete_whitelist_certificate" if dtid.nil? # verify the required parameter 'cid' is set fail ArgumentError, "Missing the required parameter 'cid' when calling WhitelistingApi.delete_whitelist_certificate" if cid.nil? # resource path local_var_path = "/devicetypes/{dtid}/whitelist/certificates/{cid}".sub('{format}','json').sub('{' + 'dtid' + '}', dtid.to_s).sub('{' + 'cid' + '}', cid.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 = ['artikcloud_oauth'] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WhitelistEnvelope') if @api_client.config.debugging @api_client.config.logger.debug "API called: WhitelistingApi#delete_whitelist_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#enable_whitelist(dtid, device_type_update_info, opts = {}) ⇒ WhitelistEnvelope
Enable or disble whitelist feature of a device type Enable or disble whitelist feature of a device type
138 139 140 141 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 138 def enable_whitelist(dtid, device_type_update_info, opts = {}) data, _status_code, _headers = enable_whitelist_with_http_info(dtid, device_type_update_info, opts) return data end |
#enable_whitelist_with_http_info(dtid, device_type_update_info, opts = {}) ⇒ Array<(WhitelistEnvelope, Fixnum, Hash)>
Enable or disble whitelist feature of a device type Enable or disble whitelist feature of a device type
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 149 def enable_whitelist_with_http_info(dtid, device_type_update_info, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: WhitelistingApi.enable_whitelist ..." end # verify the required parameter 'dtid' is set fail ArgumentError, "Missing the required parameter 'dtid' when calling WhitelistingApi.enable_whitelist" if dtid.nil? # verify the required parameter 'device_type_update_info' is set fail ArgumentError, "Missing the required parameter 'device_type_update_info' when calling WhitelistingApi.enable_whitelist" if device_type_update_info.nil? # resource path local_var_path = "/devicetypes/:dtid/whitelist/enable".sub('{format}','json').sub('{' + 'dtid' + '}', dtid.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(device_type_update_info) auth_names = ['artikcloud_oauth'] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'WhitelistEnvelope') if @api_client.config.debugging @api_client.config.logger.debug "API called: WhitelistingApi#enable_whitelist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_rejected_row_list(dtid, upload_id, opts = {}) ⇒ RejectedCSVRowsEnvelope
Get the list of rejected rows for an uploaded CSV file. Get the list of rejected rows for an uploaded CSV file.
197 198 199 200 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 197 def get_rejected_row_list(dtid, upload_id, opts = {}) data, _status_code, _headers = get_rejected_row_list_with_http_info(dtid, upload_id, opts) return data end |
#get_rejected_row_list_with_http_info(dtid, upload_id, opts = {}) ⇒ Array<(RejectedCSVRowsEnvelope, Fixnum, Hash)>
Get the list of rejected rows for an uploaded CSV file. Get the list of rejected rows for an uploaded CSV file.
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 210 def get_rejected_row_list_with_http_info(dtid, upload_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: WhitelistingApi.get_rejected_row_list ..." end # verify the required parameter 'dtid' is set fail ArgumentError, "Missing the required parameter 'dtid' when calling WhitelistingApi.get_rejected_row_list" if dtid.nil? # verify the required parameter 'upload_id' is set fail ArgumentError, "Missing the required parameter 'upload_id' when calling WhitelistingApi.get_rejected_row_list" if upload_id.nil? # resource path local_var_path = "/devicetypes/{dtid}/whitelist/{uploadId}/rejectedRows".sub('{format}','json').sub('{' + 'dtid' + '}', dtid.to_s).sub('{' + 'uploadId' + '}', upload_id.to_s) # query parameters query_params = {} query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? # 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 = ['artikcloud_oauth'] 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 => 'RejectedCSVRowsEnvelope') if @api_client.config.debugging @api_client.config.logger.debug "API called: WhitelistingApi#get_rejected_row_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_upload_status(dtid, upload_id, opts = {}) ⇒ UploadStatusEnvelope
Get the status of a uploaded CSV file. Get the status of a uploaded CSV file.
256 257 258 259 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 256 def get_upload_status(dtid, upload_id, opts = {}) data, _status_code, _headers = get_upload_status_with_http_info(dtid, upload_id, opts) return data end |
#get_upload_status_with_http_info(dtid, upload_id, opts = {}) ⇒ Array<(UploadStatusEnvelope, Fixnum, Hash)>
Get the status of a uploaded CSV file. Get the status of a uploaded CSV file.
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 267 def get_upload_status_with_http_info(dtid, upload_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: WhitelistingApi.get_upload_status ..." end # verify the required parameter 'dtid' is set fail ArgumentError, "Missing the required parameter 'dtid' when calling WhitelistingApi.get_upload_status" if dtid.nil? # verify the required parameter 'upload_id' is set fail ArgumentError, "Missing the required parameter 'upload_id' when calling WhitelistingApi.get_upload_status" if upload_id.nil? # resource path local_var_path = "/devicetypes/{dtid}/whitelist/{uploadId}/status".sub('{format}','json').sub('{' + 'dtid' + '}', dtid.to_s).sub('{' + 'uploadId' + '}', upload_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 = ['artikcloud_oauth'] 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 => 'UploadStatusEnvelope') if @api_client.config.debugging @api_client.config.logger.debug "API called: WhitelistingApi#get_upload_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_whitelist(dtid, opts = {}) ⇒ WhitelistResultEnvelope
Get whitelisted vdids of a device type. Get whitelisted vdids of a device type.
312 313 314 315 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 312 def get_whitelist(dtid, opts = {}) data, _status_code, _headers = get_whitelist_with_http_info(dtid, opts) return data end |
#get_whitelist_certificate(dtid, opts = {}) ⇒ CertificateEnvelope
Get whitelist certificate of device type. Get whitelist certificate of device type.
367 368 369 370 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 367 def get_whitelist_certificate(dtid, opts = {}) data, _status_code, _headers = get_whitelist_certificate_with_http_info(dtid, opts) return data end |
#get_whitelist_certificate_with_http_info(dtid, opts = {}) ⇒ Array<(CertificateEnvelope, Fixnum, Hash)>
Get whitelist certificate of device type. Get whitelist certificate of device type.
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 377 def get_whitelist_certificate_with_http_info(dtid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: WhitelistingApi.get_whitelist_certificate ..." end # verify the required parameter 'dtid' is set fail ArgumentError, "Missing the required parameter 'dtid' when calling WhitelistingApi.get_whitelist_certificate" if dtid.nil? # resource path local_var_path = "/devicetypes/{dtid}/whitelist/certificates".sub('{format}','json').sub('{' + 'dtid' + '}', dtid.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 = ['artikcloud_oauth'] 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 => 'CertificateEnvelope') if @api_client.config.debugging @api_client.config.logger.debug "API called: WhitelistingApi#get_whitelist_certificate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_whitelist_status(dtid, opts = {}) ⇒ WhitelistEnvelope
Get the status of whitelist feature (enabled/disabled) of a device type. Get the status of whitelist feature (enabled/disabled) of a device type.
418 419 420 421 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 418 def get_whitelist_status(dtid, opts = {}) data, _status_code, _headers = get_whitelist_status_with_http_info(dtid, opts) return data end |
#get_whitelist_status_with_http_info(dtid, opts = {}) ⇒ Array<(WhitelistEnvelope, Fixnum, Hash)>
Get the status of whitelist feature (enabled/disabled) of a device type. Get the status of whitelist feature (enabled/disabled) of a device type.
428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 428 def get_whitelist_status_with_http_info(dtid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: WhitelistingApi.get_whitelist_status ..." end # verify the required parameter 'dtid' is set fail ArgumentError, "Missing the required parameter 'dtid' when calling WhitelistingApi.get_whitelist_status" if dtid.nil? # resource path local_var_path = "/devicetypes/{dtid}/whitelist/status".sub('{format}','json').sub('{' + 'dtid' + '}', dtid.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 = ['artikcloud_oauth'] 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 => 'WhitelistEnvelope') if @api_client.config.debugging @api_client.config.logger.debug "API called: WhitelistingApi#get_whitelist_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_whitelist_with_http_info(dtid, opts = {}) ⇒ Array<(WhitelistResultEnvelope, Fixnum, Hash)>
Get whitelisted vdids of a device type. Get whitelisted vdids of a device type.
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 324 def get_whitelist_with_http_info(dtid, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: WhitelistingApi.get_whitelist ..." end # verify the required parameter 'dtid' is set fail ArgumentError, "Missing the required parameter 'dtid' when calling WhitelistingApi.get_whitelist" if dtid.nil? # resource path local_var_path = "/devicetypes/{dtid}/whitelist".sub('{format}','json').sub('{' + 'dtid' + '}', dtid.to_s) # query parameters query_params = {} query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil? # 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 = ['artikcloud_oauth'] 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 => 'WhitelistResultEnvelope') if @api_client.config.debugging @api_client.config.logger.debug "API called: WhitelistingApi#get_whitelist\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#upload_csv(dtid, file, opts = {}) ⇒ UploadIdEnvelope
Upload a CSV file related to the Device Type. Upload a CSV file related to the Device Type.
470 471 472 473 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 470 def upload_csv(dtid, file, opts = {}) data, _status_code, _headers = upload_csv_with_http_info(dtid, file, opts) return data end |
#upload_csv_with_http_info(dtid, file, opts = {}) ⇒ Array<(UploadIdEnvelope, Fixnum, Hash)>
Upload a CSV file related to the Device Type. Upload a CSV file related to the Device Type.
481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 |
# File 'lib/artikcloud/api/whitelisting_api.rb', line 481 def upload_csv_with_http_info(dtid, file, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: WhitelistingApi.upload_csv ..." end # verify the required parameter 'dtid' is set fail ArgumentError, "Missing the required parameter 'dtid' when calling WhitelistingApi.upload_csv" if dtid.nil? # verify the required parameter 'file' is set fail ArgumentError, "Missing the required parameter 'file' when calling WhitelistingApi.upload_csv" if file.nil? # resource path local_var_path = "/devicetypes/{dtid}/whitelist".sub('{format}','json').sub('{' + 'dtid' + '}', dtid.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 = @api_client.object_to_http_body(file) auth_names = ['artikcloud_oauth'] 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 => 'UploadIdEnvelope') if @api_client.config.debugging @api_client.config.logger.debug "API called: WhitelistingApi#upload_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |