Class: Kaltura::KalturaStorageProfileService

Inherits:
KalturaServiceBase show all
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  manager if you wish to enable it for your partner.

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaStorageProfileService

Returns a new instance of KalturaStorageProfileService.



4497
4498
4499
# File 'lib/kaltura_client.rb', line 4497

def initialize(client)
  super(client)
end

Instance Method Details

#add(storage_profile) ⇒ KalturaStorageProfile

Adds a storage profile to the Kaltura DB.



4503
4504
4505
4506
4507
4508
4509
4510
4511
# File 'lib/kaltura_client.rb', line 4503

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



4515
4516
4517
4518
4519
4520
4521
4522
4523
# File 'lib/kaltura_client.rb', line 4515

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



4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
# File 'lib/kaltura_client.rb', line 4526

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



4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
# File 'lib/kaltura_client.rb', line 4539

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 [].

Returns:



4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
# File 'lib/kaltura_client.rb', line 4551

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