Skip to content

Commit

Permalink
[AutoRelease] t2-search-2024-02-28-86521(can only be merged by SDK ow…
Browse files Browse the repository at this point in the history
…ner) (#34484)

* code and test

* Update assets.json

---------

Co-authored-by: azure-sdk <PythonSdkPipelines>
Co-authored-by: ChenxiJiang333 <v-chenjiang@microsoft.com>
  • Loading branch information
azure-sdk and ChenxiJiang333 committed Mar 18, 2024
1 parent 9556fa3 commit c1d6214
Show file tree
Hide file tree
Showing 79 changed files with 2,531 additions and 456 deletions.
15 changes: 15 additions & 0 deletions sdk/search/azure-mgmt-search/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Release History

## 9.2.0b1 (2024-03-18)

### Features Added

- Added operation group NetworkSecurityPerimeterConfigurationsOperations
- Model Identity has a new parameter user_assigned_identities
- Model NetworkRuleSet has a new parameter bypass
- Model Operation has a new parameter is_data_action
- Model Operation has a new parameter origin
- Model Operation has a new parameter properties
- Model SearchService has a new parameter disabled_data_exfiltration_options
- Model SearchService has a new parameter e_tag
- Model SearchServiceUpdate has a new parameter disabled_data_exfiltration_options
- Model SearchServiceUpdate has a new parameter e_tag

## 9.1.0 (2023-10-23)

### 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.7+.
This package has been tested with Python 3.8+.
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.7+ is required to use this package.
- Python 3.8+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/azure-mgmt-search/_meta.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"commit": "e1017d9ab49f41296177b4f4c9ac741fb7de044d",
"commit": "77df3b1680a95566a3e6a3a2cd07c9a4960b2af3",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/azure-mgmt-search/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "python",
"TagPrefix": "python/search/azure-mgmt-search",
"Tag": "python/search/azure-mgmt-search_b2ac0b29f6"
"Tag": "python/search/azure-mgmt-search_c9d8ad9153"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ class SearchManagementClientConfiguration(Configuration): # pylint: disable=too
: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 "2023-11-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-03-01-preview". 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:
super(SearchManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-11-01")
api_version: str = kwargs.pop("api_version", "2024-03-01-preview")

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 @@ -17,6 +17,7 @@
from ._serialization import Deserializer, Serializer
from .operations import (
AdminKeysOperations,
NetworkSecurityPerimeterConfigurationsOperations,
Operations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
Expand All @@ -35,7 +36,7 @@
class SearchManagementClient(
SearchManagementClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
"""Client that can be used to manage Azure Cognitive Search services and API keys.
"""Client that can be used to manage Azure AI Search services and API keys.
:ivar operations: Operations operations
:vartype operations: azure.mgmt.search.operations.Operations
Expand All @@ -55,15 +56,19 @@ class SearchManagementClient(
azure.mgmt.search.operations.SharedPrivateLinkResourcesOperations
:ivar usages: UsagesOperations operations
:vartype usages: azure.mgmt.search.operations.UsagesOperations
:ivar network_security_perimeter_configurations:
NetworkSecurityPerimeterConfigurationsOperations operations
:vartype network_security_perimeter_configurations:
azure.mgmt.search.operations.NetworkSecurityPerimeterConfigurationsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
: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".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-03-01-preview". 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.
Expand Down Expand Up @@ -99,6 +104,9 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
2 changes: 1 addition & 1 deletion sdk/search/azure-mgmt-search/azure/mgmt/search/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "9.1.0"
VERSION = "9.2.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ class SearchManagementClientConfiguration(Configuration): # pylint: disable=too
: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 "2023-11-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-03-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(SearchManagementClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-11-01")
api_version: str = kwargs.pop("api_version", "2024-03-01-preview")

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 @@ -17,6 +17,7 @@
from ._configuration import SearchManagementClientConfiguration
from .operations import (
AdminKeysOperations,
NetworkSecurityPerimeterConfigurationsOperations,
Operations,
PrivateEndpointConnectionsOperations,
PrivateLinkResourcesOperations,
Expand All @@ -35,7 +36,7 @@
class SearchManagementClient(
SearchManagementClientOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
"""Client that can be used to manage Azure Cognitive Search services and API keys.
"""Client that can be used to manage Azure AI Search services and API keys.
:ivar operations: Operations operations
:vartype operations: azure.mgmt.search.aio.operations.Operations
Expand All @@ -56,15 +57,19 @@ class SearchManagementClient(
azure.mgmt.search.aio.operations.SharedPrivateLinkResourcesOperations
:ivar usages: UsagesOperations operations
:vartype usages: azure.mgmt.search.aio.operations.UsagesOperations
:ivar network_security_perimeter_configurations:
NetworkSecurityPerimeterConfigurationsOperations operations
:vartype network_security_perimeter_configurations:
azure.mgmt.search.aio.operations.NetworkSecurityPerimeterConfigurationsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
: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".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-03-01-preview". 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.
Expand Down Expand Up @@ -100,6 +105,9 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize)
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
self._client, self._config, self._serialize, self._deserialize
)

def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from ._shared_private_link_resources_operations import SharedPrivateLinkResourcesOperations
from ._usages_operations import UsagesOperations
from ._search_management_client_operations import SearchManagementClientOperationsMixin
from ._network_security_perimeter_configurations_operations import NetworkSecurityPerimeterConfigurationsOperations

from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
Expand All @@ -30,6 +31,7 @@
"SharedPrivateLinkResourcesOperations",
"UsagesOperations",
"SearchManagementClientOperationsMixin",
"NetworkSecurityPerimeterConfigurationsOperations",
]
__all__.extend([p for p in _patch_all if p not in __all__])
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ async def get(
search_management_request_options: Optional[_models.SearchManagementRequestOptions] = None,
**kwargs: Any
) -> _models.AdminKeyResult:
"""Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
"""Gets the primary and secondary admin API keys for the specified Azure AI Search service.
.. seealso::
- https://aka.ms/search-manage
:param resource_group_name: The name of the resource group within the current subscription. You
can obtain this value from the Azure Resource Manager API or the portal. Required.
:type resource_group_name: str
:param search_service_name: The name of the Azure Cognitive Search service associated with the
:param search_service_name: The name of the Azure AI Search service associated with the
specified resource group. Required.
:type search_service_name: str
:param search_management_request_options: Parameter group. Default value is None.
Expand Down Expand Up @@ -149,7 +149,7 @@ async def regenerate(
:param resource_group_name: The name of the resource group within the current subscription. You
can obtain this value from the Azure Resource Manager API or the portal. Required.
:type resource_group_name: str
:param search_service_name: The name of the Azure Cognitive Search service associated with the
:param search_service_name: The name of the Azure AI Search service associated with the
specified resource group. Required.
:type search_service_name: str
:param key_kind: Specifies which key to regenerate. Valid values include 'primary' and
Expand Down

0 comments on commit c1d6214

Please sign in to comment.