From f3e9e4175f7f8aaee38d6ff81410ec310c18dcc0 Mon Sep 17 00:00:00 2001 From: nitaiaharoni1 Date: Wed, 20 Dec 2023 17:09:11 +0200 Subject: [PATCH 1/2] Support tenant's OTA configuration functionality --- fireblocks_sdk/sdk.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/fireblocks_sdk/sdk.py b/fireblocks_sdk/sdk.py index e70fbad..9312cc8 100644 --- a/fireblocks_sdk/sdk.py +++ b/fireblocks_sdk/sdk.py @@ -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) -> Dict[str, Any]: + """ + 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 From 237ef47a8319ecb45ccf2f3ec1cb9c54304c7ca3 Mon Sep 17 00:00:00 2001 From: nitaiaharoni1 Date: Thu, 21 Dec 2023 13:08:52 +0200 Subject: [PATCH 2/2] Support tenant's OTA configuration functionality --- fireblocks_sdk/sdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fireblocks_sdk/sdk.py b/fireblocks_sdk/sdk.py index 9312cc8..b5cb2f8 100644 --- a/fireblocks_sdk/sdk.py +++ b/fireblocks_sdk/sdk.py @@ -2123,7 +2123,7 @@ def get_ota_configuration(self) -> Dict[str, Any]: return self._get_request(url) - def update_ota_configuration(self, enable: bool) -> Dict[str, Any]: + def update_ota_configuration(self, enable: bool) -> None: """ Update the tenant's OTA (One-Time-Address) configuration @param enable