Skip to content

Commit b138808

Browse files
author
SDKAuto
committed
CodeGen from PR 34160 in Azure/azure-rest-api-specs
Merge 88f4af1c57d0557d9ed70faaf568984a8b329dc5 into 5802c95f18bfba1003be50e545d07f8bb679c857
1 parent 9194780 commit b138808

File tree

90 files changed

+13808
-7028
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+13808
-7028
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release History
22

3+
## 1.0.0b2 (2025-05-12)
4+
5+
change log generation failed!!!
6+
37
## 1.0.0b1 (2022-12-14)
48

59
* Initial Release
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,61 @@
11
# Microsoft Azure SDK for Python
22

33
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+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
88

99
_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_
1010

11-
# Usage
11+
## Getting started
1212

13+
### Prerequisites
1314

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)
15+
- Python 3.9+ is required to use this package.
16+
- [Azure subscription](https://azure.microsoft.com/free/)
1917

18+
### Install the package
2019

21-
# Provide Feedback
20+
```bash
21+
pip install azure-mgmt-billingbenefits
22+
pip install azure-identity
23+
```
2224

23-
If you encounter any bugs or have suggestions, please file an issue in the
24-
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
25-
section of the project.
25+
### Authentication
26+
27+
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
40+
import os
2641

42+
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43+
client = BillingBenefitsRP(credential=DefaultAzureCredential(), subscription_id=sub_id)
44+
```
2745

46+
## Examples
2847

48+
Code samples for this package can be found at:
49+
- [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
50+
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
51+
52+
53+
## Troubleshooting
54+
55+
## Next steps
56+
57+
## Provide Feedback
58+
59+
If you encounter any bugs or have suggestions, please file an issue in the
60+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
61+
section of the project.
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
2-
"commit": "9b3aa35e75751e751070a7af1f96518cb8820e44",
2+
"commit": "5d1d249638483d74d716e0b83f6d6ab7239cc3e2",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
5-
"use": [
6-
"@autorest/[email protected]",
7-
"@autorest/[email protected]"
8-
],
9-
"autorest_command": "autorest specification/billingbenefits/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
10-
"readme": "specification/billingbenefits/resource-manager/readme.md"
4+
"typespec_src": "specification/billingbenefits/BillingBenefits.Management",
5+
"@azure-tools/typespec-python": "0.44.2"
116
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.BillingBenefits",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.billingbenefits.models.AppliedScopeProperties": "Microsoft.BillingBenefits.AppliedScopeProperties",
5+
"azure.mgmt.billingbenefits.models.BillingPlanInformation": "Microsoft.BillingBenefits.BillingPlanInformation",
6+
"azure.mgmt.billingbenefits.models.Price": "Microsoft.BillingBenefits.Price",
7+
"azure.mgmt.billingbenefits.models.Commitment": "Microsoft.BillingBenefits.Commitment",
8+
"azure.mgmt.billingbenefits.models.ConditionsItem": "Microsoft.BillingBenefits.ConditionsItem",
9+
"azure.mgmt.billingbenefits.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
10+
"azure.mgmt.billingbenefits.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
11+
"azure.mgmt.billingbenefits.models.Discount": "Microsoft.BillingBenefits.Discount",
12+
"azure.mgmt.billingbenefits.models.DiscountPatchRequest": "Microsoft.BillingBenefits.DiscountPatchRequest",
13+
"azure.mgmt.billingbenefits.models.DiscountPatchRequestProperties": "Microsoft.BillingBenefits.DiscountPatchRequestProperties",
14+
"azure.mgmt.billingbenefits.models.DiscountProperties": "Microsoft.BillingBenefits.DiscountProperties",
15+
"azure.mgmt.billingbenefits.models.DiscountTypeProperties": "Microsoft.BillingBenefits.DiscountTypeProperties",
16+
"azure.mgmt.billingbenefits.models.DiscountTypeProduct": "Microsoft.BillingBenefits.DiscountTypeProduct",
17+
"azure.mgmt.billingbenefits.models.DiscountTypeProductFamily": "Microsoft.BillingBenefits.DiscountTypeProductFamily",
18+
"azure.mgmt.billingbenefits.models.DiscountTypeProductSku": "Microsoft.BillingBenefits.DiscountTypeProductSku",
19+
"azure.mgmt.billingbenefits.models.EntityTypeAffiliateDiscount": "Microsoft.BillingBenefits.EntityTypeAffiliateDiscount",
20+
"azure.mgmt.billingbenefits.models.EntityTypePrimaryDiscount": "Microsoft.BillingBenefits.EntityTypePrimaryDiscount",
21+
"azure.mgmt.billingbenefits.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
22+
"azure.mgmt.billingbenefits.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
23+
"azure.mgmt.billingbenefits.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
24+
"azure.mgmt.billingbenefits.models.ExtendedStatusInfo": "Microsoft.BillingBenefits.ExtendedStatusInfo",
25+
"azure.mgmt.billingbenefits.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
26+
"azure.mgmt.billingbenefits.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
27+
"azure.mgmt.billingbenefits.models.PaymentDetail": "Microsoft.BillingBenefits.PaymentDetail",
28+
"azure.mgmt.billingbenefits.models.PriceGuaranteeProperties": "Microsoft.BillingBenefits.PriceGuaranteeProperties",
29+
"azure.mgmt.billingbenefits.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
30+
"azure.mgmt.billingbenefits.models.PurchaseRequest": "Microsoft.BillingBenefits.PurchaseRequest",
31+
"azure.mgmt.billingbenefits.models.PurchaseRequestProperties": "Microsoft.BillingBenefits.PurchaseRequestProperties",
32+
"azure.mgmt.billingbenefits.models.RenewProperties": "Microsoft.BillingBenefits.RenewProperties",
33+
"azure.mgmt.billingbenefits.models.ReservationOrderAliasRequest": "Microsoft.BillingBenefits.ReservationOrderAliasRequest",
34+
"azure.mgmt.billingbenefits.models.ReservationOrderAliasRequestProperties": "Microsoft.BillingBenefits.ReservationOrderAliasRequestProperties",
35+
"azure.mgmt.billingbenefits.models.ReservationOrderAliasRequestPropertiesReservedResourceProperties": "Microsoft.BillingBenefits.ReservationOrderAliasRequestPropertiesReservedResourceProperties",
36+
"azure.mgmt.billingbenefits.models.ReservationOrderAliasResponse": "Microsoft.BillingBenefits.ReservationOrderAliasResponse",
37+
"azure.mgmt.billingbenefits.models.ReservationOrderAliasResponseProperties": "Microsoft.BillingBenefits.ReservationOrderAliasResponseProperties",
38+
"azure.mgmt.billingbenefits.models.ReservationOrderAliasResponsePropertiesReservedResourceProperties": "Microsoft.BillingBenefits.ReservationOrderAliasResponsePropertiesReservedResourceProperties",
39+
"azure.mgmt.billingbenefits.models.ResourceSku": "Microsoft.BillingBenefits.ResourceSku",
40+
"azure.mgmt.billingbenefits.models.RoleAssignmentEntity": "Microsoft.BillingBenefits.RoleAssignmentEntity",
41+
"azure.mgmt.billingbenefits.models.RoleAssignmentEntityProperties": "Microsoft.BillingBenefits.RoleAssignmentEntityProperties",
42+
"azure.mgmt.billingbenefits.models.SavingsPlanModel": "Microsoft.BillingBenefits.SavingsPlanModel",
43+
"azure.mgmt.billingbenefits.models.SavingsPlanModelProperties": "Microsoft.BillingBenefits.SavingsPlanModelProperties",
44+
"azure.mgmt.billingbenefits.models.SavingsPlanOrderAliasModel": "Microsoft.BillingBenefits.SavingsPlanOrderAliasModel",
45+
"azure.mgmt.billingbenefits.models.SavingsPlanOrderAliasProperties": "Microsoft.BillingBenefits.SavingsPlanOrderAliasProperties",
46+
"azure.mgmt.billingbenefits.models.SavingsPlanOrderModel": "Microsoft.BillingBenefits.SavingsPlanOrderModel",
47+
"azure.mgmt.billingbenefits.models.SavingsPlanOrderModelProperties": "Microsoft.BillingBenefits.SavingsPlanOrderModelProperties",
48+
"azure.mgmt.billingbenefits.models.SavingsPlanPurchaseValidateRequest": "Microsoft.BillingBenefits.SavingsPlanPurchaseValidateRequest",
49+
"azure.mgmt.billingbenefits.models.SavingsPlanSummary": "Microsoft.BillingBenefits.SavingsPlanSummary",
50+
"azure.mgmt.billingbenefits.models.SavingsPlanSummaryCount": "Microsoft.BillingBenefits.SavingsPlanSummaryCount",
51+
"azure.mgmt.billingbenefits.models.SavingsPlanUpdateRequest": "Microsoft.BillingBenefits.SavingsPlanUpdateRequest",
52+
"azure.mgmt.billingbenefits.models.SavingsPlanUpdateRequestProperties": "Microsoft.BillingBenefits.SavingsPlanUpdateRequestProperties",
53+
"azure.mgmt.billingbenefits.models.SavingsPlanUpdateValidateRequest": "Microsoft.BillingBenefits.SavingsPlanUpdateValidateRequest",
54+
"azure.mgmt.billingbenefits.models.SavingsPlanValidateResponse": "Microsoft.BillingBenefits.SavingsPlanValidateResponse",
55+
"azure.mgmt.billingbenefits.models.SavingsPlanValidResponseProperty": "Microsoft.BillingBenefits.SavingsPlanValidResponseProperty",
56+
"azure.mgmt.billingbenefits.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
57+
"azure.mgmt.billingbenefits.models.Utilization": "Microsoft.BillingBenefits.Utilization",
58+
"azure.mgmt.billingbenefits.models.UtilizationAggregates": "Microsoft.BillingBenefits.UtilizationAggregates",
59+
"azure.mgmt.billingbenefits.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
60+
"azure.mgmt.billingbenefits.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
61+
"azure.mgmt.billingbenefits.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
62+
"azure.mgmt.billingbenefits.models.ProvisioningState": "Microsoft.BillingBenefits.ProvisioningState",
63+
"azure.mgmt.billingbenefits.models.Term": "Microsoft.BillingBenefits.Term",
64+
"azure.mgmt.billingbenefits.models.BillingPlan": "Microsoft.BillingBenefits.BillingPlan",
65+
"azure.mgmt.billingbenefits.models.AppliedScopeType": "Microsoft.BillingBenefits.AppliedScopeType",
66+
"azure.mgmt.billingbenefits.models.CommitmentGrain": "Microsoft.BillingBenefits.CommitmentGrain",
67+
"azure.mgmt.billingbenefits.models.PaymentStatus": "Microsoft.BillingBenefits.PaymentStatus",
68+
"azure.mgmt.billingbenefits.models.ReservedResourceType": "Microsoft.BillingBenefits.ReservedResourceType",
69+
"azure.mgmt.billingbenefits.models.InstanceFlexibility": "Microsoft.BillingBenefits.InstanceFlexibility",
70+
"azure.mgmt.billingbenefits.models.DiscountEntityType": "Microsoft.BillingBenefits.DiscountEntityType",
71+
"azure.mgmt.billingbenefits.models.DiscountProvisioningState": "Microsoft.BillingBenefits.DiscountProvisioningState",
72+
"azure.mgmt.billingbenefits.models.DiscountStatus": "Microsoft.BillingBenefits.DiscountStatus",
73+
"azure.mgmt.billingbenefits.models.DiscountAppliedScopeType": "Microsoft.BillingBenefits.DiscountAppliedScopeType",
74+
"azure.mgmt.billingbenefits.models.DiscountType": "Microsoft.BillingBenefits.DiscountType",
75+
"azure.mgmt.billingbenefits.models.ApplyDiscountOn": "Microsoft.BillingBenefits.ApplyDiscountOn",
76+
"azure.mgmt.billingbenefits.models.DiscountCombinationRule": "Microsoft.BillingBenefits.DiscountCombinationRule",
77+
"azure.mgmt.billingbenefits.models.PricingPolicy": "Microsoft.BillingBenefits.PricingPolicy",
78+
"azure.mgmt.billingbenefits.operations.Operations.list": "Azure.ResourceManager.Operations.list",
79+
"azure.mgmt.billingbenefits.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
80+
"azure.mgmt.billingbenefits.operations.SavingsPlanOrderAliasModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanOrderAliasModels.get",
81+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOrderAliasModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanOrderAliasModels.get",
82+
"azure.mgmt.billingbenefits.operations.SavingsPlanOrderAliasModelsOperations.begin_create": "Microsoft.BillingBenefits.SavingsPlanOrderAliasModels.create",
83+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOrderAliasModelsOperations.begin_create": "Microsoft.BillingBenefits.SavingsPlanOrderAliasModels.create",
84+
"azure.mgmt.billingbenefits.operations.SavingsPlanOrderModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanOrderModels.get",
85+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOrderModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanOrderModels.get",
86+
"azure.mgmt.billingbenefits.operations.SavingsPlanOrderModelsOperations.list": "Microsoft.BillingBenefits.SavingsPlanOrderModels.list",
87+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOrderModelsOperations.list": "Microsoft.BillingBenefits.SavingsPlanOrderModels.list",
88+
"azure.mgmt.billingbenefits.operations.SavingsPlanOrderModelsOperations.elevate": "Microsoft.BillingBenefits.SavingsPlanOrderModels.elevate",
89+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOrderModelsOperations.elevate": "Microsoft.BillingBenefits.SavingsPlanOrderModels.elevate",
90+
"azure.mgmt.billingbenefits.operations.SavingsPlanModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanModels.get",
91+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanModels.get",
92+
"azure.mgmt.billingbenefits.operations.SavingsPlanModelsOperations.begin_update": "Microsoft.BillingBenefits.SavingsPlanModels.update",
93+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanModelsOperations.begin_update": "Microsoft.BillingBenefits.SavingsPlanModels.update",
94+
"azure.mgmt.billingbenefits.operations.SavingsPlanModelsOperations.list": "Microsoft.BillingBenefits.SavingsPlanModels.list",
95+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanModelsOperations.list": "Microsoft.BillingBenefits.SavingsPlanModels.list",
96+
"azure.mgmt.billingbenefits.operations.SavingsPlanModelsOperations.validate_update": "Microsoft.BillingBenefits.SavingsPlanModels.validateUpdate",
97+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanModelsOperations.validate_update": "Microsoft.BillingBenefits.SavingsPlanModels.validateUpdate",
98+
"azure.mgmt.billingbenefits.operations.ReservationOrderAliasResponsesOperations.get": "Microsoft.BillingBenefits.ReservationOrderAliasResponses.get",
99+
"azure.mgmt.billingbenefits.aio.operations.ReservationOrderAliasResponsesOperations.get": "Microsoft.BillingBenefits.ReservationOrderAliasResponses.get",
100+
"azure.mgmt.billingbenefits.operations.ReservationOrderAliasResponsesOperations.begin_create": "Microsoft.BillingBenefits.ReservationOrderAliasResponses.create",
101+
"azure.mgmt.billingbenefits.aio.operations.ReservationOrderAliasResponsesOperations.begin_create": "Microsoft.BillingBenefits.ReservationOrderAliasResponses.create",
102+
"azure.mgmt.billingbenefits.operations.DiscountsOperations.get": "Microsoft.BillingBenefits.Discounts.get",
103+
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.get": "Microsoft.BillingBenefits.Discounts.get",
104+
"azure.mgmt.billingbenefits.operations.DiscountsOperations.begin_create": "Microsoft.BillingBenefits.Discounts.create",
105+
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.begin_create": "Microsoft.BillingBenefits.Discounts.create",
106+
"azure.mgmt.billingbenefits.operations.DiscountsOperations.begin_update": "Microsoft.BillingBenefits.Discounts.update",
107+
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.begin_update": "Microsoft.BillingBenefits.Discounts.update",
108+
"azure.mgmt.billingbenefits.operations.DiscountsOperations.begin_delete": "Microsoft.BillingBenefits.Discounts.delete",
109+
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.begin_delete": "Microsoft.BillingBenefits.Discounts.delete",
110+
"azure.mgmt.billingbenefits.operations.DiscountsOperations.resource_group_list": "Microsoft.BillingBenefits.Discounts.resourceGroupList",
111+
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.resource_group_list": "Microsoft.BillingBenefits.Discounts.resourceGroupList",
112+
"azure.mgmt.billingbenefits.operations.DiscountsOperations.subscription_list": "Microsoft.BillingBenefits.Discounts.subscriptionList",
113+
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.subscription_list": "Microsoft.BillingBenefits.Discounts.subscriptionList",
114+
"azure.mgmt.billingbenefits.operations.DiscountsOperations.begin_cancel": "Microsoft.BillingBenefits.Discounts.cancel",
115+
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.begin_cancel": "Microsoft.BillingBenefits.Discounts.cancel",
116+
"azure.mgmt.billingbenefits.operations.SavingsPlanOperationGroupOperations.list_all": "Microsoft.BillingBenefits.SavingsPlanOperationGroup.listAll",
117+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOperationGroupOperations.list_all": "Microsoft.BillingBenefits.SavingsPlanOperationGroup.listAll",
118+
"azure.mgmt.billingbenefits.operations.SavingsPlanOperationGroupOperations.validate_purchase": "Microsoft.BillingBenefits.SavingsPlanOperationGroup.validatePurchase",
119+
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOperationGroupOperations.validate_purchase": "Microsoft.BillingBenefits.SavingsPlanOperationGroup.validatePurchase",
120+
"azure.mgmt.billingbenefits.operations.DiscountsOperationGroupOperations.scope_list": "Microsoft.BillingBenefits.DiscountsOperationGroup.scopeList",
121+
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperationGroupOperations.scope_list": "Microsoft.BillingBenefits.DiscountsOperationGroup.scopeList"
122+
}
123+
}

0 commit comments

Comments
 (0)