Module: BWAPI::Client::Admin::Clients::Users::Sharing

Included in:
BWAPI::Client::Admin::Clients::Users
Defined in:
lib/bwapi/client/admin/users/sharing.rb

Overview

Sharing module for admin/users/sharing endpoints

Instance Method Summary collapse

Instance Method Details

#client_users_sharing(client_id, user_id) ⇒ Hashie::Mash

Get a list of project shares for user

Parameters:

  • Id of the client

  • Id of the user

Returns:

  • All shares for client user



15
16
17
# File 'lib/bwapi/client/admin/users/sharing.rb', line 15

def client_users_sharing(client_id, user_id)
  get "admin/client/#{client_id}/users/#{user_id}/sharing"
end

#update_client_users_sharing(client_id, user_id, opts) ⇒ Hashie::Mash

Update a list of project shares for user

Parameters:

  • Id of the client

  • Id of the user

  • options Hash of parameters

Options Hash (opts):

  • ProjectShareDTO (Array)

    The shares of the user

Returns:

  • Updated shares for client user



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

def update_client_users_sharing(client_id, user_id, opts)
  get "admin/client/#{client_id}/users/#{user_id}/sharing", opts
end