Class: Kaltura::KalturaPermissionItemService

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

Overview

PermissionItem service lets you create and manage permission items

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaPermissionItemService

Returns a new instance of KalturaPermissionItemService.



3654
3655
3656
# File 'lib/kaltura_client.rb', line 3654

def initialize(client)
	super(client)
end

Instance Method Details

#add(permission_item) ⇒ KalturaPermissionItem

Adds a new permission item object to the account. This action is available only to Kaltura system administrators.



3661
3662
3663
3664
3665
3666
3667
3668
3669
# File 'lib/kaltura_client.rb', line 3661

def add(permission_item)
	kparams = {}
	client.add_param(kparams, 'permissionItem', permission_item)
	client.queue_service_action_call('permissionitem', 'add', 'KalturaPermissionItem', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#delete(permission_item_id) ⇒ KalturaPermissionItem

Deletes an existing permission item object. This action is available only to Kaltura system administrators.



3674
3675
3676
3677
3678
3679
3680
3681
3682
# File 'lib/kaltura_client.rb', line 3674

def delete(permission_item_id)
	kparams = {}
	client.add_param(kparams, 'permissionItemId', permission_item_id)
	client.queue_service_action_call('permissionitem', 'delete', 'KalturaPermissionItem', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#get(permission_item_id) ⇒ KalturaPermissionItem

Retrieves a permission item object using its ID.



3686
3687
3688
3689
3690
3691
3692
3693
3694
# File 'lib/kaltura_client.rb', line 3686

def get(permission_item_id)
	kparams = {}
	client.add_param(kparams, 'permissionItemId', permission_item_id)
	client.queue_service_action_call('permissionitem', 'get', 'KalturaPermissionItem', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

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

Lists permission item objects that are associated with an account.



3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
# File 'lib/kaltura_client.rb', line 3698

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

#update(permission_item_id, permission_item) ⇒ KalturaPermissionItem

Updates an existing permission item object. This action is available only to Kaltura system administrators.



3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
# File 'lib/kaltura_client.rb', line 3712

def update(permission_item_id, permission_item)
	kparams = {}
	client.add_param(kparams, 'permissionItemId', permission_item_id)
	client.add_param(kparams, 'permissionItem', permission_item)
	client.queue_service_action_call('permissionitem', 'update', 'KalturaPermissionItem', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end