Skip to content

Commit 87a1ce0

Browse files
author
SDKAuto
committed
CodeGen from PR 22622 in Azure/azure-rest-api-specs
Merge ffdb0a2d72b7f2c747d28c4f0b701535b97c1f33 into a60468a0c5e2beb054680ae488fb9f92699f0a0d
1 parent 4e6b795 commit 87a1ce0

19 files changed

+141
-109
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "3751704f5318f1175875c94b66af769db917f2d3",
2+
"commit": "7775b97f53c75feef63e98fac8638f24345a2132",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.2.16",
6+
"@autorest/python@6.4.0",
77
"@autorest/modelerfour@4.24.3"
88
],
9-
"autorest_command": "autorest specification/reservations/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.16 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/reservations/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.4.0 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/reservations/resource-manager/readme.md"
1111
}

sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/_azure_reservation_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,5 +121,5 @@ def __enter__(self) -> "AzureReservationAPI":
121121
self._client.__enter__()
122122
return self
123123

124-
def __exit__(self, *exc_details) -> None:
124+
def __exit__(self, *exc_details: Any) -> None:
125125
self._client.__exit__(*exc_details)

sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "2.2.0"
9+
VERSION = "1.0.0b1"

sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/_azure_reservation_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,5 +122,5 @@ async def __aenter__(self) -> "AzureReservationAPI":
122122
await self._client.__aenter__()
123123
return self
124124

125-
async def __aexit__(self, *exc_details) -> None:
125+
async def __aexit__(self, *exc_details: Any) -> None:
126126
await self._client.__aexit__(*exc_details)

sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_calculate_exchange_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ async def begin_post(
191191
Calculates price for exchanging ``Reservations`` if there are no policy errors.
192192
193193
:param body: Request containing purchases and refunds that need to be executed. Is either a
194-
model type or a IO type. Required.
194+
CalculateExchangeRequest type or a IO type. Required.
195195
:type body: ~azure.mgmt.reservations.models.CalculateExchangeRequest or IO
196196
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
197197
Default value is None.

sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_calculate_refund_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ async def post(
113113
114114
:param reservation_order_id: Order Id of the reservation. Required.
115115
:type reservation_order_id: str
116-
:param body: Information needed for calculating refund of a reservation. Is either a model type
117-
or a IO type. Required.
116+
:param body: Information needed for calculating refund of a reservation. Is either a
117+
CalculateRefundRequest type or a IO type. Required.
118118
:type body: ~azure.mgmt.reservations.models.CalculateRefundRequest or IO
119119
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
120120
Default value is None.

sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_exchange_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ async def begin_post(
191191
Returns one or more ``Reservations`` in exchange for one or more ``Reservation`` purchases.
192192
193193
:param body: Request containing the refunds and purchases that need to be executed. Is either a
194-
model type or a IO type. Required.
194+
ExchangeRequest type or a IO type. Required.
195195
:type body: ~azure.mgmt.reservations.models.ExchangeRequest or IO
196196
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
197197
Default value is None.

sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_quota_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,8 @@ async def begin_create_or_update(
353353
Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.
354354
Required.
355355
:type resource_name: str
356-
:param create_quota_request: Quota requests payload. Is either a model type or a IO type.
357-
Required.
356+
:param create_quota_request: Quota requests payload. Is either a CurrentQuotaLimitBase type or
357+
a IO type. Required.
358358
:type create_quota_request: ~azure.mgmt.reservations.models.CurrentQuotaLimitBase or IO
359359
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
360360
Default value is None.
@@ -633,8 +633,8 @@ async def begin_update(
633633
Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices.
634634
Required.
635635
:type resource_name: str
636-
:param create_quota_request: Payload for the quota request. Is either a model type or a IO
637-
type. Required.
636+
:param create_quota_request: Payload for the quota request. Is either a CurrentQuotaLimitBase
637+
type or a IO type. Required.
638638
:type create_quota_request: ~azure.mgmt.reservations.models.CurrentQuotaLimitBase or IO
639639
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
640640
Default value is None.

sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_reservation_operations.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ async def begin_available_scopes(
229229
:type reservation_order_id: str
230230
:param reservation_id: Id of the reservation item. Required.
231231
:type reservation_id: str
232-
:param body: Scopes to be checked for eligibility. Is either a model type or a IO type.
233-
Required.
232+
:param body: Scopes to be checked for eligibility. Is either a AvailableScopeRequest type or a
233+
IO type. Required.
234234
:type body: ~azure.mgmt.reservations.models.AvailableScopeRequest or IO
235235
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
236236
Default value is None.
@@ -438,8 +438,8 @@ async def begin_split(
438438
439439
:param reservation_order_id: Order Id of the reservation. Required.
440440
:type reservation_order_id: str
441-
:param body: Information needed to Split a reservation item. Is either a model type or a IO
442-
type. Required.
441+
:param body: Information needed to Split a reservation item. Is either a SplitRequest type or a
442+
IO type. Required.
443443
:type body: ~azure.mgmt.reservations.models.SplitRequest or IO
444444
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
445445
Default value is None.
@@ -649,8 +649,8 @@ async def begin_merge(
649649
650650
:param reservation_order_id: Order Id of the reservation. Required.
651651
:type reservation_order_id: str
652-
:param body: Information needed for commercial request for a reservation. Is either a model
653-
type or a IO type. Required.
652+
:param body: Information needed for commercial request for a reservation. Is either a
653+
MergeRequest type or a IO type. Required.
654654
:type body: ~azure.mgmt.reservations.models.MergeRequest or IO
655655
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
656656
Default value is None.
@@ -1015,7 +1015,7 @@ async def begin_update(
10151015
:type reservation_order_id: str
10161016
:param reservation_id: Id of the reservation item. Required.
10171017
:type reservation_id: str
1018-
:param parameters: Information needed to patch a reservation item. Is either a model type or a
1018+
:param parameters: Information needed to patch a reservation item. Is either a Patch type or a
10191019
IO type. Required.
10201020
:type parameters: ~azure.mgmt.reservations.models.Patch or IO
10211021
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.

sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/aio/operations/_reservation_order_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ async def calculate(
112112
113113
Calculate price for placing a ``ReservationOrder``.
114114
115-
:param body: Information needed for calculate or purchase reservation. Is either a model type
116-
or a IO type. Required.
115+
:param body: Information needed for calculate or purchase reservation. Is either a
116+
PurchaseRequest type or a IO type. Required.
117117
:type body: ~azure.mgmt.reservations.models.PurchaseRequest or IO
118118
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
119119
Default value is None.
@@ -392,8 +392,8 @@ async def begin_purchase(
392392
393393
:param reservation_order_id: Order Id of the reservation. Required.
394394
:type reservation_order_id: str
395-
:param body: Information needed for calculate or purchase reservation. Is either a model type
396-
or a IO type. Required.
395+
:param body: Information needed for calculate or purchase reservation. Is either a
396+
PurchaseRequest type or a IO type. Required.
397397
:type body: ~azure.mgmt.reservations.models.PurchaseRequest or IO
398398
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
399399
Default value is None.
@@ -581,8 +581,8 @@ async def change_directory(
581581
582582
:param reservation_order_id: Order Id of the reservation. Required.
583583
:type reservation_order_id: str
584-
:param body: Information needed to change directory of reservation order. Is either a model
585-
type or a IO type. Required.
584+
:param body: Information needed to change directory of reservation order. Is either a
585+
ChangeDirectoryRequest type or a IO type. Required.
586586
:type body: ~azure.mgmt.reservations.models.ChangeDirectoryRequest or IO
587587
:keyword content_type: Body Parameter content-type. Known values are: 'application/json'.
588588
Default value is None.

0 commit comments

Comments
 (0)