Skip to content

Commit 85d4fa1

Browse files
[AutoRelease] t2-search-2025-04-27-45644(can only be merged by SDK owner) (#40747)
* code and test * update changelog * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent b59df36 commit 85d4fa1

File tree

108 files changed

+1457
-1968
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+1457
-1968
lines changed

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

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

3+
## 9.2.0 (2025-07-21)
4+
5+
### Features Added
6+
7+
- Client `SearchManagementClient` added operation group `network_security_perimeter_configurations`
8+
- Model `Identity` added property `user_assigned_identities`
9+
- Enum `IdentityType` added member `SYSTEM_ASSIGNED_USER_ASSIGNED`
10+
- Enum `IdentityType` added member `USER_ASSIGNED`
11+
- Model `NetworkRuleSet` added property `bypass`
12+
- Model `Operation` added property `is_data_action`
13+
- Model `Operation` added property `origin`
14+
- Model `Operation` added property `action_type`
15+
- Model `PrivateEndpointConnection` added property `system_data`
16+
- Model `PrivateLinkResource` added property `system_data`
17+
- Enum `PublicNetworkAccess` added member `SECURED_BY_PERIMETER`
18+
- Model `Resource` added property `system_data`
19+
- Model `SearchService` added property `endpoint`
20+
- Model `SearchService` added property `compute_type`
21+
- Model `SearchService` added property `data_exfiltration_protections`
22+
- Model `SearchService` added property `e_tag`
23+
- Model `SearchService` added property `upgrade_available`
24+
- Model `SearchService` added property `service_upgraded_at`
25+
- Model `SearchService` added property `system_data`
26+
- Enum `SearchServiceStatus` added member `STOPPED`
27+
- Model `SearchServiceUpdate` added property `endpoint`
28+
- Model `SearchServiceUpdate` added property `compute_type`
29+
- Model `SearchServiceUpdate` added property `data_exfiltration_protections`
30+
- Model `SearchServiceUpdate` added property `e_tag`
31+
- Model `SearchServiceUpdate` added property `upgrade_available`
32+
- Model `SearchServiceUpdate` added property `service_upgraded_at`
33+
- Model `SearchServiceUpdate` added property `system_data`
34+
- Model `SharedPrivateLinkResource` added property `system_data`
35+
- Model `TrackedResource` added property `system_data`
36+
- Added model `AccessRule`
37+
- Added enum `AccessRuleDirection`
38+
- Added model `AccessRuleProperties`
39+
- Added model `AccessRulePropertiesSubscriptionsItem`
40+
- Added enum `ActionType`
41+
- Added enum `ComputeType`
42+
- Added enum `CreatedByType`
43+
- Added enum `IssueType`
44+
- Added model `NetworkSecurityPerimeter`
45+
- Added model `NetworkSecurityPerimeterConfiguration`
46+
- Added model `NetworkSecurityPerimeterConfigurationListResult`
47+
- Added model `NetworkSecurityPerimeterConfigurationProperties`
48+
- Added enum `NetworkSecurityPerimeterConfigurationProvisioningState`
49+
- Added model `NetworkSecurityProfile`
50+
- Added enum `Origin`
51+
- Added model `ProvisioningIssue`
52+
- Added model `ProvisioningIssueProperties`
53+
- Added model `ProxyResource`
54+
- Added model `ResourceAssociation`
55+
- Added enum `ResourceAssociationAccessMode`
56+
- Added enum `SearchBypass`
57+
- Added enum `SearchDataExfiltrationProtection`
58+
- Added enum `Severity`
59+
- Added model `SystemData`
60+
- Added enum `UpgradeAvailable`
61+
- Added model `UserAssignedIdentity`
62+
- Model `ServicesOperations` added method `begin_upgrade`
63+
- Added operation group `NetworkSecurityPerimeterConfigurationsOperations`
64+
365
## 9.2.0b3 (2025-04-02)
466

567
### Features Added

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

Lines changed: 2 additions & 2 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 Search Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
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.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "d19224ba51aa869cd99f981842b780d69d51c297",
2+
"commit": "11059b2f00c7572b276dc9862c0b41db8702cc78",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.27.4",
6+
"@autorest/python@6.34.1",
77
"@autorest/modelerfour@4.27.0"
88
],
9-
"autorest_command": "autorest specification/search/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/search/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.34.1 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/search/resource-manager/readme.md"
1111
}

