-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[AutoPR azure-mgmt-discovery]-generated-from-SDK Generation - Python-5975279 #45562
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
Open
azure-sdk
wants to merge
10
commits into
Azure:main
Choose a base branch
from
azure-sdk:sdkauto/azure-mgmt-discovery-5975279
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
399bde6
Configurations: 'specification/discovery/Discovery.Management/tspcon…
azure-sdk 826ed4c
Configurations: 'specification/discovery/Discovery.Management/tspcon…
azure-sdk c6fbf9f
Add live tests, test recordings, and CODEOWNERS entry from discovery …
oylawal 1a70ac9
Update CODEOWNERS and remove test_hero_scenario (missing dependency)
oylawal bbfc8e6
Rename title from 'DiscoveryClient' to 'DiscoveryMgmtClient'
ChenxiJiang333 2d191b8
Configurations: 'specification/discovery/Discovery.Management/tspcon…
azure-sdk 9b4304f
update
ChenxiJiang333 58862d7
Move test recordings to azure-sdk-assets repo and add assets.json
oylawal a2a58fc
Merge branch 'sdkauto/azure-mgmt-discovery-5975279' of https://github…
oylawal 407444c
.
oylawal 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 |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Release History | ||
|
|
||
| ## 1.0.0b1 (2026-03-09) | ||
|
|
||
| ### Other Changes | ||
|
|
||
| - Initial version | ||
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,21 @@ | ||
| Copyright (c) Microsoft Corporation. | ||
|
|
||
| MIT License | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE. |
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,7 @@ | ||
| include *.md | ||
| include LICENSE | ||
| include azure/mgmt/discovery/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 |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # Microsoft Azure SDK for Python | ||
|
|
||
| This is the Microsoft Azure Discovery Management Client Library. | ||
| 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_ | ||
|
|
||
| ## Getting started | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| - Python 3.9+ is required to use this package. | ||
| - [Azure subscription](https://azure.microsoft.com/free/) | ||
|
|
||
| ### Install the package | ||
|
|
||
| ```bash | ||
| pip install azure-mgmt-discovery | ||
| pip install azure-identity | ||
| ``` | ||
|
|
||
| ### 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.discovery import DiscoveryMgmtClient | ||
| import os | ||
|
|
||
| sub_id = os.getenv("AZURE_SUBSCRIPTION_ID") | ||
| client = DiscoveryMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id) | ||
| ``` | ||
|
|
||
| ## Examples | ||
|
|
||
| Code samples for this package can be found at: | ||
| - [Search Discovery 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 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": "2026-02-01-preview", | ||
| "apiVersions": { | ||
| "Microsoft.Discovery": "2026-02-01-preview" | ||
| }, | ||
| "commit": "402bf21e472d87c1b3abcd0b2675a8b6c8a42700", | ||
| "repository_url": "https://github.com/Azure/azure-rest-api-specs", | ||
| "typespec_src": "specification/discovery/Discovery.Management", | ||
| "emitterVersion": "0.60.2" | ||
| } |
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.