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.



15097
15098
15099
# File 'lib/kaltura_client.rb', line 15097

def initialize(client)
	super(client)
end

Instance Method Details

#add(storage_profile) ⇒ Object

Adds a storage profile to the Kaltura DB.



15103
15104
15105
15106
15107
15108
15109
15110
15111
# File 'lib/kaltura_client.rb', line 15103

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



15126
15127
15128
15129
15130
15131
15132
15133
15134
# File 'lib/kaltura_client.rb', line 15126

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



15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
# File 'lib/kaltura_client.rb', line 15150

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



15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
# File 'lib/kaltura_client.rb', line 15138

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



15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
# File 'lib/kaltura_client.rb', line 15113

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