Skip to content

Commit 02456a3

Browse files
azure-sdk-automation[bot]azure-sdkmsyycCopilot
authored
[AutoPR azure-mgmt-marketplace]-generated-from-SDK Generation - Python-6533556 (#47934)
* Configurations: 'specification/marketplace/resource-manager/Microsoft.Marketplace/Marketplace/tspconfig.yaml', API Version: 2025-01-01, SDK Release Type: beta, and CommitSHA: 'ea850a065dc8679f82dc3fdbba9ceff53eeba116' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6533368 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Add live tests for azure-mgmt-marketplace * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Configurations: 'specification/marketplace/resource-manager/Microsoft.Marketplace/Marketplace/tspconfig.yaml', API Version: 2025-01-01, SDK Release Type: beta, and CommitSHA: 'ea850a065dc8679f82dc3fdbba9ceff53eeba116' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6533556 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --------- Co-authored-by: azure-sdk <azuresdk@microsoft.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 8c90a1d commit 02456a3

100 files changed

Lines changed: 28141 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Release History
2+
3+
## 1.0.0b1 (2026-07-08)
4+
5+
### Other Changes
6+
7+
- Initial version
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation.
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
include *.md
2+
include LICENSE
3+
include azure/mgmt/marketplace/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure Marketplace Management Client Library.
4+
This package has been tested with Python 3.10+.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6+
7+
## _Disclaimer_
8+
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+
11+
## Getting started
12+
13+
### Prerequisites
14+
15+
- Python 3.10+ is required to use this package.
16+
- [Azure subscription](https://azure.microsoft.com/free/)
17+
18+
### Install the package
19+
20+
```bash
21+
pip install azure-mgmt-marketplace
22+
pip install azure-identity
23+
```
24+
25+
### Authentication
26+
27+
By default, [Microsoft Entra](https://learn.microsoft.com/entra/fundamentals/what-is-entra) 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+
With above configuration, client can be authenticated by following code:
34+
35+
```python
36+
from azure.identity import DefaultAzureCredential
37+
from azure.mgmt.marketplace import MarketplaceMgmtClient
38+
39+
client = MarketplaceMgmtClient(credential=DefaultAzureCredential())
40+
```
41+
42+
## Examples
43+
44+
Code samples for this package can be found at:
45+
- [Search Marketplace Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
46+
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
47+
48+
49+
## Troubleshooting
50+
51+
## Next steps
52+
53+
## Provide Feedback
54+
55+
If you encounter any bugs or have suggestions, please file an issue in the
56+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
57+
section of the project.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"apiVersion": "2025-01-01",
3+
"apiVersions": {
4+
"Microsoft.Marketplace": "2025-01-01"
5+
},
6+
"commit": "ea850a065dc8679f82dc3fdbba9ceff53eeba116",
7+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
8+
"typespec_src": "specification/marketplace/resource-manager/Microsoft.Marketplace/Marketplace",
9+
"emitterVersion": "0.63.2",
10+
"httpClientPythonVersion": "^0.34.1"
11+
}

0 commit comments

Comments
 (0)