Skip to content

Commit c41291e

Browse files
authored
Merge branch 'main' into sdkauto/azure-mgmt-redis-6337919
2 parents 3364ed6 + b0873ba commit c41291e

303 files changed

Lines changed: 44510 additions & 29571 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/extendedlocation/azure-mgmt-extendedlocation/CHANGELOG.md

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

3+
## 3.0.0b1 (2026-05-20)
4+
5+
### Features Added
6+
7+
- Model `ProxyResource` added property `system_data`
8+
- Model `Resource` added property `system_data`
9+
- Model `TrackedResource` added property `system_data`
10+
- Added model `CustomLocationFindTargetResourceGroupProperties`
11+
- Added model `CustomLocationFindTargetResourceGroupResult`
12+
- Added model `MatchExpressionsProperties`
13+
- Added model `PatchableResourceSyncRule`
14+
- Added model `ResourceSyncRule`
15+
- Added model `ResourceSyncRuleProperties`
16+
- Added model `ResourceSyncRulePropertiesSelector`
17+
- Operation group `CustomLocationsOperations` added method `find_target_resource_group`
18+
- Added operation group `ResourceSyncRulesOperations`
19+
20+
### Breaking Changes
21+
22+
- This version introduces new hybrid models which have dual dictionary and model nature. Please follow https://aka.ms/azsdk/python/migrate/hybrid-models for migration.
23+
- Renamed client `CustomLocations` to `CustomLocationsMgmtClient`
24+
- Model `CustomLocationOperation` moved instance variable `description`, `operation`, `provider` and `resource` under property `display` whose type is `CustomLocationOperationValueDisplay`
25+
- Model `PatchableCustomLocations` moved instance variable `authentication`, `cluster_extension_ids`, `display_name`, `host_resource_id`, `host_type`, `namespace` and `provisioning_state` under property `properties` whose type is `CustomLocationProperties`
26+
- Method `CustomLocationsOperations.update` replaced its parameters `identity`/`tags`/`authentication`/`cluster_extension_ids`/`display_name`/`host_resource_id`/`host_type`/`namespace`/`provisioning_state` with a single `parameters` argument of type `PatchableCustomLocations`
27+
28+
### Other Changes
29+
30+
- Deleted model `CustomLocationOperationsList` which actually was not used by SDK users
31+
332
## 2.0.0 (2024-10-30)
433

534
### Breaking Changes
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/extendedlocation/py.typed
4+
recursive-include tests *.py
5+
recursive-include samples *.py *.md
6+
include azure/__init__.py
7+
include azure/mgmt/__init__.py

sdk/extendedlocation/azure-mgmt-extendedlocation/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Extended Location Management Client Library.
4-
This package has been tested with Python 3.8+.
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_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.10+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
@@ -36,11 +36,11 @@ With above configuration, client can be authenticated by following code:
3636

3737
```python
3838
from azure.identity import DefaultAzureCredential
39-
from azure.mgmt.extendedlocation import CustomLocations
39+
from azure.mgmt.extendedlocation import CustomLocationsMgmtClient
4040
import os
4141

4242
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43-
client = CustomLocations(credential=DefaultAzureCredential(), subscription_id=sub_id)
43+
client = CustomLocationsMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
4444
```
4545

