module BWAPI::Client::Admin::Clients::Users::Sharing
Sharing
module for admin/clients/users/sharing endpoints
Public Instance Methods
client_users_sharing(client_id, user_id)
click to toggle source
Get a list of project shares for user
@param client_id [Integer] Id of the client @param user_id [Integer] Id of the user @return [Hash] All shares for client user
# File lib/bwapi/client/admin/clients/users/sharing.rb, line 13 def client_users_sharing(client_id, user_id) get "admin/clients/#{client_id}/users/#{user_id}/sharing" end
update_client_users_sharing(client_id, user_id, opts)
click to toggle source
Update a list of project shares for user
@param client_id [Integer] Id of the client @param user_id [Integer] Id of the user @param opts [Hash] options Hash of parameters @option opts [Array] ProjectShareDTO The shares of the user @return [Hash] Updated shares for client user
# File lib/bwapi/client/admin/clients/users/sharing.rb, line 24 def update_client_users_sharing(client_id, user_id, opts) put "admin/clients/#{client_id}/users/#{user_id}/sharing", opts end