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 account 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.



4591
4592
4593
# File 'lib/kaltura_client.rb', line 4591

def initialize(client)
	super(client)
end

Instance Method Details

#add(storage_profile) ⇒ KalturaStorageProfile

Adds a storage profile to the Kaltura DB.



4597
4598
4599
4600
4601
4602
4603
4604
4605
# File 'lib/kaltura_client.rb', line 4597

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



4609
4610
4611
4612
4613
4614
4615
4616
4617
# File 'lib/kaltura_client.rb', line 4609

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



4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
# File 'lib/kaltura_client.rb', line 4620

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



4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
# File 'lib/kaltura_client.rb', line 4633

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:



4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
# File 'lib/kaltura_client.rb', line 4645

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