-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[AutoPR azure-mgmt-peering]-generated-from-SDK Generation - Python-6072600 #45959
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
afee59a
Configurations: 'specification/peering/resource-manager/Microsoft.Pe…
azure-sdk cb32b79
Optimize changelog for azure-mgmt-peering
msyyc c520a0c
Add live tests for azure-mgmt-peering
msyyc 3af5b85
Update CHANGELOG.md
msyyc 0e40304
Merge branch 'main' into sdkauto/azure-mgmt-peering-6072600
msyyc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,7 @@ | ||
| include _meta.json | ||
| recursive-include tests *.py *.json | ||
| recursive-include samples *.py *.md | ||
| include *.md | ||
| include azure/__init__.py | ||
| include azure/mgmt/__init__.py | ||
| include LICENSE | ||
| include azure/mgmt/peering/py.typed | ||
| recursive-include tests *.py | ||
| recursive-include samples *.py *.md | ||
| include azure/__init__.py | ||
| include azure/mgmt/__init__.py | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,61 @@ | ||
| # Microsoft Azure SDK for Python | ||
|
|
||
| This is the Microsoft Azure Peering 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 [Peering 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-peering | ||
| 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.peering import PeeringManagementClient | ||
| import os | ||
|
|
||
| sub_id = os.getenv("AZURE_SUBSCRIPTION_ID") | ||
| client = PeeringManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id) | ||
| ``` | ||
|
|
||
| ## Examples | ||
|
|
||
| Code samples for this package can be found at: | ||
| - [Search Peering 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. |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "apiVersion": "2025-05-01", | ||
| "apiVersions": { | ||
| "Microsoft.Peering": "2025-05-01" | ||
| }, | ||
| "commit": "8454cb5ef73c1ad157090245bec57c27668c81c7", | ||
| "repository_url": "https://github.com/Azure/azure-rest-api-specs", | ||
| "typespec_src": "specification/peering/resource-manager/Microsoft.Peering/Peering", | ||
| "emitterVersion": "0.61.1" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.