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.



4030
4031
4032
# File 'lib/kaltura_client.rb', line 4030

def initialize(client)
	super(client)
end

Instance Method Details

#add(add_response_profile) ⇒ KalturaResponseProfile

Add new response profile



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

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



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

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:



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

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



4073
4074
4075
4076
4077
4078
4079
4080
4081
# File 'lib/kaltura_client.rb', line 4073

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



4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
# File 'lib/kaltura_client.rb', line 4085

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



4098
4099
4100
4101
4102
4103
4104
4105
4106
# File 'lib/kaltura_client.rb', line 4098

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



4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
# File 'lib/kaltura_client.rb', line 4110

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



4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
# File 'lib/kaltura_client.rb', line 4123

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