From 606bea5fffebef61eccbfe712d2c2a9158ef2b52 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 17 Jul 2019 18:56:08 -0700 Subject: [PATCH] [AutoPR machinelearningservices/resource-manager] [READY TO MERGE] Add missing usages api optional parameter (#6389) * Generated from 4c43cebbfc5e1ad57cc113ad7fea62f230ede2cd add show usages detial parameter * Generated from 7072a22de7fdedf3b9f5bc8f7f79b4b93637d2ef add related mark for optioanl query parameter * Generated from 05289ebc4b2be9d8be80218d6bfab65a9848e77a remove doller sign from the custome parameter --- .../operations/_usages_operations.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sdk/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/_usages_operations.py b/sdk/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/_usages_operations.py index 212fbc700f27..1b174175c3a5 100644 --- a/sdk/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/_usages_operations.py +++ b/sdk/machinelearning/azure-mgmt-machinelearningservices/azure/mgmt/machinelearningservices/operations/_usages_operations.py @@ -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 @@ -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