Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@ def __init__(self, client, config, serializer, deserializer):
self.config = config

def list(
self, location, custom_headers=None, raw=False, **operation_config):
self, location, expand_children=None, custom_headers=None, raw=False, **operation_config):
"""Gets the current usage information as well as limits for AML resources
for given subscription and location.

:param location: The location for which resource usage is queried.
:type location: str
:param expand_children: Specifies if detailed usages of child
resources are required.
:type expand_children: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
Expand All @@ -69,6 +72,8 @@ def prepare_request(next_link=None):
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
if expand_children is not None:
query_parameters['expandChildren'] = self._serialize.query("expand_children", expand_children, 'str')

else:
url = next_link
Expand Down