Class: Kaltura::KalturaGenericDistributionProviderService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaGenericDistributionProviderService
- Defined in:
- lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb
Overview
Generic Distribution Provider service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(generic_distribution_provider) ⇒ Object
Add new Generic Distribution Provider.
-
#delete(id) ⇒ Object
Delete Generic Distribution Provider by id.
-
#get(id) ⇒ Object
Get Generic Distribution Provider by id.
-
#initialize(client) ⇒ KalturaGenericDistributionProviderService
constructor
A new instance of KalturaGenericDistributionProviderService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List all distribution providers.
-
#update(id, generic_distribution_provider) ⇒ Object
Update Generic Distribution Provider by id.
Constructor Details
#initialize(client) ⇒ KalturaGenericDistributionProviderService
Returns a new instance of KalturaGenericDistributionProviderService.
1412 1413 1414 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1412 def initialize(client) super(client) end |
Instance Method Details
#add(generic_distribution_provider) ⇒ Object
Add new Generic Distribution Provider
1418 1419 1420 1421 1422 1423 1424 1425 1426 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1418 def add(generic_distribution_provider) kparams = {} client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider); client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(id) ⇒ Object
Delete Generic Distribution Provider by id
1455 1456 1457 1458 1459 1460 1461 1462 1463 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1455 def delete(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'delete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(id) ⇒ Object
Get Generic Distribution Provider by id
1430 1431 1432 1433 1434 1435 1436 1437 1438 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1430 def get(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List all distribution providers
1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1467 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_genericdistributionprovider', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(id, generic_distribution_provider) ⇒ Object
Update Generic Distribution Provider by id
1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 1442 def update(id, generic_distribution_provider) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider); client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |