Class: Kaltura::KalturaDrmProfileService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaDrmProfileService
- Defined in:
- lib/kaltura_plugins/kaltura_drm_client_plugin.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(drm_profile) ⇒ Object
Allows you to add a new DrmProfile object.
-
#delete(drm_profile_id) ⇒ Object
Mark the KalturaDrmProfile object as deleted.
-
#get(drm_profile_id) ⇒ Object
Retrieve a KalturaDrmProfile object by ID.
-
#get_by_provider(provider) ⇒ Object
Retrieve a KalturaDrmProfile object by provider, if no specific profile defined return default profile.
-
#initialize(client) ⇒ KalturaDrmProfileService
constructor
A new instance of KalturaDrmProfileService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List KalturaDrmProfile objects.
-
#update(drm_profile_id, drm_profile) ⇒ Object
Update an existing KalturaDrmProfile object.
Constructor Details
#initialize(client) ⇒ KalturaDrmProfileService
Returns a new instance of KalturaDrmProfileService.
114 115 116 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 114 def initialize(client) super(client) end |
Instance Method Details
#add(drm_profile) ⇒ Object
Allows you to add a new DrmProfile object
120 121 122 123 124 125 126 127 128 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 120 def add(drm_profile) kparams = {} client.add_param(kparams, 'drmProfile', drm_profile); client.queue_service_action_call('drm_drmprofile', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(drm_profile_id) ⇒ Object
Mark the KalturaDrmProfile object as deleted
158 159 160 161 162 163 164 165 166 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 158 def delete(drm_profile_id) kparams = {} client.add_param(kparams, 'drmProfileId', drm_profile_id); client.queue_service_action_call('drm_drmprofile', 'delete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(drm_profile_id) ⇒ Object
Retrieve a KalturaDrmProfile object by ID
132 133 134 135 136 137 138 139 140 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 132 def get(drm_profile_id) kparams = {} client.add_param(kparams, 'drmProfileId', drm_profile_id); client.queue_service_action_call('drm_drmprofile', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get_by_provider(provider) ⇒ Object
Retrieve a KalturaDrmProfile object by provider, if no specific profile defined return default profile
183 184 185 186 187 188 189 190 191 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 183 def get_by_provider(provider) kparams = {} client.add_param(kparams, 'provider', provider); client.queue_service_action_call('drm_drmprofile', 'getByProvider', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List KalturaDrmProfile objects
170 171 172 173 174 175 176 177 178 179 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 170 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter); client.add_param(kparams, 'pager', pager); client.queue_service_action_call('drm_drmprofile', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(drm_profile_id, drm_profile) ⇒ Object
Update an existing KalturaDrmProfile object
144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 144 def update(drm_profile_id, drm_profile) kparams = {} client.add_param(kparams, 'drmProfileId', drm_profile_id); # Id client.add_param(kparams, 'drmProfile', drm_profile); client.queue_service_action_call('drm_drmprofile', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |