Module: BWAPI::Client::Admin

Includes:
Become, Clients::SubClients, Clients::UserGroups, Clients::Users, Demographics, Search
Included in:
BWAPI::Client
Defined in:
lib/bwapi/client/admin.rb,
lib/bwapi/client/admin/become.rb,
lib/bwapi/client/admin/search.rb,
lib/bwapi/client/admin/demographics.rb,
lib/bwapi/client/admin/clients/users.rb,
lib/bwapi/client/admin/clients/sub_clients.rb,
lib/bwapi/client/admin/clients/user_groups.rb,
lib/bwapi/client/admin/clients/users/sharing.rb

Overview

Admin module for admin endpoints

Defined Under Namespace

Modules: Become, Clients, Demographics, Search

Instance Method Summary collapse

Methods included from Clients::UserGroups

#client_user_groups, #create_client_user_group, #delete_client_user_group, #update_client_user_group

Methods included from Clients::Users

#client_users, #create_client_user, #get_client_user, #update_client_user

Methods included from Clients::Users::Sharing

#client_users_sharing, #update_client_users_sharing

Methods included from Clients::SubClients

#client_sub_clients, #create_client_sub_client, #delete_client_sub_client, #get_client_sub_client, #update_client_sub_client

Methods included from Search

#search_query_name, #search_query_text, #search_rule_text

Methods included from Demographics

#classify_author

Methods included from Become

#admin_become

Instance Method Details

#active_queries(opts = {}) ⇒ Hash

Get the active queries irrespective of project

Parameters:

  • opts (Hash) (defaults to: {})

    options hash of parameters

Options Hash (opts):

  • page (Integer)

    Page of projects to retrieve

  • pageSize (Integer)

    Results per page of results

  • sortBy (Integer)

    Filter to sort queries by

Returns:

  • (Hash)

    All active queries



19
20
21
# File 'lib/bwapi/client/admin.rb', line 19

def active_queries(opts = {})
  get 'admin/activequeries', opts
end

#sharing_reportHash

Get the project report of sharing details

Returns:

  • (Hash)

    Project sharing report



26
27
28
# File 'lib/bwapi/client/admin.rb', line 26

def sharing_report
  get 'admin/sharing-report'
end