diff --git a/sdk/billing/azure-mgmt-billing/_meta.json b/sdk/billing/azure-mgmt-billing/_meta.json index 111c7a0612e3..720edb6009c2 100644 --- a/sdk/billing/azure-mgmt-billing/_meta.json +++ b/sdk/billing/azure-mgmt-billing/_meta.json @@ -1,8 +1,11 @@ { - "autorest": "3.3.0", - "use": "@autorest/python@5.6.6", - "commit": "1e43e60cfb0bb2829ff8d57a9ba06a2410f0b3c0", + "autorest": "3.4.2", + "use": [ + "@autorest/python@5.8.1", + "@autorest/modelerfour@4.19.2" + ], + "commit": "7dd1c2dc87aa068fa718866bc9d6eeb7ea377c41", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "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", + "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.1 --use=@autorest/modelerfour@4.19.2 --version=3.4.2", "readme": "specification/billing/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py index caf312bd2d0b..92721eef7dd5 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "6.0.0" +VERSION = "0.3.0" diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_address_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_address_operations.py index 37a5150ec00f..8bd9d6c6a6d7 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_address_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_address_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def validate( self, address: "_models.AddressDetails", - **kwargs + **kwargs: Any ) -> "_models.ValidateAddressResponse": """Validates an address. Use the operation to validate an address before using it as soldTo or a billTo address. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_agreements_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_agreements_operations.py index 426c9a6eae96..345f37482b3e 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_agreements_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_agreements_operations.py @@ -45,7 +45,7 @@ def list_by_billing_account( self, billing_account_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.AgreementListResult"]: """Lists the agreements for a billing account. @@ -121,7 +121,7 @@ async def get( billing_account_name: str, agreement_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Agreement": """Gets an agreement by ID. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_available_balances_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_available_balances_operations.py index 5737f68c973c..2866e0448afe 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_available_balances_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_available_balances_operations.py @@ -44,7 +44,7 @@ async def get( self, billing_account_name: str, billing_profile_name: str, - **kwargs + **kwargs: Any ) -> "_models.AvailableBalance": """The available credit balance for a billing profile. This is the balance that can be used for pay now to settle due or past due invoices. The operation is supported only for billing diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_accounts_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_accounts_operations.py index 2ec6f0568c16..2932fb7f607d 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_accounts_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_accounts_operations.py @@ -46,7 +46,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingAccountListResult"]: """Lists the billing accounts that a user has access to. @@ -115,7 +115,7 @@ async def get( self, billing_account_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.BillingAccount": """Gets a billing account by its ID. @@ -174,7 +174,7 @@ async def _update_initial( self, billing_account_name: str, parameters: "_models.BillingAccountUpdateRequest", - **kwargs + **kwargs: Any ) -> Optional["_models.BillingAccount"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BillingAccount"]] error_map = { @@ -227,7 +227,7 @@ async def begin_update( self, billing_account_name: str, parameters: "_models.BillingAccountUpdateRequest", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.BillingAccount"]: """Updates the properties of a billing account. Currently, displayName and address can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer @@ -240,8 +240,8 @@ async def begin_update( :type parameters: ~azure.mgmt.billing.models.BillingAccountUpdateRequest :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :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): def list_invoice_sections_by_create_subscription_permission( self, billing_account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.InvoiceSectionListWithCreateSubPermissionResult"]: """Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_periods_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_periods_operations.py index f3e701e6a6aa..090aa65409d7 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_periods_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_periods_operations.py @@ -46,7 +46,7 @@ def list( filter: Optional[str] = None, skiptoken: Optional[str] = None, top: Optional[int] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingPeriodsListResult"]: """Lists the available billing periods for a subscription in reverse chronological order. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not @@ -132,7 +132,7 @@ async def get_next(next_link=None): async def get( self, billing_period_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingPeriod": """Gets a named billing period. This is only supported for Azure Web-Direct subscriptions. Other subscription types which were not purchased directly through the Azure web portal are not diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_permissions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_permissions_operations.py index 613e0189287e..48d4138c7668 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_permissions_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_permissions_operations.py @@ -45,7 +45,7 @@ def list_by_customer( self, billing_account_name: str, customer_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingPermissionsListResult"]: """Lists the billing permissions the caller has for a customer. @@ -118,7 +118,7 @@ async def get_next(next_link=None): def list_by_billing_account( self, billing_account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingPermissionsListResult"]: """Lists the billing permissions the caller has on a billing account. @@ -190,7 +190,7 @@ def list_by_invoice_sections( billing_account_name: str, billing_profile_name: str, invoice_section_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingPermissionsListResult"]: """Lists the billing permissions the caller has on an invoice section. @@ -267,7 +267,7 @@ def list_by_billing_profile( self, billing_account_name: str, billing_profile_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingPermissionsListResult"]: """Lists the billing permissions the caller has on a billing profile. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_profiles_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_profiles_operations.py index 0c7eaffb8d05..67222d994a1c 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_profiles_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_profiles_operations.py @@ -47,7 +47,7 @@ def list_by_billing_account( self, billing_account_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingProfileListResult"]: """Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. @@ -124,7 +124,7 @@ async def get( billing_account_name: str, billing_profile_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.BillingProfile": """Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. @@ -188,7 +188,7 @@ async def _create_or_update_initial( billing_account_name: str, billing_profile_name: str, parameters: "_models.BillingProfile", - **kwargs + **kwargs: Any ) -> Optional["_models.BillingProfile"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BillingProfile"]] error_map = { @@ -248,7 +248,7 @@ async def begin_create_or_update( billing_account_name: str, billing_profile_name: str, parameters: "_models.BillingProfile", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.BillingProfile"]: """Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. @@ -261,8 +261,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.billing.models.BillingProfile :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either BillingProfile or the result of cls(response) diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_property_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_property_operations.py index f54dfc955f5a..72a29409eed6 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_property_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_property_operations.py @@ -42,7 +42,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: async def get( self, - **kwargs + **kwargs: Any ) -> "_models.BillingProperty": """Get the billing properties for a subscription. This operation is not supported for billing accounts with agreement type Enterprise Agreement. @@ -95,7 +95,7 @@ async def get( async def update( self, parameters: "_models.BillingProperty", - **kwargs + **kwargs: Any ) -> "_models.BillingProperty": """Updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_assignments_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_assignments_operations.py index 342d85b97e5f..e911c25c61a0 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_assignments_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_assignments_operations.py @@ -45,7 +45,7 @@ async def get_by_billing_account( self, billing_account_name: str, billing_role_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingRoleAssignment": """Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer @@ -105,7 +105,7 @@ async def delete_by_billing_account( self, billing_account_name: str, billing_role_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingRoleAssignment": """Deletes a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer @@ -167,7 +167,7 @@ async def get_by_invoice_section( billing_profile_name: str, invoice_section_name: str, billing_role_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingRoleAssignment": """Gets a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. @@ -234,7 +234,7 @@ async def delete_by_invoice_section( billing_profile_name: str, invoice_section_name: str, billing_role_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingRoleAssignment": """Deletes a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. @@ -300,7 +300,7 @@ async def get_by_billing_profile( billing_account_name: str, billing_profile_name: str, billing_role_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingRoleAssignment": """Gets a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer @@ -364,7 +364,7 @@ async def delete_by_billing_profile( billing_account_name: str, billing_profile_name: str, billing_role_assignment_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingRoleAssignment": """Deletes a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer @@ -426,7 +426,7 @@ async def delete_by_billing_profile( def list_by_billing_account( self, billing_account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingRoleAssignmentListResult"]: """Lists the role assignments for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer @@ -500,7 +500,7 @@ def list_by_invoice_section( billing_account_name: str, billing_profile_name: str, invoice_section_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingRoleAssignmentListResult"]: """Lists the role assignments for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. @@ -578,7 +578,7 @@ def list_by_billing_profile( self, billing_account_name: str, billing_profile_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingRoleAssignmentListResult"]: """Lists the role assignments for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_definitions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_definitions_operations.py index 1ed6da928727..7a1472fc46e1 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_definitions_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_role_definitions_operations.py @@ -45,7 +45,7 @@ async def get_by_billing_account( self, billing_account_name: str, billing_role_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingRoleDefinition": """Gets the definition for a role on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. @@ -106,7 +106,7 @@ async def get_by_invoice_section( billing_profile_name: str, invoice_section_name: str, billing_role_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingRoleDefinition": """Gets the definition for a role on an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. @@ -172,7 +172,7 @@ async def get_by_billing_profile( billing_account_name: str, billing_profile_name: str, billing_role_definition_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingRoleDefinition": """Gets the definition for a role on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. @@ -233,7 +233,7 @@ async def get_by_billing_profile( def list_by_billing_account( self, billing_account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingRoleDefinitionListResult"]: """Lists the role definitions for a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. @@ -306,7 +306,7 @@ def list_by_invoice_section( billing_account_name: str, billing_profile_name: str, invoice_section_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingRoleDefinitionListResult"]: """Lists the role definitions for an invoice section. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. @@ -384,7 +384,7 @@ def list_by_billing_profile( self, billing_account_name: str, billing_profile_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingRoleDefinitionListResult"]: """Lists the role definitions for a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_operations.py index a147b51fbca7..91895f045d79 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_billing_subscriptions_operations.py @@ -47,7 +47,7 @@ def list_by_customer( self, billing_account_name: str, customer_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingSubscriptionsListResult"]: """Lists the subscriptions for a customer. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. @@ -121,7 +121,7 @@ async def get_next(next_link=None): def list_by_billing_account( self, billing_account_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingSubscriptionsListResult"]: """Lists the subscriptions for a billing account. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement. @@ -193,7 +193,7 @@ def list_by_billing_profile( self, billing_account_name: str, billing_profile_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingSubscriptionsListResult"]: """Lists the subscriptions that are billed to a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner @@ -270,7 +270,7 @@ def list_by_invoice_section( billing_account_name: str, billing_profile_name: str, invoice_section_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.BillingSubscriptionsListResult"]: """Lists the subscriptions that are billed to an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. @@ -347,7 +347,7 @@ async def get_next(next_link=None): async def get( self, billing_account_name: str, - **kwargs + **kwargs: Any ) -> "_models.BillingSubscription": """Gets a subscription by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. @@ -404,7 +404,7 @@ async def update( self, billing_account_name: str, parameters: "_models.BillingSubscription", - **kwargs + **kwargs: Any ) -> "_models.BillingSubscription": """Updates the properties of a billing subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer @@ -470,7 +470,7 @@ async def _move_initial( self, billing_account_name: str, parameters: "_models.TransferBillingSubscriptionRequestProperties", - **kwargs + **kwargs: Any ) -> Optional["_models.BillingSubscription"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.BillingSubscription"]] error_map = { @@ -529,7 +529,7 @@ async def begin_move( self, billing_account_name: str, parameters: "_models.TransferBillingSubscriptionRequestProperties", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.BillingSubscription"]: """Moves a subscription's charges to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported for @@ -541,8 +541,8 @@ async def begin_move( :type parameters: ~azure.mgmt.billing.models.TransferBillingSubscriptionRequestProperties :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either BillingSubscription or the result of cls(response) @@ -597,7 +597,7 @@ async def validate_move( self, billing_account_name: str, parameters: "_models.TransferBillingSubscriptionRequestProperties", - **kwargs + **kwargs: Any ) -> "_models.ValidateSubscriptionTransferEligibilityResult": """Validates if a subscription's charges can be moved to a new invoice section. This operation is supported for billing accounts with agreement type Microsoft Customer Agreement. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_customers_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_customers_operations.py index a8635fd4abb1..885eeda76896 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_customers_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_customers_operations.py @@ -47,7 +47,7 @@ def list_by_billing_profile( billing_profile_name: str, search: Optional[str] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CustomerListResult"]: """Lists the customers that are billed to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. @@ -132,7 +132,7 @@ def list_by_billing_account( billing_account_name: str, search: Optional[str] = None, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.CustomerListResult"]: """Lists the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. @@ -214,7 +214,7 @@ async def get( billing_account_name: str, customer_name: str, expand: Optional[str] = None, - **kwargs + **kwargs: Any ) -> "_models.Customer": """Gets a customer by its ID. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_enrollment_accounts_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_enrollment_accounts_operations.py index 6d32fb128cef..86be628fc1c1 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_enrollment_accounts_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_enrollment_accounts_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.EnrollmentAccountListResult"]: """Lists the enrollment accounts the caller has access to. @@ -107,7 +107,7 @@ async def get_next(next_link=None): async def get( self, name: str, - **kwargs + **kwargs: Any ) -> "_models.EnrollmentAccountSummary": """Gets a enrollment account by name. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_instructions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_instructions_operations.py index f5b457ab7aba..04a47b778659 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_instructions_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_instructions_operations.py @@ -45,7 +45,7 @@ def list_by_billing_profile( self, billing_account_name: str, billing_profile_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.InstructionListResult"]: """Lists the instructions by billing profile id. @@ -120,7 +120,7 @@ async def get( billing_account_name: str, billing_profile_name: str, instruction_name: str, - **kwargs + **kwargs: Any ) -> "_models.Instruction": """Get the instruction by name. These are custom billing instructions and are only applicable for certain customers. @@ -184,7 +184,7 @@ async def put( billing_profile_name: str, instruction_name: str, parameters: "_models.Instruction", - **kwargs + **kwargs: Any ) -> "_models.Instruction": """Creates or updates an instruction. These are custom billing instructions and are only applicable for certain customers. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoice_sections_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoice_sections_operations.py index ffca6262fe47..151fa3e5d67d 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoice_sections_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoice_sections_operations.py @@ -47,7 +47,7 @@ def list_by_billing_profile( self, billing_account_name: str, billing_profile_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.InvoiceSectionListResult"]: """Lists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. @@ -123,7 +123,7 @@ async def get( billing_account_name: str, billing_profile_name: str, invoice_section_name: str, - **kwargs + **kwargs: Any ) -> "_models.InvoiceSection": """Gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. @@ -187,7 +187,7 @@ async def _create_or_update_initial( billing_profile_name: str, invoice_section_name: str, parameters: "_models.InvoiceSection", - **kwargs + **kwargs: Any ) -> Optional["_models.InvoiceSection"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.InvoiceSection"]] error_map = { @@ -249,7 +249,7 @@ async def begin_create_or_update( billing_profile_name: str, invoice_section_name: str, parameters: "_models.InvoiceSection", - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.InvoiceSection"]: """Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. @@ -264,8 +264,8 @@ async def begin_create_or_update( :type parameters: ~azure.mgmt.billing.models.InvoiceSection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either InvoiceSection or the result of cls(response) diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoices_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoices_operations.py index ac7fe13b4d95..450eaeb0b6cf 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoices_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_invoices_operations.py @@ -48,7 +48,7 @@ def list_by_billing_account( billing_account_name: str, period_start_date: str, period_end_date: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.InvoiceListResult"]: """Lists the invoices for a billing account for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft @@ -131,7 +131,7 @@ def list_by_billing_profile( billing_profile_name: str, period_start_date: str, period_end_date: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.InvoiceListResult"]: """Lists the invoices for a billing profile for a given start date and end date. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft @@ -215,7 +215,7 @@ async def get( self, billing_account_name: str, invoice_name: str, - **kwargs + **kwargs: Any ) -> "_models.Invoice": """Gets an invoice by billing account name and ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. @@ -273,7 +273,7 @@ async def get( async def get_by_id( self, invoice_name: str, - **kwargs + **kwargs: Any ) -> "_models.Invoice": """Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. @@ -330,7 +330,7 @@ async def _download_invoice_initial( billing_account_name: str, invoice_name: str, download_token: str, - **kwargs + **kwargs: Any ) -> Optional["_models.DownloadUrl"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DownloadUrl"]] error_map = { @@ -386,7 +386,7 @@ async def begin_download_invoice( billing_account_name: str, invoice_name: str, download_token: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DownloadUrl"]: """Gets a URL to download an invoice. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. @@ -399,8 +399,8 @@ async def begin_download_invoice( :type download_token: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DownloadUrl or the result of cls(response) @@ -456,7 +456,7 @@ async def _download_multiple_billing_profile_invoices_initial( self, billing_account_name: str, download_urls: List[str], - **kwargs + **kwargs: Any ) -> Optional["_models.DownloadUrl"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DownloadUrl"]] error_map = { @@ -514,7 +514,7 @@ async def begin_download_multiple_billing_profile_invoices( self, billing_account_name: str, download_urls: List[str], - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DownloadUrl"]: """Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file. The operation is supported for billing accounts with agreement type Microsoft @@ -526,8 +526,8 @@ async def begin_download_multiple_billing_profile_invoices( :type download_urls: list[str] :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DownloadUrl or the result of cls(response) @@ -581,7 +581,7 @@ def list_by_billing_subscription( self, period_start_date: str, period_end_date: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.InvoiceListResult"]: """Lists the invoices for a subscription. @@ -655,7 +655,7 @@ async def get_next(next_link=None): async def get_by_subscription_and_invoice_id( self, invoice_name: str, - **kwargs + **kwargs: Any ) -> "_models.Invoice": """Gets an invoice by subscription ID and invoice ID. @@ -711,7 +711,7 @@ async def _download_billing_subscription_invoice_initial( self, invoice_name: str, download_token: str, - **kwargs + **kwargs: Any ) -> Optional["_models.DownloadUrl"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DownloadUrl"]] error_map = { @@ -766,7 +766,7 @@ async def begin_download_billing_subscription_invoice( self, invoice_name: str, download_token: str, - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DownloadUrl"]: """Gets a URL to download an invoice. @@ -776,8 +776,8 @@ async def begin_download_billing_subscription_invoice( :type download_token: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DownloadUrl or the result of cls(response) @@ -831,7 +831,7 @@ def get_long_running_output(pipeline_response): async def _download_multiple_billing_subscription_invoices_initial( self, download_urls: List[str], - **kwargs + **kwargs: Any ) -> Optional["_models.DownloadUrl"]: cls = kwargs.pop('cls', None) # type: ClsType[Optional["_models.DownloadUrl"]] error_map = { @@ -888,7 +888,7 @@ async def _download_multiple_billing_subscription_invoices_initial( async def begin_download_multiple_billing_subscription_invoices( self, download_urls: List[str], - **kwargs + **kwargs: Any ) -> AsyncLROPoller["_models.DownloadUrl"]: """Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file. @@ -897,8 +897,8 @@ async def begin_download_multiple_billing_subscription_invoices( :type download_urls: list[str] :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the AsyncARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be AsyncARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of AsyncLROPoller that returns either DownloadUrl or the result of cls(response) diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_operations.py index 4ed3179d761e..275fbbc30d85 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_operations.py @@ -43,7 +43,7 @@ def __init__(self, client, config, serializer, deserializer) -> None: def list( self, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.OperationListResult"]: """Lists the available billing REST API operations. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_policies_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_policies_operations.py index 4a328375a609..3df4c2725dd6 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_policies_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_policies_operations.py @@ -44,7 +44,7 @@ async def get_by_billing_profile( self, billing_account_name: str, billing_profile_name: str, - **kwargs + **kwargs: Any ) -> "_models.Policy": """Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. @@ -104,7 +104,7 @@ async def update( billing_account_name: str, billing_profile_name: str, parameters: "_models.Policy", - **kwargs + **kwargs: Any ) -> "_models.Policy": """Updates the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. @@ -170,7 +170,7 @@ async def get_by_customer( self, billing_account_name: str, customer_name: str, - **kwargs + **kwargs: Any ) -> "_models.CustomerPolicy": """Lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. @@ -230,7 +230,7 @@ async def update_customer( billing_account_name: str, customer_name: str, parameters: "_models.CustomerPolicy", - **kwargs + **kwargs: Any ) -> "_models.CustomerPolicy": """Updates the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_products_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_products_operations.py index 1d172ed50a34..1e890908d739 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_products_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_products_operations.py @@ -45,7 +45,7 @@ def list_by_customer( self, billing_account_name: str, customer_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductsListResult"]: """Lists the products for a customer. These don't include products billed based on usage.The operation is supported only for billing accounts with agreement type Microsoft Partner @@ -121,7 +121,7 @@ def list_by_billing_account( self, billing_account_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductsListResult"]: """Lists the products for a billing account. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer @@ -201,7 +201,7 @@ def list_by_billing_profile( billing_account_name: str, billing_profile_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductsListResult"]: """Lists the products for a billing profile. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer @@ -285,7 +285,7 @@ def list_by_invoice_section( billing_profile_name: str, invoice_section_name: str, filter: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ProductsListResult"]: """Lists the products for an invoice section. These don't include products billed based on usage. The operation is supported only for billing accounts with agreement type Microsoft Customer @@ -370,7 +370,7 @@ async def get( self, billing_account_name: str, product_name: str, - **kwargs + **kwargs: Any ) -> "_models.Product": """Gets a product by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. @@ -430,7 +430,7 @@ async def update( billing_account_name: str, product_name: str, parameters: "_models.Product", - **kwargs + **kwargs: Any ) -> "_models.Product": """Updates the properties of a Product. Currently, auto renew can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. @@ -497,7 +497,7 @@ async def move( billing_account_name: str, product_name: str, parameters: "_models.TransferProductRequestProperties", - **kwargs + **kwargs: Any ) -> Optional["_models.Product"]: """Moves a product's charges to a new invoice section. The new invoice section must belong to the same billing profile as the existing invoice section. This operation is supported only for @@ -573,7 +573,7 @@ async def validate_move( billing_account_name: str, product_name: str, parameters: "_models.TransferProductRequestProperties", - **kwargs + **kwargs: Any ) -> "_models.ValidateProductTransferEligibilityResult": """Validates if a product's charges can be moved to a new invoice section. This operation is supported only for products that are purchased with a recurring charge and for billing accounts diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservations_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservations_operations.py index f18d918e8450..332c18055388 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservations_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_reservations_operations.py @@ -48,7 +48,7 @@ def list_by_billing_account( orderby: Optional[str] = None, refresh_summary: Optional[str] = None, selected_state: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ReservationsListResult"]: """Lists the reservations for a billing account and the roll up counts of reservations group by provisioning states. @@ -142,7 +142,7 @@ def list_by_billing_profile( orderby: Optional[str] = None, refresh_summary: Optional[str] = None, selected_state: Optional[str] = None, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.ReservationsListResult"]: """Lists the reservations for a billing profile and the roll up counts of reservations group by provisioning state. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transactions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transactions_operations.py index 0d7a9a582c6d..43138af7c5c5 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transactions_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/aio/operations/_transactions_operations.py @@ -45,7 +45,7 @@ def list_by_invoice( self, billing_account_name: str, invoice_name: str, - **kwargs + **kwargs: Any ) -> AsyncIterable["_models.TransactionListResult"]: """Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage charges. diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models.py index 993bca9cbfaa..2d81133c4eb4 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models.py @@ -3505,17 +3505,21 @@ class TransactionListResult(msrest.serialization.Model): :ivar value: The list of transactions. :vartype value: list[~azure.mgmt.billing.models.Transaction] + :ivar total_count: Total number of records. + :vartype total_count: int :ivar next_link: The link (url) to the next page of results. :vartype next_link: str """ _validation = { 'value': {'readonly': True}, + 'total_count': {'readonly': True}, 'next_link': {'readonly': True}, } _attribute_map = { 'value': {'key': 'value', 'type': '[Transaction]'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } @@ -3525,6 +3529,7 @@ def __init__( ): super(TransactionListResult, self).__init__(**kwargs) self.value = None + self.total_count = None self.next_link = None diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py index 945556626fdb..20d1fc9b335d 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/_models_py3.py @@ -3647,17 +3647,21 @@ class TransactionListResult(msrest.serialization.Model): :ivar value: The list of transactions. :vartype value: list[~azure.mgmt.billing.models.Transaction] + :ivar total_count: Total number of records. + :vartype total_count: int :ivar next_link: The link (url) to the next page of results. :vartype next_link: str """ _validation = { 'value': {'readonly': True}, + 'total_count': {'readonly': True}, 'next_link': {'readonly': True}, } _attribute_map = { 'value': {'key': 'value', 'type': '[Transaction]'}, + 'total_count': {'key': 'totalCount', 'type': 'int'}, 'next_link': {'key': 'nextLink', 'type': 'str'}, } @@ -3667,6 +3671,7 @@ def __init__( ): super(TransactionListResult, self).__init__(**kwargs) self.value = None + self.total_count = None self.next_link = None diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_accounts_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_accounts_operations.py index f16bab94220e..aef6176cd827 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_accounts_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_accounts_operations.py @@ -248,8 +248,8 @@ def begin_update( :type parameters: ~azure.mgmt.billing.models.BillingAccountUpdateRequest :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either BillingAccount or the result of cls(response) diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py index 355606d61b54..fd25d23599e4 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_profiles_operations.py @@ -269,8 +269,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.billing.models.BillingProfile :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either BillingProfile or the result of cls(response) diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py index 1e437388e858..b7b77488c0d8 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_billing_subscriptions_operations.py @@ -553,8 +553,8 @@ def begin_move( :type parameters: ~azure.mgmt.billing.models.TransferBillingSubscriptionRequestProperties :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either BillingSubscription or the result of cls(response) diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py index 5a5af73619bd..89fb6f215fa1 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoice_sections_operations.py @@ -272,8 +272,8 @@ def begin_create_or_update( :type parameters: ~azure.mgmt.billing.models.InvoiceSection :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either InvoiceSection or the result of cls(response) diff --git a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py index 4949075cee12..5541aeca908c 100644 --- a/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py +++ b/sdk/billing/azure-mgmt-billing/azure/mgmt/billing/operations/_invoices_operations.py @@ -409,8 +409,8 @@ def begin_download_invoice( :type download_token: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DownloadUrl or the result of cls(response) @@ -538,8 +538,8 @@ def begin_download_multiple_billing_profile_invoices( :type download_urls: list[str] :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DownloadUrl or the result of cls(response) @@ -792,8 +792,8 @@ def begin_download_billing_subscription_invoice( :type download_token: str :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DownloadUrl or the result of cls(response) @@ -915,8 +915,8 @@ def begin_download_multiple_billing_subscription_invoices( :type download_urls: list[str] :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. - :keyword polling: Pass in True if you'd like the ARMPolling polling method, - False for no polling, or your own initialized polling object for a personal polling strategy. + :keyword polling: By default, your polling method will be ARMPolling. + Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. :paramtype polling: bool or ~azure.core.polling.PollingMethod :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. :return: An instance of LROPoller that returns either DownloadUrl or the result of cls(response)