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) ⇒ KalturaAccessControl
Add new Access Control Profile.
-
#delete(id) ⇒ Object
Delete Access Control Profile by id.
-
#get(id) ⇒ KalturaAccessControl
Get Access Control Profile by id.
-
#initialize(client) ⇒ KalturaAccessControlService
constructor
A new instance of KalturaAccessControlService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaAccessControlListResponse
List Access Control Profiles by filter and pager.
-
#update(id, access_control) ⇒ KalturaAccessControl
Update Access Control Profile by id.
Constructor Details
#initialize(client) ⇒ KalturaAccessControlService
Returns a new instance of KalturaAccessControlService.
106 107 108 |
# File 'lib/kaltura_client.rb', line 106 def initialize(client) super(client) end |
Instance Method Details
#add(access_control) ⇒ KalturaAccessControl
Add new Access Control Profile
112 113 114 115 116 117 118 119 120 |
# File 'lib/kaltura_client.rb', line 112 def add(access_control) kparams = {} client.add_param(kparams, 'accessControl', access_control) client.queue_service_action_call('accesscontrol', 'add', 'KalturaAccessControl', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(id) ⇒ Object
Delete Access Control Profile by id
124 125 126 127 128 129 130 131 132 |
# File 'lib/kaltura_client.rb', line 124 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) ⇒ KalturaAccessControl
Get Access Control Profile by id
136 137 138 139 140 141 142 143 144 |
# File 'lib/kaltura_client.rb', line 136 def get(id) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('accesscontrol', 'get', 'KalturaAccessControl', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaAccessControlListResponse
List Access Control Profiles by filter and pager
148 149 150 151 152 153 154 155 156 157 |
# File 'lib/kaltura_client.rb', line 148 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', 'KalturaAccessControlListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(id, access_control) ⇒ KalturaAccessControl
Update Access Control Profile by id
161 162 163 164 165 166 167 168 169 170 |
# File 'lib/kaltura_client.rb', line 161 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', 'KalturaAccessControl', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |