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 d8bcbe29d84f..04c84f19fb9b 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 @@ -431,10 +431,10 @@ def get_long_running_output(response): download_invoice.metadata = {'url': '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/download'} - def _download_multiple_modern_invoice_initial( + def _download_multiple_billing_profile_invoices_initial( self, billing_account_name, download_urls, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.download_multiple_modern_invoice.metadata['url'] + url = self.download_multiple_billing_profile_invoices.metadata['url'] path_format_arguments = { 'billingAccountName': self._serialize.url("billing_account_name", billing_account_name, 'str') } @@ -482,9 +482,9 @@ def _download_multiple_modern_invoice_initial( return deserialized - def download_multiple_modern_invoice( + def download_multiple_billing_profile_invoices( self, billing_account_name, download_urls, custom_headers=None, raw=False, polling=True, **operation_config): - """Gets a URL to download an multiple invoices documents (invoice pdf, tax + """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 Partner Agreement or Microsoft Customer Agreement. @@ -509,7 +509,7 @@ def download_multiple_modern_invoice( :raises: :class:`ErrorResponseException` """ - raw_result = self._download_multiple_modern_invoice_initial( + raw_result = self._download_multiple_billing_profile_invoices_initial( billing_account_name=billing_account_name, download_urls=download_urls, custom_headers=custom_headers, @@ -538,7 +538,7 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - download_multiple_modern_invoice.metadata = {'url': '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/downloadDocuments'} + download_multiple_billing_profile_invoices.metadata = {'url': '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/downloadDocuments'} def list_by_billing_subscription( self, period_start_date, period_end_date, custom_headers=None, raw=False, **operation_config): @@ -773,10 +773,10 @@ def get_long_running_output(response): download_billing_subscription_invoice.metadata = {'url': '/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}/download'} - def _download_multiple_billing_subscription_invoice_initial( + def _download_multiple_billing_subscription_invoices_initial( self, download_urls, custom_headers=None, raw=False, **operation_config): # Construct URL - url = self.download_multiple_billing_subscription_invoice.metadata['url'] + url = self.download_multiple_billing_subscription_invoices.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -824,9 +824,9 @@ def _download_multiple_billing_subscription_invoice_initial( return deserialized - def download_multiple_billing_subscription_invoice( + def download_multiple_billing_subscription_invoices( self, download_urls, custom_headers=None, raw=False, polling=True, **operation_config): - """Gets a URL to download multiple invoices documents (invoice pdf, tax + """Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip file. :param download_urls: An array of download urls for individual @@ -846,7 +846,7 @@ def download_multiple_billing_subscription_invoice( :raises: :class:`ErrorResponseException` """ - raw_result = self._download_multiple_billing_subscription_invoice_initial( + raw_result = self._download_multiple_billing_subscription_invoices_initial( download_urls=download_urls, custom_headers=custom_headers, raw=True, @@ -874,4 +874,4 @@ def get_long_running_output(response): elif polling is False: polling_method = NoPolling() else: polling_method = polling return LROPoller(self._client, raw_result, get_long_running_output, polling_method) - download_multiple_billing_subscription_invoice.metadata = {'url': '/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/downloadDocuments'} + download_multiple_billing_subscription_invoices.metadata = {'url': '/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/downloadDocuments'}