Class: Kaltura::KalturaVarConsoleService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_var_console_client_plugin.rb

Overview

Utility service for the Multi-publishers console

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaVarConsoleService

Returns a new instance of KalturaVarConsoleService.



196
197
198
# File 'lib/kaltura_plugins/kaltura_var_console_client_plugin.rb', line 196

def initialize(client)
	super(client)
end

Instance Method Details

#get_partner_usage(partner_filter = KalturaNotImplemented, usage_filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object

Function which calulates partner usage of a group of a VAR’s sub-publishers



202
203
204
205
206
207
208
209
210
211
212
# File 'lib/kaltura_plugins/kaltura_var_console_client_plugin.rb', line 202

def get_partner_usage(partner_filter=KalturaNotImplemented, usage_filter=KalturaNotImplemented, pager=KalturaNotImplemented)
	kparams = {}
	client.add_param(kparams, 'partnerFilter', partner_filter);
	client.add_param(kparams, 'usageFilter', usage_filter);
	client.add_param(kparams, 'pager', pager);
	client.queue_service_action_call('varconsole_varconsole', 'getPartnerUsage', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update_status(id, status) ⇒ Object

Function to change a sub-publisher’s status



216
217
218
219
220
221
222
223
224
225
# File 'lib/kaltura_plugins/kaltura_var_console_client_plugin.rb', line 216

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