Class: Kaltura::KalturaGenericDistributionProviderService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb

Overview

Generic Distribution Provider service

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaGenericDistributionProviderService

Returns a new instance of KalturaGenericDistributionProviderService.



2306
2307
2308
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2306

def initialize(client)
  super(client)
end

Instance Method Details

#add(generic_distribution_provider) ⇒ KalturaGenericDistributionProvider

Add new Generic Distribution Provider



2312
2313
2314
2315
2316
2317
2318
2319
2320
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2312

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

Returns:



2324
2325
2326
2327
2328
2329
2330
2331
2332
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2324

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



2336
2337
2338
2339
2340
2341
2342
2343
2344
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2336

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



2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2348

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



2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2361

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