From ddd1074775067e4fb834a7f15b055099b02f8c19 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 8 Apr 2025 17:44:22 +0000 Subject: [PATCH] CodeGen from PR 33781 in Azure/azure-rest-api-specs Merge 8fbaec1cfca217ada7bc3a24d446785be3aae85a into 4e43b1d1afb47d7d8c1dc6869160b13a2c89f232 --- sdk/search/azure-mgmt-search/CHANGELOG.md | 59 ++ sdk/search/azure-mgmt-search/_meta.json | 4 +- .../azure/mgmt/search/_configuration.py | 6 +- .../mgmt/search/_search_management_client.py | 8 +- .../azure/mgmt/search/_version.py | 2 +- .../azure/mgmt/search/aio/_configuration.py | 6 +- .../search/aio/_search_management_client.py | 8 +- .../mgmt/search/aio/operations/__init__.py | 2 - .../aio/operations/_offerings_operations.py | 128 ---- .../aio/operations/_services_operations.py | 18 +- .../azure/mgmt/search/models/__init__.py | 30 +- .../azure/mgmt/search/models/_models_py3.py | 614 ++++-------------- .../models/_search_management_client_enums.py | 61 +- .../azure/mgmt/search/operations/__init__.py | 2 - .../operations/_admin_keys_operations.py | 4 +- ...ity_perimeter_configurations_operations.py | 6 +- .../operations/_offerings_operations.py | 150 ----- .../mgmt/search/operations/_operations.py | 2 +- ...private_endpoint_connections_operations.py | 8 +- .../_private_link_resources_operations.py | 2 +- .../operations/_query_keys_operations.py | 6 +- .../_search_management_client_operations.py | 2 +- .../search/operations/_services_operations.py | 34 +- ...hared_private_link_resources_operations.py | 8 +- .../search/operations/_usages_operations.py | 2 +- ..._or_update_shared_private_link_resource.py | 2 +- .../delete_private_endpoint_connection.py | 2 +- .../delete_shared_private_link_resource.py | 2 +- .../get_private_endpoint_connection.py | 2 +- .../generated_samples/get_quota_usage.py | 2 +- .../get_quota_usages_list.py | 2 +- .../get_shared_private_link_resource.py | 2 +- ...private_endpoint_connections_by_service.py | 2 +- ...hared_private_link_resources_by_service.py | 2 +- .../list_supported_private_link_resources.py | 2 +- ...k_security_perimeter_configurations_get.py | 2 +- ...erimeter_configurations_list_by_service.py | 2 +- ...rity_perimeter_configurations_reconcile.py | 2 +- .../search_create_or_update_service.py | 2 +- ...h_create_or_update_service_auth_options.py | 2 +- ...te_or_update_service_disable_local_auth.py | 2 +- ..._to_allow_access_from_private_endpoints.py | 2 +- ..._to_allow_access_from_public_custom_ips.py | 2 +- ...ccess_from_public_custom_ips_and_bypass.py | 4 +- ..._or_update_service_with_cmk_enforcement.py | 2 +- ...r_update_service_with_data_exfiltration.py | 2 +- ..._create_or_update_service_with_identity.py | 2 +- ...h_create_or_update_with_semantic_search.py | 2 +- .../search_create_query_key.py | 2 +- .../search_delete_query_key.py | 2 +- .../search_delete_service.py | 2 +- .../search_get_admin_keys.py | 2 +- .../generated_samples/search_get_service.py | 2 +- .../search_list_offerings.py | 40 -- .../search_list_operations.py | 2 +- ...earch_list_query_keys_by_search_service.py | 2 +- .../search_list_services_by_resource_group.py | 2 +- .../search_list_services_by_subscription.py | 2 +- .../search_regenerate_admin_key.py | 2 +- .../search_update_service.py | 2 +- .../search_update_service_auth_options.py | 2 +- ...earch_update_service_disable_local_auth.py | 2 +- ..._to_allow_access_from_private_endpoints.py | 2 +- ..._to_allow_access_from_public_custom_ips.py | 2 +- ...ccess_from_public_custom_ips_and_bypass.py | 4 +- ...earch_update_service_to_remove_identity.py | 2 +- ...rch_update_service_with_cmk_enforcement.py | 2 +- ...h_update_service_with_data_exfiltration.py | 2 +- ...rch_update_service_with_semantic_search.py | 2 +- .../search_update_service_with_sku.py | 2 +- .../update_private_endpoint_connection.py | 2 +- ...pgrade_search_service_to_latest_version.py | 2 +- .../generated_tests/test_search_management.py | 2 +- ...search_management_admin_keys_operations.py | 4 +- ..._management_admin_keys_operations_async.py | 4 +- .../test_search_management_async.py | 2 +- ...ity_perimeter_configurations_operations.py | 6 +- ...rimeter_configurations_operations_async.py | 6 +- .../test_search_management_operations.py | 2 +- ...test_search_management_operations_async.py | 2 +- ...private_endpoint_connections_operations.py | 16 +- ...e_endpoint_connections_operations_async.py | 16 +- ...ement_private_link_resources_operations.py | 2 +- ...private_link_resources_operations_async.py | 2 +- ...search_management_query_keys_operations.py | 6 +- ..._management_query_keys_operations_async.py | 6 +- ...t_search_management_services_operations.py | 56 +- ...ch_management_services_operations_async.py | 56 +- ...hared_private_link_resources_operations.py | 16 +- ...private_link_resources_operations_async.py | 16 +- ...est_search_management_usages_operations.py | 2 +- ...arch_management_usages_operations_async.py | 2 +- .../azure-mgmt-search/sdk_packaging.toml | 2 +- sdk/search/azure-mgmt-search/setup.py | 2 +- 94 files changed, 500 insertions(+), 1036 deletions(-) delete mode 100644 sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_offerings_operations.py delete mode 100644 sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_offerings_operations.py delete mode 100644 sdk/search/azure-mgmt-search/generated_samples/search_list_offerings.py diff --git a/sdk/search/azure-mgmt-search/CHANGELOG.md b/sdk/search/azure-mgmt-search/CHANGELOG.md index bed8f6fb14bc..5e4ae0b47a7a 100644 --- a/sdk/search/azure-mgmt-search/CHANGELOG.md +++ b/sdk/search/azure-mgmt-search/CHANGELOG.md @@ -1,5 +1,64 @@ # Release History +## 9.2.0 (2025-04-08) + +### 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` + - Model `Resource` added property `system_data` + - Model `SearchService` added property `endpoint` + - Model `SearchService` added property `compute_type` + - Model `SearchService` added property `disabled_data_exfiltration_options` + - 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 `disabled_data_exfiltration_options` + - 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 enum `ActionType` + - Added enum `ComputeType` + - Added enum `CreatedByType` + - Added model `NSPConfigAccessRule` + - Added model `NSPConfigAccessRuleProperties` + - Added model `NSPConfigAssociation` + - Added model `NSPConfigNetworkSecurityPerimeterRule` + - Added model `NSPConfigPerimeter` + - Added model `NSPConfigProfile` + - Added model `NSPProvisioningIssue` + - Added model `NSPProvisioningIssueProperties` + - Added model `NetworkSecurityPerimeterConfiguration` + - Added model `NetworkSecurityPerimeterConfigurationListResult` + - Added enum `Origin` + - Added model `ProxyResource` + - Added enum `SearchBypass` + - Added enum `SearchDisabledDataExfiltrationOption` + - Added model `SystemData` + - Added enum `UpgradeAvailable` + - Added model `UserAssignedManagedIdentity` + - Model `ServicesOperations` added method `begin_upgrade` + - Added model `NetworkSecurityPerimeterConfigurationsOperations` + - 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)` + - 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)` + - 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)` + - 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)` + ## 9.2.0b3 (2025-04-02) ### Features Added diff --git a/sdk/search/azure-mgmt-search/_meta.json b/sdk/search/azure-mgmt-search/_meta.json index f3f8d15a74c3..0e6b3e4429e0 100644 --- a/sdk/search/azure-mgmt-search/_meta.json +++ b/sdk/search/azure-mgmt-search/_meta.json @@ -1,11 +1,11 @@ { - "commit": "d19224ba51aa869cd99f981842b780d69d51c297", + "commit": "c9d3237a8ebda4c94fccc7cfef35ec08e84dd59f", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "autorest": "3.10.2", "use": [ "@autorest/python@6.27.4", "@autorest/modelerfour@4.27.0" ], - "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/modelerfour@4.27.0 --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/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False", "readme": "specification/search/resource-manager/readme.md" } \ No newline at end of file diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/_configuration.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/_configuration.py index 4209042516fe..72d2231f9c64 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/_configuration.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/_configuration.py @@ -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.") diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/_search_management_client.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/_search_management_client.py index 4f6460f0417d..7d1079b5937b 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/_search_management_client.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/_search_management_client.py @@ -21,7 +21,6 @@ from .operations import ( AdminKeysOperations, NetworkSecurityPerimeterConfigurationsOperations, - OfferingsOperations, Operations, PrivateEndpointConnectionsOperations, PrivateLinkResourcesOperations, @@ -41,8 +40,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 @@ -70,8 +67,8 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint: :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 "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. @@ -112,7 +109,6 @@ def __init__( 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) diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/_version.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/_version.py index 5ad66e5299ee..6b357123854d 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/_version.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/_version.py @@ -6,4 +6,4 @@ # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -VERSION = "9.2.0b3" +VERSION = "9.2.0" diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_configuration.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_configuration.py index 0cd83d355a54..9602395c8d81 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_configuration.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_configuration.py @@ -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: "AsyncTokenCredential", 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.") diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_search_management_client.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_search_management_client.py index 143ce6b0e801..0c484ea44bd3 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_search_management_client.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/_search_management_client.py @@ -21,7 +21,6 @@ from .operations import ( AdminKeysOperations, NetworkSecurityPerimeterConfigurationsOperations, - OfferingsOperations, Operations, PrivateEndpointConnectionsOperations, PrivateLinkResourcesOperations, @@ -41,8 +40,6 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint: :ivar operations: Operations operations :vartype operations: azure.mgmt.search.aio.operations.Operations - :ivar offerings: OfferingsOperations operations - :vartype offerings: azure.mgmt.search.aio.operations.OfferingsOperations :ivar admin_keys: AdminKeysOperations operations :vartype admin_keys: azure.mgmt.search.aio.operations.AdminKeysOperations :ivar query_keys: QueryKeysOperations operations @@ -71,8 +68,8 @@ class SearchManagementClient(SearchManagementClientOperationsMixin): # pylint: :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 "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. @@ -113,7 +110,6 @@ def __init__( 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) diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/__init__.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/__init__.py index db5cfc541738..f7bf03a6069a 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/__init__.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/__init__.py @@ -13,7 +13,6 @@ from ._patch import * # pylint: disable=unused-wildcard-import from ._operations import Operations # type: ignore -from ._offerings_operations import OfferingsOperations # type: ignore from ._admin_keys_operations import AdminKeysOperations # type: ignore from ._query_keys_operations import QueryKeysOperations # type: ignore from ._services_operations import ServicesOperations # type: ignore @@ -30,7 +29,6 @@ __all__ = [ "Operations", - "OfferingsOperations", "AdminKeysOperations", "QueryKeysOperations", "ServicesOperations", diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_offerings_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_offerings_operations.py deleted file mode 100644 index ecc550ea4617..000000000000 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_offerings_operations.py +++ /dev/null @@ -1,128 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import sys -from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar -import urllib.parse - -from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.pipeline import PipelineResponse -from azure.core.rest import AsyncHttpResponse, HttpRequest -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from ... import models as _models -from ...operations._offerings_operations import build_list_request - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] - - -class OfferingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.search.aio.SearchManagementClient`'s - :attr:`offerings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs) -> None: - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, **kwargs: Any) -> AsyncIterable["_models.OfferingsByRegion"]: - """Lists all of the features and SKUs offered by the Azure AI Search service in each region. - - :return: An iterator like instance of either OfferingsByRegion or the result of cls(response) - :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.mgmt.search.models.OfferingsByRegion] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.OfferingsListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - async def extract_data(pipeline_response): - deserialized = self._deserialize("OfferingsListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return None, AsyncList(list_of_elem) - - async def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = await self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return AsyncItemPaged(get_next, extract_data) diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_services_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_services_operations.py index a56f94acd46e..2445335ddcbf 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_services_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/aio/operations/_services_operations.py @@ -176,9 +176,9 @@ async def begin_create_or_update( :param search_service_name: The name of the Azure AI Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and - 60 characters in length. Search service names must be globally unique since they are part of - the service URI (https://\\ :code:``.search.windows.net). You cannot change the service - name after the service is created. Required. + 60 characters in length. Search service names must be unique since they are part of the service + URI (https://\\ :code:``.search.windows.net). You cannot change the service name after + the service is created. Required. :type search_service_name: str :param service: The definition of the search service to create or update. Required. :type service: ~azure.mgmt.search.models.SearchService @@ -217,9 +217,9 @@ async def begin_create_or_update( :param search_service_name: The name of the Azure AI Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and - 60 characters in length. Search service names must be globally unique since they are part of - the service URI (https://\\ :code:``.search.windows.net). You cannot change the service - name after the service is created. Required. + 60 characters in length. Search service names must be unique since they are part of the service + URI (https://\\ :code:``.search.windows.net). You cannot change the service name after + the service is created. Required. :type search_service_name: str :param service: The definition of the search service to create or update. Required. :type service: IO[bytes] @@ -256,9 +256,9 @@ async def begin_create_or_update( :param search_service_name: The name of the Azure AI Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and - 60 characters in length. Search service names must be globally unique since they are part of - the service URI (https://\\ :code:``.search.windows.net). You cannot change the service - name after the service is created. Required. + 60 characters in length. Search service names must be unique since they are part of the service + URI (https://\\ :code:``.search.windows.net). You cannot change the service name after + the service is created. Required. :type search_service_name: str :param service: The definition of the search service to create or update. Is either a SearchService type or a IO[bytes] type. Required. diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/models/__init__.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/models/__init__.py index 7a08476f9e51..b6f8a15025a4 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/models/__init__.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/models/__init__.py @@ -22,7 +22,6 @@ DataPlaneAadOrApiKeyAuthOption, DataPlaneAuthOptions, EncryptionWithCmk, - FeatureOffering, Identity, IpRule, ListQueryKeysResult, @@ -37,17 +36,9 @@ NetworkRuleSet, NetworkSecurityPerimeterConfiguration, NetworkSecurityPerimeterConfigurationListResult, - OfferingsByRegion, - OfferingsListResult, Operation, - OperationAvailability, OperationDisplay, OperationListResult, - OperationLogsSpecification, - OperationMetricDimension, - OperationMetricsSpecification, - OperationProperties, - OperationServiceSpecification, PrivateEndpointConnection, PrivateEndpointConnectionListResult, PrivateEndpointConnectionProperties, @@ -72,8 +63,6 @@ SharedPrivateLinkResourceListResult, SharedPrivateLinkResourceProperties, Sku, - SkuOffering, - SkuOfferingLimits, SystemData, TrackedResource, UserAssignedManagedIdentity, @@ -81,12 +70,13 @@ from ._search_management_client_enums import ( # type: ignore AadAuthFailureMode, + ActionType, AdminKeyKind, ComputeType, CreatedByType, - FeatureName, HostingMode, IdentityType, + Origin, PrivateLinkServiceConnectionProvisioningState, PrivateLinkServiceConnectionStatus, ProvisioningState, @@ -102,6 +92,7 @@ SharedPrivateLinkResourceStatus, SkuName, UnavailableNameReason, + UpgradeAvailable, ) from ._patch import __all__ as _patch_all from ._patch import * @@ -116,7 +107,6 @@ "DataPlaneAadOrApiKeyAuthOption", "DataPlaneAuthOptions", "EncryptionWithCmk", - "FeatureOffering", "Identity", "IpRule", "ListQueryKeysResult", @@ -131,17 +121,9 @@ "NetworkRuleSet", "NetworkSecurityPerimeterConfiguration", "NetworkSecurityPerimeterConfigurationListResult", - "OfferingsByRegion", - "OfferingsListResult", "Operation", - "OperationAvailability", "OperationDisplay", "OperationListResult", - "OperationLogsSpecification", - "OperationMetricDimension", - "OperationMetricsSpecification", - "OperationProperties", - "OperationServiceSpecification", "PrivateEndpointConnection", "PrivateEndpointConnectionListResult", "PrivateEndpointConnectionProperties", @@ -166,18 +148,17 @@ "SharedPrivateLinkResourceListResult", "SharedPrivateLinkResourceProperties", "Sku", - "SkuOffering", - "SkuOfferingLimits", "SystemData", "TrackedResource", "UserAssignedManagedIdentity", "AadAuthFailureMode", + "ActionType", "AdminKeyKind", "ComputeType", "CreatedByType", - "FeatureName", "HostingMode", "IdentityType", + "Origin", "PrivateLinkServiceConnectionProvisioningState", "PrivateLinkServiceConnectionStatus", "ProvisioningState", @@ -193,6 +174,7 @@ "SharedPrivateLinkResourceStatus", "SkuName", "UnavailableNameReason", + "UpgradeAvailable", ] __all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore _patch_sdk() diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models_py3.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models_py3.py index e7ed90d54091..dd399e29095c 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models_py3.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_models_py3.py @@ -310,30 +310,6 @@ def __init__( self.encryption_compliance_status = None -class FeatureOffering(_serialization.Model): - """FeatureOffering. - - :ivar name: The name of the feature offered in this region. Known values are: "Grok", - "ImageVectorization", "DocumentIntelligence", "QueryRewrite", "S3", "StorageOptimized", - "SemanticSearch", "MegaStore", and "AvailabilityZones". - :vartype name: str or ~azure.mgmt.search.models.FeatureName - """ - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - } - - def __init__(self, *, name: Optional[Union[str, "_models.FeatureName"]] = None, **kwargs: Any) -> None: - """ - :keyword name: The name of the feature offered in this region. Known values are: "Grok", - "ImageVectorization", "DocumentIntelligence", "QueryRewrite", "S3", "StorageOptimized", - "SemanticSearch", "MegaStore", and "AvailabilityZones". - :paramtype name: str or ~azure.mgmt.search.models.FeatureName - """ - super().__init__(**kwargs) - self.name = name - - class Identity(_serialization.Model): """Details about the search service identity. A null value indicates that the search service has no identity assigned. @@ -459,7 +435,7 @@ class NetworkRuleSet(_serialization.Model): be the exclusive access method. :vartype ip_rules: list[~azure.mgmt.search.models.IpRule] :ivar bypass: Possible origins of inbound traffic that can bypass the rules defined in the - 'ipRules' section. Known values are: "None", "AzurePortal", and "AzureServices". + 'ipRules' section. Known values are: "None" and "AzureServices". :vartype bypass: str or ~azure.mgmt.search.models.SearchBypass """ @@ -484,7 +460,7 @@ def __init__( be the exclusive access method. :paramtype ip_rules: list[~azure.mgmt.search.models.IpRule] :keyword bypass: Possible origins of inbound traffic that can bypass the rules defined in the - 'ipRules' section. Known values are: "None", "AzurePortal", and "AzureServices". + 'ipRules' section. Known values are: "None" and "AzureServices". :paramtype bypass: str or ~azure.mgmt.search.models.SearchBypass """ super().__init__(**kwargs) @@ -497,26 +473,31 @@ class Resource(_serialization.Model): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.search.models.SystemData """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, + "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, } def __init__(self, **kwargs: Any) -> None: @@ -525,6 +506,7 @@ def __init__(self, **kwargs: Any) -> None: self.id = None self.name = None self.type = None + self.system_data = None class ProxyResource(Resource): @@ -533,14 +515,17 @@ class ProxyResource(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.search.models.SystemData """ @@ -549,14 +534,17 @@ class NetworkSecurityPerimeterConfiguration(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.search.models.SystemData :ivar provisioning_state: :vartype provisioning_state: str :ivar network_security_perimeter: The perimeter for a network security perimeter configuration. @@ -573,6 +561,7 @@ class NetworkSecurityPerimeterConfiguration(ProxyResource): "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, + "system_data": {"readonly": True}, "provisioning_state": {"readonly": True}, } @@ -580,6 +569,7 @@ class NetworkSecurityPerimeterConfiguration(ProxyResource): "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, "provisioning_state": {"key": "properties.provisioningState", "type": "str"}, "network_security_perimeter": {"key": "properties.networkSecurityPerimeter", "type": "NSPConfigPerimeter"}, "resource_association": {"key": "properties.resourceAssociation", "type": "NSPConfigAssociation"}, @@ -967,174 +957,86 @@ def __init__( self.suggested_access_rules = suggested_access_rules -class OfferingsByRegion(_serialization.Model): - """OfferingsByRegion. - - :ivar region_name: The name of the region. - :vartype region_name: str - :ivar features: The list of features offered in this region. - :vartype features: list[~azure.mgmt.search.models.FeatureOffering] - :ivar skus: The list of SKUs offered in this region. - :vartype skus: list[~azure.mgmt.search.models.SkuOffering] - """ - - _attribute_map = { - "region_name": {"key": "regionName", "type": "str"}, - "features": {"key": "features", "type": "[FeatureOffering]"}, - "skus": {"key": "skus", "type": "[SkuOffering]"}, - } - - def __init__( - self, - *, - region_name: Optional[str] = None, - features: Optional[List["_models.FeatureOffering"]] = None, - skus: Optional[List["_models.SkuOffering"]] = None, - **kwargs: Any - ) -> None: - """ - :keyword region_name: The name of the region. - :paramtype region_name: str - :keyword features: The list of features offered in this region. - :paramtype features: list[~azure.mgmt.search.models.FeatureOffering] - :keyword skus: The list of SKUs offered in this region. - :paramtype skus: list[~azure.mgmt.search.models.SkuOffering] - """ - super().__init__(**kwargs) - self.region_name = region_name - self.features = features - self.skus = skus - - -class OfferingsListResult(_serialization.Model): - """The response containing a list of features and SKUs offered in various regions. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar value: The list of regions with their respective features and SKUs offered. - :vartype value: list[~azure.mgmt.search.models.OfferingsByRegion] - :ivar next_link: The URL to get the next set of offerings, if any. - :vartype next_link: str - """ - - _validation = { - "next_link": {"readonly": True}, - } - - _attribute_map = { - "value": {"key": "value", "type": "[OfferingsByRegion]"}, - "next_link": {"key": "nextLink", "type": "str"}, - } - - def __init__(self, *, value: Optional[List["_models.OfferingsByRegion"]] = None, **kwargs: Any) -> None: - """ - :keyword value: The list of regions with their respective features and SKUs offered. - :paramtype value: list[~azure.mgmt.search.models.OfferingsByRegion] - """ - super().__init__(**kwargs) - self.value = value - self.next_link = None - - class Operation(_serialization.Model): - """Describes a REST API operation. + """Details of a REST API operation, returned from the Resource Provider Operations API. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: The name of the operation. This name is of the form - {provider}/{resource}/{operation}. + :ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples: + "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action". :vartype name: str - :ivar display: The object that describes the operation. - :vartype display: ~azure.mgmt.search.models.OperationDisplay - :ivar is_data_action: Describes if the specified operation is a data plane API operation. - Operations where this value is not true are supported directly by the resource provider. + :ivar is_data_action: Whether the operation applies to data-plane. This is "true" for + data-plane operations and "false" for ARM/control-plane operations. :vartype is_data_action: bool - :ivar origin: Describes which originating entities are allowed to invoke this operation. - :vartype origin: str - :ivar properties: Describes additional properties for this operation. - :vartype properties: ~azure.mgmt.search.models.OperationProperties + :ivar display: Localized display information for this particular operation. + :vartype display: ~azure.mgmt.search.models.OperationDisplay + :ivar origin: The intended executor of the operation; as in Resource Based Access Control + (RBAC) and audit logs UX. Default value is "user,system". Known values are: "user", "system", + and "user,system". + :vartype origin: str or ~azure.mgmt.search.models.Origin + :ivar action_type: Enum. Indicates the action type. "Internal" refers to actions that are for + internal only APIs. "Internal" + :vartype action_type: str or ~azure.mgmt.search.models.ActionType """ _validation = { "name": {"readonly": True}, - "display": {"readonly": True}, "is_data_action": {"readonly": True}, "origin": {"readonly": True}, - "properties": {"readonly": True}, + "action_type": {"readonly": True}, } _attribute_map = { "name": {"key": "name", "type": "str"}, - "display": {"key": "display", "type": "OperationDisplay"}, "is_data_action": {"key": "isDataAction", "type": "bool"}, + "display": {"key": "display", "type": "OperationDisplay"}, "origin": {"key": "origin", "type": "str"}, - "properties": {"key": "properties", "type": "OperationProperties"}, + "action_type": {"key": "actionType", "type": "str"}, } - def __init__(self, **kwargs: Any) -> None: - """ """ + def __init__(self, *, display: Optional["_models.OperationDisplay"] = None, **kwargs: Any) -> None: + """ + :keyword display: Localized display information for this particular operation. + :paramtype display: ~azure.mgmt.search.models.OperationDisplay + """ super().__init__(**kwargs) self.name = None - self.display = None self.is_data_action = None + self.display = display self.origin = None - self.properties = None - - -class OperationAvailability(_serialization.Model): - """Describes a particular availability for the metric specification. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar time_grain: The time grain for the dimension. - :vartype time_grain: str - :ivar blob_duration: The blob duration for the dimension. - :vartype blob_duration: str - """ - - _validation = { - "time_grain": {"readonly": True}, - "blob_duration": {"readonly": True}, - } - - _attribute_map = { - "time_grain": {"key": "timeGrain", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.time_grain = None - self.blob_duration = None + self.action_type = None class OperationDisplay(_serialization.Model): - """The object that describes the operation. + """Localized display information for this particular operation. Variables are only populated by the server, and will be ignored when sending a request. - :ivar provider: The friendly name of the resource provider. + :ivar provider: The localized friendly form of the resource provider name, e.g. "Microsoft + Monitoring Insights" or "Microsoft Compute". :vartype provider: str - :ivar operation: The operation type: read, write, delete, listKeys/action, etc. - :vartype operation: str - :ivar resource: The resource type on which the operation is performed. + :ivar resource: The localized friendly name of the resource type related to this operation. + E.g. "Virtual Machines" or "Job Schedule Collections". :vartype resource: str - :ivar description: The friendly name of the operation. + :ivar operation: The concise, localized friendly name for the operation; suitable for + dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + :vartype operation: str + :ivar description: The short, localized friendly description of the operation; suitable for + tool tips and detailed views. :vartype description: str """ _validation = { "provider": {"readonly": True}, - "operation": {"readonly": True}, "resource": {"readonly": True}, + "operation": {"readonly": True}, "description": {"readonly": True}, } _attribute_map = { "provider": {"key": "provider", "type": "str"}, - "operation": {"key": "operation", "type": "str"}, "resource": {"key": "resource", "type": "str"}, + "operation": {"key": "operation", "type": "str"}, "description": {"key": "description", "type": "str"}, } @@ -1142,8 +1044,8 @@ def __init__(self, **kwargs: Any) -> None: """ """ super().__init__(**kwargs) self.provider = None - self.operation = None self.resource = None + self.operation = None self.description = None @@ -1177,184 +1079,22 @@ def __init__(self, **kwargs: Any) -> None: self.next_link = None -class OperationLogsSpecification(_serialization.Model): - """Specifications of one type of log for this operation. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of the log specification. - :vartype name: str - :ivar display_name: The display name of the log specification. - :vartype display_name: str - :ivar blob_duration: The blob duration for the log specification. - :vartype blob_duration: str - """ - - _validation = { - "name": {"readonly": True}, - "display_name": {"readonly": True}, - "blob_duration": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "blob_duration": {"key": "blobDuration", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.display_name = None - self.blob_duration = None - - -class OperationMetricDimension(_serialization.Model): - """Describes a particular dimension for the metric specification. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of the dimension. - :vartype name: str - :ivar display_name: The display name of the dimension. - :vartype display_name: str - """ - - _validation = { - "name": {"readonly": True}, - "display_name": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.display_name = None - - -class OperationMetricsSpecification(_serialization.Model): - """Specifications of one type of metric for this operation. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar name: The name of the metric specification. - :vartype name: str - :ivar display_name: The display name of the metric specification. - :vartype display_name: str - :ivar display_description: The display description of the metric specification. - :vartype display_description: str - :ivar unit: The unit for the metric specification. - :vartype unit: str - :ivar aggregation_type: The type of aggregation for the metric specification. - :vartype aggregation_type: str - :ivar dimensions: Dimensions for the metric specification. - :vartype dimensions: list[~azure.mgmt.search.models.OperationMetricDimension] - :ivar availabilities: Availabilities for the metric specification. - :vartype availabilities: list[~azure.mgmt.search.models.OperationAvailability] - """ - - _validation = { - "name": {"readonly": True}, - "display_name": {"readonly": True}, - "display_description": {"readonly": True}, - "unit": {"readonly": True}, - "aggregation_type": {"readonly": True}, - "dimensions": {"readonly": True}, - "availabilities": {"readonly": True}, - } - - _attribute_map = { - "name": {"key": "name", "type": "str"}, - "display_name": {"key": "displayName", "type": "str"}, - "display_description": {"key": "displayDescription", "type": "str"}, - "unit": {"key": "unit", "type": "str"}, - "aggregation_type": {"key": "aggregationType", "type": "str"}, - "dimensions": {"key": "dimensions", "type": "[OperationMetricDimension]"}, - "availabilities": {"key": "availabilities", "type": "[OperationAvailability]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.name = None - self.display_name = None - self.display_description = None - self.unit = None - self.aggregation_type = None - self.dimensions = None - self.availabilities = None - - -class OperationProperties(_serialization.Model): - """Describes additional properties for this operation. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar service_specification: Specifications of the service for this operation. - :vartype service_specification: ~azure.mgmt.search.models.OperationServiceSpecification - """ - - _validation = { - "service_specification": {"readonly": True}, - } - - _attribute_map = { - "service_specification": {"key": "serviceSpecification", "type": "OperationServiceSpecification"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.service_specification = None - - -class OperationServiceSpecification(_serialization.Model): - """Specifications of the service for this operation. - - Variables are only populated by the server, and will be ignored when sending a request. - - :ivar metric_specifications: Specifications of metrics for this operation. - :vartype metric_specifications: list[~azure.mgmt.search.models.OperationMetricsSpecification] - :ivar log_specifications: Specifications of logs for this operation. - :vartype log_specifications: list[~azure.mgmt.search.models.OperationLogsSpecification] - """ - - _validation = { - "metric_specifications": {"readonly": True}, - "log_specifications": {"readonly": True}, - } - - _attribute_map = { - "metric_specifications": {"key": "metricSpecifications", "type": "[OperationMetricsSpecification]"}, - "log_specifications": {"key": "logSpecifications", "type": "[OperationLogsSpecification]"}, - } - - def __init__(self, **kwargs: Any) -> None: - """ """ - super().__init__(**kwargs) - self.metric_specifications = None - self.log_specifications = None - - class PrivateEndpointConnection(Resource): """Describes an existing private endpoint connection to the Azure AI Search service. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.search.models.SystemData :ivar properties: Describes the properties of an existing private endpoint connection to the Azure AI Search service. :vartype properties: ~azure.mgmt.search.models.PrivateEndpointConnectionProperties @@ -1364,12 +1104,14 @@ class PrivateEndpointConnection(Resource): "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, + "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "PrivateEndpointConnectionProperties"}, } @@ -1550,14 +1292,17 @@ class PrivateLinkResource(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.search.models.SystemData :ivar properties: Describes the properties of a supported private link resource for the Azure AI Search service. :vartype properties: ~azure.mgmt.search.models.PrivateLinkResourceProperties @@ -1567,6 +1312,7 @@ class PrivateLinkResource(Resource): "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, + "system_data": {"readonly": True}, "properties": {"readonly": True}, } @@ -1574,6 +1320,7 @@ class PrivateLinkResource(Resource): "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "PrivateLinkResourceProperties"}, } @@ -1822,14 +1569,17 @@ class TrackedResource(Resource): All required parameters must be populated in order to send to server. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.search.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -1840,6 +1590,7 @@ class TrackedResource(Resource): "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, + "system_data": {"readonly": True}, "location": {"required": True}, } @@ -1847,6 +1598,7 @@ class TrackedResource(Resource): "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, "tags": {"key": "tags", "type": "{str}"}, "location": {"key": "location", "type": "str"}, } @@ -1870,14 +1622,17 @@ class SearchService(TrackedResource): All required parameters must be populated in order to send to server. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.search.models.SystemData :ivar tags: Resource tags. :vartype tags: dict[str, str] :ivar location: The geo-location where the resource lives. Required. @@ -1887,9 +1642,6 @@ class SearchService(TrackedResource): :vartype sku: ~azure.mgmt.search.models.Sku :ivar identity: The identity of the resource. :vartype identity: ~azure.mgmt.search.models.Identity - :ivar system_data: Azure Resource Manager metadata of the search service containing createdBy - and modifiedBy information. - :vartype system_data: ~azure.mgmt.search.models.SystemData :ivar replica_count: The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU. :vartype replica_count: int @@ -1906,7 +1658,7 @@ class SearchService(TrackedResource): and "highDensity". :vartype hosting_mode: str or ~azure.mgmt.search.models.HostingMode :ivar compute_type: Configure this property to support the search service using either the - default compute or Azure Confidential Compute. Known values are: "default" and "confidential". + Default Compute or Azure Confidential Compute. Known values are: "default" and "confidential". :vartype compute_type: str or ~azure.mgmt.search.models.ComputeType :ivar public_network_access: This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface @@ -1935,8 +1687,8 @@ class SearchService(TrackedResource): from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'Succeeded' directly in the call to Create search service. This is because the free service - uses capacity that is already set up. Known values are: "Succeeded", "Provisioning", and - "Failed". + uses capacity that is already set up. Known values are: "succeeded", "provisioning", and + "failed". :vartype provisioning_state: str or ~azure.mgmt.search.models.ProvisioningState :ivar network_rule_set: Network specific rules that determine how the Azure AI Search service may be reached. @@ -1972,19 +1724,20 @@ class SearchService(TrackedResource): :ivar e_tag: A system generated property representing the service's etag that can be for optimistic concurrency control during updates. :vartype e_tag: str - :ivar upgrade_available: Indicates whether or not the search service has an upgrade available. - :vartype upgrade_available: bool - :ivar service_upgrade_date: The date and time the search service was last upgraded. This field + :ivar upgrade_available: Indicates if the search service has an upgrade available. Known values + are: "notAvailable" and "available". + :vartype upgrade_available: str or ~azure.mgmt.search.models.UpgradeAvailable + :ivar service_upgraded_at: The date and time the search service was last upgraded. This field will be null until the service gets upgraded for the first time. - :vartype service_upgrade_date: ~datetime.datetime + :vartype service_upgraded_at: ~datetime.datetime """ _validation = { "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, - "location": {"required": True}, "system_data": {"readonly": True}, + "location": {"required": True}, "replica_count": {"maximum": 12, "minimum": 1}, "partition_count": {"maximum": 12, "minimum": 1}, "status": {"readonly": True}, @@ -1993,19 +1746,18 @@ class SearchService(TrackedResource): "private_endpoint_connections": {"readonly": True}, "shared_private_link_resources": {"readonly": True}, "e_tag": {"readonly": True}, - "upgrade_available": {"readonly": True}, - "service_upgrade_date": {"readonly": True}, + "service_upgraded_at": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, "tags": {"key": "tags", "type": "{str}"}, "location": {"key": "location", "type": "str"}, "sku": {"key": "sku", "type": "Sku"}, "identity": {"key": "identity", "type": "Identity"}, - "system_data": {"key": "systemData", "type": "SystemData"}, "replica_count": {"key": "properties.replicaCount", "type": "int"}, "partition_count": {"key": "properties.partitionCount", "type": "int"}, "endpoint": {"key": "properties.endpoint", "type": "str"}, @@ -2030,8 +1782,8 @@ class SearchService(TrackedResource): "type": "[SharedPrivateLinkResource]", }, "e_tag": {"key": "properties.eTag", "type": "str"}, - "upgrade_available": {"key": "properties.upgradeAvailable", "type": "bool"}, - "service_upgrade_date": {"key": "properties.serviceUpgradeDate", "type": "iso-8601"}, + "upgrade_available": {"key": "properties.upgradeAvailable", "type": "str"}, + "service_upgraded_at": {"key": "properties.serviceUpgradedAt", "type": "iso-8601"}, } def __init__( # pylint: disable=too-many-locals @@ -2055,6 +1807,7 @@ def __init__( # pylint: disable=too-many-locals disable_local_auth: Optional[bool] = None, auth_options: Optional["_models.DataPlaneAuthOptions"] = None, semantic_search: Optional[Union[str, "_models.SearchSemanticSearch"]] = None, + upgrade_available: Optional[Union[str, "_models.UpgradeAvailable"]] = None, **kwargs: Any ) -> None: """ @@ -2085,7 +1838,7 @@ def __init__( # pylint: disable=too-many-locals "default" and "highDensity". :paramtype hosting_mode: str or ~azure.mgmt.search.models.HostingMode :keyword compute_type: Configure this property to support the search service using either the - default compute or Azure Confidential Compute. Known values are: "default" and "confidential". + Default Compute or Azure Confidential Compute. Known values are: "default" and "confidential". :paramtype compute_type: str or ~azure.mgmt.search.models.ComputeType :keyword public_network_access: This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface @@ -2115,11 +1868,13 @@ def __init__( # pylint: disable=too-many-locals configuration is only possible for certain Azure AI Search SKUs in certain locations. Known values are: "disabled", "free", and "standard". :paramtype semantic_search: str or ~azure.mgmt.search.models.SearchSemanticSearch + :keyword upgrade_available: Indicates if the search service has an upgrade available. Known + values are: "notAvailable" and "available". + :paramtype upgrade_available: str or ~azure.mgmt.search.models.UpgradeAvailable """ super().__init__(tags=tags, location=location, **kwargs) self.sku = sku self.identity = identity - self.system_data = None self.replica_count = replica_count self.partition_count = partition_count self.endpoint = endpoint @@ -2138,8 +1893,8 @@ def __init__( # pylint: disable=too-many-locals self.private_endpoint_connections = None self.shared_private_link_resources = None self.e_tag = None - self.upgrade_available = None - self.service_upgrade_date = None + self.upgrade_available = upgrade_available + self.service_upgraded_at = None class SearchServiceListResult(_serialization.Model): @@ -2176,14 +1931,17 @@ class SearchServiceUpdate(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.search.models.SystemData :ivar sku: The SKU of the search service, which determines price tier and capacity limits. This property is required when creating a new search service. :vartype sku: ~azure.mgmt.search.models.Sku @@ -2196,9 +1954,6 @@ class SearchServiceUpdate(Resource): :ivar identity: Details about the search service identity. A null value indicates that the search service has no identity assigned. :vartype identity: ~azure.mgmt.search.models.Identity - :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy - information. - :vartype system_data: ~azure.mgmt.search.models.SystemData :ivar replica_count: The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU. :vartype replica_count: int @@ -2215,7 +1970,7 @@ class SearchServiceUpdate(Resource): and "highDensity". :vartype hosting_mode: str or ~azure.mgmt.search.models.HostingMode :ivar compute_type: Configure this property to support the search service using either the - default compute or Azure Confidential Compute. Known values are: "default" and "confidential". + Default Compute or Azure Confidential Compute. Known values are: "default" and "confidential". :vartype compute_type: str or ~azure.mgmt.search.models.ComputeType :ivar public_network_access: This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface @@ -2244,8 +1999,8 @@ class SearchServiceUpdate(Resource): from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'Succeeded' directly in the call to Create search service. This is because the free service - uses capacity that is already set up. Known values are: "Succeeded", "Provisioning", and - "Failed". + uses capacity that is already set up. Known values are: "succeeded", "provisioning", and + "failed". :vartype provisioning_state: str or ~azure.mgmt.search.models.ProvisioningState :ivar network_rule_set: Network specific rules that determine how the Azure AI Search service may be reached. @@ -2281,11 +2036,12 @@ class SearchServiceUpdate(Resource): :ivar e_tag: A system generated property representing the service's etag that can be for optimistic concurrency control during updates. :vartype e_tag: str - :ivar upgrade_available: Indicates whether or not the search service has an upgrade available. - :vartype upgrade_available: bool - :ivar service_upgrade_date: The date and time the search service was last upgraded. This field + :ivar upgrade_available: Indicates if the search service has an upgrade available. Known values + are: "notAvailable" and "available". + :vartype upgrade_available: str or ~azure.mgmt.search.models.UpgradeAvailable + :ivar service_upgraded_at: The date and time the search service was last upgraded. This field will be null until the service gets upgraded for the first time. - :vartype service_upgrade_date: ~datetime.datetime + :vartype service_upgraded_at: ~datetime.datetime """ _validation = { @@ -2301,19 +2057,18 @@ class SearchServiceUpdate(Resource): "private_endpoint_connections": {"readonly": True}, "shared_private_link_resources": {"readonly": True}, "e_tag": {"readonly": True}, - "upgrade_available": {"readonly": True}, - "service_upgrade_date": {"readonly": True}, + "service_upgraded_at": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, "sku": {"key": "sku", "type": "Sku"}, "location": {"key": "location", "type": "str"}, "tags": {"key": "tags", "type": "{str}"}, "identity": {"key": "identity", "type": "Identity"}, - "system_data": {"key": "systemData", "type": "SystemData"}, "replica_count": {"key": "properties.replicaCount", "type": "int"}, "partition_count": {"key": "properties.partitionCount", "type": "int"}, "endpoint": {"key": "properties.endpoint", "type": "str"}, @@ -2338,8 +2093,8 @@ class SearchServiceUpdate(Resource): "type": "[SharedPrivateLinkResource]", }, "e_tag": {"key": "properties.eTag", "type": "str"}, - "upgrade_available": {"key": "properties.upgradeAvailable", "type": "bool"}, - "service_upgrade_date": {"key": "properties.serviceUpgradeDate", "type": "iso-8601"}, + "upgrade_available": {"key": "properties.upgradeAvailable", "type": "str"}, + "service_upgraded_at": {"key": "properties.serviceUpgradedAt", "type": "iso-8601"}, } def __init__( # pylint: disable=too-many-locals @@ -2363,6 +2118,7 @@ def __init__( # pylint: disable=too-many-locals disable_local_auth: Optional[bool] = None, auth_options: Optional["_models.DataPlaneAuthOptions"] = None, semantic_search: Optional[Union[str, "_models.SearchSemanticSearch"]] = None, + upgrade_available: Optional[Union[str, "_models.UpgradeAvailable"]] = None, **kwargs: Any ) -> None: """ @@ -2396,7 +2152,7 @@ def __init__( # pylint: disable=too-many-locals "default" and "highDensity". :paramtype hosting_mode: str or ~azure.mgmt.search.models.HostingMode :keyword compute_type: Configure this property to support the search service using either the - default compute or Azure Confidential Compute. Known values are: "default" and "confidential". + Default Compute or Azure Confidential Compute. Known values are: "default" and "confidential". :paramtype compute_type: str or ~azure.mgmt.search.models.ComputeType :keyword public_network_access: This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface @@ -2426,13 +2182,15 @@ def __init__( # pylint: disable=too-many-locals configuration is only possible for certain Azure AI Search SKUs in certain locations. Known values are: "disabled", "free", and "standard". :paramtype semantic_search: str or ~azure.mgmt.search.models.SearchSemanticSearch + :keyword upgrade_available: Indicates if the search service has an upgrade available. Known + values are: "notAvailable" and "available". + :paramtype upgrade_available: str or ~azure.mgmt.search.models.UpgradeAvailable """ super().__init__(**kwargs) self.sku = sku self.location = location self.tags = tags self.identity = identity - self.system_data = None self.replica_count = replica_count self.partition_count = partition_count self.endpoint = endpoint @@ -2451,8 +2209,8 @@ def __init__( # pylint: disable=too-many-locals self.private_endpoint_connections = None self.shared_private_link_resources = None self.e_tag = None - self.upgrade_available = None - self.service_upgrade_date = None + self.upgrade_available = upgrade_available + self.service_upgraded_at = None class ShareablePrivateLinkResourceProperties(_serialization.Model): @@ -2528,14 +2286,17 @@ class SharedPrivateLinkResource(Resource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource ID for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. # pylint: disable=line-too-long + :ivar id: Fully qualified resource ID for the resource. E.g. + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}". # pylint: disable=line-too-long :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". :vartype type: str + :ivar system_data: Azure Resource Manager metadata containing createdBy and modifiedBy + information. + :vartype system_data: ~azure.mgmt.search.models.SystemData :ivar properties: Describes the properties of a shared private link resource managed by the Azure AI Search service. :vartype properties: ~azure.mgmt.search.models.SharedPrivateLinkResourceProperties @@ -2545,12 +2306,14 @@ class SharedPrivateLinkResource(Resource): "id": {"readonly": True}, "name": {"readonly": True}, "type": {"readonly": True}, + "system_data": {"readonly": True}, } _attribute_map = { "id": {"key": "id", "type": "str"}, "name": {"key": "name", "type": "str"}, "type": {"key": "type", "type": "str"}, + "system_data": {"key": "systemData", "type": "SystemData"}, "properties": {"key": "properties", "type": "SharedPrivateLinkResourceProperties"}, } @@ -2714,111 +2477,6 @@ def __init__(self, *, name: Optional[Union[str, "_models.SkuName"]] = None, **kw self.name = name -class SkuOffering(_serialization.Model): - """SkuOffering. - - :ivar sku: Defines the SKU of a search service, which determines billing rate and capacity - limits. - :vartype sku: ~azure.mgmt.search.models.Sku - :ivar limits: The limits associated with this SKU offered in this region. - :vartype limits: ~azure.mgmt.search.models.SkuOfferingLimits - """ - - _attribute_map = { - "sku": {"key": "sku", "type": "Sku"}, - "limits": {"key": "limits", "type": "SkuOfferingLimits"}, - } - - def __init__( - self, - *, - sku: Optional["_models.Sku"] = None, - limits: Optional["_models.SkuOfferingLimits"] = None, - **kwargs: Any - ) -> None: - """ - :keyword sku: Defines the SKU of a search service, which determines billing rate and capacity - limits. - :paramtype sku: ~azure.mgmt.search.models.Sku - :keyword limits: The limits associated with this SKU offered in this region. - :paramtype limits: ~azure.mgmt.search.models.SkuOfferingLimits - """ - super().__init__(**kwargs) - self.sku = sku - self.limits = limits - - -class SkuOfferingLimits(_serialization.Model): - """The limits associated with this SKU offered in this region. - - :ivar indexes: The maximum number of indexes available for this SKU. - :vartype indexes: int - :ivar indexers: The maximum number of indexers available for this SKU. - :vartype indexers: int - :ivar partition_storage_in_gigabytes: The maximum storage size in Gigabytes available for this - SKU per partition. - :vartype partition_storage_in_gigabytes: float - :ivar partition_vector_storage_in_gigabytes: The maximum vector storage size in Gigabytes - available for this SKU per partition. - :vartype partition_vector_storage_in_gigabytes: float - :ivar search_units: The maximum number of search units available for this SKU. - :vartype search_units: int - :ivar replicas: The maximum number of replicas available for this SKU. - :vartype replicas: int - :ivar partitions: The maximum number of partitions available for this SKU. - :vartype partitions: int - """ - - _attribute_map = { - "indexes": {"key": "indexes", "type": "int"}, - "indexers": {"key": "indexers", "type": "int"}, - "partition_storage_in_gigabytes": {"key": "partitionStorageInGigabytes", "type": "float"}, - "partition_vector_storage_in_gigabytes": {"key": "partitionVectorStorageInGigabytes", "type": "float"}, - "search_units": {"key": "searchUnits", "type": "int"}, - "replicas": {"key": "replicas", "type": "int"}, - "partitions": {"key": "partitions", "type": "int"}, - } - - def __init__( - self, - *, - indexes: Optional[int] = None, - indexers: Optional[int] = None, - partition_storage_in_gigabytes: Optional[float] = None, - partition_vector_storage_in_gigabytes: Optional[float] = None, - search_units: Optional[int] = None, - replicas: Optional[int] = None, - partitions: Optional[int] = None, - **kwargs: Any - ) -> None: - """ - :keyword indexes: The maximum number of indexes available for this SKU. - :paramtype indexes: int - :keyword indexers: The maximum number of indexers available for this SKU. - :paramtype indexers: int - :keyword partition_storage_in_gigabytes: The maximum storage size in Gigabytes available for - this SKU per partition. - :paramtype partition_storage_in_gigabytes: float - :keyword partition_vector_storage_in_gigabytes: The maximum vector storage size in Gigabytes - available for this SKU per partition. - :paramtype partition_vector_storage_in_gigabytes: float - :keyword search_units: The maximum number of search units available for this SKU. - :paramtype search_units: int - :keyword replicas: The maximum number of replicas available for this SKU. - :paramtype replicas: int - :keyword partitions: The maximum number of partitions available for this SKU. - :paramtype partitions: int - """ - super().__init__(**kwargs) - self.indexes = indexes - self.indexers = indexers - self.partition_storage_in_gigabytes = partition_storage_in_gigabytes - self.partition_vector_storage_in_gigabytes = partition_vector_storage_in_gigabytes - self.search_units = search_units - self.replicas = replicas - self.partitions = partitions - - class SystemData(_serialization.Model): """Metadata pertaining to creation and last modification of the resource. diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_search_management_client_enums.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_search_management_client_enums.py index 066476445868..f86ed9e1f4f6 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_search_management_client_enums.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/models/_search_management_client_enums.py @@ -23,6 +23,12 @@ class AadAuthFailureMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): of 401 (Unauthorized) and present a Bearer Challenge.""" +class ActionType(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.""" + + INTERNAL = "Internal" + + class AdminKeyKind(str, Enum, metaclass=CaseInsensitiveEnumMeta): """AdminKeyKind.""" @@ -33,12 +39,12 @@ class AdminKeyKind(str, Enum, metaclass=CaseInsensitiveEnumMeta): class ComputeType(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """Configure this property to support the search service using either the default compute or Azure + """Configure this property to support the search service using either the Default Compute or Azure Confidential Compute. """ DEFAULT = "default" - """Create the service with the default compute.""" + """Create the service with the Default Compute.""" CONFIDENTIAL = "confidential" """Create the service with Azure Confidential Compute.""" @@ -52,29 +58,6 @@ class CreatedByType(str, Enum, metaclass=CaseInsensitiveEnumMeta): KEY = "Key" -class FeatureName(str, Enum, metaclass=CaseInsensitiveEnumMeta): - """The name of the feature offered in this region.""" - - GROK = "Grok" - """Supports Grok feature.""" - IMAGE_VECTORIZATION = "ImageVectorization" - """Supports Image Vectorization feature.""" - DOCUMENT_INTELLIGENCE = "DocumentIntelligence" - """Supports Document Intelligence feature.""" - QUERY_REWRITE = "QueryRewrite" - """Supports Query Rewrite feature.""" - S3 = "S3" - """Supports S3 feature.""" - STORAGE_OPTIMIZED = "StorageOptimized" - """Supports Storage Optimized feature.""" - SEMANTIC_SEARCH = "SemanticSearch" - """Supports Semantic Search feature.""" - MEGA_STORE = "MegaStore" - """Supports Mega Store feature.""" - AVAILABILITY_ZONES = "AvailabilityZones" - """Supports Availability Zones feature.""" - - class HostingMode(str, Enum, metaclass=CaseInsensitiveEnumMeta): """Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed @@ -105,6 +88,16 @@ class IdentityType(str, Enum, metaclass=CaseInsensitiveEnumMeta): assignment of one or more user assigned identities.""" +class Origin(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit + logs UX. Default value is "user,system". + """ + + USER = "user" + SYSTEM = "system" + USER_SYSTEM = "user,system" + + class PrivateLinkServiceConnectionProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The provisioning state of the private link service connection. Valid values are Updating, Deleting, Failed, Succeeded, Incomplete, or Canceled. @@ -151,11 +144,11 @@ class ProvisioningState(str, Enum, metaclass=CaseInsensitiveEnumMeta): search service. This is because the free service uses capacity that is already set up. """ - SUCCEEDED = "Succeeded" + SUCCEEDED = "succeeded" """The last provisioning operation has completed successfully.""" - PROVISIONING = "Provisioning" + PROVISIONING = "provisioning" """The search service is being provisioned or scaled up or down.""" - FAILED = "Failed" + FAILED = "failed" """The last provisioning operation has failed.""" @@ -178,9 +171,6 @@ class SearchBypass(str, Enum, metaclass=CaseInsensitiveEnumMeta): NONE = "None" """Indicates that no origin can bypass the rules defined in the 'ipRules' section. This is the default.""" - AZURE_PORTAL = "AzurePortal" - """Indicates that requests originating from the Azure portal can bypass the rules defined in the - 'ipRules' section.""" AZURE_SERVICES = "AzureServices" """Indicates that requests originating from Azure trusted services can bypass the rules defined in the 'ipRules' section.""" @@ -348,3 +338,12 @@ class UnavailableNameReason(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The search service name doesn't match naming requirements.""" ALREADY_EXISTS = "AlreadyExists" """The search service name is already assigned to a different search service.""" + + +class UpgradeAvailable(str, Enum, metaclass=CaseInsensitiveEnumMeta): + """Indicates if the search service has an upgrade available.""" + + NOT_AVAILABLE = "notAvailable" + """An upgrade is currently not available for the service.""" + AVAILABLE = "available" + """There is an upgrade available for the service.""" diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/__init__.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/__init__.py index db5cfc541738..f7bf03a6069a 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/__init__.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/__init__.py @@ -13,7 +13,6 @@ from ._patch import * # pylint: disable=unused-wildcard-import from ._operations import Operations # type: ignore -from ._offerings_operations import OfferingsOperations # type: ignore from ._admin_keys_operations import AdminKeysOperations # type: ignore from ._query_keys_operations import QueryKeysOperations # type: ignore from ._services_operations import ServicesOperations # type: ignore @@ -30,7 +29,6 @@ __all__ = [ "Operations", - "OfferingsOperations", "AdminKeysOperations", "QueryKeysOperations", "ServicesOperations", diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_admin_keys_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_admin_keys_operations.py index f58a210fca8c..eb6eac1218d3 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_admin_keys_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_admin_keys_operations.py @@ -47,7 +47,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -88,7 +88,7 @@ def build_regenerate_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_network_security_perimeter_configurations_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_network_security_perimeter_configurations_operations.py index 30b823d9d8ed..12fe1d89befa 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_network_security_perimeter_configurations_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_network_security_perimeter_configurations_operations.py @@ -48,7 +48,7 @@ def build_list_by_service_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -81,7 +81,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -122,7 +122,7 @@ def build_reconcile_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_offerings_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_offerings_operations.py deleted file mode 100644 index 45180e68c906..000000000000 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_offerings_operations.py +++ /dev/null @@ -1,150 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- -import sys -from typing import Any, Callable, Dict, Iterable, Optional, TypeVar -import urllib.parse - -from azure.core.exceptions import ( - ClientAuthenticationError, - HttpResponseError, - ResourceExistsError, - ResourceNotFoundError, - ResourceNotModifiedError, - map_error, -) -from azure.core.paging import ItemPaged -from azure.core.pipeline import PipelineResponse -from azure.core.rest import HttpRequest, HttpResponse -from azure.core.tracing.decorator import distributed_trace -from azure.core.utils import case_insensitive_dict -from azure.mgmt.core.exceptions import ARMErrorFormat - -from .. import models as _models -from .._serialization import Serializer - -if sys.version_info >= (3, 9): - from collections.abc import MutableMapping -else: - from typing import MutableMapping # type: ignore -T = TypeVar("T") -ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] - -_SERIALIZER = Serializer() -_SERIALIZER.client_side_validation = False - - -def build_list_request(**kwargs: Any) -> HttpRequest: - _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) - accept = _headers.pop("Accept", "application/json") - - # Construct URL - _url = kwargs.pop("template_url", "/providers/Microsoft.Search/offerings") - - # Construct parameters - _params["api-version"] = _SERIALIZER.query("api_version", api_version, "str") - - # Construct headers - _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") - - return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs) - - -class OfferingsOperations: - """ - .. warning:: - **DO NOT** instantiate this class directly. - - Instead, you should access the following operations through - :class:`~azure.mgmt.search.SearchManagementClient`'s - :attr:`offerings` attribute. - """ - - models = _models - - def __init__(self, *args, **kwargs): - input_args = list(args) - self._client = input_args.pop(0) if input_args else kwargs.pop("client") - self._config = input_args.pop(0) if input_args else kwargs.pop("config") - self._serialize = input_args.pop(0) if input_args else kwargs.pop("serializer") - self._deserialize = input_args.pop(0) if input_args else kwargs.pop("deserializer") - - @distributed_trace - def list(self, **kwargs: Any) -> Iterable["_models.OfferingsByRegion"]: - """Lists all of the features and SKUs offered by the Azure AI Search service in each region. - - :return: An iterator like instance of either OfferingsByRegion or the result of cls(response) - :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.search.models.OfferingsByRegion] - :raises ~azure.core.exceptions.HttpResponseError: - """ - _headers = kwargs.pop("headers", {}) or {} - _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - - api_version: str = kwargs.pop("api_version", _params.pop("api-version", self._config.api_version)) - cls: ClsType[_models.OfferingsListResult] = kwargs.pop("cls", None) - - error_map: MutableMapping = { - 401: ClientAuthenticationError, - 404: ResourceNotFoundError, - 409: ResourceExistsError, - 304: ResourceNotModifiedError, - } - error_map.update(kwargs.pop("error_map", {}) or {}) - - def prepare_request(next_link=None): - if not next_link: - - _request = build_list_request( - api_version=api_version, - headers=_headers, - params=_params, - ) - _request.url = self._client.format_url(_request.url) - - else: - # make call to next link with the client's api-version - _parsed_next_link = urllib.parse.urlparse(next_link) - _next_request_params = case_insensitive_dict( - { - key: [urllib.parse.quote(v) for v in value] - for key, value in urllib.parse.parse_qs(_parsed_next_link.query).items() - } - ) - _next_request_params["api-version"] = self._config.api_version - _request = HttpRequest( - "GET", urllib.parse.urljoin(next_link, _parsed_next_link.path), params=_next_request_params - ) - _request.url = self._client.format_url(_request.url) - _request.method = "GET" - return _request - - def extract_data(pipeline_response): - deserialized = self._deserialize("OfferingsListResult", pipeline_response) - list_of_elem = deserialized.value - if cls: - list_of_elem = cls(list_of_elem) # type: ignore - return None, iter(list_of_elem) - - def get_next(next_link=None): - _request = prepare_request(next_link) - - _stream = False - pipeline_response: PipelineResponse = self._client._pipeline.run( # pylint: disable=protected-access - _request, stream=_stream, **kwargs - ) - response = pipeline_response.http_response - - if response.status_code not in [200]: - map_error(status_code=response.status_code, response=response, error_map=error_map) - raise HttpResponseError(response=response, error_format=ARMErrorFormat) - - return pipeline_response - - return ItemPaged(get_next, extract_data) diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_operations.py index ad0a0d32c15f..2369497314c1 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_operations.py @@ -42,7 +42,7 @@ def build_list_request(**kwargs: Any) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_endpoint_connections_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_endpoint_connections_operations.py index 38bd864e066b..b505555ae6dd 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_endpoint_connections_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_endpoint_connections_operations.py @@ -51,7 +51,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -98,7 +98,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -142,7 +142,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -185,7 +185,7 @@ def build_list_by_service_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_link_resources_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_link_resources_operations.py index 8d736dc804d0..e42901c1f4c9 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_link_resources_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_private_link_resources_operations.py @@ -49,7 +49,7 @@ def build_list_supported_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_query_keys_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_query_keys_operations.py index 11c2379550b0..a689ed0ce8cf 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_query_keys_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_query_keys_operations.py @@ -50,7 +50,7 @@ def build_create_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -91,7 +91,7 @@ def build_list_by_search_service_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -132,7 +132,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_search_management_client_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_search_management_client_operations.py index 1bd2c4ee34d9..e43edc959d3a 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_search_management_client_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_search_management_client_operations.py @@ -43,7 +43,7 @@ def build_usage_by_subscription_sku_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_services_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_services_operations.py index 74a9b296905e..00e98a1f7de4 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_services_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_services_operations.py @@ -55,7 +55,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -96,7 +96,7 @@ def build_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -137,7 +137,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -177,7 +177,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -212,7 +212,7 @@ def build_list_by_resource_group_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -244,7 +244,7 @@ def build_list_by_subscription_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -272,7 +272,7 @@ def build_check_name_availability_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -305,7 +305,7 @@ def build_upgrade_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -445,9 +445,9 @@ def begin_create_or_update( :param search_service_name: The name of the Azure AI Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and - 60 characters in length. Search service names must be globally unique since they are part of - the service URI (https://\\ :code:``.search.windows.net). You cannot change the service - name after the service is created. Required. + 60 characters in length. Search service names must be unique since they are part of the service + URI (https://\\ :code:``.search.windows.net). You cannot change the service name after + the service is created. Required. :type search_service_name: str :param service: The definition of the search service to create or update. Required. :type service: ~azure.mgmt.search.models.SearchService @@ -486,9 +486,9 @@ def begin_create_or_update( :param search_service_name: The name of the Azure AI Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and - 60 characters in length. Search service names must be globally unique since they are part of - the service URI (https://\\ :code:``.search.windows.net). You cannot change the service - name after the service is created. Required. + 60 characters in length. Search service names must be unique since they are part of the service + URI (https://\\ :code:``.search.windows.net). You cannot change the service name after + the service is created. Required. :type search_service_name: str :param service: The definition of the search service to create or update. Required. :type service: IO[bytes] @@ -525,9 +525,9 @@ def begin_create_or_update( :param search_service_name: The name of the Azure AI Search service to create or update. Search service names must only contain lowercase letters, digits or dashes, cannot use dash as the first two or last one characters, cannot contain consecutive dashes, and must be between 2 and - 60 characters in length. Search service names must be globally unique since they are part of - the service URI (https://\\ :code:``.search.windows.net). You cannot change the service - name after the service is created. Required. + 60 characters in length. Search service names must be unique since they are part of the service + URI (https://\\ :code:``.search.windows.net). You cannot change the service name after + the service is created. Required. :type search_service_name: str :param service: The definition of the search service to create or update. Is either a SearchService type or a IO[bytes] type. Required. diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_shared_private_link_resources_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_shared_private_link_resources_operations.py index 0a8bbf431c45..a068a5af9d2e 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_shared_private_link_resources_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_shared_private_link_resources_operations.py @@ -55,7 +55,7 @@ def build_create_or_update_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) content_type: Optional[str] = kwargs.pop("content_type", _headers.pop("Content-Type", None)) accept = _headers.pop("Accept", "application/json") @@ -102,7 +102,7 @@ def build_get_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -146,7 +146,7 @@ def build_delete_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL @@ -189,7 +189,7 @@ def build_list_by_service_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_usages_operations.py b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_usages_operations.py index b527183fa9d5..4c10cd378236 100644 --- a/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_usages_operations.py +++ b/sdk/search/azure-mgmt-search/azure/mgmt/search/operations/_usages_operations.py @@ -44,7 +44,7 @@ def build_list_by_subscription_request( _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) - api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-02-01-preview")) + api_version: str = kwargs.pop("api_version", _params.pop("api-version", "2025-05-01")) accept = _headers.pop("Accept", "application/json") # Construct URL diff --git a/sdk/search/azure-mgmt-search/generated_samples/create_or_update_shared_private_link_resource.py b/sdk/search/azure-mgmt-search/generated_samples/create_or_update_shared_private_link_resource.py index 9f6625d93ffb..f11aa08d0a8f 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/create_or_update_shared_private_link_resource.py +++ b/sdk/search/azure-mgmt-search/generated_samples/create_or_update_shared_private_link_resource.py @@ -46,6 +46,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/CreateOrUpdateSharedPrivateLinkResource.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/CreateOrUpdateSharedPrivateLinkResource.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/delete_private_endpoint_connection.py b/sdk/search/azure-mgmt-search/generated_samples/delete_private_endpoint_connection.py index 9bd2626314b6..7b6abf5fa408 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/delete_private_endpoint_connection.py +++ b/sdk/search/azure-mgmt-search/generated_samples/delete_private_endpoint_connection.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/DeletePrivateEndpointConnection.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/DeletePrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/delete_shared_private_link_resource.py b/sdk/search/azure-mgmt-search/generated_samples/delete_shared_private_link_resource.py index 2264a196489e..06c3ba7513a7 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/delete_shared_private_link_resource.py +++ b/sdk/search/azure-mgmt-search/generated_samples/delete_shared_private_link_resource.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/DeleteSharedPrivateLinkResource.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/DeleteSharedPrivateLinkResource.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/get_private_endpoint_connection.py b/sdk/search/azure-mgmt-search/generated_samples/get_private_endpoint_connection.py index 9ae655ff4a69..fa2929af3c5c 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/get_private_endpoint_connection.py +++ b/sdk/search/azure-mgmt-search/generated_samples/get_private_endpoint_connection.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/GetPrivateEndpointConnection.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/GetPrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/get_quota_usage.py b/sdk/search/azure-mgmt-search/generated_samples/get_quota_usage.py index 976f8fd1cafa..ff23bb5b3e09 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/get_quota_usage.py +++ b/sdk/search/azure-mgmt-search/generated_samples/get_quota_usage.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/GetQuotaUsage.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/GetQuotaUsage.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/get_quota_usages_list.py b/sdk/search/azure-mgmt-search/generated_samples/get_quota_usages_list.py index 89bf35f426b2..4524cb89f073 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/get_quota_usages_list.py +++ b/sdk/search/azure-mgmt-search/generated_samples/get_quota_usages_list.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/GetQuotaUsagesList.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/GetQuotaUsagesList.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/get_shared_private_link_resource.py b/sdk/search/azure-mgmt-search/generated_samples/get_shared_private_link_resource.py index af54a5eec371..02395547a600 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/get_shared_private_link_resource.py +++ b/sdk/search/azure-mgmt-search/generated_samples/get_shared_private_link_resource.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/GetSharedPrivateLinkResource.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/GetSharedPrivateLinkResource.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/list_private_endpoint_connections_by_service.py b/sdk/search/azure-mgmt-search/generated_samples/list_private_endpoint_connections_by_service.py index 541f38cff278..01d6ba3f5ce4 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/list_private_endpoint_connections_by_service.py +++ b/sdk/search/azure-mgmt-search/generated_samples/list_private_endpoint_connections_by_service.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/ListPrivateEndpointConnectionsByService.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/ListPrivateEndpointConnectionsByService.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/list_shared_private_link_resources_by_service.py b/sdk/search/azure-mgmt-search/generated_samples/list_shared_private_link_resources_by_service.py index e8daec3b282f..5c0e5ab16d5e 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/list_shared_private_link_resources_by_service.py +++ b/sdk/search/azure-mgmt-search/generated_samples/list_shared_private_link_resources_by_service.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/ListSharedPrivateLinkResourcesByService.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/ListSharedPrivateLinkResourcesByService.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/list_supported_private_link_resources.py b/sdk/search/azure-mgmt-search/generated_samples/list_supported_private_link_resources.py index 9ce7c82a7afc..962bd46afb33 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/list_supported_private_link_resources.py +++ b/sdk/search/azure-mgmt-search/generated_samples/list_supported_private_link_resources.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/ListSupportedPrivateLinkResources.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/ListSupportedPrivateLinkResources.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_get.py b/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_get.py index 5c7af4ee40be..07c57b50932a 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_get.py +++ b/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_get.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/NetworkSecurityPerimeterConfigurationsGet.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/NetworkSecurityPerimeterConfigurationsGet.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_list_by_service.py b/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_list_by_service.py index 52a49088720e..47e3ad5fa345 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_list_by_service.py +++ b/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_list_by_service.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/NetworkSecurityPerimeterConfigurationsListByService.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/NetworkSecurityPerimeterConfigurationsListByService.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_reconcile.py b/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_reconcile.py index 6c95d3183c37..30743e8fe3c3 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_reconcile.py +++ b/sdk/search/azure-mgmt-search/generated_samples/network_security_perimeter_configurations_reconcile.py @@ -37,6 +37,6 @@ def main(): ).result() -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/NetworkSecurityPerimeterConfigurationsReconcile.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/NetworkSecurityPerimeterConfigurationsReconcile.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service.py index 220a13de75bd..e0b058e4871c 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateOrUpdateService.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateOrUpdateService.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_auth_options.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_auth_options.py index 7a25dbcf4594..3c3ef19c3c28 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_auth_options.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_auth_options.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateOrUpdateServiceAuthOptions.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateOrUpdateServiceAuthOptions.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_disable_local_auth.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_disable_local_auth.py index bb6122f9de89..45c8d14f60c6 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_disable_local_auth.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_disable_local_auth.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateOrUpdateServiceDisableLocalAuth.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_private_endpoints.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_private_endpoints.py index 68c0f33622b6..dee7fbbf89c8 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_private_endpoints.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_private_endpoints.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_public_custom_ips.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_public_custom_ips.py index 7caefdcd1340..a0be5e52e65a 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_public_custom_ips.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_public_custom_ips.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_public_custom_ips_and_bypass.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_public_custom_ips_and_bypass.py index f2cc81d01f2d..a372940cfc15 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_public_custom_ips_and_bypass.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_to_allow_access_from_public_custom_ips_and_bypass.py @@ -39,7 +39,7 @@ def main(): "computeType": "default", "hostingMode": "default", "networkRuleSet": { - "bypass": "AzurePortal", + "bypass": "AzureServices", "ipRules": [{"value": "123.4.5.6"}, {"value": "123.4.6.0/18"}], }, "partitionCount": 1, @@ -52,6 +52,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_cmk_enforcement.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_cmk_enforcement.py index d957e2b08350..5bdeca56a119 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_cmk_enforcement.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_cmk_enforcement.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateOrUpdateServiceWithCmkEnforcement.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_data_exfiltration.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_data_exfiltration.py index af61583249b2..4a0f733a4894 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_data_exfiltration.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_data_exfiltration.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateOrUpdateServiceWithDataExfiltration.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateOrUpdateServiceWithDataExfiltration.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_identity.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_identity.py index 44dfe736534f..60c6911d3c5e 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_identity.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_service_with_identity.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateOrUpdateServiceWithIdentity.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateOrUpdateServiceWithIdentity.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_with_semantic_search.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_with_semantic_search.py index 03496766f6f3..8877b7f207fb 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_with_semantic_search.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_or_update_with_semantic_search.py @@ -49,6 +49,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateOrUpdateWithSemanticSearch.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateOrUpdateWithSemanticSearch.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_create_query_key.py b/sdk/search/azure-mgmt-search/generated_samples/search_create_query_key.py index 15f76a8cd0b5..aa04a17df91f 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_create_query_key.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_create_query_key.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchCreateQueryKey.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchCreateQueryKey.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_delete_query_key.py b/sdk/search/azure-mgmt-search/generated_samples/search_delete_query_key.py index 9bb6d3372568..f27d1907099f 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_delete_query_key.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_delete_query_key.py @@ -37,6 +37,6 @@ def main(): ) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchDeleteQueryKey.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchDeleteQueryKey.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_delete_service.py b/sdk/search/azure-mgmt-search/generated_samples/search_delete_service.py index fd78708a4be5..0ddabf94d0ee 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_delete_service.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_delete_service.py @@ -36,6 +36,6 @@ def main(): ) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchDeleteService.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchDeleteService.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_get_admin_keys.py b/sdk/search/azure-mgmt-search/generated_samples/search_get_admin_keys.py index 52ce1e98b366..63da8802eae7 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_get_admin_keys.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_get_admin_keys.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchGetAdminKeys.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchGetAdminKeys.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_get_service.py b/sdk/search/azure-mgmt-search/generated_samples/search_get_service.py index 5e7505e50e00..36731498dc08 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_get_service.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_get_service.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchGetService.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchGetService.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_list_offerings.py b/sdk/search/azure-mgmt-search/generated_samples/search_list_offerings.py deleted file mode 100644 index 551f28f83346..000000000000 --- a/sdk/search/azure-mgmt-search/generated_samples/search_list_offerings.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# 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. -# -------------------------------------------------------------------------- - -from azure.identity import DefaultAzureCredential - -from azure.mgmt.search import SearchManagementClient - -""" -# PREREQUISITES - pip install azure-identity - pip install azure-mgmt-search -# USAGE - python search_list_offerings.py - - Before run the sample, please set the values of the client ID, tenant ID and client secret - of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, - AZURE_CLIENT_SECRET. For more info about how to get the value, please see: - https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal -""" - - -def main(): - client = SearchManagementClient( - credential=DefaultAzureCredential(), - subscription_id="SUBSCRIPTION_ID", - ) - - response = client.offerings.list() - for item in response: - print(item) - - -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchListOfferings.json -if __name__ == "__main__": - main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_list_operations.py b/sdk/search/azure-mgmt-search/generated_samples/search_list_operations.py index a7431ca1afc0..28669b1ceb25 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_list_operations.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_list_operations.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchListOperations.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchListOperations.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_list_query_keys_by_search_service.py b/sdk/search/azure-mgmt-search/generated_samples/search_list_query_keys_by_search_service.py index 256ef2ca8d34..302e4b4546ce 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_list_query_keys_by_search_service.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_list_query_keys_by_search_service.py @@ -38,6 +38,6 @@ def main(): print(item) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchListQueryKeysBySearchService.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchListQueryKeysBySearchService.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_list_services_by_resource_group.py b/sdk/search/azure-mgmt-search/generated_samples/search_list_services_by_resource_group.py index d3ecd3208fb0..000614e47b0c 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_list_services_by_resource_group.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_list_services_by_resource_group.py @@ -37,6 +37,6 @@ def main(): print(item) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchListServicesByResourceGroup.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchListServicesByResourceGroup.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_list_services_by_subscription.py b/sdk/search/azure-mgmt-search/generated_samples/search_list_services_by_subscription.py index ea7647c56a5a..58c756a6896c 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_list_services_by_subscription.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_list_services_by_subscription.py @@ -35,6 +35,6 @@ def main(): print(item) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchListServicesBySubscription.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchListServicesBySubscription.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_regenerate_admin_key.py b/sdk/search/azure-mgmt-search/generated_samples/search_regenerate_admin_key.py index 4d8d40bda51a..653c7733f09a 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_regenerate_admin_key.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_regenerate_admin_key.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchRegenerateAdminKey.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchRegenerateAdminKey.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service.py index c2706755f0a5..a1cd26ec91a6 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateService.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateService.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_auth_options.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_auth_options.py index 5aacaabba3fc..8573152187ce 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_auth_options.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_auth_options.py @@ -44,6 +44,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateServiceAuthOptions.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateServiceAuthOptions.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_disable_local_auth.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_disable_local_auth.py index 24b5d78c54c9..1f58f0fa1368 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_disable_local_auth.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_disable_local_auth.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateServiceDisableLocalAuth.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateServiceDisableLocalAuth.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_private_endpoints.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_private_endpoints.py index b508108e46de..d8237e419f80 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_private_endpoints.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_private_endpoints.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_public_custom_ips.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_public_custom_ips.py index d317b20fdaee..f4a7db3907c1 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_public_custom_ips.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_public_custom_ips.py @@ -45,6 +45,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_public_custom_ips_and_bypass.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_public_custom_ips_and_bypass.py index f8cc911d1240..bd70f9e52c88 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_public_custom_ips_and_bypass.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_allow_access_from_public_custom_ips_and_bypass.py @@ -36,7 +36,7 @@ def main(): service={ "properties": { "networkRuleSet": { - "bypass": "AzurePortal", + "bypass": "AzureServices", "ipRules": [{"value": "123.4.5.6"}, {"value": "123.4.6.0/18"}], }, "partitionCount": 1, @@ -48,6 +48,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_remove_identity.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_remove_identity.py index 076e291f7e9a..95ecc08cc307 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_remove_identity.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_to_remove_identity.py @@ -38,6 +38,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateServiceToRemoveIdentity.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateServiceToRemoveIdentity.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_cmk_enforcement.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_cmk_enforcement.py index 22ec0ad0a0ea..77a030d91929 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_cmk_enforcement.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_cmk_enforcement.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateServiceWithCmkEnforcement.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateServiceWithCmkEnforcement.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_data_exfiltration.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_data_exfiltration.py index 768c7c0a4fc3..4a7ec6bfd14c 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_data_exfiltration.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_data_exfiltration.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateServiceWithDataExfiltration.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateServiceWithDataExfiltration.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_semantic_search.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_semantic_search.py index 66a67aa9b9f6..60e4efd94b5d 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_semantic_search.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_semantic_search.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateServiceWithSemanticSearch.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateServiceWithSemanticSearch.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_sku.py b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_sku.py index b0692ac2da94..ef644eaf9121 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_sku.py +++ b/sdk/search/azure-mgmt-search/generated_samples/search_update_service_with_sku.py @@ -41,6 +41,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/SearchUpdateServiceWithSku.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/SearchUpdateServiceWithSku.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/update_private_endpoint_connection.py b/sdk/search/azure-mgmt-search/generated_samples/update_private_endpoint_connection.py index da715883a5e5..b0e34a3f0779 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/update_private_endpoint_connection.py +++ b/sdk/search/azure-mgmt-search/generated_samples/update_private_endpoint_connection.py @@ -43,6 +43,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/UpdatePrivateEndpointConnection.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/UpdatePrivateEndpointConnection.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_samples/upgrade_search_service_to_latest_version.py b/sdk/search/azure-mgmt-search/generated_samples/upgrade_search_service_to_latest_version.py index f136dc361b6c..ca51e4dc78ea 100644 --- a/sdk/search/azure-mgmt-search/generated_samples/upgrade_search_service_to_latest_version.py +++ b/sdk/search/azure-mgmt-search/generated_samples/upgrade_search_service_to_latest_version.py @@ -37,6 +37,6 @@ def main(): print(response) -# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/preview/2025-02-01-preview/examples/UpgradeSearchServiceToLatestVersion.json +# x-ms-original-file: specification/search/resource-manager/Microsoft.Search/stable/2025-05-01/examples/UpgradeSearchServiceToLatestVersion.json if __name__ == "__main__": main() diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management.py index d0a2e3a0c5bd..4ed7ed23a7b9 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management.py @@ -24,7 +24,7 @@ def test_usage_by_subscription_sku(self, resource_group): response = self.client.usage_by_subscription_sku( location="str", sku_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_admin_keys_operations.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_admin_keys_operations.py index 7d019ac207fd..b24cc56a7942 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_admin_keys_operations.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_admin_keys_operations.py @@ -24,7 +24,7 @@ def test_admin_keys_get(self, resource_group): response = self.client.admin_keys.get( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_admin_keys_regenerate(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", key_kind="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_admin_keys_operations_async.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_admin_keys_operations_async.py index 05e1acaaaabe..537e68ac8eb9 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_admin_keys_operations_async.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_admin_keys_operations_async.py @@ -25,7 +25,7 @@ async def test_admin_keys_get(self, resource_group): response = await self.client.admin_keys.get( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_admin_keys_regenerate(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", key_kind="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_async.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_async.py index 18f8598bc4ca..4eb76cd346b6 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_async.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_async.py @@ -25,7 +25,7 @@ async def test_usage_by_subscription_sku(self, resource_group): response = await self.client.usage_by_subscription_sku( location="str", sku_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_network_security_perimeter_configurations_operations.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_network_security_perimeter_configurations_operations.py index 9c868607cd8e..179d189e39c5 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_network_security_perimeter_configurations_operations.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_network_security_perimeter_configurations_operations.py @@ -24,7 +24,7 @@ def test_network_security_perimeter_configurations_list_by_service(self, resourc response = self.client.network_security_perimeter_configurations.list_by_service( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_network_security_perimeter_configurations_get(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", nsp_config_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_network_security_perimeter_configurations_begin_reconcile(self, resourc resource_group_name=resource_group.name, search_service_name="str", nsp_config_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_network_security_perimeter_configurations_operations_async.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_network_security_perimeter_configurations_operations_async.py index 19fc7bdabcdb..62476a20d40f 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_network_security_perimeter_configurations_operations_async.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_network_security_perimeter_configurations_operations_async.py @@ -25,7 +25,7 @@ async def test_network_security_perimeter_configurations_list_by_service(self, r response = self.client.network_security_perimeter_configurations.list_by_service( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_network_security_perimeter_configurations_get(self, resource_grou resource_group_name=resource_group.name, search_service_name="str", nsp_config_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -52,7 +52,7 @@ async def test_network_security_perimeter_configurations_begin_reconcile(self, r resource_group_name=resource_group.name, search_service_name="str", nsp_config_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_operations.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_operations.py index 65ab1be8bad0..0917694f8a6a 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_operations.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_operations.py @@ -22,7 +22,7 @@ def setup_method(self, method): @recorded_by_proxy def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_operations_async.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_operations_async.py index bb81a4848c94..1746785cafd8 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_operations_async.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_operations_async.py @@ -23,7 +23,7 @@ def setup_method(self, method): @recorded_by_proxy_async async def test_operations_list(self, resource_group): response = self.client.operations.list( - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_endpoint_connections_operations.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_endpoint_connections_operations.py index a9175912c44e..e644d8c37dcb 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_endpoint_connections_operations.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_endpoint_connections_operations.py @@ -38,9 +38,17 @@ def test_private_endpoint_connections_update(self, resource_group): }, "provisioningState": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -53,7 +61,7 @@ def test_private_endpoint_connections_get(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", private_endpoint_connection_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -66,7 +74,7 @@ def test_private_endpoint_connections_delete(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", private_endpoint_connection_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -78,7 +86,7 @@ def test_private_endpoint_connections_list_by_service(self, resource_group): response = self.client.private_endpoint_connections.list_by_service( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_endpoint_connections_operations_async.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_endpoint_connections_operations_async.py index 530364e717eb..40072d778937 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_endpoint_connections_operations_async.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_endpoint_connections_operations_async.py @@ -39,9 +39,17 @@ async def test_private_endpoint_connections_update(self, resource_group): }, "provisioningState": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -54,7 +62,7 @@ async def test_private_endpoint_connections_get(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", private_endpoint_connection_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -67,7 +75,7 @@ async def test_private_endpoint_connections_delete(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", private_endpoint_connection_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -79,7 +87,7 @@ async def test_private_endpoint_connections_list_by_service(self, resource_group response = self.client.private_endpoint_connections.list_by_service( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_link_resources_operations.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_link_resources_operations.py index a8b333f2595d..8f0ba5742f82 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_link_resources_operations.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_link_resources_operations.py @@ -24,7 +24,7 @@ def test_private_link_resources_list_supported(self, resource_group): response = self.client.private_link_resources.list_supported( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_link_resources_operations_async.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_link_resources_operations_async.py index 1db5140fed86..127bfee7fac2 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_link_resources_operations_async.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_private_link_resources_operations_async.py @@ -25,7 +25,7 @@ async def test_private_link_resources_list_supported(self, resource_group): response = self.client.private_link_resources.list_supported( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_query_keys_operations.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_query_keys_operations.py index 5224dd513560..fa89e0ce01ff 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_query_keys_operations.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_query_keys_operations.py @@ -25,7 +25,7 @@ def test_query_keys_create(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -37,7 +37,7 @@ def test_query_keys_list_by_search_service(self, resource_group): response = self.client.query_keys.list_by_search_service( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -50,7 +50,7 @@ def test_query_keys_delete(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", key="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_query_keys_operations_async.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_query_keys_operations_async.py index 2c297a1f4427..8aab03e30b32 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_query_keys_operations_async.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_query_keys_operations_async.py @@ -26,7 +26,7 @@ async def test_query_keys_create(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -38,7 +38,7 @@ async def test_query_keys_list_by_search_service(self, resource_group): response = self.client.query_keys.list_by_search_service( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -51,7 +51,7 @@ async def test_query_keys_delete(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", key="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_services_operations.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_services_operations.py index a978ff9b56e3..93a133ffad12 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_services_operations.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_services_operations.py @@ -58,6 +58,14 @@ def test_services_begin_create_or_update(self, resource_group): }, "provisioningState": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", } ], @@ -65,7 +73,7 @@ def test_services_begin_create_or_update(self, resource_group): "publicNetworkAccess": "enabled", "replicaCount": 1, "semanticSearch": "str", - "serviceUpgradeDate": "2020-02-20 00:00:00", + "serviceUpgradedAt": "2020-02-20 00:00:00", "sharedPrivateLinkResources": [ { "id": "str", @@ -78,6 +86,14 @@ def test_services_begin_create_or_update(self, resource_group): "resourceRegion": "str", "status": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", } ], @@ -94,9 +110,9 @@ def test_services_begin_create_or_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "upgradeAvailable": bool, + "upgradeAvailable": "str", }, - api_version="2025-02-01-preview", + api_version="2025-05-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -142,6 +158,14 @@ def test_services_update(self, resource_group): }, "provisioningState": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", } ], @@ -149,7 +173,7 @@ def test_services_update(self, resource_group): "publicNetworkAccess": "enabled", "replicaCount": 1, "semanticSearch": "str", - "serviceUpgradeDate": "2020-02-20 00:00:00", + "serviceUpgradedAt": "2020-02-20 00:00:00", "sharedPrivateLinkResources": [ { "id": "str", @@ -162,6 +186,14 @@ def test_services_update(self, resource_group): "resourceRegion": "str", "status": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", } ], @@ -178,9 +210,9 @@ def test_services_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "upgradeAvailable": bool, + "upgradeAvailable": "str", }, - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -192,7 +224,7 @@ def test_services_get(self, resource_group): response = self.client.services.get( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -204,7 +236,7 @@ def test_services_delete(self, resource_group): response = self.client.services.delete( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -215,7 +247,7 @@ def test_services_delete(self, resource_group): def test_services_list_by_resource_group(self, resource_group): response = self.client.services.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -225,7 +257,7 @@ def test_services_list_by_resource_group(self, resource_group): @recorded_by_proxy def test_services_list_by_subscription(self, resource_group): response = self.client.services.list_by_subscription( - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r for r in response] # please add some check logic here by yourself @@ -236,7 +268,7 @@ def test_services_list_by_subscription(self, resource_group): def test_services_check_name_availability(self, resource_group): response = self.client.services.check_name_availability( name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", type="searchServices", ) @@ -249,7 +281,7 @@ def test_services_begin_upgrade(self, resource_group): response = self.client.services.begin_upgrade( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_services_operations_async.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_services_operations_async.py index b020f3189204..430a6a405ea9 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_services_operations_async.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_services_operations_async.py @@ -60,6 +60,14 @@ async def test_services_begin_create_or_update(self, resource_group): }, "provisioningState": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", } ], @@ -67,7 +75,7 @@ async def test_services_begin_create_or_update(self, resource_group): "publicNetworkAccess": "enabled", "replicaCount": 1, "semanticSearch": "str", - "serviceUpgradeDate": "2020-02-20 00:00:00", + "serviceUpgradedAt": "2020-02-20 00:00:00", "sharedPrivateLinkResources": [ { "id": "str", @@ -80,6 +88,14 @@ async def test_services_begin_create_or_update(self, resource_group): "resourceRegion": "str", "status": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", } ], @@ -96,9 +112,9 @@ async def test_services_begin_create_or_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "upgradeAvailable": bool, + "upgradeAvailable": "str", }, - api_version="2025-02-01-preview", + api_version="2025-05-01", ) ).result() # call '.result()' to poll until service return final result @@ -145,6 +161,14 @@ async def test_services_update(self, resource_group): }, "provisioningState": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", } ], @@ -152,7 +176,7 @@ async def test_services_update(self, resource_group): "publicNetworkAccess": "enabled", "replicaCount": 1, "semanticSearch": "str", - "serviceUpgradeDate": "2020-02-20 00:00:00", + "serviceUpgradedAt": "2020-02-20 00:00:00", "sharedPrivateLinkResources": [ { "id": "str", @@ -165,6 +189,14 @@ async def test_services_update(self, resource_group): "resourceRegion": "str", "status": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", } ], @@ -181,9 +213,9 @@ async def test_services_update(self, resource_group): }, "tags": {"str": "str"}, "type": "str", - "upgradeAvailable": bool, + "upgradeAvailable": "str", }, - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -195,7 +227,7 @@ async def test_services_get(self, resource_group): response = await self.client.services.get( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -207,7 +239,7 @@ async def test_services_delete(self, resource_group): response = await self.client.services.delete( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -218,7 +250,7 @@ async def test_services_delete(self, resource_group): async def test_services_list_by_resource_group(self, resource_group): response = self.client.services.list_by_resource_group( resource_group_name=resource_group.name, - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -228,7 +260,7 @@ async def test_services_list_by_resource_group(self, resource_group): @recorded_by_proxy_async async def test_services_list_by_subscription(self, resource_group): response = self.client.services.list_by_subscription( - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r async for r in response] # please add some check logic here by yourself @@ -239,7 +271,7 @@ async def test_services_list_by_subscription(self, resource_group): async def test_services_check_name_availability(self, resource_group): response = await self.client.services.check_name_availability( name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", type="searchServices", ) @@ -253,7 +285,7 @@ async def test_services_begin_upgrade(self, resource_group): await self.client.services.begin_upgrade( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) ).result() # call '.result()' to poll until service return final result diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_shared_private_link_resources_operations.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_shared_private_link_resources_operations.py index 1d8d15d74c2d..f38e1dae141a 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_shared_private_link_resources_operations.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_shared_private_link_resources_operations.py @@ -36,9 +36,17 @@ def test_shared_private_link_resources_begin_create_or_update(self, resource_gro "resourceRegion": "str", "status": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2025-02-01-preview", + api_version="2025-05-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -51,7 +59,7 @@ def test_shared_private_link_resources_get(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", shared_private_link_resource_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -64,7 +72,7 @@ def test_shared_private_link_resources_begin_delete(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", shared_private_link_resource_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ).result() # call '.result()' to poll until service return final result # please add some check logic here by yourself @@ -76,7 +84,7 @@ def test_shared_private_link_resources_list_by_service(self, resource_group): response = self.client.shared_private_link_resources.list_by_service( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_shared_private_link_resources_operations_async.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_shared_private_link_resources_operations_async.py index ed1fb76ee5e9..be86d33b544e 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_shared_private_link_resources_operations_async.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_shared_private_link_resources_operations_async.py @@ -38,9 +38,17 @@ async def test_shared_private_link_resources_begin_create_or_update(self, resour "resourceRegion": "str", "status": "str", }, + "systemData": { + "createdAt": "2020-02-20 00:00:00", + "createdBy": "str", + "createdByType": "str", + "lastModifiedAt": "2020-02-20 00:00:00", + "lastModifiedBy": "str", + "lastModifiedByType": "str", + }, "type": "str", }, - api_version="2025-02-01-preview", + api_version="2025-05-01", ) ).result() # call '.result()' to poll until service return final result @@ -54,7 +62,7 @@ async def test_shared_private_link_resources_get(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", shared_private_link_resource_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) # please add some check logic here by yourself @@ -68,7 +76,7 @@ async def test_shared_private_link_resources_begin_delete(self, resource_group): resource_group_name=resource_group.name, search_service_name="str", shared_private_link_resource_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) ).result() # call '.result()' to poll until service return final result @@ -81,7 +89,7 @@ async def test_shared_private_link_resources_list_by_service(self, resource_grou response = self.client.shared_private_link_resources.list_by_service( resource_group_name=resource_group.name, search_service_name="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_usages_operations.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_usages_operations.py index cff1765e1910..98cc7343b1be 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_usages_operations.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_usages_operations.py @@ -23,7 +23,7 @@ def setup_method(self, method): def test_usages_list_by_subscription(self, resource_group): response = self.client.usages.list_by_subscription( location="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r for r in response] # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_usages_operations_async.py b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_usages_operations_async.py index 873981ba4766..c03f90fade77 100644 --- a/sdk/search/azure-mgmt-search/generated_tests/test_search_management_usages_operations_async.py +++ b/sdk/search/azure-mgmt-search/generated_tests/test_search_management_usages_operations_async.py @@ -24,7 +24,7 @@ def setup_method(self, method): async def test_usages_list_by_subscription(self, resource_group): response = self.client.usages.list_by_subscription( location="str", - api_version="2025-02-01-preview", + api_version="2025-05-01", ) result = [r async for r in response] # please add some check logic here by yourself diff --git a/sdk/search/azure-mgmt-search/sdk_packaging.toml b/sdk/search/azure-mgmt-search/sdk_packaging.toml index 471215f884be..3f846434060f 100644 --- a/sdk/search/azure-mgmt-search/sdk_packaging.toml +++ b/sdk/search/azure-mgmt-search/sdk_packaging.toml @@ -3,7 +3,7 @@ package_name = "azure-mgmt-search" package_nspkg = "azure-mgmt-nspkg" package_pprint_name = "Search Management" package_doc_id = "search" -is_stable = false +is_stable = true is_arm = true sample_link = "" title = "SearchManagementClient" diff --git a/sdk/search/azure-mgmt-search/setup.py b/sdk/search/azure-mgmt-search/setup.py index 9d3d278b3aab..8e9cff20cd13 100644 --- a/sdk/search/azure-mgmt-search/setup.py +++ b/sdk/search/azure-mgmt-search/setup.py @@ -49,7 +49,7 @@ url="https://github.com/Azure/azure-sdk-for-python", keywords="azure, azure sdk", # update with search keywords relevant to the azure service / product classifiers=[ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3",