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

Included in:
BWAPI::Client::Admin::Clients::Users
Defined in:
lib/bwapi/client/admin/clients/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) ⇒ Hash

Get a list of project shares for user

Parameters:

  • client_id (Integer)

    Id of the client

  • user_id (Integer)

    Id of the user

Returns:

  • (Hash)

    All shares for client user



13
14
15
# File 'lib/bwapi/client/admin/clients/users/sharing.rb', line 13

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) ⇒ Hash

Update a list of project shares for user

Parameters:

  • client_id (Integer)

    Id of the client

  • user_id (Integer)

    Id of the user

  • opts (Hash)

    options Hash of parameters

Options Hash (opts):

  • ProjectShareDTO (Array)

    The shares of the user

Returns:

  • (Hash)

    Updated shares for client user



24
25
26
# File 'lib/bwapi/client/admin/clients/users/sharing.rb', line 24

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