Class: Kaltura::KalturaScheduleResourceService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaScheduleResourceService
- Defined in:
- lib/kaltura_plugins/kaltura_schedule_client_plugin.rb
Overview
The ScheduleResource service enables you to create and manage (update, delete, retrieve, etc.) the resources required for scheduled events (cameras, capture devices, etc.).
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(schedule_resource) ⇒ KalturaScheduleResource
Allows you to add a new KalturaScheduleResource object.
-
#add_from_bulk_upload(file_data, bulk_upload_data = KalturaNotImplemented) ⇒ KalturaBulkUpload
Add new bulk upload batch job.
-
#delete(schedule_resource_id) ⇒ KalturaScheduleResource
Mark the KalturaScheduleResource object as deleted.
-
#get(schedule_resource_id) ⇒ KalturaScheduleResource
Retrieve a KalturaScheduleResource object by ID.
-
#initialize(client) ⇒ KalturaScheduleResourceService
constructor
A new instance of KalturaScheduleResourceService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaScheduleResourceListResponse
List KalturaScheduleResource objects.
-
#update(schedule_resource_id, schedule_resource) ⇒ KalturaScheduleResource
Update an existing KalturaScheduleResource object.
Constructor Details
#initialize(client) ⇒ KalturaScheduleResourceService
Returns a new instance of KalturaScheduleResourceService.
1669 1670 1671 |
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 1669 def initialize(client) super(client) end |
Instance Method Details
#add(schedule_resource) ⇒ KalturaScheduleResource
Allows you to add a new KalturaScheduleResource object
1675 1676 1677 1678 1679 1680 1681 1682 1683 |
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 1675 def add(schedule_resource) kparams = {} client.add_param(kparams, 'scheduleResource', schedule_resource) client.queue_service_action_call('schedule_scheduleresource', 'add', 'KalturaScheduleResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#add_from_bulk_upload(file_data, bulk_upload_data = KalturaNotImplemented) ⇒ KalturaBulkUpload
Add new bulk upload batch job
1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 |
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 1687 def add_from_bulk_upload(file_data, bulk_upload_data=KalturaNotImplemented) kparams = {} kfiles = {} client.add_param(kfiles, 'fileData', file_data) client.add_param(kparams, 'bulkUploadData', bulk_upload_data) client.queue_service_action_call('schedule_scheduleresource', 'addFromBulkUpload', 'KalturaBulkUpload', kparams, kfiles) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(schedule_resource_id) ⇒ KalturaScheduleResource
Mark the KalturaScheduleResource object as deleted
1701 1702 1703 1704 1705 1706 1707 1708 1709 |
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 1701 def delete(schedule_resource_id) kparams = {} client.add_param(kparams, 'scheduleResourceId', schedule_resource_id) client.queue_service_action_call('schedule_scheduleresource', 'delete', 'KalturaScheduleResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(schedule_resource_id) ⇒ KalturaScheduleResource
Retrieve a KalturaScheduleResource object by ID
1713 1714 1715 1716 1717 1718 1719 1720 1721 |
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 1713 def get(schedule_resource_id) kparams = {} client.add_param(kparams, 'scheduleResourceId', schedule_resource_id) client.queue_service_action_call('schedule_scheduleresource', 'get', 'KalturaScheduleResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaScheduleResourceListResponse
List KalturaScheduleResource objects
1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 |
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 1725 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('schedule_scheduleresource', 'list', 'KalturaScheduleResourceListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(schedule_resource_id, schedule_resource) ⇒ KalturaScheduleResource
Update an existing KalturaScheduleResource object
1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 |
# File 'lib/kaltura_plugins/kaltura_schedule_client_plugin.rb', line 1738 def update(schedule_resource_id, schedule_resource) kparams = {} client.add_param(kparams, 'scheduleResourceId', schedule_resource_id) client.add_param(kparams, 'scheduleResource', schedule_resource) client.queue_service_action_call('schedule_scheduleresource', 'update', 'KalturaScheduleResource', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |