module Zoom::Actions::User

Public Instance Methods

user_assistants_create(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 47
def user_assistants_create(*args)
  raise Zoom::NotImplemented, 'user_assistants_create is not yet implemented'
  # TODO: validate body attributes
  options = Utils.extract_options!(args)
  Utils.parse_response self.class.post("/users/#{options.slice!(:id)}/assistants", body: options, headers: request_headers)
end
user_assistants_delete(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 61
def user_assistants_delete(*args)
  # TODO: implement user_assistants_delete
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_assistants_delete is not yet implemented'
end
user_assistants_delete_all(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 54
def user_assistants_delete_all(*args)
  raise Zoom::NotImplemented, 'user_assistants_delete_all is not yet implemented'
  # TODO: implement user_assistants_delete_all
  options = Utils.extract_options!(args)
  Utils.parse_response self.class.delete("/users/#{options.slice!(:id)}/assistants", body: options, headers: request_headers)
end
user_assistants_list(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 40
def user_assistants_list(*args)
  raise Zoom::NotImplemented, 'user_assistants_list is not yet implemented'
  # TODO: implement user_assistants_list
  # options = Utils.extract_options!(args)
  Utils.parse_response self.class.get("/users/#{options.slice!(:id)}/assistants", query: options, headers: request_headers)
end
user_create(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 13
def user_create(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  require_param_keys = %i[action email type]
  require_param_keys.append(:password) if params[:action] == 'autoCreate'
  params.require(require_param_keys)
  params.permit_value(:action, Zoom::Constants::USER_CREATE_TYPES.keys)
  Utils.parse_response self.class.post('/users', body: { action: params[:action], user_info: params.except(:action) }.to_json, headers: request_headers)
end
user_delete(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 34
def user_delete(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:id).permit(%i[action transfer_email transfer_meeting transfer_webinar transfer_recording])
  Utils.parse_response self.class.delete("/users/#{params[:id]}", query: params.except(:id), headers: request_headers)
end
user_email_check(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 133
def user_email_check(*args)
  # TODO: implement user_email_check
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_email_check is not yet implemented'
end
user_get(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 22
def user_get(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:id).permit(:login_type)
  Utils.parse_response self.class.get("/users/#{params[:id]}", query: params.except(:id), headers: request_headers)
end
user_list(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 6
def user_list(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.permit(%i[status page_size page_number])
  response = self.class.get('/users', query: params, headers: request_headers)
  Utils.parse_response(response)
end
user_password_update(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 109
def user_password_update(*args)
  # TODO: implement user_password_update
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_password_update is not yet implemented'
end
user_permissions_get(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 115
def user_permissions_get(*args)
  # TODO: implement user_permissions_get
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_permissions_get is not yet implemented'
end
user_schedulers_delete(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 79
def user_schedulers_delete(*args)
  # TODO: implement user_schedulers_delete
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_schedulers_delete is not yet implemented'
end
user_schedulers_delete_all(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 73
def user_schedulers_delete_all(*args)
  # TODO: implement user_schedulers_delete_all
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_schedulers_delete_all is not yet implemented'
end
user_schedulers_list(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 67
def user_schedulers_list(*args)
  # TODO: implement user_schedulers_list
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_schedulers_list is not yet implemented'
end
user_settings_get(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 91
def user_settings_get(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:id).permit(:login_type)
  Utils.parse_response self.class.get("/users/#{params[:id]}/settings", query: params.except(:id), headers: request_headers)
end
user_settings_update(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 97
def user_settings_update(*args)
  # TODO: implement user_settings_update
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_settings_update is not yet implemented'
end
user_status_update(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 103
def user_status_update(*args)
  # TODO: implement user_status_update
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_status_update is not yet implemented'
end
user_token_delete(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 127
def user_token_delete(*args)
  # TODO: implement user_token_delete
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_token_delete is not yet implemented'
end
user_token_get(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 121
def user_token_get(*args)
  # TODO: implement user_token_get
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_token_get is not yet implemented'
end
user_update(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 28
def user_update(*args)
  params = Zoom::Params.new(Utils.extract_options!(args))
  params.require(:id).permit(%i[first_name last_name type pmi timezone dept vanity_name host_key cms_user_id])
  Utils.parse_response self.class.patch("/users/#{params[:id]}", body: params.except(:id), headers: request_headers)
end
user_upload_picture(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 85
def user_upload_picture(*args)
  # TODO: implement user_upload_picture
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_upload_picture is not yet implemented'
end
user_vanity_name_check(*args) click to toggle source
# File lib/zoom/actions/user.rb, line 139
def user_vanity_name_check(*args)
  # TODO: implement user_vanity_name_check
  # options = Utils.extract_options!(args)
  raise Zoom::NotImplemented, 'user_vanity_name_check is not yet implemented'
end