Class: Kaltura::KalturaConversionProfileService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaConversionProfileService
- Defined in:
- lib/kaltura_client.rb
Overview
Add & Manage Conversion Profiles
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(conversion_profile) ⇒ KalturaConversionProfile
Add new Conversion Profile.
-
#delete(id) ⇒ Object
Delete Conversion Profile by ID.
-
#get(id) ⇒ KalturaConversionProfile
Get Conversion Profile by ID.
-
#get_default(type = KalturaNotImplemented) ⇒ KalturaConversionProfile
Get the partner’s default conversion profile.
-
#initialize(client) ⇒ KalturaConversionProfileService
constructor
A new instance of KalturaConversionProfileService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaConversionProfileListResponse
List Conversion Profiles by filter with paging support.
-
#set_as_default(id) ⇒ KalturaConversionProfile
Set Conversion Profile to be the partner default.
-
#update(id, conversion_profile) ⇒ KalturaConversionProfile
Update Conversion Profile by ID.
Constructor Details
#initialize(client) ⇒ KalturaConversionProfileService
Returns a new instance of KalturaConversionProfileService.
1222 1223 1224 |
# File 'lib/kaltura_client.rb', line 1222 def initialize(client) super(client) end |
Instance Method Details
#add(conversion_profile) ⇒ KalturaConversionProfile
Add new Conversion Profile
1228 1229 1230 1231 1232 1233 1234 1235 1236 |
# File 'lib/kaltura_client.rb', line 1228 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
1240 1241 1242 1243 1244 1245 1246 1247 1248 |
# File 'lib/kaltura_client.rb', line 1240 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
1252 1253 1254 1255 1256 1257 1258 1259 1260 |
# File 'lib/kaltura_client.rb', line 1252 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
1264 1265 1266 1267 1268 1269 1270 1271 1272 |
# File 'lib/kaltura_client.rb', line 1264 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
1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 |
# File 'lib/kaltura_client.rb', line 1276 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
1289 1290 1291 1292 1293 1294 1295 1296 1297 |
# File 'lib/kaltura_client.rb', line 1289 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
1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 |
# File 'lib/kaltura_client.rb', line 1301 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 |