Class: Kaltura::KalturaResponseProfileService

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

Overview

Manage response profiles

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaResponseProfileService

Returns a new instance of KalturaResponseProfileService.



3844
3845
3846
# File 'lib/kaltura_client.rb', line 3844

def initialize(client)
	super(client)
end

Instance Method Details

#add(add_response_profile) ⇒ Object

Add new response profile



3850
3851
3852
3853
3854
3855
3856
3857
3858
# File 'lib/kaltura_client.rb', line 3850

def add(add_response_profile)
	kparams = {}
	client.add_param(kparams, 'addResponseProfile', add_response_profile)
	client.queue_service_action_call('responseprofile', 'add', 'KalturaResponseProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#clone(id, profile) ⇒ Object

Clone an existing response profile



3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
# File 'lib/kaltura_client.rb', line 3937

def clone(id, profile)
	kparams = {}
	client.add_param(kparams, 'id', id)
	client.add_param(kparams, 'profile', profile)
	client.queue_service_action_call('responseprofile', 'clone', 'KalturaResponseProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#delete(id) ⇒ Object

Delete response profile by id



3900
3901
3902
3903
3904
3905
3906
3907
3908
# File 'lib/kaltura_client.rb', line 3900

def delete(id)
	kparams = {}
	client.add_param(kparams, 'id', id)
	client.queue_service_action_call('responseprofile', 'delete', '', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#get(id) ⇒ Object

Get response profile by id



3862
3863
3864
3865
3866
3867
3868
3869
3870
# File 'lib/kaltura_client.rb', line 3862

def get(id)
	kparams = {}
	client.add_param(kparams, 'id', id)
	client.queue_service_action_call('responseprofile', 'get', 'KalturaResponseProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

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

List response profiles by filter and pager



3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
# File 'lib/kaltura_client.rb', line 3912

def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented)
	kparams = {}
	client.add_param(kparams, 'filter', filter)
	client.add_param(kparams, 'pager', pager)
	client.queue_service_action_call('responseprofile', 'list', 'KalturaResponseProfileListResponse', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#recalculate(options) ⇒ Object

Recalculate response profile cached objects



3925
3926
3927
3928
3929
3930
3931
3932
3933
# File 'lib/kaltura_client.rb', line 3925

def recalculate(options)
	kparams = {}
	client.add_param(kparams, 'options', options)
	client.queue_service_action_call('responseprofile', 'recalculate', 'KalturaResponseProfileCacheRecalculateResults', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update(id, update_response_profile) ⇒ Object

Update response profile by id



3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
# File 'lib/kaltura_client.rb', line 3874

def update(id, update_response_profile)
	kparams = {}
	client.add_param(kparams, 'id', id)
	client.add_param(kparams, 'updateResponseProfile', update_response_profile)
	client.queue_service_action_call('responseprofile', 'update', 'KalturaResponseProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update_status(id, status) ⇒ Object

Update response profile status by id



3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
# File 'lib/kaltura_client.rb', line 3887

def update_status(id, status)
	kparams = {}
	client.add_param(kparams, 'id', id)
	client.add_param(kparams, 'status', status)
	client.queue_service_action_call('responseprofile', 'updateStatus', 'KalturaResponseProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end