Skip to content

Commit f6377c5

Browse files
Merge branch 'main' into ayushhgarg/macos3
2 parents ae9e182 + 89c1029 commit f6377c5

166 files changed

Lines changed: 56577 additions & 3 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.

eng/tools/azure-sdk-tools/packaging_tools/sdk_generator.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,21 @@ def main(generate_input, generate_output):
315315
if data.get("runMode") in ["spec-pull-request", "release"]:
316316
apiview_start_time = time.time()
317317
try:
318+
_LOGGER.info(f"install apiview generation tool")
319+
check_call(
320+
[
321+
"python",
322+
"-m",
323+
"pip",
324+
"install",
325+
"-r",
326+
"eng/apiview_reqs.txt",
327+
"--index-url=https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple/",
328+
],
329+
timeout=600,
330+
stderr=None if data.get("runMode") == "release" else subprocess.DEVNULL,
331+
)
332+
318333
_LOGGER.info("generate apiview artifacts")
319334
package_path = Path(sdk_folder, folder_name, package_name)
320335
cmds = [
@@ -324,16 +339,16 @@ def main(generate_input, generate_output):
324339
"--extract-metadata",
325340
package_name,
326341
"--dest-dir",
327-
package_path.absolute(),
342+
package_path.absolute().as_posix(),
328343
]
329344
_LOGGER.info(f"generate apiview file for package {package_name}")
330345
check_call(
331346
cmds,
332347
timeout=900 if data.get("runMode") == "spec-pull-request" else 36000,
333-
cwd=".",
334348
# known issue that higher python version meet install warning with lower pylint.
335349
# we skip the output here to reduce confusion and will remove it after apiview tool upgrade to higher pylint version.
336-
stderr=subprocess.DEVNULL,
350+
# in "release" mode we keep stderr so the output is visible for debugging.
351+
stderr=None if data.get("runMode") == "release" else subprocess.DEVNULL,
337352
)
338353
for file in os.listdir(package_path):
339354
if "_python.json" in file and package_name in file:
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-06-16)
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/resiliencemanagement/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: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure Resiliencemanagement 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-resiliencemanagement
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+
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.resiliencemanagement import ResilienceManagementClient
40+
import os
41+
42+
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43+
client = ResilienceManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
44+
```
45+
46+
## Examples
47+
48+
Code samples for this package can be found at:
49+
- [Search Resiliencemanagement 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.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"apiVersion": "2026-04-01-preview",
3+
"apiVersions": {
4+
"Microsoft.AzureResilienceManagement": "2026-04-01-preview"
5+
},
6+
"commit": "589a0fec47674e91982ecef00d23aa60e53ff281",
7+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
8+
"typespec_src": "specification/azureresiliencemanagement/resource-manager/Microsoft.AzureResilienceManagement/AzureResilienceManagement",
9+
"emitterVersion": "0.63.1",
10+
"httpClientPythonVersion": "^0.31.1"
11+
}

0 commit comments

Comments
 (0)