Class: Kaltura::KalturaFlavorParamsService

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

Overview

Add & Manage Flavor Params

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaFlavorParamsService

Returns a new instance of KalturaFlavorParamsService.



10852
10853
10854
# File 'lib/kaltura_client.rb', line 10852

def initialize(client)
	super(client)
end

Instance Method Details

#add(flavor_params) ⇒ Object

Add new Flavor Params



10858
10859
10860
10861
10862
10863
10864
10865
10866
# File 'lib/kaltura_client.rb', line 10858

def add(flavor_params)
	kparams = {}
	client.add_param(kparams, 'flavorParams', flavor_params);
	client.queue_service_action_call('flavorparams', 'add', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#delete(id) ⇒ Object

Delete Flavor Params by ID



10895
10896
10897
10898
10899
10900
10901
10902
10903
# File 'lib/kaltura_client.rb', line 10895

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

#get(id) ⇒ Object

Get Flavor Params by ID



10870
10871
10872
10873
10874
10875
10876
10877
10878
# File 'lib/kaltura_client.rb', line 10870

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

#get_by_conversion_profile_id(conversion_profile_id) ⇒ Object

Get Flavor Params by Conversion Profile ID



10920
10921
10922
10923
10924
10925
10926
10927
10928
# File 'lib/kaltura_client.rb', line 10920

def get_by_conversion_profile_id(conversion_profile_id)
	kparams = {}
	client.add_param(kparams, 'conversionProfileId', conversion_profile_id);
	client.queue_service_action_call('flavorparams', 'getByConversionProfileId', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

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

List Flavor Params by filter with paging support (By default - all system default params will be listed too)



10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
# File 'lib/kaltura_client.rb', line 10907

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

#update(id, flavor_params) ⇒ Object

Update Flavor Params by ID



10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
# File 'lib/kaltura_client.rb', line 10882

def update(id, flavor_params)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.add_param(kparams, 'flavorParams', flavor_params);
	client.queue_service_action_call('flavorparams', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end