4646
## Examples

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

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"apiVersion": "2021-08-31-preview",
3+
"apiVersions": {
4+
"Microsoft.ExtendedLocation": "2021-08-31-preview"
5+
},
6+
"commit": "0ac0baaafaa117fd7296c0159ef2489d0461f86f",
7+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
8+
"typespec_src": "specification/extendedlocation/resource-manager/Microsoft.ExtendedLocation/CustomLocations",
9+
"emitterVersion": "0.62.1"
10+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.ExtendedLocation",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.extendedlocation.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
5+
"azure.mgmt.extendedlocation.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
6+
"azure.mgmt.extendedlocation.models.CustomLocation": "Microsoft.ExtendedLocation.customLocation",
7+
"azure.mgmt.extendedlocation.models.CustomLocationFindTargetResourceGroupProperties": "Microsoft.ExtendedLocation.customLocationFindTargetResourceGroupProperties",
8+
"azure.mgmt.extendedlocation.models.CustomLocationFindTargetResourceGroupResult": "Microsoft.ExtendedLocation.customLocationFindTargetResourceGroupResult",
9+
"azure.mgmt.extendedlocation.models.CustomLocationOperation": "Microsoft.ExtendedLocation.customLocationOperation",
10+
"azure.mgmt.extendedlocation.models.CustomLocationOperationValueDisplay": "Microsoft.ExtendedLocation.customLocationOperationValueDisplay",
11+
"azure.mgmt.extendedlocation.models.CustomLocationProperties": "Microsoft.ExtendedLocation.customLocationProperties",
12+
"azure.mgmt.extendedlocation.models.CustomLocationPropertiesAuthentication": "Microsoft.ExtendedLocation.customLocationPropertiesAuthentication",
13+
"azure.mgmt.extendedlocation.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
14+
"azure.mgmt.extendedlocation.models.EnabledResourceType": "Microsoft.ExtendedLocation.EnabledResourceType",
15+
"azure.mgmt.extendedlocation.models.EnabledResourceTypeProperties": "Microsoft.ExtendedLocation.EnabledResourceTypeProperties",
16+
"azure.mgmt.extendedlocation.models.EnabledResourceTypePropertiesTypesMetadataItem": "Microsoft.ExtendedLocation.EnabledResourceTypePropertiesTypesMetadataItem",
17+
"azure.mgmt.extendedlocation.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
18+
"azure.mgmt.extendedlocation.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
19+
"azure.mgmt.extendedlocation.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
20+
"azure.mgmt.extendedlocation.models.Identity": "Microsoft.ExtendedLocation.Identity",
21+
"azure.mgmt.extendedlocation.models.MatchExpressionsProperties": "Microsoft.ExtendedLocation.matchExpressionsProperties",
22+
"azure.mgmt.extendedlocation.models.PatchableCustomLocations": "Microsoft.ExtendedLocation.patchableCustomLocations",
23+
"azure.mgmt.extendedlocation.models.PatchableResourceSyncRule": "Microsoft.ExtendedLocation.patchableResourceSyncRule",
24+
"azure.mgmt.extendedlocation.models.ResourceSyncRule": "Microsoft.ExtendedLocation.resourceSyncRule",
25+
"azure.mgmt.extendedlocation.models.ResourceSyncRuleProperties": "Microsoft.ExtendedLocation.resourceSyncRuleProperties",
26+
"azure.mgmt.extendedlocation.models.ResourceSyncRulePropertiesSelector": "Microsoft.ExtendedLocation.ResourceSyncRulePropertiesSelector",
27+
"azure.mgmt.extendedlocation.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
28+
"azure.mgmt.extendedlocation.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
29+
"azure.mgmt.extendedlocation.models.HostType": "Microsoft.ExtendedLocation.HostType",
30+
"azure.mgmt.extendedlocation.models.ResourceIdentityType": "Microsoft.ExtendedLocation.ResourceIdentityType",
31+
"azure.mgmt.extendedlocation.operations.CustomLocationsOperations.list_operations": "Microsoft.ExtendedLocation.Operations.list",
32+
"azure.mgmt.extendedlocation.aio.operations.CustomLocationsOperations.list_operations": "Microsoft.ExtendedLocation.Operations.list",
33+
"azure.mgmt.extendedlocation.operations.CustomLocationsOperations.get": "Microsoft.ExtendedLocation.CustomLocations.get",
34+
"azure.mgmt.extendedlocation.aio.operations.CustomLocationsOperations.get": "Microsoft.ExtendedLocation.CustomLocations.get",
35+
"azure.mgmt.extendedlocation.operations.CustomLocationsOperations.begin_create_or_update": "Microsoft.ExtendedLocation.CustomLocations.createOrUpdate",
36+
"azure.mgmt.extendedlocation.aio.operations.CustomLocationsOperations.begin_create_or_update": "Microsoft.ExtendedLocation.CustomLocations.createOrUpdate",
37+
"azure.mgmt.extendedlocation.operations.CustomLocationsOperations.update": "Microsoft.ExtendedLocation.CustomLocations.update",
38+
"azure.mgmt.extendedlocation.aio.operations.CustomLocationsOperations.update": "Microsoft.ExtendedLocation.CustomLocations.update",
39+
"azure.mgmt.extendedlocation.operations.CustomLocationsOperations.begin_delete": "Microsoft.ExtendedLocation.CustomLocations.delete",
40+
"azure.mgmt.extendedlocation.aio.operations.CustomLocationsOperations.begin_delete": "Microsoft.ExtendedLocation.CustomLocations.delete",
41+
"azure.mgmt.extendedlocation.operations.CustomLocationsOperations.list_by_resource_group": "Microsoft.ExtendedLocation.CustomLocations.listByResourceGroup",
42+
"azure.mgmt.extendedlocation.aio.operations.CustomLocationsOperations.list_by_resource_group": "Microsoft.ExtendedLocation.CustomLocations.listByResourceGroup",
43+
"azure.mgmt.extendedlocation.operations.CustomLocationsOperations.list_by_subscription": "Microsoft.ExtendedLocation.CustomLocations.listBySubscription",
44+
"azure.mgmt.extendedlocation.aio.operations.CustomLocationsOperations.list_by_subscription": "Microsoft.ExtendedLocation.CustomLocations.listBySubscription",
45+
"azure.mgmt.extendedlocation.operations.CustomLocationsOperations.list_enabled_resource_types": "Microsoft.ExtendedLocation.CustomLocations.listEnabledResourceTypes",
46+
"azure.mgmt.extendedlocation.aio.operations.CustomLocationsOperations.list_enabled_resource_types": "Microsoft.ExtendedLocation.CustomLocations.listEnabledResourceTypes",
47+
"azure.mgmt.extendedlocation.operations.CustomLocationsOperations.find_target_resource_group": "Microsoft.ExtendedLocation.CustomLocations.findTargetResourceGroup",
48+
"azure.mgmt.extendedlocation.aio.operations.CustomLocationsOperations.find_target_resource_group": "Microsoft.ExtendedLocation.CustomLocations.findTargetResourceGroup",
49+
"azure.mgmt.extendedlocation.operations.ResourceSyncRulesOperations.get": "Microsoft.ExtendedLocation.ResourceSyncRules.get",
50+
"azure.mgmt.extendedlocation.aio.operations.ResourceSyncRulesOperations.get": "Microsoft.ExtendedLocation.ResourceSyncRules.get",
51+
"azure.mgmt.extendedlocation.operations.ResourceSyncRulesOperations.begin_create_or_update": "Microsoft.ExtendedLocation.ResourceSyncRules.createOrUpdate",
52+
"azure.mgmt.extendedlocation.aio.operations.ResourceSyncRulesOperations.begin_create_or_update": "Microsoft.ExtendedLocation.ResourceSyncRules.createOrUpdate",
53+
"azure.mgmt.extendedlocation.operations.ResourceSyncRulesOperations.begin_update": "Microsoft.ExtendedLocation.ResourceSyncRules.update",
54+
"azure.mgmt.extendedlocation.aio.operations.ResourceSyncRulesOperations.begin_update": "Microsoft.ExtendedLocation.ResourceSyncRules.update",
55+
"azure.mgmt.extendedlocation.operations.ResourceSyncRulesOperations.delete": "Microsoft.ExtendedLocation.ResourceSyncRules.delete",
56+
"azure.mgmt.extendedlocation.aio.operations.ResourceSyncRulesOperations.delete": "Microsoft.ExtendedLocation.ResourceSyncRules.delete",
57+
"azure.mgmt.extendedlocation.operations.ResourceSyncRulesOperations.list_by_custom_location_id": "Microsoft.ExtendedLocation.ResourceSyncRules.listByCustomLocationID",
58+
"azure.mgmt.extendedlocation.aio.operations.ResourceSyncRulesOperations.list_by_custom_location_id": "Microsoft.ExtendedLocation.ResourceSyncRules.listByCustomLocationID"
59+
},
60+
"CrossLanguageVersion": "1f27d78e8a16"
61+
}
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/extendedlocation/azure-mgmt-extendedlocation/azure/mgmt/extendedlocation/__init__.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,31 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python 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 ._custom_locations import CustomLocations
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._client import CustomLocationsMgmtClient # 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__ = [
22-
"CustomLocations",
28+
"CustomLocationsMgmtClient",
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)