diff --git a/sdk/consumption/azure-mgmt-consumption/_meta.json b/sdk/consumption/azure-mgmt-consumption/_meta.json index 4782772c1c8b..4e7d108b6273 100644 --- a/sdk/consumption/azure-mgmt-consumption/_meta.json +++ b/sdk/consumption/azure-mgmt-consumption/_meta.json @@ -4,8 +4,8 @@ "@autorest/python@5.16.0", "@autorest/modelerfour@4.19.3" ], - "commit": "c2d25c0f023edd1fea753a89d6409f3e7a9f8956", + "commit": "c321d5c2a3dc31c4f943979b5d587b0208dab01c", "repository_url": "https://github.com/Azure/azure-rest-api-specs", - "autorest_command": "autorest specification/consumption/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", + "autorest_command": "autorest specification/consumption/resource-manager/readme.md --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", "readme": "specification/consumption/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_version.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_version.py index 9f8bb24bdd99..e5754a47ce68 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_version.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "10.0.0" +VERSION = "1.0.0b1" diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_reservation_transactions_operations.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_reservation_transactions_operations.py index c76ab098cb36..fd147f0bde33 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_reservation_transactions_operations.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/aio/operations/_reservation_transactions_operations.py @@ -50,12 +50,20 @@ def list( filter: Optional[str] = None, **kwargs: Any ) -> AsyncIterable[_models.ReservationTransactionsListResult]: - """List of transactions for reserved instances on billing account scope. + """List of transactions for reserved instances on billing account scope. Note: The refund + transactions are posted along with its purchase transaction (i.e. in the purchase billing + month). For example, The refund is requested in May 2021. This refund transaction will have + event date as May 2021 but the billing month as April 2020 when the reservation purchase was + made. :param billing_account_id: BillingAccount ID. :type billing_account_id: str :param filter: Filter reservation transactions by date range. The properties/EventDate for - start date and end date. The filter supports 'le' and 'ge'. Default value is None. + start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the + entire start date's and end date's billing month. For example, filter + properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for + the entire December 2020 month (i.e. will contain records for dates December 30 and 31). + Default value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ReservationTransactionsListResult or the result of @@ -141,14 +149,21 @@ def list_by_billing_profile( filter: Optional[str] = None, **kwargs: Any ) -> AsyncIterable[_models.ModernReservationTransactionsListResult]: - """List of transactions for reserved instances on billing account scope. + """List of transactions for reserved instances on billing profile scope. The refund transactions + are posted along with its purchase transaction (i.e. in the purchase billing month). For + example, The refund is requested in May 2021. This refund transaction will have event date as + May 2021 but the billing month as April 2020 when the reservation purchase was made. :param billing_account_id: BillingAccount ID. :type billing_account_id: str :param billing_profile_id: Azure Billing Profile ID. :type billing_profile_id: str :param filter: Filter reservation transactions by date range. The properties/EventDate for - start date and end date. The filter supports 'le' and 'ge'. Default value is None. + start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the + entire start date's and end date's billing month. For example, filter + properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for + entire December 2020 month (i.e. will contain records for dates December 30 and 31). Default + value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ModernReservationTransactionsListResult or the diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_models_py3.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_models_py3.py index 73c90fc3f566..a73c35308da7 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_models_py3.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/models/_models_py3.py @@ -1808,7 +1808,7 @@ class ReservationTransaction(ReservationTransactionResource): :vartype reservation_order_id: str :ivar description: The description of the transaction. :vartype description: str - :ivar event_type: The type of the transaction (Purchase, Cancel, etc.). + :ivar event_type: The type of the transaction (Purchase, Cancel or Refund). :vartype event_type: str :ivar quantity: The quantity of the transaction. :vartype quantity: float @@ -1966,7 +1966,7 @@ class LegacyReservationTransaction(ReservationTransaction): :vartype reservation_order_id: str :ivar description: The description of the transaction. :vartype description: str - :ivar event_type: The type of the transaction (Purchase, Cancel, etc.). + :ivar event_type: The type of the transaction (Purchase, Cancel or Refund). :vartype event_type: str :ivar quantity: The quantity of the transaction. :vartype quantity: float @@ -3464,7 +3464,7 @@ class ModernReservationTransaction(ReservationTransactionResource): :vartype description: str :ivar event_date: The date of the transaction. :vartype event_date: ~datetime.datetime - :ivar event_type: The type of the transaction (Purchase, Cancel, etc.). + :ivar event_type: The type of the transaction (Purchase, Cancel or Refund). :vartype event_type: str :ivar invoice: Invoice Number. :vartype invoice: str diff --git a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_reservation_transactions_operations.py b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_reservation_transactions_operations.py index 2d58f28caf77..cf462c4aa7b0 100644 --- a/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_reservation_transactions_operations.py +++ b/sdk/consumption/azure-mgmt-consumption/azure/mgmt/consumption/operations/_reservation_transactions_operations.py @@ -129,12 +129,20 @@ def list( filter: Optional[str] = None, **kwargs: Any ) -> Iterable[_models.ReservationTransactionsListResult]: - """List of transactions for reserved instances on billing account scope. + """List of transactions for reserved instances on billing account scope. Note: The refund + transactions are posted along with its purchase transaction (i.e. in the purchase billing + month). For example, The refund is requested in May 2021. This refund transaction will have + event date as May 2021 but the billing month as April 2020 when the reservation purchase was + made. :param billing_account_id: BillingAccount ID. :type billing_account_id: str :param filter: Filter reservation transactions by date range. The properties/EventDate for - start date and end date. The filter supports 'le' and 'ge'. Default value is None. + start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the + entire start date's and end date's billing month. For example, filter + properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for + the entire December 2020 month (i.e. will contain records for dates December 30 and 31). + Default value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ReservationTransactionsListResult or the result of @@ -220,14 +228,21 @@ def list_by_billing_profile( filter: Optional[str] = None, **kwargs: Any ) -> Iterable[_models.ModernReservationTransactionsListResult]: - """List of transactions for reserved instances on billing account scope. + """List of transactions for reserved instances on billing profile scope. The refund transactions + are posted along with its purchase transaction (i.e. in the purchase billing month). For + example, The refund is requested in May 2021. This refund transaction will have event date as + May 2021 but the billing month as April 2020 when the reservation purchase was made. :param billing_account_id: BillingAccount ID. :type billing_account_id: str :param billing_profile_id: Azure Billing Profile ID. :type billing_profile_id: str :param filter: Filter reservation transactions by date range. The properties/EventDate for - start date and end date. The filter supports 'le' and 'ge'. Default value is None. + start date and end date. The filter supports 'le' and 'ge'. Note: API returns data for the + entire start date's and end date's billing month. For example, filter + properties/eventDate+ge+2020-01-01+AND+properties/eventDate+le+2020-12-29 will include data for + entire December 2020 month (i.e. will contain records for dates December 30 and 31). Default + value is None. :type filter: str :keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either ModernReservationTransactionsListResult or the