Skip to content

[AutoRelease] t2-search-2025-04-27-45644(can only be merged by SDK owner) #40747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions sdk/search/azure-mgmt-search/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
# Release History

## 9.2.0 (2025-05-19)

### Features Added

- Client `SearchManagementClient` added operation group `network_security_perimeter_configurations`
- Model `Identity` added property `user_assigned_identities`
- Enum `IdentityType` added member `SYSTEM_ASSIGNED_USER_ASSIGNED`
- Enum `IdentityType` added member `USER_ASSIGNED`
- Model `NetworkRuleSet` added property `bypass`
- Model `Operation` added property `is_data_action`
- Model `Operation` added property `origin`
- Model `Operation` added property `action_type`
- Model `PrivateEndpointConnection` added property `system_data`
- Model `PrivateLinkResource` added property `system_data`
- Enum `PublicNetworkAccess` added member `SECURED_BY_PERIMETER`
- Model `Resource` added property `system_data`
- Model `SearchService` added property `endpoint`
- Model `SearchService` added property `compute_type`
- Model `SearchService` added property `data_exfiltration_protections`
- Model `SearchService` added property `e_tag`
- Model `SearchService` added property `upgrade_available`
- Model `SearchService` added property `service_upgraded_at`
- Model `SearchService` added property `system_data`
- Enum `SearchServiceStatus` added member `STOPPED`
- Model `SearchServiceUpdate` added property `endpoint`
- Model `SearchServiceUpdate` added property `compute_type`
- Model `SearchServiceUpdate` added property `data_exfiltration_protections`
- Model `SearchServiceUpdate` added property `e_tag`
- Model `SearchServiceUpdate` added property `upgrade_available`
- Model `SearchServiceUpdate` added property `service_upgraded_at`
- Model `SearchServiceUpdate` added property `system_data`
- Model `SharedPrivateLinkResource` added property `system_data`
- Model `TrackedResource` added property `system_data`
- Added model `AccessRule`
- Added enum `AccessRuleDirection`
- Added model `AccessRuleProperties`
- Added model `AccessRulePropertiesSubscriptionsItem`
- Added enum `ActionType`
- Added enum `ComputeType`
- Added enum `CreatedByType`
- Added enum `IssueType`
- Added model `NetworkSecurityPerimeter`
- Added model `NetworkSecurityPerimeterConfiguration`
- Added model `NetworkSecurityPerimeterConfigurationListResult`
- Added model `NetworkSecurityPerimeterConfigurationProperties`
- Added enum `NetworkSecurityPerimeterConfigurationProvisioningState`
- Added model `NetworkSecurityProfile`
- Added enum `Origin`
- Added model `ProvisioningIssue`
- Added model `ProvisioningIssueProperties`
- Added model `ProxyResource`
- Added model `ResourceAssociation`
- Added enum `ResourceAssociationAccessMode`
- Added enum `SearchBypass`
- Added enum `SearchDataExfiltrationProtection`
- Added enum `Severity`
- Added model `SystemData`
- Added enum `UpgradeAvailable`
- Added model `UserAssignedIdentity`
- Model `ServicesOperations` added method `begin_upgrade`
- Added operation group `NetworkSecurityPerimeterConfigurationsOperations`

## 9.2.0b3 (2025-04-02)

### Features Added
Expand Down
4 changes: 2 additions & 2 deletions sdk/search/azure-mgmt-search/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

This is the Microsoft Azure Search Management Client Library.
This package has been tested with Python 3.8+.
This package has been tested with Python 3.9+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

## _Disclaimer_
Expand All @@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For

### Prerequisites

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

### Install the package
Expand Down
6 changes: 3 additions & 3 deletions sdk/search/azure-mgmt-search/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "d19224ba51aa869cd99f981842b780d69d51c297",
"commit": "11059b2f00c7572b276dc9862c0b41db8702cc78",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.27.4",
"@autorest/python@6.34.1",
"@autorest/[email protected]"
],
"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/[email protected] --version=3.10.2 --version-tolerant=False",
"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/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/search/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class SearchManagementClientConfiguration: # pylint: disable=too-many-instance-
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
obtain this value from the Azure Resource Manager API or the portal. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2025-02-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2025-05-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

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

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import Any, TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING, cast
from typing_extensions import Self

from azure.core.pipeline import policies
from azure.core.rest import HttpRequest, HttpResponse
from azure.core.settings import settings
from azure.mgmt.core import ARMPipelineClient
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
from azure.mgmt.core.tools import get_arm_endpoints

from . import models as _models
from ._configuration import SearchManagementClientConfiguration
from ._serialization import Deserializer, Serializer
from ._utils.serialization import Deserializer, Serializer
from .operations import (
AdminKeysOperations,
NetworkSecurityPerimeterConfigurationsOperations,
OfferingsOperations,
Operations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
Expand All @@ -41,8 +42,6 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint:

:ivar operations: Operations operations
:vartype operations: azure.mgmt.search.operations.Operations
:ivar offerings: OfferingsOperations operations
:vartype offerings: azure.mgmt.search.operations.OfferingsOperations
:ivar admin_keys: AdminKeysOperations operations
:vartype admin_keys: azure.mgmt.search.operations.AdminKeysOperations
:ivar query_keys: QueryKeysOperations operations
Expand All @@ -68,25 +67,27 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint:
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
obtain this value from the Azure Resource Manager API or the portal. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:param base_url: Service URL. Default value is None.
:type base_url: str
:keyword api_version: Api Version. Default value is "2025-02-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2025-05-01". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""

def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
**kwargs: Any
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
) -> None:
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
_endpoints = get_arm_endpoints(_cloud)
if not base_url:
base_url = _endpoints["resource_manager"]
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
self._config = SearchManagementClientConfiguration(
credential=credential, subscription_id=subscription_id, **kwargs
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
)

_policies = kwargs.pop("policies", None)
if _policies is None:
_policies = [
Expand All @@ -105,14 +106,13 @@ def __init__(
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
self._config.http_logging_policy,
]
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)

client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.offerings = OfferingsOperations(self._client, self._config, self._serialize, self._deserialize)
self.admin_keys = AdminKeysOperations(self._client, self._config, self._serialize, self._deserialize)
self.query_keys = QueryKeysOperations(self._client, self._config, self._serialize, self._deserialize)
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
Loading