Skip to content

[AutoPR azure-mgmt-billingbenefits] [TSP Migration][billingbenefits] TypeSpec migrated from swagger #11827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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: 4 additions & 0 deletions sdk/billingbenefits/azure-mgmt-billingbenefits/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 1.0.0b2 (2025-05-12)

change log generation failed!!!

## 1.0.0b1 (2022-12-14)

* Initial Release
55 changes: 44 additions & 11 deletions sdk/billingbenefits/azure-mgmt-billingbenefits/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,61 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Billingbenefits Management Client Library.
This package has been tested with Python 3.7+.
This package has been tested with Python 3.9+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_

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

# Usage
## Getting started

### Prerequisites

To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)

For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
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.
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
- Python 3.9+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package

# Provide Feedback
```bash
pip install azure-mgmt-billingbenefits
pip install azure-identity
```

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.
### Authentication

By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
- `AZURE_CLIENT_SECRET` for Azure client secret.

In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.

With above configuration, client can be authenticated by following code:

```python
from azure.identity import DefaultAzureCredential
from azure.mgmt.billingbenefits import BillingBenefitsRP
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = BillingBenefitsRP(credential=DefaultAzureCredential(), subscription_id=sub_id)
```

## Examples

Code samples for this package can be found at:
- [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
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)


## Troubleshooting

## Next steps

## Provide Feedback

