You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Model `BillingBenefitsRP` added property `discounts`
8
+
- Model `BillingBenefitsRP` added property `discount`
9
+
- Enum `CommitmentGrain` added member `FULL_TERM`
10
+
- Enum `CommitmentGrain` added member `UNKNOWN`
11
+
- Model `SavingsPlanOrderAliasModel` added property `renew`
12
+
- Added enum `ApplyDiscountOn`
13
+
- Added model `CatalogClaimsItem`
14
+
- Added model `ConditionsItem`
15
+
- Added model `CustomPriceProperties`
16
+
- Added model `Discount`
17
+
- Added enum `DiscountAppliedScopeType`
18
+
- Added enum `DiscountCombinationRule`
19
+
- Added enum `DiscountEntityType`
20
+
- Added model `DiscountList`
21
+
- Added model `DiscountPatchRequest`
22
+
- Added model `DiscountProperties`
23
+
- Added enum `DiscountProvisioningState`
24
+
- Added enum `DiscountRuleType`
25
+
- Added enum `DiscountStatus`
26
+
- Added enum `DiscountType`
27
+
- Added model `DiscountTypeCustomPrice`
28
+
- Added model `DiscountTypeCustomPriceMultiCurrency`
29
+
- Added model `DiscountTypeProduct`
30
+
- Added model `DiscountTypeProductFamily`
31
+
- Added model `DiscountTypeProductSku`
32
+
- Added model `DiscountTypeProperties`
33
+
- Added model `EntityTypeAffiliateDiscount`
34
+
- Added model `EntityTypePrimaryDiscount`
35
+
- Added model `MarketSetPricesItems`
36
+
- Added model `PriceGuaranteeProperties`
37
+
- Added enum `PricingPolicy`
38
+
- Added model `ProxyResource`
39
+
- Added model `ResourceSku`
40
+
- Added model `TrackedResource`
41
+
- Model `SavingsPlanOperations` added method `begin_update`
42
+
- Added model `DiscountOperations`
43
+
- Added model `DiscountsOperations`
44
+
- Method `BillingBenefitsRP.validate_purchase` has a new overload `def validate_purchase(self: None, body: IO[bytes], content_type: str)`
45
+
- Method `BillingBenefitsRPOperationsMixin.validate_purchase` has a new overload `def validate_purchase(self: None, body: IO[bytes], content_type: str)`
46
+
- Method `ReservationOrderAliasOperations.begin_create` has a new overload `def begin_create(self: None, reservation_order_alias_name: str, body: IO[bytes], content_type: str)`
47
+
- Method `SavingsPlanOperations.validate_update` has a new overload `def validate_update(self: None, savings_plan_order_id: str, savings_plan_id: str, body: IO[bytes], content_type: str)`
48
+
- Method `SavingsPlanOperations.begin_update` has a new overload `def begin_update(self: None, savings_plan_order_id: str, savings_plan_id: str, body: SavingsPlanUpdateRequest, content_type: str)`
49
+
- Method `SavingsPlanOperations.begin_update` has a new overload `def begin_update(self: None, savings_plan_order_id: str, savings_plan_id: str, body: IO[bytes], content_type: str)`
50
+
- Method `SavingsPlanOrderAliasOperations.begin_create` has a new overload `def begin_create(self: None, savings_plan_order_alias_name: str, body: IO[bytes], content_type: str)`
51
+
- Method `DiscountOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, discount_name: str, body: DiscountPatchRequest, content_type: str)`
52
+
- Method `DiscountOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, discount_name: str, body: IO[bytes], content_type: str)`
53
+
- Method `DiscountsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, discount_name: str, body: Discount, content_type: str)`
54
+
- Method `DiscountsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, discount_name: str, body: IO[bytes], content_type: str)`
55
+
56
+
### Breaking Changes
57
+
58
+
- Method `BillingBenefitsRP.__init__` inserted a `positional_or_keyword` parameter `subscription_id`
59
+
- Method `BillingBenefitsRP.__init__` deleted or renamed its parameter `expand` of kind `positional_or_keyword`
60
+
- Method `PurchaseRequest.__init__` parameter `renew` changed default value from `bool` to `none`
61
+
- Method `ReservationOrderAliasRequest.__init__` parameter `renew` changed default value from `bool` to `none`
62
+
- Method `ReservationOrderAliasResponse.__init__` parameter `renew` changed default value from `bool` to `none`
63
+
- Method `SavingsPlanModel.__init__` parameter `renew` changed default value from `bool` to `none`
64
+
- Method `SavingsPlanModelList.__init__` removed default value `None` from its parameter `value`
65
+
- Method `SavingsPlanOrderModelList.__init__` removed default value `None` from its parameter `value`
66
+
- Method `SavingsPlanUpdateRequestProperties.__init__` parameter `renew` changed default value from `bool` to `none`
67
+
- Deleted or renamed model `BillingInformation`
68
+
- Deleted or renamed model `OperationResultError`
69
+
- Deleted or renamed model `Sku`
70
+
- Deleted or renamed method `SavingsPlanOperations.update`
This is the Microsoft Azure Billingbenefits Management Client Library.
4
-
This package has been tested with Python 3.7+.
4
+
This package has been tested with Python 3.9+.
5
5
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6
6
7
7
## _Disclaimer_
8
8
9
9
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
10
10
11
-
#Usage
11
+
## Getting started
12
12
13
+
### Prerequisites
13
14
14
-
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
15
-
16
-
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
17
-
Code samples for this package can be found at [Billingbenefits Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
18
-
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
28
+
29
+
-`AZURE_CLIENT_ID` for Azure client ID.
30
+
-`AZURE_TENANT_ID` for Azure tenant ID.
31
+
-`AZURE_CLIENT_SECRET` for Azure client secret.
32
+
33
+
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
34
+
35
+
With above configuration, client can be authenticated by following code:
36
+
37
+
```python
38
+
from azure.identity import DefaultAzureCredential
39
+
from azure.mgmt.billingbenefits import BillingBenefitsRP
-[Search Billingbenefits Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
0 commit comments