File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 53
53
@unique
54
54
class _COMMAND (Enum ):
55
55
"""Admin Command enumerations."""
56
+ ACCOUNT_INFO = "accountinfo"
56
57
ADD_USER = "add-user"
57
58
USER_INFO = "user-info"
58
59
LIST_USERS = "list-users"
@@ -322,6 +323,15 @@ def info(self) -> str:
322
323
)
323
324
return response .data .decode ()
324
325
326
+ def account_info (self , prefix_usage : bool = False ) -> str :
327
+ """Get usage information for the authenticating account"""
328
+ response = self ._url_open (
329
+ "GET" ,
330
+ _COMMAND .ACCOUNT_INFO ,
331
+ query_params = {"prefix-usage" : "true" } if prefix_usage else None ,
332
+ )
333
+ return response .data .decode ()
334
+
325
335
def user_add (self , access_key : str , secret_key : str ) -> str :
326
336
"""Create user with access and secret keys"""
327
337
body = json .dumps (
You can’t perform that action at this time.
0 commit comments