Class: Kaltura::KalturaStorageProfileService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaStorageProfileService
- Defined in:
- lib/kaltura_client.rb
Overview
The Storage Profile service allows you to export your Kaltura content to external storage volumes.
This service is disabled by default, please contact your account manager if you wish to enable it for your partner.
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(storage_profile) ⇒ KalturaStorageProfile
Adds a storage profile to the Kaltura DB.
-
#get(storage_profile_id) ⇒ KalturaStorageProfile
Get storage profile by id.
-
#initialize(client) ⇒ KalturaStorageProfileService
constructor
A new instance of KalturaStorageProfileService.
- #list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaStorageProfileListResponse
-
#update(storage_profile_id, storage_profile) ⇒ KalturaStorageProfile
Update storage profile by id.
-
#update_status(storage_id, status) ⇒ Object
[].
Constructor Details
#initialize(client) ⇒ KalturaStorageProfileService
Returns a new instance of KalturaStorageProfileService.
4608 4609 4610 |
# File 'lib/kaltura_client.rb', line 4608 def initialize(client) super(client) end |
Instance Method Details
#add(storage_profile) ⇒ KalturaStorageProfile
Adds a storage profile to the Kaltura DB.
4614 4615 4616 4617 4618 4619 4620 4621 4622 |
# File 'lib/kaltura_client.rb', line 4614 def add(storage_profile) kparams = {} client.add_param(kparams, 'storageProfile', storage_profile) client.queue_service_action_call('storageprofile', 'add', 'KalturaStorageProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(storage_profile_id) ⇒ KalturaStorageProfile
Get storage profile by id
4626 4627 4628 4629 4630 4631 4632 4633 4634 |
# File 'lib/kaltura_client.rb', line 4626 def get(storage_profile_id) kparams = {} client.add_param(kparams, 'storageProfileId', storage_profile_id) client.queue_service_action_call('storageprofile', 'get', 'KalturaStorageProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaStorageProfileListResponse
4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 |
# File 'lib/kaltura_client.rb', line 4637 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('storageprofile', 'list', 'KalturaStorageProfileListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(storage_profile_id, storage_profile) ⇒ KalturaStorageProfile
Update storage profile by id
4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 |
# File 'lib/kaltura_client.rb', line 4650 def update(storage_profile_id, storage_profile) kparams = {} client.add_param(kparams, 'storageProfileId', storage_profile_id) client.add_param(kparams, 'storageProfile', storage_profile) client.queue_service_action_call('storageprofile', 'update', 'KalturaStorageProfile', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update_status(storage_id, status) ⇒ Object
Returns [].
4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 |
# File 'lib/kaltura_client.rb', line 4662 def update_status(storage_id, status) kparams = {} client.add_param(kparams, 'storageId', storage_id) client.add_param(kparams, 'status', status) client.queue_service_action_call('storageprofile', 'updateStatus', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |