Add brief docstring for the method DecortController.account_resource_consumption

This commit is contained in:
2024-07-19 16:47:10 +03:00
parent c1dfaccb61
commit 94586345a1

View File

@@ -2168,6 +2168,16 @@ class DecortController(object):
@waypoint
def account_resource_consumption(self, account_id: int,
fail_if_not_found=False) -> None | dict:
"""
Implementation of functionality of the API method
`/cloudapi/account/getResourceConsumption`.
@param (bool) fail_if_not_found: If `True` is specified, then
the method `self.amodule.fail_json(**self.result)` will be
called if account is not found.
"""
api_resp = self.decort_api_call(
arg_req_function=requests.post,
arg_api_name='/restmachine/cloudapi/account/getResourceConsumption',