Skip to content

Commit fb0c22f

Browse files
author
SDKAuto
committed
CodeGen from PR 33104 in Azure/azure-rest-api-specs
Merge be8bef35d5abb7f908c7aab2605316c81d9045ee into ef196785552a7e79e5db813cb513bd94c8e7b1e1
1 parent 4d8426b commit fb0c22f

File tree

95 files changed

+1148
-1530
lines changed

Some content is hidden

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

95 files changed

+1148
-1530
lines changed

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

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

3+
## 10.0.0 (2025-04-11)
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 model `NetworkSecurityPerimeterConfigurationsOperations`
64+
- 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)`
65+
- 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)`
66+
- 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)`
67+
- 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)`
68+
69+
### Breaking Changes
70+
71+
- Method `SearchManagementClient.__init__` inserted a `positional_or_keyword` parameter `nsp_config_name`
72+
373
## 9.2.0b3 (2025-04-02)
474

575
### Features Added
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "d19224ba51aa869cd99f981842b780d69d51c297",
2+
"commit": "c3a30fcd113fa85af77582a3a0d1dcee970ad978",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
66
"@autorest/[email protected]",
77
"@autorest/[email protected]"
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/[email protected] --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/[email protected] --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/_configuration.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,28 @@ 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+
:param nsp_config_name: The network security perimeter configuration name. Required.
32+
:type nsp_config_name: str
33+
:keyword api_version: Api Version. Default value is "2025-05-01". Note that overriding this
34+
default value may result in unsupported behavior.
3335
:paramtype api_version: str
3436
"""
3537

36-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2025-02-01-preview")
38+
def __init__(
39+
self, credential: "TokenCredential", subscription_id: str, nsp_config_name: str, **kwargs: Any
40+
) -> None:
41+
api_version: str = kwargs.pop("api_version", "2025-05-01")
3842

3943
if credential is None:
4044
raise ValueError("Parameter 'credential' must not be None.")
4145
if subscription_id is None:
4246
raise ValueError("Parameter 'subscription_id' must not be None.")
47+
if nsp_config_name is None:
48+
raise ValueError("Parameter 'nsp_config_name' must not be None.")
4349

4450
self.credential = credential
4551
self.subscription_id = subscription_id
52+
self.nsp_config_name = nsp_config_name
4653
self.api_version = api_version
4754
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4855
kwargs.setdefault("sdk_moniker", "mgmt-search/{}".format(VERSION))

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from .operations import (
2222
AdminKeysOperations,
2323
NetworkSecurityPerimeterConfigurationsOperations,
24-
OfferingsOperations,
2524
Operations,
2625
PrivateEndpointConnectionsOperations,
2726
PrivateLinkResourcesOperations,
@@ -41,8 +40,6 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint:
4140
4241
:ivar operations: Operations operations
4342
:vartype operations: azure.mgmt.search.operations.Operations
44-
:ivar offerings: OfferingsOperations operations
45-
:vartype offerings: azure.mgmt.search.operations.OfferingsOperations
4643
:ivar admin_keys: AdminKeysOperations operations
4744
:vartype admin_keys: azure.mgmt.search.operations.AdminKeysOperations
4845
:ivar query_keys: QueryKeysOperations operations
@@ -68,10 +65,12 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint:
6865
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
6966
obtain this value from the Azure Resource Manager API or the portal. Required.
7067
:type subscription_id: str
68+
:param nsp_config_name: The network security perimeter configuration name. Required.
69+
:type nsp_config_name: str
7170
:param base_url: Service URL. Default value is "https://management.azure.com".
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.
@@ -81,11 +80,12 @@ def __init__(
8180
self,
8281
credential: "TokenCredential",
8382
subscription_id: str,
83+
nsp_config_name: str,
8484
base_url: str = "https://management.azure.com",
8585
**kwargs: Any
8686
) -> None:
8787
self._config = SearchManagementClientConfiguration(
88-
credential=credential, subscription_id=subscription_id, **kwargs
88+
credential=credential, subscription_id=subscription_id, nsp_config_name=nsp_config_name, **kwargs
8989
)
9090
_policies = kwargs.pop("policies", None)
9191
if _policies is None:
@@ -112,7 +112,6 @@ def __init__(
112112
self._deserialize = Deserializer(client_models)
113113
self._serialize.client_side_validation = False
114114
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
115-
self.offerings = OfferingsOperations(self._client, self._config, self._serialize, self._deserialize)
116115
self.admin_keys = AdminKeysOperations(self._client, self._config, self._serialize, self._deserialize)
117116
self.query_keys = QueryKeysOperations(self._client, self._config, self._serialize, self._deserialize)
118117
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)

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.2.0b3"
9+
VERSION = "10.0.0"

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,28 @@ 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+
:param nsp_config_name: The network security perimeter configuration name. Required.
32+
:type nsp_config_name: str
33+
:keyword api_version: Api Version. Default value is "2025-05-01". Note that overriding this
34+
default value may result in unsupported behavior.
3335
:paramtype api_version: str
3436
"""
3537

