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) ⇒ KalturaGenericDistributionProvider
Add new Generic Distribution Provider.
-
#delete(id) ⇒ Object
Delete Generic Distribution Provider by id.
-
#get(id) ⇒ KalturaGenericDistributionProvider
Get Generic Distribution Provider by id.
-
#initialize(client) ⇒ KalturaGenericDistributionProviderService
constructor
A new instance of KalturaGenericDistributionProviderService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaGenericDistributionProviderListResponse
List all distribution providers.
-
#update(id, generic_distribution_provider) ⇒ KalturaGenericDistributionProvider
Update Generic Distribution Provider by id.
Constructor Details
#initialize(client) ⇒ KalturaGenericDistributionProviderService
Returns a new instance of KalturaGenericDistributionProviderService.
2313 2314 2315 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2313 def initialize(client) super(client) end |
Instance Method Details
#add(generic_distribution_provider) ⇒ KalturaGenericDistributionProvider
Add new Generic Distribution Provider
2319 2320 2321 2322 2323 2324 2325 2326 2327 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2319 def add(generic_distribution_provider) kparams = {} client.add_param(kparams, 'genericDistributionProvider', generic_distribution_provider) client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'add', 'KalturaGenericDistributionProvider', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(id) ⇒ Object
Delete Generic Distribution Provider by id
2331 2332 2333 2334 2335 2336 2337 2338 2339 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2331 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) ⇒ KalturaGenericDistributionProvider
Get Generic Distribution Provider by id
2343 2344 2345 2346 2347 2348 2349 2350 2351 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2343 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('contentdistribution_genericdistributionprovider', 'get', 'KalturaGenericDistributionProvider', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaGenericDistributionProviderListResponse
List all distribution providers
2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2355 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', 'KalturaGenericDistributionProviderListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(id, generic_distribution_provider) ⇒ KalturaGenericDistributionProvider
Update Generic Distribution Provider by id
2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 |
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2368 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', 'KalturaGenericDistributionProvider', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |