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) ⇒ KalturaDrmProfile
Allows you to add a new DrmProfile object.
-
#delete(drm_profile_id) ⇒ KalturaDrmProfile
Mark the KalturaDrmProfile object as deleted.
-
#get(drm_profile_id) ⇒ KalturaDrmProfile
Retrieve a KalturaDrmProfile object by ID.
-
#get_by_provider(provider) ⇒ KalturaDrmProfile
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) ⇒ KalturaDrmProfileListResponse
List KalturaDrmProfile objects.
-
#update(drm_profile_id, drm_profile) ⇒ KalturaDrmProfile
Update an existing KalturaDrmProfile object.
Constructor Details
#initialize(client) ⇒ KalturaDrmProfileService
Returns a new instance of KalturaDrmProfileService.
507 508 509 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 507 def initialize(client) super(client) end |
Instance Method Details
#add(drm_profile) ⇒ KalturaDrmProfile
Allows you to add a new DrmProfile object
513 514 515 516 517 518 519 520 521 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 513 def add(drm_profile) kparams = {} client.add_param(kparams, 'drmProfile', drm_profile) client.queue_service_action_call('drm_drmprofile', 'add', 'KalturaDrmProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(drm_profile_id) ⇒ KalturaDrmProfile
Mark the KalturaDrmProfile object as deleted
525 526 527 528 529 530 531 532 533 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 525 def delete(drm_profile_id) kparams = {} client.add_param(kparams, 'drmProfileId', drm_profile_id) client.queue_service_action_call('drm_drmprofile', 'delete', 'KalturaDrmProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(drm_profile_id) ⇒ KalturaDrmProfile
Retrieve a KalturaDrmProfile object by ID
537 538 539 540 541 542 543 544 545 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 537 def get(drm_profile_id) kparams = {} client.add_param(kparams, 'drmProfileId', drm_profile_id) client.queue_service_action_call('drm_drmprofile', 'get', 'KalturaDrmProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_by_provider(provider) ⇒ KalturaDrmProfile
Retrieve a KalturaDrmProfile object by provider, if no specific profile defined return default profile
549 550 551 552 553 554 555 556 557 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 549 def get_by_provider(provider) kparams = {} client.add_param(kparams, 'provider', provider) client.queue_service_action_call('drm_drmprofile', 'getByProvider', 'KalturaDrmProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaDrmProfileListResponse
List KalturaDrmProfile objects
561 562 563 564 565 566 567 568 569 570 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 561 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', 'KalturaDrmProfileListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(drm_profile_id, drm_profile) ⇒ KalturaDrmProfile
Update an existing KalturaDrmProfile object
574 575 576 577 578 579 580 581 582 583 |
# File 'lib/kaltura_plugins/kaltura_drm_client_plugin.rb', line 574 def update(drm_profile_id, drm_profile) kparams = {} client.add_param(kparams, 'drmProfileId', drm_profile_id) client.add_param(kparams, 'drmProfile', drm_profile) client.queue_service_action_call('drm_drmprofile', 'update', 'KalturaDrmProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |