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.
4470 4471 4472 |
# File 'lib/kaltura_client.rb', line 4470 def initialize(client) super(client) end |
Instance Method Details
#add(storage_profile) ⇒ KalturaStorageProfile
Adds a storage profile to the Kaltura DB.
4476 4477 4478 4479 4480 4481 4482 4483 4484 |
# File 'lib/kaltura_client.rb', line 4476 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
4488 4489 4490 4491 4492 4493 4494 4495 4496 |
# File 'lib/kaltura_client.rb', line 4488 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
4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 |
# File 'lib/kaltura_client.rb', line 4499 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
4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 |
# File 'lib/kaltura_client.rb', line 4512 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 [].
4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 |
# File 'lib/kaltura_client.rb', line 4524 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 |