Class: Kaltura::KalturaPermissionItemService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaPermissionItemService
- Defined in:
- lib/kaltura_client.rb
Overview
PermissionItem service lets you create and manage permission items
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#add(permission_item) ⇒ Object
Adds a new permission item object to the account.
-
#delete(permission_item_id) ⇒ Object
Deletes an existing permission item object.
-
#get(permission_item_id) ⇒ Object
Retrieves a permission item object using its ID.
-
#initialize(client) ⇒ KalturaPermissionItemService
constructor
A new instance of KalturaPermissionItemService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
Lists permission item objects that are associated with an account.
-
#update(permission_item_id, permission_item) ⇒ Object
Updates an existing permission item object.
Constructor Details
#initialize(client) ⇒ KalturaPermissionItemService
Returns a new instance of KalturaPermissionItemService.
12203 12204 12205 |
# File 'lib/kaltura_client.rb', line 12203 def initialize(client) super(client) end |
Instance Method Details
#add(permission_item) ⇒ Object
Adds a new permission item object to the account. This action is available only to Kaltura system administrators.
12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 |
# File 'lib/kaltura_client.rb', line 12210 def add() kparams = {} # The new permission item client.add_param(kparams, 'permissionItem', ); client.queue_service_action_call('permissionitem', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(permission_item_id) ⇒ Object
Deletes an existing permission item object. This action is available only to Kaltura system administrators.
12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 |
# File 'lib/kaltura_client.rb', line 12253 def delete() kparams = {} # The permission item's unique identifier client.add_param(kparams, 'permissionItemId', ); client.queue_service_action_call('permissionitem', 'delete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(permission_item_id) ⇒ Object
Retrieves a permission item object using its ID.
12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 |
# File 'lib/kaltura_client.rb', line 12223 def get() kparams = {} # The permission item's unique identifier client.add_param(kparams, 'permissionItemId', ); client.queue_service_action_call('permissionitem', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
Lists permission item objects that are associated with an account.
12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 |
# File 'lib/kaltura_client.rb', line 12266 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} # A filter used to exclude specific types of permission items client.add_param(kparams, 'filter', filter); # A limit for the number of records to display on a page client.add_param(kparams, 'pager', pager); client.queue_service_action_call('permissionitem', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(permission_item_id, permission_item) ⇒ Object
Updates an existing permission item object. This action is available only to Kaltura system administrators.
12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 |
# File 'lib/kaltura_client.rb', line 12237 def update(, ) kparams = {} # The permission item's unique identifier client.add_param(kparams, 'permissionItemId', ); # Id The permission item's unique identifier client.add_param(kparams, 'permissionItem', ); client.queue_service_action_call('permissionitem', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |