Class: Uploadcare::Rails::Api::Rest::AddonsApi

Inherits:
Base
  • Object
show all
Defined in:
lib/uploadcare/rails/api/rest/addons_api.rb

Overview

A class that contains AddonsApi related methods for Uploadcare REST API

Class Method Summary collapse

Class Method Details

.rekognition_detect_labels(uuid) ⇒ Object

Execute AWS Rekognition Add-On for a given target to detect labels in an image.



26
27
28
# File 'lib/uploadcare/rails/api/rest/addons_api.rb', line 26

def rekognition_detect_labels(uuid)
  Uploadcare::Addons.ws_rekognition_detect_labels(uuid)
end

.rekognition_detect_labels_status(uuid) ⇒ Object

Check the status of an Add-On execution request that had been started using the Execute Add-On operation.



32
33
34
# File 'lib/uploadcare/rails/api/rest/addons_api.rb', line 32

def rekognition_detect_labels_status(uuid)
  Uploadcare::Addons.ws_rekognition_detect_labels_status(uuid)
end

.rekognition_detect_moderation_labels(uuid) ⇒ Object

Execute AWS Rekognition Moderation Add-On for a given target to detect labels in an image.



50
51
52
# File 'lib/uploadcare/rails/api/rest/addons_api.rb', line 50

def rekognition_detect_moderation_labels(uuid)
  Uploadcare::Addons.ws_rekognition_detect_moderation_labels(uuid)
end

.rekognition_detect_moderation_labels_status(uuid) ⇒ Object

Check the status of an Add-On execution request that had been started using the Execute Add-On operation.



56
57
58
# File 'lib/uploadcare/rails/api/rest/addons_api.rb', line 56

def rekognition_detect_moderation_labels_status(uuid)
  Uploadcare::Addons.ws_rekognition_detect_moderation_labels_status(uuid)
end

.remove_bg(uuid, params = {}) ⇒ Object

Execute remove.bg background image removal Add-On for a given target.



38
39
40
# File 'lib/uploadcare/rails/api/rest/addons_api.rb', line 38

def remove_bg(uuid, params = {})
  Uploadcare::Addons.remove_bg(uuid, params)
end

.remove_bg_status(uuid) ⇒ Object

Check the status of an Add-On execution request that had been started using the Execute Add-On operation.



44
45
46
# File 'lib/uploadcare/rails/api/rest/addons_api.rb', line 44

def remove_bg_status(uuid)
  Uploadcare::Addons.remove_bg_status(uuid)
end

.virus_scan(uuid, params = {}) ⇒ Object

Execute ClamAV virus checking Add-On for a given target.



14
15
16
# File 'lib/uploadcare/rails/api/rest/addons_api.rb', line 14

def virus_scan(uuid, params = {})
  Uploadcare::Addons.uc_clamav_virus_scan(uuid, params)
end

.virus_scan_status(uuid) ⇒ Object

Check the status of an Add-On execution request that had been started using the Execute Add-On operation.



20
21
22
# File 'lib/uploadcare/rails/api/rest/addons_api.rb', line 20

def virus_scan_status(uuid)
  Uploadcare::Addons.uc_clamav_virus_scan_status(uuid)
end