Skip to content

Commit c1d6214

Browse files
[AutoRelease] t2-search-2024-02-28-86521(can only be merged by SDK owner) (#34484)
* code and test * Update assets.json --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 9556fa3 commit c1d6214

File tree

79 files changed

+2531
-456
lines changed

Some content is hidden

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

79 files changed

+2531
-456
lines changed

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

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

3+
## 9.2.0b1 (2024-03-18)
4+
5+
### Features Added
6+
7+
- Added operation group NetworkSecurityPerimeterConfigurationsOperations
8+
- Model Identity has a new parameter user_assigned_identities
9+
- Model NetworkRuleSet has a new parameter bypass
10+
- Model Operation has a new parameter is_data_action
11+
- Model Operation has a new parameter origin
12+
- Model Operation has a new parameter properties
13+
- Model SearchService has a new parameter disabled_data_exfiltration_options
14+
- Model SearchService has a new parameter e_tag
15+
- Model SearchServiceUpdate has a new parameter disabled_data_exfiltration_options
16+
- Model SearchServiceUpdate has a new parameter e_tag
17+
318
## 9.1.0 (2023-10-23)
419

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

1818
### Install the package

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "e1017d9ab49f41296177b4f4c9ac741fb7de044d",
2+
"commit": "77df3b1680a95566a3e6a3a2cd07c9a4960b2af3",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [

sdk/search/azure-mgmt-search/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/search/azure-mgmt-search",
5-
"Tag": "python/search/azure-mgmt-search_b2ac0b29f6"
5+
"Tag": "python/search/azure-mgmt-search_c9d8ad9153"
66
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class SearchManagementClientConfiguration(Configuration): # pylint: disable=too
3030
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
3131
obtain this value from the Azure Resource Manager API or the portal. Required.
3232
:type subscription_id: str
33-
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
34-
default value may result in unsupported behavior.
33+
:keyword api_version: Api Version. Default value is "2024-03-01-preview". Note that overriding
34+
this default value may result in unsupported behavior.
3535
:paramtype api_version: str
3636
"""
3737

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

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

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from ._serialization import Deserializer, Serializer
1818
from .operations import (
1919
AdminKeysOperations,
20+
NetworkSecurityPerimeterConfigurationsOperations,
2021
Operations,
2122
PrivateEndpointConnectionsOperations,
2223
PrivateLinkResourcesOperations,
@@ -35,7 +36,7 @@
3536
class SearchManagementClient(
3637
SearchManagementClientOperationsMixin
3738
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
38-
"""Client that can be used to manage Azure Cognitive Search services and API keys.
39+
"""Client that can be used to manage Azure AI Search services and API keys.
3940
4041
:ivar operations: Operations operations
4142
:vartype operations: azure.mgmt.search.operations.Operations
@@ -55,15 +56,19 @@ class SearchManagementClient(
5556
azure.mgmt.search.operations.SharedPrivateLinkResourcesOperations
5657
:ivar usages: UsagesOperations operations
5758
:vartype usages: azure.mgmt.search.operations.UsagesOperations
59+
:ivar network_security_perimeter_configurations:
60+
NetworkSecurityPerimeterConfigurationsOperations operations
61+
:vartype network_security_perimeter_configurations:
62+
azure.mgmt.search.operations.NetworkSecurityPerimeterConfigurationsOperations
5863
:param credential: Credential needed for the client to connect to Azure. Required.
5964
:type credential: ~azure.core.credentials.TokenCredential
6065
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
6166
obtain this value from the Azure Resource Manager API or the portal. Required.
6267
:type subscription_id: str
6368
:param base_url: Service URL. Default value is "https://management.azure.com".
6469
:type base_url: str
65-
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
66-
default value may result in unsupported behavior.
70+
:keyword api_version: Api Version. Default value is "2024-03-01-preview". Note that overriding
71+
this default value may result in unsupported behavior.
6772
:paramtype api_version: str
6873
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6974
Retry-After header is present.
@@ -99,6 +104,9 @@ def __init__(
99104
self._client, self._config, self._serialize, self._deserialize
100105
)
101106
self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize)
107+
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
108+
self._client, self._config, self._serialize, self._deserialize
109+
)
102110

103111
def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
104112
"""Runs the network request through the client's chained policies.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "9.1.0"
9+
VERSION = "9.2.0b1"

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class SearchManagementClientConfiguration(Configuration): # pylint: disable=too
3030
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
3131
obtain this value from the Azure Resource Manager API or the portal. Required.
3232
:type subscription_id: str
33-
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
34-
default value may result in unsupported behavior.
33+
:keyword api_version: Api Version. Default value is "2024-03-01-preview". Note that overriding
34+
this default value may result in unsupported behavior.
3535
:paramtype api_version: str
3636
"""
3737

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

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

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from ._configuration import SearchManagementClientConfiguration
1818
from .operations import (
1919
AdminKeysOperations,
20+
NetworkSecurityPerimeterConfigurationsOperations,
2021
Operations,
2122
PrivateEndpointConnectionsOperations,
2223
PrivateLinkResourcesOperations,
@@ -35,7 +36,7 @@
3536
class SearchManagementClient(
3637
SearchManagementClientOperationsMixin
3738
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
38-
"""Client that can be used to manage Azure Cognitive Search services and API keys.
39+
"""Client that can be used to manage Azure AI Search services and API keys.
3940
4041
:ivar operations: Operations operations
4142
:vartype operations: azure.mgmt.search.aio.operations.Operations
@@ -56,15 +57,19 @@ class SearchManagementClient(
5657
azure.mgmt.search.aio.operations.SharedPrivateLinkResourcesOperations
5758
:ivar usages: UsagesOperations operations
5859
:vartype usages: azure.mgmt.search.aio.operations.UsagesOperations
60+
:ivar network_security_perimeter_configurations:
61+
NetworkSecurityPerimeterConfigurationsOperations operations
62+
:vartype network_security_perimeter_configurations:
63+
azure.mgmt.search.aio.operations.NetworkSecurityPerimeterConfigurationsOperations
5964
:param credential: Credential needed for the client to connect to Azure. Required.
6065
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
6166
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
6267
obtain this value from the Azure Resource Manager API or the portal. Required.
6368
:type subscription_id: str
6469
:param base_url: Service URL. Default value is "https://management.azure.com".
6570
:type base_url: str
66-
:keyword api_version: Api Version. Default value is "2023-11-01". Note that overriding this
67-
default value may result in unsupported behavior.
71+
:keyword api_version: Api Version. Default value is "2024-03-01-preview". Note that overriding
72+
this default value may result in unsupported behavior.
6873
:paramtype api_version: str
6974
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
7075
Retry-After header is present.
@@ -100,6 +105,9 @@ def __init__(
100105
self._client, self._config, self._serialize, self._deserialize
101106
)
102107
self.usages = UsagesOperations(self._client, self._config, self._serialize, self._deserialize)
108+
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
109+
self._client, self._config, self._serialize, self._deserialize
110+
)
103111

104112
def _send_request(self, request: HttpRequest, **kwargs: Any) -> Awaitable[AsyncHttpResponse]:
105113
"""Runs the network request through the client's chained policies.

sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from ._shared_private_link_resources_operations import SharedPrivateLinkResourcesOperations
1616
from ._usages_operations import UsagesOperations
1717
from ._search_management_client_operations import SearchManagementClientOperationsMixin
18+
from ._network_security_perimeter_configurations_operations import NetworkSecurityPerimeterConfigurationsOperations
1819

1920
from ._patch import __all__ as _patch_all
2021
from ._patch import * # pylint: disable=unused-wildcard-import
@@ -30,6 +31,7 @@
3031
"SharedPrivateLinkResourcesOperations",
3132
"UsagesOperations",
3233
"SearchManagementClientOperationsMixin",
34+
"NetworkSecurityPerimeterConfigurationsOperations",
3335
]
3436
__all__.extend([p for p in _patch_all if p not in __all__])
3537
_patch_sdk()

0 commit comments

Comments
 (0)