Skip to content

Commit 4922041

Browse files
authored
Regenerate azure-mgmt-azurestack with latest code generator tool (#46888)
1 parent f502345 commit 4922041

86 files changed

Lines changed: 5402 additions & 2714 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.

sdk/azurestack/azure-mgmt-azurestack/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 1.0.1 (2026-05-14)
4+
5+
### Other Changes
6+
7+
- Regenerated with latest code generator tool
8+
39
## 2.0.0b1 (2022-11-17)
410

511
### Features Added
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
include _meta.json
2-
recursive-include tests *.py *.json
3-
recursive-include samples *.py *.md
41
include *.md
5-
include azure/__init__.py
6-
include azure/mgmt/__init__.py
72
include LICENSE
83
include azure/mgmt/azurestack/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: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,61 @@
11
# Microsoft Azure SDK for Python
22

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

77
## _Disclaimer_
88

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

11-
# Usage
11+
## Getting started
1212

13+
### Prerequisites
1314

14-
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
15-
16-
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
17-
Code samples for this package can be found at [Azure Stack Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
18-
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
15+
- Python 3.10+ is required to use this package.
16+
- [Azure subscription](https://azure.microsoft.com/free/)
1917

18+
### Install the package
2019

21-
# Provide Feedback
20+
```bash
21+
pip install azure-mgmt-azurestack
22+
pip install azure-identity
23+
```
2224

23-
If you encounter any bugs or have suggestions, please file an issue in the
24-
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
25-
section of the project.
25+
### Authentication
26+
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) 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.azurestack import AzureStackManagementClient
40+
import os
2641

42+
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43+
client = AzureStackManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
44+
```
2745

46+
## Examples
2847

48+
Code samples for this package can be found at:
49+
- [Search Azure Stack 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.

sdk/azurestack/azure-mgmt-azurestack/_meta.json

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"commit": "ced46686079690b9f9116cc03fac68f8afe4d1af",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"autorest": "3.10.2",
5+
"use": [
6+
"@autorest/python@6.50.0",
7+
"@autorest/modelerfour@4.27.0"
8+
],
9+
"autorest_command": "autorest specification/azurestack/resource-manager/Microsoft.AzureStack/AzureStack/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=C:\\dev\\azure-sdk-for-python\\sdk --tag=package-preview-2020-06 --use=@autorest/python@6.50.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
10+
"readme": "specification/azurestack/resource-manager/Microsoft.AzureStack/AzureStack/readme.md"
11+
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"CrossLanguagePackageId": null,
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.azurestack.models.ActivationKeyResult": null,
5+
"azure.mgmt.azurestack.models.CloudManifestFileDeploymentData": null,
6+
"azure.mgmt.azurestack.models.CloudManifestFileProperties": null,
7+
"azure.mgmt.azurestack.models.Resource": null,
8+
"azure.mgmt.azurestack.models.CloudManifestFileResponse": null,
9+
"azure.mgmt.azurestack.models.Compatibility": null,
10+
"azure.mgmt.azurestack.models.CustomerSubscription": null,
11+
"azure.mgmt.azurestack.models.CustomerSubscriptionList": null,
12+
"azure.mgmt.azurestack.models.DataDiskImage": null,
13+
"azure.mgmt.azurestack.models.DeviceConfiguration": null,
14+
"azure.mgmt.azurestack.models.Display": null,
15+
"azure.mgmt.azurestack.models.ErrorDetails": null,
16+
"azure.mgmt.azurestack.models.ErrorResponse": null,
17+
"azure.mgmt.azurestack.models.ExtendedProduct": null,
18+
"azure.mgmt.azurestack.models.VirtualMachineProductProperties": null,
19+
"azure.mgmt.azurestack.models.VirtualMachineExtensionProductProperties": null,
20+
"azure.mgmt.azurestack.models.ExtendedProductProperties": null,
21+
"azure.mgmt.azurestack.models.IconUris": null,
22+
"azure.mgmt.azurestack.models.TrackedResource": null,
23+
"azure.mgmt.azurestack.models.LinkedSubscription": null,
24+
"azure.mgmt.azurestack.models.LinkedSubscriptionParameter": null,
25+
"azure.mgmt.azurestack.models.LinkedSubscriptionsList": null,
26+
"azure.mgmt.azurestack.models.MarketplaceProductLogUpdate": null,
27+
"azure.mgmt.azurestack.models.Operation": null,
28+
"azure.mgmt.azurestack.models.OperationList": null,
29+
"azure.mgmt.azurestack.models.OsDiskImage": null,
30+
"azure.mgmt.azurestack.models.Product": null,
31+
"azure.mgmt.azurestack.models.ProductLink": null,
32+
"azure.mgmt.azurestack.models.ProductList": null,
33+
"azure.mgmt.azurestack.models.ProductLog": null,
34+
"azure.mgmt.azurestack.models.ProductProperties": null,
35+
"azure.mgmt.azurestack.models.Registration": null,
36+
"azure.mgmt.azurestack.models.RegistrationList": null,
37+
"azure.mgmt.azurestack.models.RegistrationParameter": null,
38+
"azure.mgmt.azurestack.models.SystemData": null,
39+
"azure.mgmt.azurestack.models.CreatedByType": null,
40+
"azure.mgmt.azurestack.models.CompatibilityIssue": null,
41+
"azure.mgmt.azurestack.models.Location": null,
42+
"azure.mgmt.azurestack.models.ComputeRole": null,
43+
"azure.mgmt.azurestack.models.OperatingSystem": null,
44+
"azure.mgmt.azurestack.models.Category": null,
45+
"azure.mgmt.azurestack.models.ProvisioningState": null,
46+
"azure.mgmt.azurestack.operations.Operations.list": null,
47+
"azure.mgmt.azurestack.aio.operations.Operations.list": null,
48+
"azure.mgmt.azurestack.operations.CloudManifestFileOperations.list": null,
49+
"azure.mgmt.azurestack.aio.operations.CloudManifestFileOperations.list": null,
50+
"azure.mgmt.azurestack.operations.CloudManifestFileOperations.get": null,
51+
"azure.mgmt.azurestack.aio.operations.CloudManifestFileOperations.get": null,
52+
"azure.mgmt.azurestack.operations.CustomerSubscriptionsOperations.list": null,
53+
"azure.mgmt.azurestack.aio.operations.CustomerSubscriptionsOperations.list": null,
54+
"azure.mgmt.azurestack.operations.CustomerSubscriptionsOperations.get": null,
55+
"azure.mgmt.azurestack.aio.operations.CustomerSubscriptionsOperations.get": null,
56+
"azure.mgmt.azurestack.operations.CustomerSubscriptionsOperations.delete": null,
57+
"azure.mgmt.azurestack.aio.operations.CustomerSubscriptionsOperations.delete": null,
58+
"azure.mgmt.azurestack.operations.CustomerSubscriptionsOperations.create": null,
59+
"azure.mgmt.azurestack.aio.operations.CustomerSubscriptionsOperations.create": null,
60+
"azure.mgmt.azurestack.operations.ProductsOperations.list": null,
61+
"azure.mgmt.azurestack.aio.operations.ProductsOperations.list": null,
62+
"azure.mgmt.azurestack.operations.ProductsOperations.get": null,
63+
"azure.mgmt.azurestack.aio.operations.ProductsOperations.get": null,
64+
"azure.mgmt.azurestack.operations.ProductsOperations.list_details": null,
65+
"azure.mgmt.azurestack.aio.operations.ProductsOperations.list_details": null,
66+
"azure.mgmt.azurestack.operations.ProductsOperations.get_products": null,
67+
"azure.mgmt.azurestack.aio.operations.ProductsOperations.get_products": null,
68+
"azure.mgmt.azurestack.operations.ProductsOperations.get_product": null,
69+
"azure.mgmt.azurestack.aio.operations.ProductsOperations.get_product": null,
70+
"azure.mgmt.azurestack.operations.ProductsOperations.upload_log": null,
71+
"azure.mgmt.azurestack.aio.operations.ProductsOperations.upload_log": null,
72+
"azure.mgmt.azurestack.operations.RegistrationsOperations.list": null,
73+
"azure.mgmt.azurestack.aio.operations.RegistrationsOperations.list": null,
74+
"azure.mgmt.azurestack.operations.RegistrationsOperations.list_by_subscription": null,
75+
"azure.mgmt.azurestack.aio.operations.RegistrationsOperations.list_by_subscription": null,
76+
"azure.mgmt.azurestack.operations.RegistrationsOperations.get": null,
77+
"azure.mgmt.azurestack.aio.operations.RegistrationsOperations.get": null,
78+
"azure.mgmt.azurestack.operations.RegistrationsOperations.delete": null,
79+
"azure.mgmt.azurestack.aio.operations.RegistrationsOperations.delete": null,
80+
"azure.mgmt.azurestack.operations.RegistrationsOperations.create_or_update": null,
81+
"azure.mgmt.azurestack.aio.operations.RegistrationsOperations.create_or_update": null,
82+
"azure.mgmt.azurestack.operations.RegistrationsOperations.update": null,
83+
"azure.mgmt.azurestack.aio.operations.RegistrationsOperations.update": null,
84+
"azure.mgmt.azurestack.operations.RegistrationsOperations.get_activation_key": null,
85+
"azure.mgmt.azurestack.aio.operations.RegistrationsOperations.get_activation_key": null,
86+
"azure.mgmt.azurestack.operations.RegistrationsOperations.enable_remote_management": null,
87+
"azure.mgmt.azurestack.aio.operations.RegistrationsOperations.enable_remote_management": null,
88+
"azure.mgmt.azurestack.operations.LinkedSubscriptionsOperations.list_by_resource_group": null,
89+
"azure.mgmt.azurestack.aio.operations.LinkedSubscriptionsOperations.list_by_resource_group": null,
90+
"azure.mgmt.azurestack.operations.LinkedSubscriptionsOperations.list_by_subscription": null,
91+
"azure.mgmt.azurestack.aio.operations.LinkedSubscriptionsOperations.list_by_subscription": null,
92+
"azure.mgmt.azurestack.operations.LinkedSubscriptionsOperations.get": null,
93+
"azure.mgmt.azurestack.aio.operations.LinkedSubscriptionsOperations.get": null,
94+
"azure.mgmt.azurestack.operations.LinkedSubscriptionsOperations.delete": null,
95+
"azure.mgmt.azurestack.aio.operations.LinkedSubscriptionsOperations.delete": null,
96+
"azure.mgmt.azurestack.operations.LinkedSubscriptionsOperations.create_or_update": null,
97+
"azure.mgmt.azurestack.aio.operations.LinkedSubscriptionsOperations.create_or_update": null,
98+
"azure.mgmt.azurestack.operations.LinkedSubscriptionsOperations.update": null,
99+
"azure.mgmt.azurestack.aio.operations.LinkedSubscriptionsOperations.update": null
100+
}
101+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore

sdk/azurestack/azure-mgmt-azurestack/azure/mgmt/azurestack/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._azure_stack_management_client import AzureStackManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._azure_stack_management_client import AzureStackManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"AzureStackManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

0 commit comments

Comments
 (0)