Class: Kaltura::KalturaAccessControlProfileService

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

Overview

Manage access control profiles

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaAccessControlProfileService

Returns a new instance of KalturaAccessControlProfileService.



8995
8996
8997
# File 'lib/kaltura_client.rb', line 8995

def initialize(client)
	super(client)
end

Instance Method Details

#add(access_control_profile) ⇒ Object

Add new access control profile



9001
9002
9003
9004
9005
9006
9007
9008
9009
# File 'lib/kaltura_client.rb', line 9001

def add(access_control_profile)
	kparams = {}
	client.add_param(kparams, 'accessControlProfile', access_control_profile);
	client.queue_service_action_call('accesscontrolprofile', 'add', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#delete(id) ⇒ Object

Delete access control profile by id



9038
9039
9040
9041
9042
9043
9044
9045
9046
# File 'lib/kaltura_client.rb', line 9038

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

#get(id) ⇒ Object

Get access control profile by id



9013
9014
9015
9016
9017
9018
9019
9020
9021
# File 'lib/kaltura_client.rb', line 9013

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

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

List access control profiles by filter and pager



9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
# File 'lib/kaltura_client.rb', line 9050

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

#update(id, access_control_profile) ⇒ Object

Update access control profile by id



9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
# File 'lib/kaltura_client.rb', line 9025

def update(id, access_control_profile)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.add_param(kparams, 'accessControlProfile', access_control_profile);
	client.queue_service_action_call('accesscontrolprofile', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end