Class: Kaltura::KalturaThumbParamsService

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

Overview

Add & Manage Thumb Params

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaThumbParamsService

Returns a new instance of KalturaThumbParamsService.



13366
13367
13368
# File 'lib/kaltura_client.rb', line 13366

def initialize(client)
	super(client)
end

Instance Method Details

#add(thumb_params) ⇒ Object

Add new Thumb Params



13372
13373
13374
13375
13376
13377
13378
13379
13380
# File 'lib/kaltura_client.rb', line 13372

def add(thumb_params)
	kparams = {}
	client.add_param(kparams, 'thumbParams', thumb_params);
	client.queue_service_action_call('thumbparams', 'add', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#delete(id) ⇒ Object

Delete Thumb Params by ID



13409
13410
13411
13412
13413
13414
13415
13416
13417
# File 'lib/kaltura_client.rb', line 13409

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

#get(id) ⇒ Object

Get Thumb Params by ID



13384
13385
13386
13387
13388
13389
13390
13391
13392
# File 'lib/kaltura_client.rb', line 13384

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

#get_by_conversion_profile_id(conversion_profile_id) ⇒ Object

Get Thumb Params by Conversion Profile ID



13434
13435
13436
13437
13438
13439
13440
13441
13442
# File 'lib/kaltura_client.rb', line 13434

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

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

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



13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
# File 'lib/kaltura_client.rb', line 13421

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

#update(id, thumb_params) ⇒ Object

Update Thumb Params by ID



13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
# File 'lib/kaltura_client.rb', line 13396

def update(id, thumb_params)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.add_param(kparams, 'thumbParams', thumb_params);
	client.queue_service_action_call('thumbparams', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end