Class: Kaltura::KalturaEntryVendorTaskService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaEntryVendorTaskService
- Defined in:
- lib/kaltura_plugins/kaltura_reach_client_plugin.rb
Overview
Entry Vendor Task Service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#abort(id, abort_reason = KalturaNotImplemented) ⇒ KalturaEntryVendorTask
Cancel entry task.
-
#add(entry_vendor_task) ⇒ KalturaEntryVendorTask
Allows you to add a entry vendor task.
-
#approve(id) ⇒ KalturaEntryVendorTask
Approve entry vendor task for execution.
-
#export_to_csv(filter) ⇒ string
add batch job that sends an email with a link to download an updated CSV that contains list of users.
-
#extend_access_key(id) ⇒ KalturaEntryVendorTask
Extend access key in case the existing one has expired.
-
#get(id) ⇒ KalturaEntryVendorTask
Retrieve specific entry vendor task by id.
-
#get_jobs(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaEntryVendorTaskListResponse
get KalturaEntryVendorTask objects for specific vendor partner.
-
#initialize(client) ⇒ KalturaEntryVendorTaskService
constructor
A new instance of KalturaEntryVendorTaskService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaEntryVendorTaskListResponse
List KalturaEntryVendorTask objects.
-
#reject(id, reject_reason = KalturaNotImplemented) ⇒ KalturaEntryVendorTask
Reject entry vendor task for execution.
-
#serve_csv(id) ⇒ string
Will serve a requested csv.
-
#update(id, entry_vendor_task) ⇒ KalturaEntryVendorTask
Update entry vendor task.
-
#update_job(id, entry_vendor_task) ⇒ KalturaEntryVendorTask
Update entry vendor task.
Constructor Details
#initialize(client) ⇒ KalturaEntryVendorTaskService
Returns a new instance of KalturaEntryVendorTaskService.
1725 1726 1727 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1725 def initialize(client) super(client) end |
Instance Method Details
#abort(id, abort_reason = KalturaNotImplemented) ⇒ KalturaEntryVendorTask
Cancel entry task. will only occur for task in PENDING or PENDING_MODERATION status
1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1731 def abort(id, abort_reason=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'abortReason', abort_reason) client.queue_service_action_call('reach_entryvendortask', 'abort', 'KalturaEntryVendorTask', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#add(entry_vendor_task) ⇒ KalturaEntryVendorTask
Allows you to add a entry vendor task
1744 1745 1746 1747 1748 1749 1750 1751 1752 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1744 def add(entry_vendor_task) kparams = {} client.add_param(kparams, 'entryVendorTask', entry_vendor_task) client.queue_service_action_call('reach_entryvendortask', 'add', 'KalturaEntryVendorTask', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#approve(id) ⇒ KalturaEntryVendorTask
Approve entry vendor task for execution.
1756 1757 1758 1759 1760 1761 1762 1763 1764 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1756 def approve(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('reach_entryvendortask', 'approve', 'KalturaEntryVendorTask', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#export_to_csv(filter) ⇒ string
add batch job that sends an email with a link to download an updated CSV that contains list of users
1768 1769 1770 1771 1772 1773 1774 1775 1776 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1768 def export_to_csv(filter) kparams = {} client.add_param(kparams, 'filter', filter) client.queue_service_action_call('reach_entryvendortask', 'exportToCsv', 'string', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#extend_access_key(id) ⇒ KalturaEntryVendorTask
Extend access key in case the existing one has expired.
1780 1781 1782 1783 1784 1785 1786 1787 1788 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1780 def extend_access_key(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('reach_entryvendortask', 'extendAccessKey', 'KalturaEntryVendorTask', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(id) ⇒ KalturaEntryVendorTask
Retrieve specific entry vendor task by id
1792 1793 1794 1795 1796 1797 1798 1799 1800 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1792 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('reach_entryvendortask', 'get', 'KalturaEntryVendorTask', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_jobs(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaEntryVendorTaskListResponse
get KalturaEntryVendorTask objects for specific vendor partner
1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1804 def get_jobs(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('reach_entryvendortask', 'getJobs', 'KalturaEntryVendorTaskListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaEntryVendorTaskListResponse
List KalturaEntryVendorTask objects
1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1817 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('reach_entryvendortask', 'list', 'KalturaEntryVendorTaskListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#reject(id, reject_reason = KalturaNotImplemented) ⇒ KalturaEntryVendorTask
Reject entry vendor task for execution.
1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1830 def reject(id, reject_reason=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'rejectReason', reject_reason) client.queue_service_action_call('reach_entryvendortask', 'reject', 'KalturaEntryVendorTask', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#serve_csv(id) ⇒ string
Will serve a requested csv
1843 1844 1845 1846 1847 1848 1849 1850 1851 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1843 def serve_csv(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('reach_entryvendortask', 'serveCsv', 'string', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(id, entry_vendor_task) ⇒ KalturaEntryVendorTask
Update entry vendor task. Only the properties that were set will be updated.
1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1855 def update(id, entry_vendor_task) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'entryVendorTask', entry_vendor_task) client.queue_service_action_call('reach_entryvendortask', 'update', 'KalturaEntryVendorTask', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update_job(id, entry_vendor_task) ⇒ KalturaEntryVendorTask
Update entry vendor task. Only the properties that were set will be updated.
1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1868 def update_job(id, entry_vendor_task) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'entryVendorTask', entry_vendor_task) client.queue_service_action_call('reach_entryvendortask', 'updateJob', 'KalturaEntryVendorTask', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |