Class: Kaltura::KalturaConversionProfileService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Overview

Add & Manage Conversion Profiles

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaConversionProfileService



1183
1184
1185
# File 'lib/kaltura_client.rb', line 1183

def initialize(client)
  super(client)
end

Instance Method Details

#add(conversion_profile) ⇒ KalturaConversionProfile

Add new Conversion Profile



1189
1190
1191
1192
1193
1194
1195
1196
1197
# File 'lib/kaltura_client.rb', line 1189

def add(conversion_profile)
  kparams = {}
  client.add_param(kparams, 'conversionProfile', conversion_profile)
  client.queue_service_action_call('conversionprofile', 'add', 'KalturaConversionProfile', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#delete(id) ⇒ Object

Delete Conversion Profile by ID



1201
1202
1203
1204
1205
1206
1207
1208
1209
# File 'lib/kaltura_client.rb', line 1201

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

#get(id) ⇒ KalturaConversionProfile

Get Conversion Profile by ID



1213
1214
1215
1216
1217
1218
1219
1220
1221
# File 'lib/kaltura_client.rb', line 1213

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

#get_default(type = KalturaNotImplemented) ⇒ KalturaConversionProfile

Get the partner’s default conversion profile



1225
1226
1227
1228
1229
1230
1231
1232
1233
# File 'lib/kaltura_client.rb', line 1225

def get_default(type=KalturaNotImplemented)
  kparams = {}
  client.add_param(kparams, 'type', type)
  client.queue_service_action_call('conversionprofile', 'getDefault', 'KalturaConversionProfile', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

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

List Conversion Profiles by filter with paging support



1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
# File 'lib/kaltura_client.rb', line 1237

def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
  kparams = {}
  client.add_param(kparams, 'filter', filter)
  client.add_param(kparams, 'pager', pager)
  client.queue_service_action_call('conversionprofile', 'list', 'KalturaConversionProfileListResponse', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#set_as_default(id) ⇒ KalturaConversionProfile

Set Conversion Profile to be the partner default



1250
1251
1252
1253
1254
1255
1256
1257
1258
# File 'lib/kaltura_client.rb', line 1250

def set_as_default(id)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.queue_service_action_call('conversionprofile', 'setAsDefault', 'KalturaConversionProfile', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end

#update(id, conversion_profile) ⇒ KalturaConversionProfile

Update Conversion Profile by ID



1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
# File 'lib/kaltura_client.rb', line 1262

def update(id, conversion_profile)
  kparams = {}
  client.add_param(kparams, 'id', id)
  client.add_param(kparams, 'conversionProfile', conversion_profile)
  client.queue_service_action_call('conversionprofile', 'update', 'KalturaConversionProfile', kparams)
  if (client.is_multirequest)
    return nil
  end
  return client.do_queue()
end