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) ⇒ Object
Add new Conversion Profile.
-
#delete(id) ⇒ Object
Delete Conversion Profile by ID.
-
#get(id) ⇒ Object
Get Conversion Profile by ID.
-
#get_default(type = KalturaNotImplemented) ⇒ Object
Get the partner’s default conversion profile.
-
#initialize(client) ⇒ KalturaConversionProfileService
constructor
A new instance of KalturaConversionProfileService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List Conversion Profiles by filter with paging support.
-
#set_as_default(id) ⇒ Object
Set Conversion Profile to be the partner default.
-
#update(id, conversion_profile) ⇒ Object
Update Conversion Profile by ID.
Constructor Details
#initialize(client) ⇒ KalturaConversionProfileService
Returns a new instance of KalturaConversionProfileService.
10014 10015 10016 |
# File 'lib/kaltura_client.rb', line 10014 def initialize(client) super(client) end |
Instance Method Details
#add(conversion_profile) ⇒ Object
Add new Conversion Profile
10044 10045 10046 10047 10048 10049 10050 10051 10052 |
# File 'lib/kaltura_client.rb', line 10044 def add(conversion_profile) kparams = {} client.add_param(kparams, 'conversionProfile', conversion_profile); client.queue_service_action_call('conversionprofile', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(id) ⇒ Object
Delete Conversion Profile by ID
10081 10082 10083 10084 10085 10086 10087 10088 10089 |
# File 'lib/kaltura_client.rb', line 10081 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) ⇒ Object
Get Conversion Profile by ID
10056 10057 10058 10059 10060 10061 10062 10063 10064 |
# File 'lib/kaltura_client.rb', line 10056 def get(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('conversionprofile', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get_default(type = KalturaNotImplemented) ⇒ Object
Get the partner’s default conversion profile
10032 10033 10034 10035 10036 10037 10038 10039 10040 |
# File 'lib/kaltura_client.rb', line 10032 def get_default(type=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'type', type); client.queue_service_action_call('conversionprofile', 'getDefault', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List Conversion Profiles by filter with paging support
10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 |
# File 'lib/kaltura_client.rb', line 10093 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', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#set_as_default(id) ⇒ Object
Set Conversion Profile to be the partner default
10020 10021 10022 10023 10024 10025 10026 10027 10028 |
# File 'lib/kaltura_client.rb', line 10020 def set_as_default(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('conversionprofile', 'setAsDefault', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(id, conversion_profile) ⇒ Object
Update Conversion Profile by ID
10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 |
# File 'lib/kaltura_client.rb', line 10068 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', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |