Add brief docstring for the method `DecortController.account_resource_consumption`

main
Dmitriy Smirnov 7 months ago
parent c1dfaccb61
commit 94586345a1

@ -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',

Loading…
Cancel
Save