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.



3967
3968
3969
# File 'lib/kaltura_client.rb', line 3967

def initialize(client)
	super(client)
end

Instance Method Details

#add(add_response_profile) ⇒ KalturaResponseProfile

Add new response profile



3973
3974
3975
3976
3977
3978
3979
3980
3981
# File 'lib/kaltura_client.rb', line 3973

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) ⇒ KalturaResponseProfile

Clone an existing response profile



3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
# File 'lib/kaltura_client.rb', line 3985

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

Returns:



3998
3999
4000
4001
4002
4003
4004
4005
4006
# File 'lib/kaltura_client.rb', line 3998

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) ⇒ KalturaResponseProfile

Get response profile by id



4010
4011
4012
4013
4014
4015
4016
4017
4018
# File 'lib/kaltura_client.rb', line 4010

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) ⇒ KalturaResponseProfileListResponse

List response profiles by filter and pager



4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
# File 'lib/kaltura_client.rb', line 4022

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) ⇒ KalturaResponseProfileCacheRecalculateResults

Recalculate response profile cached objects



4035
4036
4037
4038
4039
4040
4041
4042
4043
# File 'lib/kaltura_client.rb', line 4035

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) ⇒ KalturaResponseProfile

Update response profile by id



4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
# File 'lib/kaltura_client.rb', line 4047

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) ⇒ KalturaResponseProfile

Update response profile status by id



4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
# File 'lib/kaltura_client.rb', line 4060

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