If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.
11 changes: 3 additions & 8 deletions sdk/billingbenefits/azure-mgmt-billingbenefits/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
{
"commit": "9b3aa35e75751e751070a7af1f96518cb8820e44",
"commit": "5d1d249638483d74d716e0b83f6d6ab7239cc3e2",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"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",
"readme": "specification/billingbenefits/resource-manager/readme.md"
"typespec_src": "specification/billingbenefits/BillingBenefits.Management",
"@azure-tools/typespec-python": "0.44.2"
}
123 changes: 123 additions & 0 deletions sdk/billingbenefits/azure-mgmt-billingbenefits/apiview-properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"CrossLanguagePackageId": "Microsoft.BillingBenefits",
"CrossLanguageDefinitionId": {
"azure.mgmt.billingbenefits.models.AppliedScopeProperties": "Microsoft.BillingBenefits.AppliedScopeProperties",
"azure.mgmt.billingbenefits.models.BillingPlanInformation": "Microsoft.BillingBenefits.BillingPlanInformation",
"azure.mgmt.billingbenefits.models.Price": "Microsoft.BillingBenefits.Price",
"azure.mgmt.billingbenefits.models.Commitment": "Microsoft.BillingBenefits.Commitment",
"azure.mgmt.billingbenefits.models.ConditionsItem": "Microsoft.BillingBenefits.ConditionsItem",
"azure.mgmt.billingbenefits.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.billingbenefits.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
"azure.mgmt.billingbenefits.models.Discount": "Microsoft.BillingBenefits.Discount",
"azure.mgmt.billingbenefits.models.DiscountPatchRequest": "Microsoft.BillingBenefits.DiscountPatchRequest",
"azure.mgmt.billingbenefits.models.DiscountPatchRequestProperties": "Microsoft.BillingBenefits.DiscountPatchRequestProperties",
"azure.mgmt.billingbenefits.models.DiscountProperties": "Microsoft.BillingBenefits.DiscountProperties",
"azure.mgmt.billingbenefits.models.DiscountTypeProperties": "Microsoft.BillingBenefits.DiscountTypeProperties",
"azure.mgmt.billingbenefits.models.DiscountTypeProduct": "Microsoft.BillingBenefits.DiscountTypeProduct",
"azure.mgmt.billingbenefits.models.DiscountTypeProductFamily": "Microsoft.BillingBenefits.DiscountTypeProductFamily",
"azure.mgmt.billingbenefits.models.DiscountTypeProductSku": "Microsoft.BillingBenefits.DiscountTypeProductSku",
"azure.mgmt.billingbenefits.models.EntityTypeAffiliateDiscount": "Microsoft.BillingBenefits.EntityTypeAffiliateDiscount",
"azure.mgmt.billingbenefits.models.EntityTypePrimaryDiscount": "Microsoft.BillingBenefits.EntityTypePrimaryDiscount",
"azure.mgmt.billingbenefits.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
"azure.mgmt.billingbenefits.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
"azure.mgmt.billingbenefits.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
"azure.mgmt.billingbenefits.models.ExtendedStatusInfo": "Microsoft.BillingBenefits.ExtendedStatusInfo",
"azure.mgmt.billingbenefits.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
"azure.mgmt.billingbenefits.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
"azure.mgmt.billingbenefits.models.PaymentDetail": "Microsoft.BillingBenefits.PaymentDetail",
"azure.mgmt.billingbenefits.models.PriceGuaranteeProperties": "Microsoft.BillingBenefits.PriceGuaranteeProperties",
"azure.mgmt.billingbenefits.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
"azure.mgmt.billingbenefits.models.PurchaseRequest": "Microsoft.BillingBenefits.PurchaseRequest",
"azure.mgmt.billingbenefits.models.PurchaseRequestProperties": "Microsoft.BillingBenefits.PurchaseRequestProperties",
"azure.mgmt.billingbenefits.models.RenewProperties": "Microsoft.BillingBenefits.RenewProperties",
"azure.mgmt.billingbenefits.models.ReservationOrderAliasRequest": "Microsoft.BillingBenefits.ReservationOrderAliasRequest",
"azure.mgmt.billingbenefits.models.ReservationOrderAliasRequestProperties": "Microsoft.BillingBenefits.ReservationOrderAliasRequestProperties",
"azure.mgmt.billingbenefits.models.ReservationOrderAliasRequestPropertiesReservedResourceProperties": "Microsoft.BillingBenefits.ReservationOrderAliasRequestPropertiesReservedResourceProperties",
"azure.mgmt.billingbenefits.models.ReservationOrderAliasResponse": "Microsoft.BillingBenefits.ReservationOrderAliasResponse",
"azure.mgmt.billingbenefits.models.ReservationOrderAliasResponseProperties": "Microsoft.BillingBenefits.ReservationOrderAliasResponseProperties",
"azure.mgmt.billingbenefits.models.ReservationOrderAliasResponsePropertiesReservedResourceProperties": "Microsoft.BillingBenefits.ReservationOrderAliasResponsePropertiesReservedResourceProperties",
"azure.mgmt.billingbenefits.models.ResourceSku": "Microsoft.BillingBenefits.ResourceSku",
"azure.mgmt.billingbenefits.models.RoleAssignmentEntity": "Microsoft.BillingBenefits.RoleAssignmentEntity",
"azure.mgmt.billingbenefits.models.RoleAssignmentEntityProperties": "Microsoft.BillingBenefits.RoleAssignmentEntityProperties",
"azure.mgmt.billingbenefits.models.SavingsPlanModel": "Microsoft.BillingBenefits.SavingsPlanModel",
"azure.mgmt.billingbenefits.models.SavingsPlanModelProperties": "Microsoft.BillingBenefits.SavingsPlanModelProperties",
"azure.mgmt.billingbenefits.models.SavingsPlanOrderAliasModel": "Microsoft.BillingBenefits.SavingsPlanOrderAliasModel",
"azure.mgmt.billingbenefits.models.SavingsPlanOrderAliasProperties": "Microsoft.BillingBenefits.SavingsPlanOrderAliasProperties",
"azure.mgmt.billingbenefits.models.SavingsPlanOrderModel": "Microsoft.BillingBenefits.SavingsPlanOrderModel",
"azure.mgmt.billingbenefits.models.SavingsPlanOrderModelProperties": "Microsoft.BillingBenefits.SavingsPlanOrderModelProperties",
"azure.mgmt.billingbenefits.models.SavingsPlanPurchaseValidateRequest": "Microsoft.BillingBenefits.SavingsPlanPurchaseValidateRequest",
"azure.mgmt.billingbenefits.models.SavingsPlanSummary": "Microsoft.BillingBenefits.SavingsPlanSummary",
"azure.mgmt.billingbenefits.models.SavingsPlanSummaryCount": "Microsoft.BillingBenefits.SavingsPlanSummaryCount",
"azure.mgmt.billingbenefits.models.SavingsPlanUpdateRequest": "Microsoft.BillingBenefits.SavingsPlanUpdateRequest",
"azure.mgmt.billingbenefits.models.SavingsPlanUpdateRequestProperties": "Microsoft.BillingBenefits.SavingsPlanUpdateRequestProperties",
"azure.mgmt.billingbenefits.models.SavingsPlanUpdateValidateRequest": "Microsoft.BillingBenefits.SavingsPlanUpdateValidateRequest",
"azure.mgmt.billingbenefits.models.SavingsPlanValidateResponse": "Microsoft.BillingBenefits.SavingsPlanValidateResponse",
"azure.mgmt.billingbenefits.models.SavingsPlanValidResponseProperty": "Microsoft.BillingBenefits.SavingsPlanValidResponseProperty",
"azure.mgmt.billingbenefits.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
"azure.mgmt.billingbenefits.models.Utilization": "Microsoft.BillingBenefits.Utilization",
"azure.mgmt.billingbenefits.models.UtilizationAggregates": "Microsoft.BillingBenefits.UtilizationAggregates",
"azure.mgmt.billingbenefits.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
"azure.mgmt.billingbenefits.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
"azure.mgmt.billingbenefits.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.billingbenefits.models.ProvisioningState": "Microsoft.BillingBenefits.ProvisioningState",
"azure.mgmt.billingbenefits.models.Term": "Microsoft.BillingBenefits.Term",
"azure.mgmt.billingbenefits.models.BillingPlan": "Microsoft.BillingBenefits.BillingPlan",
"azure.mgmt.billingbenefits.models.AppliedScopeType": "Microsoft.BillingBenefits.AppliedScopeType",
"azure.mgmt.billingbenefits.models.CommitmentGrain": "Microsoft.BillingBenefits.CommitmentGrain",
"azure.mgmt.billingbenefits.models.PaymentStatus": "Microsoft.BillingBenefits.PaymentStatus",
"azure.mgmt.billingbenefits.models.ReservedResourceType": "Microsoft.BillingBenefits.ReservedResourceType",
"azure.mgmt.billingbenefits.models.InstanceFlexibility": "Microsoft.BillingBenefits.InstanceFlexibility",
"azure.mgmt.billingbenefits.models.DiscountEntityType": "Microsoft.BillingBenefits.DiscountEntityType",
"azure.mgmt.billingbenefits.models.DiscountProvisioningState": "Microsoft.BillingBenefits.DiscountProvisioningState",
"azure.mgmt.billingbenefits.models.DiscountStatus": "Microsoft.BillingBenefits.DiscountStatus",
"azure.mgmt.billingbenefits.models.DiscountAppliedScopeType": "Microsoft.BillingBenefits.DiscountAppliedScopeType",
"azure.mgmt.billingbenefits.models.DiscountType": "Microsoft.BillingBenefits.DiscountType",
"azure.mgmt.billingbenefits.models.ApplyDiscountOn": "Microsoft.BillingBenefits.ApplyDiscountOn",
"azure.mgmt.billingbenefits.models.DiscountCombinationRule": "Microsoft.BillingBenefits.DiscountCombinationRule",
"azure.mgmt.billingbenefits.models.PricingPolicy": "Microsoft.BillingBenefits.PricingPolicy",
"azure.mgmt.billingbenefits.operations.Operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.billingbenefits.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.billingbenefits.operations.SavingsPlanOrderAliasModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanOrderAliasModels.get",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOrderAliasModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanOrderAliasModels.get",
"azure.mgmt.billingbenefits.operations.SavingsPlanOrderAliasModelsOperations.begin_create": "Microsoft.BillingBenefits.SavingsPlanOrderAliasModels.create",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOrderAliasModelsOperations.begin_create": "Microsoft.BillingBenefits.SavingsPlanOrderAliasModels.create",
"azure.mgmt.billingbenefits.operations.SavingsPlanOrderModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanOrderModels.get",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOrderModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanOrderModels.get",
"azure.mgmt.billingbenefits.operations.SavingsPlanOrderModelsOperations.list": "Microsoft.BillingBenefits.SavingsPlanOrderModels.list",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOrderModelsOperations.list": "Microsoft.BillingBenefits.SavingsPlanOrderModels.list",
"azure.mgmt.billingbenefits.operations.SavingsPlanOrderModelsOperations.elevate": "Microsoft.BillingBenefits.SavingsPlanOrderModels.elevate",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOrderModelsOperations.elevate": "Microsoft.BillingBenefits.SavingsPlanOrderModels.elevate",
"azure.mgmt.billingbenefits.operations.SavingsPlanModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanModels.get",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanModelsOperations.get": "Microsoft.BillingBenefits.SavingsPlanModels.get",
"azure.mgmt.billingbenefits.operations.SavingsPlanModelsOperations.begin_update": "Microsoft.BillingBenefits.SavingsPlanModels.update",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanModelsOperations.begin_update": "Microsoft.BillingBenefits.SavingsPlanModels.update",
"azure.mgmt.billingbenefits.operations.SavingsPlanModelsOperations.list": "Microsoft.BillingBenefits.SavingsPlanModels.list",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanModelsOperations.list": "Microsoft.BillingBenefits.SavingsPlanModels.list",
"azure.mgmt.billingbenefits.operations.SavingsPlanModelsOperations.validate_update": "Microsoft.BillingBenefits.SavingsPlanModels.validateUpdate",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanModelsOperations.validate_update": "Microsoft.BillingBenefits.SavingsPlanModels.validateUpdate",
"azure.mgmt.billingbenefits.operations.ReservationOrderAliasResponsesOperations.get": "Microsoft.BillingBenefits.ReservationOrderAliasResponses.get",
"azure.mgmt.billingbenefits.aio.operations.ReservationOrderAliasResponsesOperations.get": "Microsoft.BillingBenefits.ReservationOrderAliasResponses.get",
"azure.mgmt.billingbenefits.operations.ReservationOrderAliasResponsesOperations.begin_create": "Microsoft.BillingBenefits.ReservationOrderAliasResponses.create",
"azure.mgmt.billingbenefits.aio.operations.ReservationOrderAliasResponsesOperations.begin_create": "Microsoft.BillingBenefits.ReservationOrderAliasResponses.create",
"azure.mgmt.billingbenefits.operations.DiscountsOperations.get": "Microsoft.BillingBenefits.Discounts.get",
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.get": "Microsoft.BillingBenefits.Discounts.get",
"azure.mgmt.billingbenefits.operations.DiscountsOperations.begin_create": "Microsoft.BillingBenefits.Discounts.create",
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.begin_create": "Microsoft.BillingBenefits.Discounts.create",
"azure.mgmt.billingbenefits.operations.DiscountsOperations.begin_update": "Microsoft.BillingBenefits.Discounts.update",
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.begin_update": "Microsoft.BillingBenefits.Discounts.update",
"azure.mgmt.billingbenefits.operations.DiscountsOperations.begin_delete": "Microsoft.BillingBenefits.Discounts.delete",
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.begin_delete": "Microsoft.BillingBenefits.Discounts.delete",
"azure.mgmt.billingbenefits.operations.DiscountsOperations.resource_group_list": "Microsoft.BillingBenefits.Discounts.resourceGroupList",
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.resource_group_list": "Microsoft.BillingBenefits.Discounts.resourceGroupList",
"azure.mgmt.billingbenefits.operations.DiscountsOperations.subscription_list": "Microsoft.BillingBenefits.Discounts.subscriptionList",
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.subscription_list": "Microsoft.BillingBenefits.Discounts.subscriptionList",
"azure.mgmt.billingbenefits.operations.DiscountsOperations.begin_cancel": "Microsoft.BillingBenefits.Discounts.cancel",
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperations.begin_cancel": "Microsoft.BillingBenefits.Discounts.cancel",
"azure.mgmt.billingbenefits.operations.SavingsPlanOperationGroupOperations.list_all": "Microsoft.BillingBenefits.SavingsPlanOperationGroup.listAll",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOperationGroupOperations.list_all": "Microsoft.BillingBenefits.SavingsPlanOperationGroup.listAll",
"azure.mgmt.billingbenefits.operations.SavingsPlanOperationGroupOperations.validate_purchase": "Microsoft.BillingBenefits.SavingsPlanOperationGroup.validatePurchase",
"azure.mgmt.billingbenefits.aio.operations.SavingsPlanOperationGroupOperations.validate_purchase": "Microsoft.BillingBenefits.SavingsPlanOperationGroup.validatePurchase",
"azure.mgmt.billingbenefits.operations.DiscountsOperationGroupOperations.scope_list": "Microsoft.BillingBenefits.DiscountsOperationGroup.scopeList",
"azure.mgmt.billingbenefits.aio.operations.DiscountsOperationGroupOperations.scope_list": "Microsoft.BillingBenefits.DiscountsOperationGroup.scopeList"
}
}
Loading