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.



240
241
242
# File 'lib/kaltura_plugins/kaltura_var_console_client_plugin.rb', line 240

def initialize(client)
	super(client)
end

Instance Method Details

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

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



246
247
248
249
250
251
252
253
254
255
256
# File 'lib/kaltura_plugins/kaltura_var_console_client_plugin.rb', line 246

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', 'KalturaPartnerUsageListResponse', 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

Returns:



260
261
262
263
264
265
266
267
268
269
# File 'lib/kaltura_plugins/kaltura_var_console_client_plugin.rb', line 260

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