36-
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2025-02-01-preview")
38+
def __init__(
39+
self, credential: "AsyncTokenCredential", subscription_id: str, nsp_config_name: str, **kwargs: Any
40+
) -> None:
41+
api_version: str = kwargs.pop("api_version", "2025-05-01")
3842

3943
if credential is None:
4044
raise ValueError("Parameter 'credential' must not be None.")
4145
if subscription_id is None:
4246
raise ValueError("Parameter 'subscription_id' must not be None.")
47+
if nsp_config_name is None:
48+
raise ValueError("Parameter 'nsp_config_name' must not be None.")
4349

4450
self.credential = credential
4551
self.subscription_id = subscription_id
52+
self.nsp_config_name = nsp_config_name
4653
self.api_version = api_version
4754
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
4855
kwargs.setdefault("sdk_moniker", "mgmt-search/{}".format(VERSION))

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from .operations import (
2222
AdminKeysOperations,
2323
NetworkSecurityPerimeterConfigurationsOperations,
24-
OfferingsOperations,
2524
Operations,
2625
PrivateEndpointConnectionsOperations,
2726
PrivateLinkResourcesOperations,
@@ -41,8 +40,6 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint:
4140
4241
:ivar operations: Operations operations
4342
:vartype operations: azure.mgmt.search.aio.operations.Operations
44-
:ivar offerings: OfferingsOperations operations
45-
:vartype offerings: azure.mgmt.search.aio.operations.OfferingsOperations
4643
:ivar admin_keys: AdminKeysOperations operations
4744
:vartype admin_keys: azure.mgmt.search.aio.operations.AdminKeysOperations
4845
:ivar query_keys: QueryKeysOperations operations
@@ -69,10 +66,12 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint:
6966
:param subscription_id: The unique identifier for a Microsoft Azure subscription. You can
7067
obtain this value from the Azure Resource Manager API or the portal. Required.
7168
:type subscription_id: str
69+
:param nsp_config_name: The network security perimeter configuration name. Required.
70+
:type nsp_config_name: str
7271
:param base_url: Service URL. Default value is "https://management.azure.com".
7372
:type base_url: str
74-
:keyword api_version: Api Version. Default value is "2025-02-01-preview". Note that overriding
75-
this default value may result in unsupported behavior.
73+
:keyword api_version: Api Version. Default value is "2025-05-01". Note that overriding this
74+
default value may result in unsupported behavior.
7675
:paramtype api_version: str
7776
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
7877
Retry-After header is present.
@@ -82,11 +81,12 @@ def __init__(
8281
self,
8382
credential: "AsyncTokenCredential",
8483
subscription_id: str,
84+
nsp_config_name: str,
8585
base_url: str = "https://management.azure.com",
8686
**kwargs: Any
8787
) -> None:
8888
self._config = SearchManagementClientConfiguration(
89-
credential=credential, subscription_id=subscription_id, **kwargs
89+
credential=credential, subscription_id=subscription_id, nsp_config_name=nsp_config_name, **kwargs
9090
)
9191
_policies = kwargs.pop("policies", None)
9292
if _policies is None:
@@ -113,7 +113,6 @@ def __init__(
113113
self._deserialize = Deserializer(client_models)
114114
self._serialize.client_side_validation = False
115115
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
116-
self.offerings = OfferingsOperations(self._client, self._config, self._serialize, self._deserialize)
117116
self.admin_keys = AdminKeysOperations(self._client, self._config, self._serialize, self._deserialize)
118117
self.query_keys = QueryKeysOperations(self._client, self._config, self._serialize, self._deserialize)
119118
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from ._patch import * # pylint: disable=unused-wildcard-import
1414

1515
from ._operations import Operations # type: ignore
16-
from ._offerings_operations import OfferingsOperations # type: ignore
1716
from ._admin_keys_operations import AdminKeysOperations # type: ignore
1817
from ._query_keys_operations import QueryKeysOperations # type: ignore
1918
from ._services_operations import ServicesOperations # type: ignore
@@ -30,7 +29,6 @@
3029

3130
__all__ = [
3231
"Operations",
33-
"OfferingsOperations",
3432
"AdminKeysOperations",
3533
"QueryKeysOperations",
3634
"ServicesOperations",

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

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ async def get_next(next_link=None):
151151

152152
@distributed_trace_async
153153
async def get(
154-
self, resource_group_name: str, search_service_name: str, nsp_config_name: str, **kwargs: Any
154+
self, resource_group_name: str, search_service_name: str, **kwargs: Any
155155
) -> _models.NetworkSecurityPerimeterConfiguration:
156156
"""Gets a network security perimeter configuration.
157157
@@ -161,8 +161,6 @@ async def get(
161161
:param search_service_name: The name of the Azure AI Search service associated with the
162162
specified resource group. Required.
163163
:type search_service_name: str
164-
:param nsp_config_name: The network security configuration name. Required.
165-
:type nsp_config_name: str
166164
:return: NetworkSecurityPerimeterConfiguration or the result of cls(response)
167165
:rtype: ~azure.mgmt.search.models.NetworkSecurityPerimeterConfiguration
168166
:raises ~azure.core.exceptions.HttpResponseError:
@@ -184,7 +182,7 @@ async def get(
184182
_request = build_get_request(
185183
resource_group_name=resource_group_name,
186184
search_service_name=search_service_name,
187-
nsp_config_name=nsp_config_name,
185+
nsp_config_name=self._config.nsp_config_name,
188186
subscription_id=self._config.subscription_id,
189187
api_version=api_version,
190188
headers=_headers,
@@ -211,7 +209,7 @@ async def get(
211209
return deserialized # type: ignore
212210

213211
async def _reconcile_initial(
214-
self, resource_group_name: str, search_service_name: str, nsp_config_name: str, **kwargs: Any
212+
self, resource_group_name: str, search_service_name: str, **kwargs: Any
215213
) -> AsyncIterator[bytes]:
216214
error_map: MutableMapping = {
217215
401: ClientAuthenticationError,
@@ -230,7 +228,7 @@ async def _reconcile_initial(
230228
_request = build_reconcile_request(
231229
resource_group_name=resource_group_name,
232230
search_service_name=search_service_name,
233-
nsp_config_name=nsp_config_name,
231+
nsp_config_name=self._config.nsp_config_name,
234232
subscription_id=self._config.subscription_id,
235233
api_version=api_version,
236234
headers=_headers,
@@ -266,7 +264,7 @@ async def _reconcile_initial(
266264

267265
@distributed_trace_async
268266
async def begin_reconcile(
269-
self, resource_group_name: str, search_service_name: str, nsp_config_name: str, **kwargs: Any
267+
self, resource_group_name: str, search_service_name: str, **kwargs: Any
270268
) -> AsyncLROPoller[None]:
271269
"""Reconcile network security perimeter configuration for the Azure AI Search resource provider.
272270
This triggers a manual resync with network security perimeter configurations by ensuring the
@@ -278,8 +276,6 @@ async def begin_reconcile(
278276
:param search_service_name: The name of the Azure AI Search service associated with the
279277
specified resource group. Required.
280278
:type search_service_name: str
281-
:param nsp_config_name: The network security configuration name. Required.
282-
:type nsp_config_name: str
283279
:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)
284280
:rtype: ~azure.core.polling.AsyncLROPoller[None]
285281
:raises ~azure.core.exceptions.HttpResponseError:
@@ -296,7 +292,6 @@ async def begin_reconcile(
296292
raw_result = await self._reconcile_initial(
297293
resource_group_name=resource_group_name,
298294
search_service_name=search_service_name,
299-
nsp_config_name=nsp_config_name,
300295
api_version=api_version,
301296
cls=lambda x, y, z: x,
302297
headers=_headers,

0 commit comments

Comments
 (0)