Class: Kaltura::KalturaStorageProfileService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Overview

Storage Profiles service

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaStorageProfileService

Returns a new instance of KalturaStorageProfileService.



12926
12927
12928
# File 'lib/kaltura_client.rb', line 12926

def initialize(client)
	super(client)
end

Instance Method Details

#add(storage_profile) ⇒ Object

Adds a storage profile to the Kaltura DB.



12932
12933
12934
12935
12936
12937
12938
12939
12940
# File 'lib/kaltura_client.rb', line 12932

def add(storage_profile)
	kparams = {}
	client.add_param(kparams, 'storageProfile', storage_profile);
	client.queue_service_action_call('storageprofile', 'add', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get(storage_profile_id) ⇒ Object

Get storage profile by id



12955
12956
12957
12958
12959
12960
12961
12962
12963
# File 'lib/kaltura_client.rb', line 12955

def get(storage_profile_id)
	kparams = {}
	client.add_param(kparams, 'storageProfileId', storage_profile_id);
	client.queue_service_action_call('storageprofile', 'get', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object



12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
# File 'lib/kaltura_client.rb', line 12979

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', 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



12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
# File 'lib/kaltura_client.rb', line 12967

def update(storage_profile_id, storage_profile)
	kparams = {}
	client.add_param(kparams, 'storageProfileId', storage_profile_id);
	# Id
	client.add_param(kparams, 'storageProfile', storage_profile);
	client.queue_service_action_call('storageprofile', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update_status(storage_id, status) ⇒ Object



12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
# File 'lib/kaltura_client.rb', line 12942

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