Skip to content

Commit 783cc22

Browse files
committed
Add response_format to list of available args for v2 summary API
This was added in cloudkitty with commit https://opendev.org/openstack/cloudkitty/commit/6ba9d45ea69ea308ae21052e45a8d114c39145da Change-Id: Id091ee9f61c2863ed3ea1aaf5d967edf417df22a
1 parent 20003a5 commit 783cc22

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cloudkittyclient/v2/summary.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def get_summary(self, **kwargs):
3636
:type begin: datetime.datetime
3737
:param end: End of the period to gather data from
3838
:type end: datetime.datetime
39+
:param response_format: Either 'table' or 'object' defaults to 'table'
40+
:type response_format: str
3941
"""
4042
if 'groupby' in kwargs.keys() and isinstance(kwargs['groupby'], list):
4143
kwargs['groupby'] = ','.join(kwargs['groupby'])
@@ -46,7 +48,8 @@ def get_summary(self, **kwargs):
4648
)
4749

4850
authorized_args = [
49-
'offset', 'limit', 'filters', 'groupby', 'begin', 'end']
51+
'offset', 'limit', 'filters', 'groupby', 'begin', 'end',
52+
'response_format']
5053

5154
url = self.get_url(None, kwargs, authorized_args=authorized_args)
5255
return self.api_client.get(url).json()

0 commit comments

Comments
 (0)