Skip to content

Commit 836fd1b

Browse files
author
SDKAuto
committed
CodeGen from PR 33104 in Azure/azure-rest-api-specs
Merge 272ad9c026281cd271fd7c86d9f37fdf1be1129c into 07e9b414203e4dca5f1cdb2cf0c1f67c1db49e5f
1 parent d4042ff commit 836fd1b

File tree

107 files changed

+3078
-839
lines changed

Some content is hidden

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

107 files changed

+3078
-839
lines changed

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

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

3+
## 9.2.0 (2025-03-26)
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 `properties`
15+
- Model `PrivateEndpointConnection` added property `system_data`
16+
- Model `PrivateLinkResource` added property `system_data`
17+
- Model `Resource` added property `system_data`
18+
- Model `SearchService` added property `endpoint`
19+
- Model `SearchService` added property `compute_type`
20+
- Model `SearchService` added property `disabled_data_exfiltration_options`
21+
- Model `SearchService` added property `e_tag`
22+
- Model `SearchService` added property `upgrade_available`
23+
- Model `SearchService` added property `service_upgrade_date`
24+
- Model `SearchService` added property `system_data`
25+
- Enum `SearchServiceStatus` added member `STOPPED`
26+
- Model `SearchServiceUpdate` added property `endpoint`
27+
- Model `SearchServiceUpdate` added property `compute_type`
28+
- Model `SearchServiceUpdate` added property `disabled_data_exfiltration_options`
29+
- Model `SearchServiceUpdate` added property `e_tag`
30+
- Model `SearchServiceUpdate` added property `upgrade_available`
31+
- Model `SearchServiceUpdate` added property `service_upgrade_date`
32+
- Model `SearchServiceUpdate` added property `system_data`
33+
- Model `SharedPrivateLinkResource` added property `system_data`
34+
- Model `TrackedResource` added property `system_data`
35+
- Added enum `ComputeType`
36+
- Added enum `CreatedByType`
37+
- Added model `NSPConfigAccessRule`
38+
- Added model `NSPConfigAccessRuleProperties`
39+
- Added model `NSPConfigAssociation`
40+
- Added model `NSPConfigNetworkSecurityPerimeterRule`
41+
- Added model `NSPConfigPerimeter`
42+
- Added model `NSPConfigProfile`
43+
- Added model `NSPProvisioningIssue`
44+
- Added model `NSPProvisioningIssueProperties`
45+
- Added model `NetworkSecurityPerimeterConfiguration`
46+
- Added model `NetworkSecurityPerimeterConfigurationListResult`
47+
- Added model `OperationAvailability`
48+
- Added model `OperationLogsSpecification`
49+
- Added model `OperationMetricDimension`
50+
- Added enum `OperationMetricsAggregationType`
51+
- Added model `OperationMetricsSpecification`
52+
- Added enum `OperationMetricsUnit`
53+
- Added enum `OperationOrigin`
54+
- Added model `OperationProperties`
55+
- Added model `OperationServiceSpecification`
56+
- Added model `ProxyResource`
57+
- Added enum `SearchBypass`
58+
- Added enum `SearchDisabledDataExfiltrationOption`
59+
- Added model `SystemData`
60+
- Added model `UserAssignedManagedIdentity`
61+
- Model `ServicesOperations` added method `begin_upgrade`
62+
- Added model `NetworkSecurityPerimeterConfigurationsOperations`
63+
- Method `PrivateEndpointConnectionsOperations.update` has a new overload `def update(self: None, resource_group_name: str, search_service_name: str, private_endpoint_connection_name: str, private_endpoint_connection: IO[bytes], search_management_request_options: Optional[SearchManagementRequestOptions], content_type: str)`
64+
- Method `ServicesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, search_service_name: str, service: IO[bytes], search_management_request_options: Optional[SearchManagementRequestOptions], content_type: str)`
65+
- Method `ServicesOperations.update` has a new overload `def update(self: None, resource_group_name: str, search_service_name: str, service: IO[bytes], search_management_request_options: Optional[SearchManagementRequestOptions], content_type: str)`
66+
- Method `SharedPrivateLinkResourcesOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, search_service_name: str, shared_private_link_resource_name: str, shared_private_link_resource: IO[bytes], search_management_request_options: Optional[SearchManagementRequestOptions], content_type: str)`
67+
368
## 9.2.0b2 (2024-07-18)
469

570
### Other Changes

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "32f566eb38af9593cfc1ed183362471c50d67fb2",
2+
"commit": "c3a271cf6768e1e3f523b3839b0d9cd242c51d45",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.13.16",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/search/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.13.16 --use=@autorest/[email protected] --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/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/search/resource-manager/readme.md"
1111
}

sdk/search/azure-mgmt-search/azure/mgmt/search/__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 ._search_management_client import SearchManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._search_management_client import SearchManagementClient # 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
"SearchManagementClient",
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()

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class SearchManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class SearchManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for SearchManagementClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -29,13 +28,13 @@ class SearchManagementClientConfiguration: # pylint: disable=too-many-instance-
2928
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
3029
obtain this value from the Azure Resource Manager API or the portal. Required.
3130
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
33-
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.
3433
:paramtype api_version: str
3534
"""
3635

3736
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
38-
api_version: str = kwargs.pop("api_version", "2024-06-01-preview")
37+
api_version: str = kwargs.pop("api_version", "2025-05-01")
3938

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

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from copy import deepcopy
1010
from typing import Any, TYPE_CHECKING
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import HttpRequest, HttpResponse
@@ -31,13 +32,10 @@
3132
)
3233

3334
if TYPE_CHECKING:
34-
# pylint: disable=unused-import,ungrouped-imports
3535
from azure.core.credentials import TokenCredential
3636

3737

38-
class SearchManagementClient(
39-
SearchManagementClientOperationsMixin
40-
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
38+
class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint: disable=too-many-instance-attributes
4139
"""Client that can be used to manage Azure AI Search services and API keys.
4240
4341
:ivar operations: Operations operations
@@ -69,8 +67,8 @@ class SearchManagementClient(
6967
:type subscription_id: str
7068
:param base_url: Service URL. Default value is "https://management.azure.com".
7169
:type base_url: str
72-
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
73-
this default value may result in unsupported behavior.
70+
:keyword api_version: Api Version. Default value is "2025-05-01". Note that overriding this
71+
default value may result in unsupported behavior.
7472
:paramtype api_version: str
7573
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
7674
Retry-After header is present.
@@ -153,7 +151,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
153151
def close(self) -> None:
154152
self._client.close()
155153

156-
def __enter__(self) -> "SearchManagementClient":
154+
def __enter__(self) -> Self:
157155
self._client.__enter__()
158156
return self
159157

0 commit comments

Comments
 (0)