Class: Kaltura::KalturaEntryVendorTaskService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_reach_client_plugin.rb

Overview

Entry Vendor Task Service

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaEntryVendorTaskService

Returns a new instance of KalturaEntryVendorTaskService.



1654
1655
1656
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1654

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



1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1660

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



1673
1674
1675
1676
1677
1678
1679
1680
1681
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1673

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.



1685
1686
1687
1688
1689
1690
1691
1692
1693
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1685

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

Returns:

  • (string)


1697
1698
1699
1700
1701
1702
1703
1704
1705
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1697

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.



1709
1710
1711
1712
1713
1714
1715
1716
1717
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1709

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



1721
1722
1723
1724
1725
1726
1727
1728
1729
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1721

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



1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1733

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



1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1746

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.



1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1759

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

Returns:

  • (string)


1772
1773
1774
1775
1776
1777
1778
1779
1780
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1772

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.



1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1784

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.



1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
# File 'lib/kaltura_plugins/kaltura_reach_client_plugin.rb', line 1797

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