Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tenant's OTA configuration functionality #149

Merged
merged 2 commits into from
Dec 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions fireblocks_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2114,6 +2114,29 @@ def get_users(self) -> List[Dict[str, Any]]:

return self._get_request(url)

def get_ota_configuration(self) -> Dict[str, Any]:
"""
Get the tenant's OTA (One-Time-Address) configuration
"""

url = "/v1/management/ota"

return self._get_request(url)

def update_ota_configuration(self, enable: bool) -> None:
"""
Update the tenant's OTA (One-Time-Address) configuration
@param enable
"""

url = "/v1/management/ota"

body = {
"enabled": enable
}

return self._put_request(url, body)

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