Class: Kaltura::KalturaBulkService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaBulkService
- Defined in:
- lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb
Overview
Bulk upload service is used to upload & manage bulk uploads
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#abort(id) ⇒ Object
Aborts the bulk upload and all its child jobs.
-
#get(id) ⇒ Object
Get bulk upload batch job by id.
-
#initialize(client) ⇒ KalturaBulkService
constructor
A new instance of KalturaBulkService.
-
#list(bulk_upload_filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List bulk upload batch jobs.
-
#serve(id) ⇒ Object
serve action returns the original file.
-
#serve_log(id) ⇒ Object
serveLog action returns the log file for the bulk-upload job.
Constructor Details
#initialize(client) ⇒ KalturaBulkService
Returns a new instance of KalturaBulkService.
48 49 50 |
# File 'lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb', line 48 def initialize(client) super(client) end |
Instance Method Details
#abort(id) ⇒ Object
Aborts the bulk upload and all its child jobs
97 98 99 100 101 102 103 104 105 |
# File 'lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb', line 97 def abort(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('bulkupload_bulk', 'abort', 'KalturaBulkUpload', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(id) ⇒ Object
Get bulk upload batch job by id
54 55 56 57 58 59 60 61 62 |
# File 'lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb', line 54 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('bulkupload_bulk', 'get', 'KalturaBulkUpload', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(bulk_upload_filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List bulk upload batch jobs
66 67 68 69 70 71 72 73 74 75 |
# File 'lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb', line 66 def list(bulk_upload_filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'bulkUploadFilter', bulk_upload_filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('bulkupload_bulk', 'list', 'KalturaBulkUploadListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#serve(id) ⇒ Object
serve action returns the original file.
79 80 81 82 83 84 |
# File 'lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb', line 79 def serve(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('bulkupload_bulk', 'serve', 'file', kparams) return client.get_serve_url() end |
#serve_log(id) ⇒ Object
serveLog action returns the log file for the bulk-upload job.
88 89 90 91 92 93 |
# File 'lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb', line 88 def serve_log(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('bulkupload_bulk', 'serveLog', 'file', kparams) return client.get_serve_url() end |