Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdk/consumption/azure-mgmt-consumption/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down