Class: Kaltura::Service::AccessControlService
- Inherits:
-
BaseService
- Object
- BaseService
- Kaltura::Service::AccessControlService
- Defined in:
- lib/kaltura/service/access_control_service.rb
Overview
AccessControlService is responsible for adding and managing access control profiles.
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
-
#add(access_control) ⇒ Kaltura::AccessControl
Adds a new Access Control Profile.
-
#delete(id) ⇒ nil
Deletes an Access Control Profile by ID.
-
#get(id) ⇒ Kaltura::AccessControl
Retrieves an Access Control Profile by ID.
-
#list(filter = nil, pager = nil) ⇒ Kaltura::Response::AccessControlListResponse
Lists Access Control Profiles given an optional filter and pager.
-
#update(id, access_control) ⇒ Kaltura:AccessControl
Updates an Access Control Profile by ID.
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Kaltura::Service::BaseService
Instance Method Details
#add(access_control) ⇒ Kaltura::AccessControl
Adds a new Access Control Profile.
40 41 42 43 44 |
# File 'lib/kaltura/service/access_control_service.rb', line 40 def add(access_control) kparams = {} client.add_param(kparams, 'accessControl', access_control) perform_request('accessControl','add',kparams,false) end |
#delete(id) ⇒ nil
Deletes an Access Control Profile by ID.
88 89 90 91 92 |
# File 'lib/kaltura/service/access_control_service.rb', line 88 def delete(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('accessControl','delete',kparams,false) end |
#get(id) ⇒ Kaltura::AccessControl
Retrieves an Access Control Profile by ID.
55 56 57 58 59 |
# File 'lib/kaltura/service/access_control_service.rb', line 55 def get(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('accessControl','get',kparams,false) end |
#list(filter = nil, pager = nil) ⇒ Kaltura::Response::AccessControlListResponse
Lists Access Control Profiles given an optional filter and pager.
102 103 104 105 106 107 |
# File 'lib/kaltura/service/access_control_service.rb', line 102 def list(filter=nil, pager=nil) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) perform_request('accessControl','list',kparams,false) end |
#update(id, access_control) ⇒ Kaltura:AccessControl
Updates an Access Control Profile by ID. Like other API update service calls, you instantiate a new AccessControl object, perform your changes to the new object, and use that as the second parameter. There are no required parameters.
72 73 74 75 76 77 |
# File 'lib/kaltura/service/access_control_service.rb', line 72 def update(id, access_control) kparams = {} client.add_param(kparams, 'id', id) client.add_param(kparams, 'accessControl', access_control) perform_request('accessControl','update',kparams,false) end |