Class: Kaltura::KalturaDeliveryProfileService

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

Overview

delivery service is used to control delivery objects

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaDeliveryProfileService

Returns a new instance of KalturaDeliveryProfileService.



1426
1427
1428
# File 'lib/kaltura_client.rb', line 1426

def initialize(client)
	super(client)
end

Instance Method Details

#add(delivery) ⇒ KalturaDeliveryProfile

Add new delivery.



1432
1433
1434
1435
1436
1437
1438
1439
1440
# File 'lib/kaltura_client.rb', line 1432

def add(delivery)
	kparams = {}
	client.add_param(kparams, 'delivery', delivery)
	client.queue_service_action_call('deliveryprofile', 'add', 'KalturaDeliveryProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#clone(delivery_id) ⇒ KalturaDeliveryProfile

Add delivery based on existing delivery. Must provide valid sourceDeliveryId



1445
1446
1447
1448
1449
1450
1451
1452
1453
# File 'lib/kaltura_client.rb', line 1445

def clone(delivery_id)
	kparams = {}
	client.add_param(kparams, 'deliveryId', delivery_id)
	client.queue_service_action_call('deliveryprofile', 'clone', 'KalturaDeliveryProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#get(id) ⇒ KalturaDeliveryProfile

Get delivery by id



1457
1458
1459
1460
1461
1462
1463
1464
1465
# File 'lib/kaltura_client.rb', line 1457

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

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

Retrieve a list of available delivery depends on the filter given



1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
# File 'lib/kaltura_client.rb', line 1469

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

#update(id, delivery) ⇒ KalturaDeliveryProfile

Update existing delivery profile



1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
# File 'lib/kaltura_client.rb', line 1482

def update(id, delivery)
	kparams = {}
	client.add_param(kparams, 'id', id)
	client.add_param(kparams, 'delivery', delivery)
	client.queue_service_action_call('deliveryprofile', 'update', 'KalturaDeliveryProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end