Class: Kaltura::KalturaStorageProfileService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaStorageProfileService
- Defined in:
- lib/kaltura_client.rb
Overview
Storage Profiles service
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(storage_profile) ⇒ Object
Adds a storage profile to the Kaltura DB.
-
#get(storage_profile_id) ⇒ Object
Get storage profile by id.
-
#initialize(client) ⇒ KalturaStorageProfileService
constructor
A new instance of KalturaStorageProfileService.
- #list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
-
#update(storage_profile_id, storage_profile) ⇒ Object
Update storage profile by id.
- #update_status(storage_id, status) ⇒ Object
Constructor Details
#initialize(client) ⇒ KalturaStorageProfileService
Returns a new instance of KalturaStorageProfileService.
4311 4312 4313 |
# File 'lib/kaltura_client.rb', line 4311 def initialize(client) super(client) end |
Instance Method Details
#add(storage_profile) ⇒ Object
Adds a storage profile to the Kaltura DB.
4317 4318 4319 4320 4321 4322 4323 4324 4325 |
# File 'lib/kaltura_client.rb', line 4317 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) ⇒ Object
Get storage profile by id
4340 4341 4342 4343 4344 4345 4346 4347 4348 |
# File 'lib/kaltura_client.rb', line 4340 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) ⇒ Object
4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 |
# File 'lib/kaltura_client.rb', line 4363 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) ⇒ Object
Update storage profile by id
4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 |
# File 'lib/kaltura_client.rb', line 4352 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
4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 |
# File 'lib/kaltura_client.rb', line 4327 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 |