Skip to content

Commit

Permalink
paths rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Koltoun committed Dec 24, 2023
1 parent 09f1d2c commit ee0e944
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@ def get_users_groups(self) -> List[Dict[str, Any]]:
Gets all Users Groups for your tenant
"""

url = "/v1/users_groups"
url = "/v1/management/users_groups"

return self._get_request(url)

Expand All @@ -2129,7 +2129,7 @@ def get_users_group(self, id: str) -> Dict[str, Any]:
@param id: The ID of the User
"""

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

return self._get_request(url)

Expand All @@ -2140,7 +2140,7 @@ def create_user_group(self, group_name: str, member_ids: Optional[List[str]] = N
@param member_ids: The ids of the Users Group members
"""

url = "/v1/users_groups"
url = "/v1/management/users_groups"

body = {
"groupName": group_name,
Expand All @@ -2158,7 +2158,7 @@ def update_user_group(self, id: str, group_name: Optional[str] = None, member_id
@param member_ids: The ids of the Users Group members
"""

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

body = {
"groupName": group_name,
Expand All @@ -2173,7 +2173,7 @@ def delete_user_group(self, id: str) -> None:
@param id: The ID of the Users Group
"""

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

return self._delete_request(url)

Expand All @@ -2182,7 +2182,7 @@ def get_console_users(self) -> List[Dict[str, Any]]:
Gets all Console Users for your tenant
"""

url = "/v1/management/console-users"
url = "/v1/management/users"

return self._get_request(url)

Expand All @@ -2191,7 +2191,7 @@ def get_api_users(self) -> List[Dict[str, Any]]:
Gets all Api Users for your tenant
"""

url = "/v1/management/api-users"
url = "/v1/management/api_users"

return self._get_request(url)

Expand All @@ -2204,7 +2204,7 @@ def create_console_user(self, first_name: str, last_name: str, email: str, role:
@param role: role of the user, for example: "ADMIN"
"""

url = "/v1/management/console-users"
url = "/v1/management/users"

body = {
"firstName": first_name,
Expand All @@ -2226,7 +2226,7 @@ def create_api_user(self, name: str, role: Role, csr_pem: str, co_signer_setup:
@param co_signer_setup_is_first_user: [SGX server enabled only] If you are the first user to be configured on this SGX-enabled Co-Signer server, this has to be true
"""

url = "/v1/management/api-users"
url = "/v1/management/api_users"

body = {
"role": role,
Expand All @@ -2244,7 +2244,7 @@ def reset_device_request(self, id: str) -> None:
@param id: userId of the user to reset device
"""

url = f"/v1/management/console-users/{id}/reset-device"
url = f"/v1/management/users/{id}/reset_device"

return self._post_request(url)

Expand All @@ -2254,7 +2254,7 @@ def get_whitelisted_ip_addresses(self, id: str) -> Dict[str, Any]:
@param id: userId of the user
"""

url = f"/v1/management/api-users/{id}/whitelist-ip-addresses"
url = f"/v1/management/api_users/{id}/whitelist_ip_addresses"

return self._get_request(url)

Expand Down

0 comments on commit ee0e944

Please sign in to comment.