Skip to content

Commit

Permalink
Revert "Add users_groups endpoints (#130)"
Browse files Browse the repository at this point in the history
This reverts commit 048d24e.
  • Loading branch information
YoavBZ authored Oct 23, 2023
1 parent 048d24e commit 60b9998
Showing 1 changed file with 2 additions and 66 deletions.
68 changes: 2 additions & 66 deletions fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2050,77 +2050,13 @@ def resend_transaction_webhooks_by_id(

return self._post_request(f"/v1/webhooks/resend/{tx_id}", body)

def get_users(self) -> List[Dict[str, Any]]:
"""
Gets all Users for your tenant
"""
def get_users(self):
"""Gets all users of your tenant"""

url = "/v1/users"

return self._get_request(url)

def get_users_groups(self) -> List[Dict[str, Any]]:
"""
Gets all Users Groups for your tenant
"""

url = "/v1/users_groups"

return self._get_request(url)

def get_users_group(self, id: str) -> Dict[str, Any]:
"""
Gets a Users Group by ID
@param id: The ID of the User
"""

url = f"/v1/users_groups/{id}"

return self._get_request(url)

def create_user_group(self, group_name: str, member_ids: Optional[List[str]] = None) -> Dict[str, Any]:
"""
Creates a new Users Group
@param group_name: The name of the Users Group
@param member_ids: The ids of the Users Group members
"""

url = "/v1/users_groups"

body = {
"groupName": group_name,
"memberIds": member_ids
}

return self._post_request(url, body)

def update_user_group(self, id: str, group_name: Optional[str] = None, member_ids: Optional[List[str]] = None) -> Dict[str, Any]:
"""
Updates a Users Group
@param id: The ID of the Users Group
@param group_name: The name of the Users Group
@param member_ids: The ids of the Users Group members
"""

url = f"/v1/users_groups/{id}"

body = {
"groupName": group_name,
"memberIds": member_ids
}

return self._put_request(url, body)

def delete_user_group(self, id: str) -> None:
"""
Deletes a Users Group
@param id: The ID of the Users Group
"""

url = f"/v1/users_groups/{id}"

return self._delete_request(url)

def get_off_exchanges(self):
"""
Get your connected off exchanges virtual accounts
Expand Down

0 comments on commit 60b9998

Please sign in to comment.