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.
1723 1724 1725 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1723 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
1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1729 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
1742 1743 1744 1745 1746 1747 1748 1749 1750 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1742 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.
1754 1755 1756 1757 1758 1759 1760 1761 1762 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1754 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
1766 1767 1768 1769 1770 1771 1772 1773 1774 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1766 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.
1778 1779 1780 1781 1782 1783 1784 1785 1786 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1778 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
1790 1791 1792 1793 1794 1795 1796 1797 1798 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1790 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
1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1802 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
1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1815 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.
1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1828 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
1841 1842 1843 1844 1845 1846 1847 1848 1849 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1841 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.
1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1853 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.
1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 |
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1866 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 |