Class: Kaltura::KalturaSystemUserService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaSystemUserService
- Defined in:
- lib/kaltura_client.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
- #add(system_user) ⇒ Object
- #delete(user_id) ⇒ Object
- #generate_new_password ⇒ Object
- #get(user_id) ⇒ Object
- #get_by_email(email) ⇒ Object
-
#initialize(client) ⇒ KalturaSystemUserService
constructor
A new instance of KalturaSystemUserService.
- #list(filter = nil, pager = nil) ⇒ Object
- #set_new_password(user_id, password) ⇒ Object
- #update(user_id, system_user) ⇒ Object
- #verify_password(email, password) ⇒ Object
Constructor Details
#initialize(client) ⇒ KalturaSystemUserService
Returns a new instance of KalturaSystemUserService.
5197 5198 5199 |
# File 'lib/kaltura_client.rb', line 5197 def initialize(client) super(client) end |
Instance Method Details
#add(system_user) ⇒ Object
5232 5233 5234 5235 5236 5237 5238 5239 5240 |
# File 'lib/kaltura_client.rb', line 5232 def add(system_user) kparams = {} client.add_param(kparams, 'systemUser', system_user); client.queue_service_action_call('systemUser', 'add', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#delete(user_id) ⇒ Object
5273 5274 5275 5276 5277 5278 5279 5280 5281 |
# File 'lib/kaltura_client.rb', line 5273 def delete(user_id) kparams = {} client.add_param(kparams, 'userId', user_id); client.queue_service_action_call('systemUser', 'delete', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#generate_new_password ⇒ Object
5212 5213 5214 5215 5216 5217 5218 5219 |
# File 'lib/kaltura_client.rb', line 5212 def generate_new_password() kparams = {} client.queue_service_action_call('systemUser', 'generateNewPassword', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get(user_id) ⇒ Object
5242 5243 5244 5245 5246 5247 5248 5249 5250 |
# File 'lib/kaltura_client.rb', line 5242 def get(user_id) kparams = {} client.add_param(kparams, 'userId', user_id); client.queue_service_action_call('systemUser', 'get', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#get_by_email(email) ⇒ Object
5252 5253 5254 5255 5256 5257 5258 5259 5260 |
# File 'lib/kaltura_client.rb', line 5252 def get_by_email(email) kparams = {} client.add_param(kparams, 'email', email); client.queue_service_action_call('systemUser', 'getByEmail', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#list(filter = nil, pager = nil) ⇒ Object
5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 |
# File 'lib/kaltura_client.rb', line 5283 def list(filter=nil, pager=nil) kparams = {} client.add_param(kparams, 'filter', filter); client.add_param(kparams, 'pager', pager); client.queue_service_action_call('systemUser', 'list', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#set_new_password(user_id, password) ⇒ Object
5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 |
# File 'lib/kaltura_client.rb', line 5221 def set_new_password(user_id, password) kparams = {} client.add_param(kparams, 'userId', user_id); client.add_param(kparams, 'password', password); client.queue_service_action_call('systemUser', 'setNewPassword', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#update(user_id, system_user) ⇒ Object
5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 |
# File 'lib/kaltura_client.rb', line 5262 def update(user_id, system_user) kparams = {} client.add_param(kparams, 'userId', user_id); client.add_param(kparams, 'systemUser', system_user); client.queue_service_action_call('systemUser', 'update', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |
#verify_password(email, password) ⇒ Object
5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 |
# File 'lib/kaltura_client.rb', line 5201 def verify_password(email, password) kparams = {} client.add_param(kparams, 'email', email); client.add_param(kparams, 'password', password); client.queue_service_action_call('systemUser', 'verifyPassword', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |