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.



2292
2293
2294
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2292

def initialize(client)
  super(client)
end

Instance Method Details

#add(generic_distribution_provider) ⇒ KalturaGenericDistributionProvider

Add new Generic Distribution Provider



2298
2299
2300
2301
2302
2303
2304
2305
2306
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2298

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:



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

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



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

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



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

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



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

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