Skip to content

Commit 99a4ffe

Browse files
author
SDKAuto
committed
CodeGen from PR 15520 in Azure/azure-rest-api-specs
Merge 9095f017bd4089fcaf87ab9331441949385f301a into 3d6211c
1 parent 07d41c4 commit 99a4ffe

30 files changed

+137
-124
lines changed
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{
2-
"autorest": "3.3.0",
3-
"use": "@autorest/[email protected]",
4-
"commit": "1e43e60cfb0bb2829ff8d57a9ba06a2410f0b3c0",
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "7cf6fdda0bf87c2d26d1f7aec1b5ea02fe96c425",
58
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6-
"autorest_command": "autorest specification/billing/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.6.6 --version=3.3.0",
9+
"autorest_command": "autorest specification/billing/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/[email protected] --version=3.4.5",
710
"readme": "specification/billing/resource-manager/readme.md"
811
}

sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_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 = "6.0.0"
9+
VERSION = "0.3.0"

sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_address_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4343
async def validate(
4444
self,
4545
address: "_models.AddressDetails",
46-
**kwargs
46+
**kwargs: Any
4747
) -> "_models.ValidateAddressResponse":
4848
"""Validates an address. Use the operation to validate an address before using it as soldTo or a
4949
billTo address.

sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_agreements_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def list_by_billing_account(
4545
self,
4646
billing_account_name: str,
4747
expand: Optional[str] = None,
48-
**kwargs
48+
**kwargs: Any
4949
) -> AsyncIterable["_models.AgreementListResult"]:
5050
"""Lists the agreements for a billing account.
5151
@@ -121,7 +121,7 @@ async def get(
121121
billing_account_name: str,
122122
agreement_name: str,
123123
expand: Optional[str] = None,
124-
**kwargs
124+
**kwargs: Any
125125
) -> "_models.Agreement":
126126
"""Gets an agreement by ID.
127127

sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_available_balances_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def get(
4444
self,
4545
billing_account_name: str,
4646
billing_profile_name: str,
47-
**kwargs
47+
**kwargs: Any
4848
) -> "_models.AvailableBalance":
4949
"""The available credit balance for a billing profile. This is the balance that can be used for
5050
pay now to settle due or past due invoices. The operation is supported only for billing

sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_accounts_operations.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4646
def list(
4747
self,
4848
expand: Optional[str] = None,
49-
**kwargs
49+
**kwargs: Any
5050
) -> AsyncIterable["_models.BillingAccountListResult"]:
5151
"""Lists the billing accounts that a user has access to.
5252
@@ -115,7 +115,7 @@ async def get(
115115
self,
116116
billing_account_name: str,
117117
expand: Optional[str] = None,
118-
**kwargs
118+
**kwargs: Any
119119
) -> "_models.BillingAccount":
120120
"""Gets a billing account by its ID.
121121
@@ -174,7 +174,7 @@ async def _update_initial(
174174
self,
175175
billing_account_name: str,
176176
parameters: "_models.BillingAccountUpdateRequest",
177-
**kwargs
177+
**kwargs: Any
178178
) -> Optional["_models.BillingAccount"]:
179179
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BillingAccount"]]
180180
error_map = {
@@ -227,7 +227,7 @@ async def begin_update(
227227
self,
228228
billing_account_name: str,
229229
parameters: "_models.BillingAccountUpdateRequest",
230-
**kwargs
230+
**kwargs: Any
231231
) -> AsyncLROPoller["_models.BillingAccount"]:
232232
"""Updates the properties of a billing account. Currently, displayName and address can be updated.
233233
The operation is supported only for billing accounts with agreement type Microsoft Customer
@@ -240,8 +240,8 @@ async def begin_update(
240240
:type parameters: ~azure.mgmt.billing.models.BillingAccountUpdateRequest
241241
:keyword callable cls: A custom type or function that will be passed the direct response
242242
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
243-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
244-
False for no polling, or your own initialized polling object for a personal polling strategy.
243+
:keyword polling: By default, your polling method will be AsyncARMPolling.
244+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
245245
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
246246
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
247247
:return: An instance of AsyncLROPoller that returns either BillingAccount or the result of cls(response)
@@ -294,7 +294,7 @@ def get_long_running_output(pipeline_response):
294294
def list_invoice_sections_by_create_subscription_permission(
295295
self,
296296
billing_account_name: str,
297-
**kwargs
297+
**kwargs: Any
298298
) -> AsyncIterable["_models.InvoiceSectionListWithCreateSubPermissionResult"]:
299299
"""Lists the invoice sections for which the user has permission to create Azure subscriptions. The
300300
operation is supported only for billing accounts with agreement type Microsoft Customer

sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_periods_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def list(
4646
filter: Optional[str] = None,
4747
skiptoken: Optional[str] = None,
4848
top: Optional[int] = None,
49-
**kwargs
49+
**kwargs: Any
5050
) -> AsyncIterable["_models.BillingPeriodsListResult"]:
5151
"""Lists the available billing periods for a subscription in reverse chronological order. This is
5252
only supported for Azure Web-Direct subscriptions. Other subscription types which were not
@@ -132,7 +132,7 @@ async def get_next(next_link=None):
132132
async def get(
133133
self,
134134
billing_period_name: str,
135-
**kwargs
135+
**kwargs: Any
136136
) -> "_models.BillingPeriod":
137137
"""Gets a named billing period. This is only supported for Azure Web-Direct subscriptions. Other
138138
subscription types which were not purchased directly through the Azure web portal are not

sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_permissions_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def list_by_customer(
4545
self,
4646
billing_account_name: str,
4747
customer_name: str,
48-
**kwargs
48+
**kwargs: Any
4949
) -> AsyncIterable["_models.BillingPermissionsListResult"]:
5050
"""Lists the billing permissions the caller has for a customer.
5151
@@ -118,7 +118,7 @@ async def get_next(next_link=None):
118118
def list_by_billing_account(
119119
self,
120120
billing_account_name: str,
121-
**kwargs
121+
**kwargs: Any
122122
) -> AsyncIterable["_models.BillingPermissionsListResult"]:
123123
"""Lists the billing permissions the caller has on a billing account.
124124
@@ -190,7 +190,7 @@ def list_by_invoice_sections(
190190
billing_account_name: str,
191191
billing_profile_name: str,
192192
invoice_section_name: str,
193-
**kwargs
193+
**kwargs: Any
194194
) -> AsyncIterable["_models.BillingPermissionsListResult"]:
195195
"""Lists the billing permissions the caller has on an invoice section.
196196
@@ -267,7 +267,7 @@ def list_by_billing_profile(
267267
self,
268268
billing_account_name: str,
269269
billing_profile_name: str,
270-
**kwargs
270+
**kwargs: Any
271271
) -> AsyncIterable["_models.BillingPermissionsListResult"]:
272272
"""Lists the billing permissions the caller has on a billing profile.
273273

sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_profiles_operations.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def list_by_billing_account(
4747
self,
4848
billing_account_name: str,
4949
expand: Optional[str] = None,
50-
**kwargs
50+
**kwargs: Any
5151
) -> AsyncIterable["_models.BillingProfileListResult"]:
5252
"""Lists the billing profiles that a user has access to. The operation is supported for billing
5353
accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
@@ -124,7 +124,7 @@ async def get(
124124
billing_account_name: str,
125125
billing_profile_name: str,
126126
expand: Optional[str] = None,
127-
**kwargs
127+
**kwargs: Any
128128
) -> "_models.BillingProfile":
129129
"""Gets a billing profile by its ID. The operation is supported for billing accounts with
130130
agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
@@ -188,7 +188,7 @@ async def _create_or_update_initial(
188188
billing_account_name: str,
189189
billing_profile_name: str,
190190
parameters: "_models.BillingProfile",
191-
**kwargs
191+
**kwargs: Any
192192
) -> Optional["_models.BillingProfile"]:
193193
cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BillingProfile"]]
194194
error_map = {
@@ -248,7 +248,7 @@ async def begin_create_or_update(
248248
billing_account_name: str,
249249
billing_profile_name: str,
250250
parameters: "_models.BillingProfile",
251-
**kwargs
251+
**kwargs: Any
252252
) -> AsyncLROPoller["_models.BillingProfile"]:
253253
"""Creates or updates a billing profile. The operation is supported for billing accounts with
254254
agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
@@ -261,8 +261,8 @@ async def begin_create_or_update(
261261
:type parameters: ~azure.mgmt.billing.models.BillingProfile
262262
:keyword callable cls: A custom type or function that will be passed the direct response
263263
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
264-
:keyword polling: Pass in True if you'd like the AsyncARMPolling polling method,
265-
False for no polling, or your own initialized polling object for a personal polling strategy.
264+
:keyword polling: By default, your polling method will be AsyncARMPolling.
265+
Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.
266266
:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod
267267
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
268268
:return: An instance of AsyncLROPoller that returns either BillingProfile or the result of cls(response)

sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_property_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4242

4343
async def get(
4444
self,
45-
**kwargs
45+
**kwargs: Any
4646
) -> "_models.BillingProperty":
4747
"""Get the billing properties for a subscription. This operation is not supported for billing
4848
accounts with agreement type Enterprise Agreement.
@@ -95,7 +95,7 @@ async def get(
9595
async def update(
9696
self,
9797
parameters: "_models.BillingProperty",
98-
**kwargs
98+
**kwargs: Any
9999
) -> "_models.BillingProperty":
100100
"""Updates the billing property of a subscription. Currently, cost center can be updated. The
101101
operation is supported only for billing accounts with agreement type Microsoft Customer

0 commit comments

Comments
 (0)