Class: Kaltura::KalturaAccessControlService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaAccessControlService
- Defined in:
- lib/kaltura_client.rb
Overview
Add & Manage Access Controls
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(access_control) ⇒ Object
Add new Access Control Profile.
-
#delete(id) ⇒ Object
Delete Access Control Profile by id.
-
#get(id) ⇒ Object
Get Access Control Profile by id.
-
#initialize(client) ⇒ KalturaAccessControlService
constructor
A new instance of KalturaAccessControlService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List Access Control Profiles by filter and pager.
-
#update(id, access_control) ⇒ Object
Update Access Control Profile by id.
Constructor Details
#initialize(client) ⇒ KalturaAccessControlService
Returns a new instance of KalturaAccessControlService.
9065 9066 9067 |
# File 'lib/kaltura_client.rb', line 9065 def initialize(client) super(client) end |
Instance Method Details
#add(access_control) ⇒ Object
Add new Access Control Profile
9071 9072 9073 9074 9075 9076 9077 9078 9079 |
# File 'lib/kaltura_client.rb', line 9071 def add(access_control) kparams = {} client.add_param(kparams, 'accessControl', access_control); client.queue_service_action_call('accesscontrol', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(id) ⇒ Object
Delete Access Control Profile by id
9108 9109 9110 9111 9112 9113 9114 9115 9116 |
# File 'lib/kaltura_client.rb', line 9108 def delete(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('accesscontrol', 'delete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(id) ⇒ Object
Get Access Control Profile by id
9083 9084 9085 9086 9087 9088 9089 9090 9091 |
# File 'lib/kaltura_client.rb', line 9083 def get(id) kparams = {} client.add_param(kparams, 'id', id); client.queue_service_action_call('accesscontrol', '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
9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 |
# File 'lib/kaltura_client.rb', line 9120 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter); client.add_param(kparams, 'pager', pager); client.queue_service_action_call('accesscontrol', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(id, access_control) ⇒ Object
Update Access Control Profile by id
9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 |
# File 'lib/kaltura_client.rb', line 9095 def update(id, access_control) kparams = {} client.add_param(kparams, 'id', id); client.add_param(kparams, 'accessControl', access_control); client.queue_service_action_call('accesscontrol', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |