Class: Kaltura::KalturaEntryDistributionService

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

Overview

Entry Distribution service

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaEntryDistributionService



2110
2111
2112
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2110

def initialize(client)
  super(client)
end

Instance Method Details

#add(entry_distribution) ⇒ KalturaEntryDistribution

Add new Entry Distribution



2116
2117
2118
2119
2120
2121
2122
2123
2124
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2116

def add(entry_distribution)
  kparams = {}
  client.add_param(kparams, 'entryDistribution', entry_distribution)
  client.queue_service_action_call('contentdistribution_entrydistribution', 'add', 'KalturaEntryDistribution', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#delete(id) ⇒ Object

Delete Entry Distribution by id



2128
2129
2130
2131
2132
2133
2134
2135
2136
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2128

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) ⇒ KalturaEntryDistribution

Get Entry Distribution by id



2140
2141
2142
2143
2144
2145
2146
2147
2148
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2140

def get(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('contentdistribution_entrydistribution', 'get', 'KalturaEntryDistribution', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaEntryDistributionListResponse

List all distribution providers



2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2152

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', 'KalturaEntryDistributionListResponse', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#retry_submit(id) ⇒ KalturaEntryDistribution

Retries last submit action



2165
2166
2167
2168
2169
2170
2171
2172
2173
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2165

def retry_submit(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('contentdistribution_entrydistribution', 'retrySubmit', 'KalturaEntryDistribution', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#serve_returned_data(id, action_type) ⇒ file

Serves entry distribution returned data



2177
2178
2179
2180
2181
2182
2183
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2177

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', 'file', kparams)
  return client.get_serve_url()
end

#serve_sent_data(id, action_type) ⇒ file

Serves entry distribution sent data



2187
2188
2189
2190
2191
2192
2193
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2187

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', 'file', kparams)
  return client.get_serve_url()
end

#submit_add(id, submit_when_ready = false) ⇒ KalturaEntryDistribution

Submits Entry Distribution to the remote destination



2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2197

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', 'KalturaEntryDistribution', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#submit_delete(id) ⇒ KalturaEntryDistribution

Deletes Entry Distribution from the remote destination



2210
2211
2212
2213
2214
2215
2216
2217
2218
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2210

def submit_delete(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('contentdistribution_entrydistribution', 'submitDelete', 'KalturaEntryDistribution', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#submit_fetch_report(id) ⇒ KalturaEntryDistribution

Submits Entry Distribution report request



2222
2223
2224
2225
2226
2227
2228
2229
2230
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2222

def submit_fetch_report(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('contentdistribution_entrydistribution', 'submitFetchReport', 'KalturaEntryDistribution', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#submit_update(id) ⇒ KalturaEntryDistribution

Submits Entry Distribution changes to the remote destination



2234
2235
2236
2237
2238
2239
2240
2241
2242
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2234

def submit_update(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('contentdistribution_entrydistribution', 'submitUpdate', 'KalturaEntryDistribution', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#update(id, entry_distribution) ⇒ KalturaEntryDistribution

Update Entry Distribution by id



2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2246

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', 'KalturaEntryDistribution', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#validate(id) ⇒ KalturaEntryDistribution

Validates Entry Distribution by id for submission



2259
2260
2261
2262
2263
2264
2265
2266
2267
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 2259

def validate(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('contentdistribution_entrydistribution', 'validate', 'KalturaEntryDistribution', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end