sdk/search/azure-mgmt-search/azure/mgmt/search/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class SearchManagementClientConfiguration: # pylint: disable=too-many-instance-
2828
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
2929
obtain this value from the Azure Resource Manager API or the portal. Required.
3030
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2025-02-01-preview". Note that overriding
32-
this default value may result in unsupported behavior.
31+
:keyword api_version: Api Version. Default value is "2025-05-01". Note that overriding this
32+
default value may result in unsupported behavior.
3333
:paramtype api_version: str
3434
"""
3535

3636
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2025-02-01-preview")
37+
api_version: str = kwargs.pop("api_version", "2025-05-01")
3838

3939
if credential is None:
4040
raise ValueError("Parameter 'credential' must not be None.")

sdk/search/azure-mgmt-search/azure/mgmt/search/_search_management_client.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,22 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING, cast
1111
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import ARMPipelineClient
1617
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

1820
from . import models as _models
1921
from ._configuration import SearchManagementClientConfiguration
20-
from ._serialization import Deserializer, Serializer
22+
from ._utils.serialization import Deserializer, Serializer
2123
from .operations import (
2224
AdminKeysOperations,
2325
NetworkSecurityPerimeterConfigurationsOperations,
24-
OfferingsOperations,
2526
Operations,
2627
PrivateEndpointConnectionsOperations,
2728
PrivateLinkResourcesOperations,
@@ -41,8 +42,6 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint:
4142
4243
:ivar operations: Operations operations
4344
:vartype operations: azure.mgmt.search.operations.Operations
44-
:ivar offerings: OfferingsOperations operations
45-
:vartype offerings: azure.mgmt.search.operations.OfferingsOperations
4645
:ivar admin_keys: AdminKeysOperations operations
4746
:vartype admin_keys: azure.mgmt.search.operations.AdminKeysOperations
4847
:ivar query_keys: QueryKeysOperations operations
@@ -68,25 +67,27 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint:
6867
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
6968
obtain this value from the Azure Resource Manager API or the portal. Required.
7069
:type subscription_id: str
71-
:param base_url: Service URL. Default value is "https://management.azure.com".
70+
:param base_url: Service URL. Default value is None.
7271
:type base_url: str
73-
:keyword api_version: Api Version. Default value is "2025-02-01-preview". Note that overriding
74-
this default value may result in unsupported behavior.
72+
:keyword api_version: Api Version. Default value is "2025-05-01". Note that overriding this
73+
default value may result in unsupported behavior.
7574
:paramtype api_version: str
7675
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
7776
Retry-After header is present.
7877
"""
7978

8079
def __init__(
81-
self,
82-
credential: "TokenCredential",
83-
subscription_id: str,
84-
base_url: str = "https://management.azure.com",
85-
**kwargs: Any
80+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
8681
) -> None:
82+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
83+
_endpoints = get_arm_endpoints(_cloud)
84+
if not base_url:
85+
base_url = _endpoints["resource_manager"]
86+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
8787
self._config = SearchManagementClientConfiguration(
88-
credential=credential, subscription_id=subscription_id, **kwargs
88+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
8989
)
90+
9091
_policies = kwargs.pop("policies", None)
9192
if _policies is None:
9293
_policies = [
@@ -105,14 +106,13 @@ def __init__(
105106
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
106107
self._config.http_logging_policy,
107108
]
108-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
109+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
109110

110111
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
111112
self._serialize = Serializer(client_models)
112113
self._deserialize = Deserializer(client_models)
113114
self._serialize.client_side_validation = False
114115
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
115-
self.offerings = OfferingsOperations(self._client, self._config, self._serialize, self._deserialize)
116116
self.admin_keys = AdminKeysOperations(self._client, self._config, self._serialize, self._deserialize)
117117
self.query_keys = QueryKeysOperations(self._client, self._config, self._serialize, self._deserialize)
118118
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)