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.



37
38
39
# File 'lib/kaltura_client.rb', line 37

def initialize(client)
	super(client)
end

Instance Method Details

#add(access_control_profile) ⇒ KalturaAccessControlProfile

Add new access control profile



43
44
45
46
47
48
49
50
51
# File 'lib/kaltura_client.rb', line 43

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

#delete(id) ⇒ Object

Delete access control profile by id

Returns:



55
56
57
58
59
60
61
62
63
# File 'lib/kaltura_client.rb', line 55

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) ⇒ KalturaAccessControlProfile

Get access control profile by id



67
68
69
70
71
72
73
74
75
# File 'lib/kaltura_client.rb', line 67

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

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

List access control profiles by filter and pager



79
80
81
82
83
84
85
86
87
88
# File 'lib/kaltura_client.rb', line 79

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', 'KalturaAccessControlProfileListResponse', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#update(id, access_control_profile) ⇒ KalturaAccessControlProfile

Update access control profile by id



92
93
94
95
96
97
98
99
100
101
# File 'lib/kaltura_client.rb', line 92

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', 'KalturaAccessControlProfile', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end