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.



4550
4551
4552
# File 'lib/kaltura_client.rb', line 4550

def initialize(client)
  super(client)
end

Instance Method Details

#add(storage_profile) ⇒ KalturaStorageProfile

Adds a storage profile to the Kaltura DB.



4556
4557
4558
4559
4560
4561
4562
4563
4564
# File 'lib/kaltura_client.rb', line 4556

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



4568
4569
4570
4571
4572
4573
4574
4575
4576
# File 'lib/kaltura_client.rb', line 4568

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



4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
# File 'lib/kaltura_client.rb', line 4579

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



4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
# File 'lib/kaltura_client.rb', line 4592

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:



4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
# File 'lib/kaltura_client.rb', line 4604

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