Class: Kaltura::KalturaEntryDistributionService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaEntryDistributionService
- Defined in:
- lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb
Overview
Entry Distribution service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(entry_distribution) ⇒ Object
Add new Entry Distribution.
-
#delete(id) ⇒ Object
Delete Entry Distribution by id.
-
#get(id) ⇒ Object
Get Entry Distribution by id.
-
#initialize(client) ⇒ KalturaEntryDistributionService
constructor
A new instance of KalturaEntryDistributionService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List all distribution providers.
-
#retry_submit(id) ⇒ Object
Retries last submit action.
-
#serve_returned_data(id, action_type) ⇒ Object
Serves entry distribution returned data.
-
#serve_sent_data(id, action_type) ⇒ Object
Serves entry distribution sent data.
-
#submit_add(id, submit_when_ready = false) ⇒ Object
Submits Entry Distribution to the remote destination.
-
#submit_delete(id) ⇒ Object
Deletes Entry Distribution from the remote destination.
-
#submit_fetch_report(id) ⇒ Object
Submits Entry Distribution report request.
-
#submit_update(id) ⇒ Object
Submits Entry Distribution changes to the remote destination.
-
#update(id, entry_distribution) ⇒ Object
Update Entry Distribution by id.
-
#validate(id) ⇒ Object
Validates Entry Distribution by id for submission.
Constructor Details
#initialize(client) ⇒ KalturaEntryDistributionService
Returns a new instance of KalturaEntryDistributionService.
1228 1229 1230 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1228 def initialize(client) super(client) end |
Instance Method Details
#add(entry_distribution) ⇒ Object
Add new Entry Distribution
1234 1235 1236 1237 1238 1239 1240 1241 1242 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1234 def add(entry_distribution) kparams = {} client.add_param(kparams, 'entryDistribution', entry_distribution); client.queue_service_action_call('contentdistribution_entrydistribution', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(id) ⇒ Object
Delete Entry Distribution by id
1283 1284 1285 1286 1287 1288 1289 1290 1291 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1283 def delete(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_entrydistribution', 'delete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(id) ⇒ Object
Get Entry Distribution by id
1246 1247 1248 1249 1250 1251 1252 1253 1254 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1246 def get(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_entrydistribution', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List all distribution providers
1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1295 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter); client.add_param(kparams, 'pager', pager); client.queue_service_action_call('contentdistribution_entrydistribution', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#retry_submit(id) ⇒ Object
Retries last submit action
1357 1358 1359 1360 1361 1362 1363 1364 1365 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1357 def retry_submit(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_entrydistribution', 'retrySubmit', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#serve_returned_data(id, action_type) ⇒ Object
Serves entry distribution returned data
1379 1380 1381 1382 1383 1384 1385 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1379 def serve_returned_data(id, action_type) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'actionType', action_type); client.queue_service_action_call('contentdistribution_entrydistribution', 'serveReturnedData', kparams); return client.get_serve_url(); end |
#serve_sent_data(id, action_type) ⇒ Object
Serves entry distribution sent data
1369 1370 1371 1372 1373 1374 1375 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1369 def serve_sent_data(id, action_type) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'actionType', action_type); client.queue_service_action_call('contentdistribution_entrydistribution', 'serveSentData', kparams); return client.get_serve_url(); end |
#submit_add(id, submit_when_ready = false) ⇒ Object
Submits Entry Distribution to the remote destination
1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1308 def submit_add(id, submit_when_ready=false) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'submitWhenReady', submit_when_ready); client.queue_service_action_call('contentdistribution_entrydistribution', 'submitAdd', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#submit_delete(id) ⇒ Object
Deletes Entry Distribution from the remote destination
1345 1346 1347 1348 1349 1350 1351 1352 1353 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1345 def submit_delete(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_entrydistribution', 'submitDelete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#submit_fetch_report(id) ⇒ Object
Submits Entry Distribution report request
1333 1334 1335 1336 1337 1338 1339 1340 1341 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1333 def submit_fetch_report(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_entrydistribution', 'submitFetchReport', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#submit_update(id) ⇒ Object
Submits Entry Distribution changes to the remote destination
1321 1322 1323 1324 1325 1326 1327 1328 1329 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1321 def submit_update(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_entrydistribution', 'submitUpdate', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(id, entry_distribution) ⇒ Object
Update Entry Distribution by id
1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1270 def update(id, entry_distribution) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'entryDistribution', entry_distribution); client.queue_service_action_call('contentdistribution_entrydistribution', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#validate(id) ⇒ Object
Validates Entry Distribution by id for submission
1258 1259 1260 1261 1262 1263 1264 1265 1266 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1258 def validate(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_entrydistribution', 'validate', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |