From d8087e0950d1d29fe9a4922a79f5efcb465e4fd9 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 29 Apr 2022 06:55:37 +0000 Subject: [PATCH] CodeGen from PR 18864 in Azure/azure-rest-api-specs Merge 229c5482883b2310ee13bdce9d2c3d941d75e83f into 9722d269ce8ad6bf8de7e8083f0409e8bcb0569f --- .../azure-mgmt-reservations/_meta.json | 4 ++-- .../azure/mgmt/reservations/_version.py | 2 +- .../aio/operations/_quota_operations.py | 14 +++----------- .../operations/_quota_request_status_operations.py | 6 ++---- .../reservations/operations/_quota_operations.py | 14 +++----------- .../operations/_quota_request_status_operations.py | 6 ++---- 6 files changed, 13 insertions(+), 33 deletions(-) diff --git a/sdk/reservations/azure-mgmt-reservations/_meta.json b/sdk/reservations/azure-mgmt-reservations/_meta.json index e5cf08c785d4..0dcee1e58fcf 100644 --- a/sdk/reservations/azure-mgmt-reservations/_meta.json +++ b/sdk/reservations/azure-mgmt-reservations/_meta.json @@ -4,8 +4,8 @@ "@autorest/python@5.13.0", "@autorest/modelerfour@4.19.3" ], - "commit": "b1bbbab2f04c23e279c717f955d9a86bc4757946", + "commit": "b20471f263e27fe1baa02075a673544aee3fb796", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/reservations/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", + "autorest_command": "autorest specification/reservations/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", "readme": "specification/reservations/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/_version.py b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/_version.py index 48944bf3938a..e5754a47ce68 100644 --- a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/_version.py +++ b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "2.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_operations.py b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_operations.py index 8218f8c9de86..c817f56a3ab0 100644 --- a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_operations.py +++ b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_operations.py @@ -193,14 +193,9 @@ async def begin_create_or_update( Steps: - #. - Make the Get request to get the quota information for specific resource. - - #. - To increase the quota, update the limit field in the response from Get request to new value. - - #. - Submit the JSON to the quota request API to update the quota. + #. Make the Get request to get the quota information for specific resource. + #. To increase the quota, update the limit field in the response from Get request to new value. + #. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota. @@ -347,11 +342,8 @@ async def begin_update( **kwargs: Any ) -> AsyncLROPoller[Union["_models.CurrentQuotaLimitBase", "_models.QuotaRequestSubmitResponse201"]]: """Update the quota (service limits) of this resource to the requested value. - • To get the quota information for specific resource, send a GET request. - • To increase the quota, update the limit field from the GET response to a new value. - • To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation. diff --git a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_request_status_operations.py b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_request_status_operations.py index e8b05cc8d928..e7cfd39a5255 100644 --- a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_request_status_operations.py +++ b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_request_status_operations.py @@ -142,10 +142,8 @@ def list( * - Field - Supported operators - * - - - - |requestSubmitTime | ge, le, eq, gt, lt. Default value is None. + * - requestSubmitTime + - ge, le, eq, gt, lt. Default value is None. :type filter: str :param top: Number of records to return. Default value is None. :type top: int diff --git a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/operations/_quota_operations.py b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/operations/_quota_operations.py index 0b36a323ae2d..1f483a42af2b 100644 --- a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/operations/_quota_operations.py +++ b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/operations/_quota_operations.py @@ -362,14 +362,9 @@ def begin_create_or_update( Steps: - #. - Make the Get request to get the quota information for specific resource. - - #. - To increase the quota, update the limit field in the response from Get request to new value. - - #. - Submit the JSON to the quota request API to update the quota. + #. Make the Get request to get the quota information for specific resource. + #. To increase the quota, update the limit field in the response from Get request to new value. + #. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota. @@ -515,11 +510,8 @@ def begin_update( **kwargs: Any ) -> LROPoller[Union["_models.CurrentQuotaLimitBase", "_models.QuotaRequestSubmitResponse201"]]: """Update the quota (service limits) of this resource to the requested value. - • To get the quota information for specific resource, send a GET request. - • To increase the quota, update the limit field from the GET response to a new value. - • To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation. diff --git a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/operations/_quota_request_status_operations.py b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/operations/_quota_request_status_operations.py index d7b364144e6a..5b3ec86b8530 100644 --- a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/operations/_quota_request_status_operations.py +++ b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/operations/_quota_request_status_operations.py @@ -228,10 +228,8 @@ def list( * - Field - Supported operators - * - - - - |requestSubmitTime | ge, le, eq, gt, lt. Default value is None. + * - requestSubmitTime + - ge, le, eq, gt, lt. Default value is None. :type filter: str :param top: Number of records to return. Default value is None. :type top: int