From 049f78c2396efb48985e5a7659fbc34e5512add5 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 27 Mar 2026 21:17:35 +0000 Subject: [PATCH] Configurations: 'specification/search/resource-manager/Microsoft.Search/Search/tspconfig.yaml', API Version: 2026-03-01-preview, SDK Release Type: beta, and CommitSHA: 'f90ba8622a186403cc11d43b8977d6bfd8410742' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6075076 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. --- .../azure-resourcemanager-search/CHANGELOG.md | 190 ++++++++++++++- .../search/fluent/OfferingsClient.java | 70 ++++++ .../PrivateEndpointConnectionsClient.java | 16 ++ .../search/fluent/QueryKeysClient.java | 16 ++ .../search/fluent/SearchManagementClient.java | 7 + .../search/fluent/ServicesClient.java | 49 ++-- .../SharedPrivateLinkResourcesClient.java | 28 +++ .../search/fluent/UsagesClient.java | 6 +- .../models/OfferingsListResultInner.java | 103 ++++++++ .../fluent/models/QuotaUsageResultInner.java | 4 +- .../fluent/models/SearchServiceInner.java | 54 +++-- .../models/SearchServiceProperties.java | 76 ++++-- .../implementation/OfferingsClientImpl.java | 158 ++++++++++++ .../PrivateEndpointConnectionsClientImpl.java | 20 ++ .../implementation/QueryKeysClientImpl.java | 20 ++ .../SearchManagementClientImpl.java | 18 +- .../implementation/ServicesClientImpl.java | 93 ++++--- .../SharedPrivateLinkResourcesClientImpl.java | 40 +++ .../implementation/UsagesClientImpl.java | 12 +- ...ActiveDirectoryApplicationCredentials.java | 125 ++++++++++ .../search/models/ComputeType.java | 2 +- .../search/models/DataIdentity.java | 109 +++++++++ .../search/models/DataNoneIdentity.java | 83 +++++++ .../models/DataUserAssignedIdentity.java | 161 +++++++++++++ .../search/models/EncryptionWithCmk.java | 34 +++ .../search/models/FeatureOffering.java | 82 +++++++ .../search/models/HostingMode.java | 4 +- .../search/models/KnowledgeRetrieval.java | 54 +++++ .../search/models/OfferingsByRegion.java | 125 ++++++++++ .../search/models/ProvisioningState.java | 2 +- .../search/models/QuotaUsageResultName.java | 2 +- .../search/models/SearchBypass.java | 5 + .../models/SearchResourceEncryptionKey.java | 228 ++++++++++++++++++ .../search/models/SearchSemanticSearch.java | 12 +- .../search/models/SearchServiceUpdate.java | 53 ++-- .../resourcemanager/search/models/Sku.java | 8 +- .../search/models/SkuLimits.java | 186 ++++++++++++++ .../search/models/SkuName.java | 8 +- .../search/models/SkuOffering.java | 105 ++++++++ .../search/models/UpgradeAvailable.java | 6 +- ...azure-resourcemanager-search_metadata.json | 2 +- .../proxy-config.json | 2 +- .../search/generated/AdminKeysGetSamples.java | 2 +- .../generated/AdminKeysRegenerateSamples.java | 2 +- ...rityPerimeterConfigurationsGetSamples.java | 2 +- ...terConfigurationsListByServiceSamples.java | 2 +- ...rimeterConfigurationsReconcileSamples.java | 2 +- .../generated/OfferingsListSamples.java | 22 ++ .../generated/OperationsListSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...dpointConnectionsListByServiceSamples.java | 2 +- ...ivateEndpointConnectionsUpdateSamples.java | 5 +- ...vateLinkResourcesListSupportedSamples.java | 2 +- .../generated/QueryKeysCreateSamples.java | 2 +- .../generated/QueryKeysDeleteSamples.java | 2 +- .../QueryKeysListBySearchServiceSamples.java | 2 +- .../ServicesCheckNameAvailabilitySamples.java | 2 +- .../ServicesCreateOrUpdateSamples.java | 183 ++++++++++---- .../generated/ServicesDeleteSamples.java | 2 +- .../ServicesGetByResourceGroupSamples.java | 2 +- .../ServicesListByResourceGroupSamples.java | 2 +- .../search/generated/ServicesListSamples.java | 2 +- .../generated/ServicesUpdateSamples.java | 51 ++-- .../generated/ServicesUpgradeSamples.java | 2 +- ...ateLinkResourcesCreateOrUpdateSamples.java | 4 +- ...aredPrivateLinkResourcesDeleteSamples.java | 2 +- .../SharedPrivateLinkResourcesGetSamples.java | 2 +- ...vateLinkResourcesListByServiceSamples.java | 2 +- .../UsagesListBySubscriptionSamples.java | 2 +- .../tsp-location.yaml | 2 +- 71 files changed, 2457 insertions(+), 234 deletions(-) create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/OfferingsClient.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/OfferingsListResultInner.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/OfferingsClientImpl.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/AzureActiveDirectoryApplicationCredentials.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataIdentity.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataNoneIdentity.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataUserAssignedIdentity.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/FeatureOffering.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/KnowledgeRetrieval.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/OfferingsByRegion.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchResourceEncryptionKey.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuLimits.java create mode 100644 sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuOffering.java create mode 100644 sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/OfferingsListSamples.java diff --git a/sdk/search/azure-resourcemanager-search/CHANGELOG.md b/sdk/search/azure-resourcemanager-search/CHANGELOG.md index 41755ae0072a..6b89dc042633 100644 --- a/sdk/search/azure-resourcemanager-search/CHANGELOG.md +++ b/sdk/search/azure-resourcemanager-search/CHANGELOG.md @@ -1,10 +1,196 @@ # Release History -## 2.55.0-beta.1 (Unreleased) +## 2.55.0-beta.1 (2026-03-27) ### Breaking Changes -- Changed `IdentityType`, `PublicNetworkAccess`, `SharedPrivateLinkResourceProvisioningState`, `SharedPrivateLinkResourceStatus`, `SkuName` from sealed `enum` to `ExpandableStringEnum`. +#### `models.SearchServiceListResult` was removed + +#### `models.PrivateLinkResourcesResult` was removed + +#### `models.SharedPrivateLinkResourceListResult` was removed + +#### `models.PrivateEndpointConnectionListResult` was removed + +#### `models.QuotaUsagesListResult` was removed + +#### `models.NetworkSecurityPerimeterConfigurationListResult` was removed + +#### `models.OperationListResult` was removed + +#### `models.ListQueryKeysResult` was removed + +#### `models.NetworkSecurityPerimeterConfigurationProperties` was modified + +* `NetworkSecurityPerimeterConfigurationProperties()` was changed to private access +* `withProfile(models.NetworkSecurityProfile)` was removed +* `withNetworkSecurityPerimeter(models.NetworkSecurityPerimeter)` was removed +* `withResourceAssociation(models.ResourceAssociation)` was removed + +#### `models.AccessRuleProperties` was modified + +* `AccessRuleProperties()` was changed to private access +* `withPhoneNumbers(java.util.List)` was removed +* `withDirection(models.AccessRuleDirection)` was removed +* `withAddressPrefixes(java.util.List)` was removed +* `withEmailAddresses(java.util.List)` was removed +* `withNetworkSecurityPerimeters(java.util.List)` was removed +* `withSubscriptions(java.util.List)` was removed +* `withFullyQualifiedDomainNames(java.util.List)` was removed + +#### `models.ProvisioningIssue` was modified + +* `ProvisioningIssue()` was changed to private access + +#### `models.OperationDisplay` was modified + +* `OperationDisplay()` was changed to private access + +#### `models.ProvisioningIssueProperties` was modified + +* `ProvisioningIssueProperties()` was changed to private access + +#### `models.QuotaUsageResultName` was modified + +* `QuotaUsageResultName()` was changed to private access +* `withLocalizedValue(java.lang.String)` was removed +* `withValue(java.lang.String)` was removed + +#### `models.ShareablePrivateLinkResourceProperties` was modified + +* `ShareablePrivateLinkResourceProperties()` was changed to private access + +#### `models.AccessRulePropertiesSubscriptionsItem` was modified + +* `AccessRulePropertiesSubscriptionsItem()` was changed to private access +* `withId(java.lang.String)` was removed + +#### `models.NetworkSecurityProfile` was modified + +* `NetworkSecurityProfile()` was changed to private access +* `withAccessRules(java.util.List)` was removed +* `withName(java.lang.String)` was removed +* `withEnabledLogCategories(java.util.List)` was removed +* `withAccessRulesVersion(java.lang.Integer)` was removed +* `withDiagnosticSettingsVersion(java.lang.Integer)` was removed + +#### `models.AccessRule` was modified + +* `AccessRule()` was changed to private access +* `withProperties(models.AccessRuleProperties)` was removed +* `withName(java.lang.String)` was removed + +#### `models.NetworkSecurityPerimeter` was modified + +* `NetworkSecurityPerimeter()` was changed to private access +* `withId(java.lang.String)` was removed +* `withPerimeterGuid(java.util.UUID)` was removed +* `withLocation(java.lang.String)` was removed + +#### `models.ShareablePrivateLinkResourceType` was modified + +* `ShareablePrivateLinkResourceType()` was changed to private access + +#### `models.CheckNameAvailabilityOutput` was modified + +* `CheckNameAvailabilityOutput()` was changed to private access + +#### `models.PrivateLinkResourceProperties` was modified + +* `PrivateLinkResourceProperties()` was changed to private access + +#### `models.PublicNetworkAccess` was modified + +* `toString()` was removed +* `models.PublicNetworkAccess[] values()` -> `java.util.Collection values()` +* `valueOf(java.lang.String)` was removed + +#### `models.ResourceAssociation` was modified + +* `ResourceAssociation()` was changed to private access +* `withName(java.lang.String)` was removed +* `withAccessMode(models.ResourceAssociationAccessMode)` was removed + +#### `models.SharedPrivateLinkResourceProvisioningState` was modified + +* `toString()` was removed +* `models.SharedPrivateLinkResourceProvisioningState[] values()` -> `java.util.Collection values()` +* `valueOf(java.lang.String)` was removed + +#### `models.SkuName` was modified + +* `toString()` was removed +* `valueOf(java.lang.String)` was removed +* `models.SkuName[] values()` -> `java.util.Collection values()` + +#### `models.SharedPrivateLinkResourceStatus` was modified + +* `valueOf(java.lang.String)` was removed +* `toString()` was removed +* `models.SharedPrivateLinkResourceStatus[] values()` -> `java.util.Collection values()` + +#### `models.IdentityType` was modified + +* `toString()` was removed +* `valueOf(java.lang.String)` was removed +* `models.IdentityType[] values()` -> `java.util.Collection values()` + +### Features Added + +* `models.AzureActiveDirectoryApplicationCredentials` was added + +* `models.SkuOffering` was added + +* `models.SkuLimits` was added + +* `models.OfferingsByRegion` was added + +* `models.DataIdentity` was added + +* `models.DataNoneIdentity` was added + +* `models.KnowledgeRetrieval` was added + +* `models.SearchResourceEncryptionKey` was added + +* `models.DataUserAssignedIdentity` was added + +* `models.FeatureOffering` was added + +#### `models.EncryptionWithCmk` was modified + +* `withServiceLevelEncryptionKey(models.SearchResourceEncryptionKey)` was added +* `serviceLevelEncryptionKey()` was added + +#### `models.SearchBypass` was modified + +* `AZURE_PORTAL` was added + +#### `models.PublicNetworkAccess` was modified + +* `PublicNetworkAccess()` was added + +#### `models.SearchServiceUpdate` was modified + +* `knowledgeRetrieval()` was added +* `withKnowledgeRetrieval(models.KnowledgeRetrieval)` was added + +#### `models.SharedPrivateLinkResourceProvisioningState` was modified + +* `SharedPrivateLinkResourceProvisioningState()` was added + +#### `models.SkuName` was modified + +* `SkuName()` was added +* `SERVERLESS` was added + +#### `models.SharedPrivateLinkResourceStatus` was modified + +* `SharedPrivateLinkResourceStatus()` was added + +#### `models.IdentityType` was modified + +* `IdentityType()` was added ## 2.54.5 (2026-01-29) diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/OfferingsClient.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/OfferingsClient.java new file mode 100644 index 000000000000..edacb8cdf1c4 --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/OfferingsClient.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.search.fluent.models.OfferingsListResultInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in OfferingsClient. + */ +public interface OfferingsClient { + /** + * Lists all of the features and SKUs offered by the Azure AI Search service in each region. Note: This API returns + * a non-ARM resource collection and is not RPC-compliant. It will be replaced with an action-style API in the next + * preview as a breaking change. Customers should avoid taking new dependencies on the current shape. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the list of offerings available in Azure AI Search, organized by region along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> listWithResponseAsync(); + + /** + * Lists all of the features and SKUs offered by the Azure AI Search service in each region. Note: This API returns + * a non-ARM resource collection and is not RPC-compliant. It will be replaced with an action-style API in the next + * preview as a breaking change. Customers should avoid taking new dependencies on the current shape. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the list of offerings available in Azure AI Search, organized by region on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono listAsync(); + + /** + * Lists all of the features and SKUs offered by the Azure AI Search service in each region. Note: This API returns + * a non-ARM resource collection and is not RPC-compliant. It will be replaced with an action-style API in the next + * preview as a breaking change. Customers should avoid taking new dependencies on the current shape. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the list of offerings available in Azure AI Search, organized by region along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response listWithResponse(Context context); + + /** + * Lists all of the features and SKUs offered by the Azure AI Search service in each region. Note: This API returns + * a non-ARM resource collection and is not RPC-compliant. It will be replaced with an action-style API in the next + * preview as a breaking change. Customers should avoid taking new dependencies on the current shape. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the list of offerings available in Azure AI Search, organized by region. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OfferingsListResultInner list(); +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/PrivateEndpointConnectionsClient.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/PrivateEndpointConnectionsClient.java index b928b50d06d5..08446e6c8d89 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/PrivateEndpointConnectionsClient.java @@ -161,6 +161,10 @@ PrivateEndpointConnectionInner update(String resourceGroupName, String searchSer /** * Disconnects the private endpoint connection and deletes it from the search service. + * Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection + * does not exist. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -178,6 +182,10 @@ Mono> deleteWithResponseAsync(String re /** * Disconnects the private endpoint connection and deletes it from the search service. + * Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection + * does not exist. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -195,6 +203,10 @@ Mono deleteAsync(String resourceGroupName, Strin /** * Disconnects the private endpoint connection and deletes it from the search service. + * Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection + * does not exist. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -213,6 +225,10 @@ Response deleteWithResponse(String resourceGroup /** * Disconnects the private endpoint connection and deletes it from the search service. + * Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection + * does not exist. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/QueryKeysClient.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/QueryKeysClient.java index a8192a61b2bc..86d0e4f5f42c 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/QueryKeysClient.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/QueryKeysClient.java @@ -127,6 +127,10 @@ PagedIterable listBySearchService(String resourceGroupName, Strin /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating * a query key is to delete and then recreate it. + * Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or + * 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -142,6 +146,10 @@ PagedIterable listBySearchService(String resourceGroupName, Strin /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating * a query key is to delete and then recreate it. + * Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or + * 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -157,6 +165,10 @@ PagedIterable listBySearchService(String resourceGroupName, Strin /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating * a query key is to delete and then recreate it. + * Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or + * 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -173,6 +185,10 @@ PagedIterable listBySearchService(String resourceGroupName, Strin /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating * a query key is to delete and then recreate it. + * Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or + * 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/SearchManagementClient.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/SearchManagementClient.java index 0ff6533ca042..4d19d6f1a8fd 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/SearchManagementClient.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/SearchManagementClient.java @@ -52,6 +52,13 @@ public interface SearchManagementClient { */ Duration getDefaultPollInterval(); + /** + * Gets the OfferingsClient object to access its operations. + * + * @return the OfferingsClient object. + */ + OfferingsClient getOfferings(); + /** * Gets the OperationsClient object to access its operations. * diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/ServicesClient.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/ServicesClient.java index 2438b3b148f3..6e75d341aa8b 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/ServicesClient.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/ServicesClient.java @@ -148,7 +148,8 @@ Response getByResourceGroupWithResponse(String resourceGroup * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -165,7 +166,8 @@ Mono>> createOrUpdateWithResponseAsync(String resource * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -181,7 +183,8 @@ PollerFlux, SearchServiceInner> beginCreateOrUpda * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -197,7 +200,8 @@ SyncPoller, SearchServiceInner> beginCreateOrUpda * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -214,7 +218,8 @@ SyncPoller, SearchServiceInner> beginCreateOrUpda * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -230,7 +235,8 @@ Mono createOrUpdateAsync(String resourceGroupName, String se * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -246,7 +252,8 @@ SearchServiceInner createOrUpdate(String resourceGroupName, String searchService * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. @@ -320,6 +327,7 @@ Response updateWithResponse(String resourceGroupName, String /** * Deletes a search service in the given resource group, along with its associated resources. + * Returns 200 (OK) on successful deletion, or 204 (No Content) if the service is not found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -333,6 +341,7 @@ Response updateWithResponse(String resourceGroupName, String /** * Deletes a search service in the given resource group, along with its associated resources. + * Returns 200 (OK) on successful deletion, or 204 (No Content) if the service is not found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -346,6 +355,7 @@ Response updateWithResponse(String resourceGroupName, String /** * Deletes a search service in the given resource group, along with its associated resources. + * Returns 200 (OK) on successful deletion, or 204 (No Content) if the service is not found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -360,6 +370,7 @@ Response updateWithResponse(String resourceGroupName, String /** * Deletes a search service in the given resource group, along with its associated resources. + * Returns 200 (OK) on successful deletion, or 204 (No Content) if the service is not found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -371,72 +382,72 @@ Response updateWithResponse(String resourceGroupName, String void delete(String resourceGroupName, String searchServiceName); /** - * Gets a list of all Search services in the given resource group. + * Gets a list of all search services in the given resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group as paginated response with {@link PagedFlux}. + * @return a list of all search services in the given resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listByResourceGroupAsync(String resourceGroupName); /** - * Gets a list of all Search services in the given resource group. + * Gets a list of all search services in the given resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group as paginated response with + * @return a list of all search services in the given resource group as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName); /** - * Gets a list of all Search services in the given resource group. + * Gets a list of all search services in the given resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group as paginated response with + * @return a list of all search services in the given resource group as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** - * Gets a list of all Search services in the given subscription. + * Gets a list of all search services in the given subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription as paginated response with {@link PagedFlux}. + * @return a list of all search services in the given subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux listAsync(); /** - * Gets a list of all Search services in the given subscription. + * Gets a list of all search services in the given subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription as paginated response with {@link PagedIterable}. + * @return a list of all search services in the given subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(); /** - * Gets a list of all Search services in the given subscription. + * Gets a list of all search services in the given subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription as paginated response with {@link PagedIterable}. + * @return a list of all search services in the given subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(Context context); diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/SharedPrivateLinkResourcesClient.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/SharedPrivateLinkResourcesClient.java index ef2c8f36d0e2..17ad6b918623 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/SharedPrivateLinkResourcesClient.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/SharedPrivateLinkResourcesClient.java @@ -230,6 +230,10 @@ SharedPrivateLinkResourceInner createOrUpdate(String resourceGroupName, String s /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -246,6 +250,10 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -262,6 +270,10 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -278,6 +290,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -295,6 +311,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -310,6 +330,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -324,6 +348,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/UsagesClient.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/UsagesClient.java index 04414119b596..06ad5b05a669 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/UsagesClient.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/UsagesClient.java @@ -18,7 +18,7 @@ public interface UsagesClient { /** * Get a list of all Azure AI Search quota usages across the subscription. * - * @param location The location name. + * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -31,7 +31,7 @@ public interface UsagesClient { /** * Get a list of all Azure AI Search quota usages across the subscription. * - * @param location The location name. + * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -44,7 +44,7 @@ public interface UsagesClient { /** * Get a list of all Azure AI Search quota usages across the subscription. * - * @param location The location name. + * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/OfferingsListResultInner.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/OfferingsListResultInner.java new file mode 100644 index 000000000000..75ddabfa592c --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/OfferingsListResultInner.java @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.search.models.OfferingsByRegion; +import java.io.IOException; +import java.util.List; + +/** + * Response containing the list of offerings available in Azure AI Search, organized by region. + */ +@Immutable +public final class OfferingsListResultInner implements JsonSerializable { + /* + * The list of Azure AI Search offerings by region. + */ + private List value; + + /* + * The URL to get the next set of offerings, if any. + */ + private String nextLink; + + /** + * Creates an instance of OfferingsListResultInner class. + */ + private OfferingsListResultInner() { + } + + /** + * Get the value property: The list of Azure AI Search offerings by region. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The URL to get the next set of offerings, if any. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() != null) { + value().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OfferingsListResultInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OfferingsListResultInner if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the OfferingsListResultInner. + */ + public static OfferingsListResultInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OfferingsListResultInner deserializedOfferingsListResultInner = new OfferingsListResultInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> OfferingsByRegion.fromJson(reader1)); + deserializedOfferingsListResultInner.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedOfferingsListResultInner.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOfferingsListResultInner; + }); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/QuotaUsageResultInner.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/QuotaUsageResultInner.java index 88e3b5e602be..d315768351e1 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/QuotaUsageResultInner.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/QuotaUsageResultInner.java @@ -38,7 +38,7 @@ public final class QuotaUsageResultInner implements JsonSerializable tags) { } /** - * Get the replicaCount property: 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. + * Get the replicaCount property: The number of replicas in the dedicated 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. * * @return the replicaCount value. */ @@ -194,8 +195,8 @@ public Integer replicaCount() { } /** - * Set the replicaCount property: 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. + * Set the replicaCount property: The number of replicas in the dedicated 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. * * @param replicaCount the replicaCount value to set. * @return the SearchServiceInner object itself. @@ -209,9 +210,9 @@ public SearchServiceInner withReplicaCount(Integer replicaCount) { } /** - * Get the partitionCount property: The number of partitions in the search service; if specified, it can be 1, 2, 3, - * 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode - * set to 'highDensity', the allowed values are between 1 and 3. + * Get the partitionCount property: The number of partitions in the dedicated search service; if specified, it can + * be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with + * hostingMode set to 'highDensity', the allowed values are between 1 and 3. * * @return the partitionCount value. */ @@ -220,9 +221,9 @@ public Integer partitionCount() { } /** - * Set the partitionCount property: The number of partitions in the search service; if specified, it can be 1, 2, 3, - * 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode - * set to 'highDensity', the allowed values are between 1 and 3. + * Set the partitionCount property: The number of partitions in the dedicated search service; if specified, it can + * be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with + * hostingMode set to 'highDensity', the allowed values are between 1 and 3. * * @param partitionCount the partitionCount value to set. * @return the SearchServiceInner object itself. @@ -509,8 +510,8 @@ public SearchServiceInner withAuthOptions(DataPlaneAuthOptions authOptions) { } /** - * Get the semanticSearch property: Sets options that control the availability of semantic search. This - * configuration is only possible for certain Azure AI Search SKUs in certain locations. + * Get the semanticSearch property: Specifies the availability and billing plan for semantic search on the Azure AI + * Search service. This configuration is only available for certain pricing tiers in certain regions. * * @return the semanticSearch value. */ @@ -519,8 +520,8 @@ public SearchSemanticSearch semanticSearch() { } /** - * Set the semanticSearch property: Sets options that control the availability of semantic search. This - * configuration is only possible for certain Azure AI Search SKUs in certain locations. + * Set the semanticSearch property: Specifies the availability and billing plan for semantic search on the Azure AI + * Search service. This configuration is only available for certain pricing tiers in certain regions. * * @param semanticSearch the semanticSearch value to set. * @return the SearchServiceInner object itself. @@ -533,6 +534,31 @@ public SearchServiceInner withSemanticSearch(SearchSemanticSearch semanticSearch return this; } + /** + * Get the knowledgeRetrieval property: Specifies the billing plan for agentic retrieval on the Azure AI Search + * service. This configuration is only available for certain pricing tiers in certain regions. + * + * @return the knowledgeRetrieval value. + */ + public KnowledgeRetrieval knowledgeRetrieval() { + return this.innerProperties() == null ? null : this.innerProperties().knowledgeRetrieval(); + } + + /** + * Set the knowledgeRetrieval property: Specifies the billing plan for agentic retrieval on the Azure AI Search + * service. This configuration is only available for certain pricing tiers in certain regions. + * + * @param knowledgeRetrieval the knowledgeRetrieval value to set. + * @return the SearchServiceInner object itself. + */ + public SearchServiceInner withKnowledgeRetrieval(KnowledgeRetrieval knowledgeRetrieval) { + if (this.innerProperties() == null) { + this.innerProperties = new SearchServiceProperties(); + } + this.innerProperties().withKnowledgeRetrieval(knowledgeRetrieval); + return this; + } + /** * Get the privateEndpointConnections property: The list of private endpoint connections to the Azure AI Search * service. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/SearchServiceProperties.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/SearchServiceProperties.java index 7b9c9a9cb082..c176c1b28237 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/SearchServiceProperties.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/models/SearchServiceProperties.java @@ -14,6 +14,7 @@ import com.azure.resourcemanager.search.models.DataPlaneAuthOptions; import com.azure.resourcemanager.search.models.EncryptionWithCmk; import com.azure.resourcemanager.search.models.HostingMode; +import com.azure.resourcemanager.search.models.KnowledgeRetrieval; import com.azure.resourcemanager.search.models.NetworkRuleSet; import com.azure.resourcemanager.search.models.ProvisioningState; import com.azure.resourcemanager.search.models.PublicNetworkAccess; @@ -31,15 +32,15 @@ @Fluent public final class SearchServiceProperties implements JsonSerializable { /* - * 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. + * The number of replicas in the dedicated 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. */ private Integer replicaCount; /* - * The number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than - * 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed - * values are between 1 and 3. + * The number of partitions in the dedicated search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values + * greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', + * the allowed values are between 1 and 3. */ private Integer partitionCount; @@ -127,11 +128,17 @@ public final class SearchServiceProperties implements JsonSerializable privateEndpointConnections = reader.readArray(reader1 -> PrivateEndpointConnectionInner.fromJson(reader1)); diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/OfferingsClientImpl.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/OfferingsClientImpl.java new file mode 100644 index 000000000000..ebeacbf7f819 --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/OfferingsClientImpl.java @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.search.fluent.OfferingsClient; +import com.azure.resourcemanager.search.fluent.models.OfferingsListResultInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in OfferingsClient. + */ +public final class OfferingsClientImpl implements OfferingsClient { + /** + * The proxy service used to perform REST calls. + */ + private final OfferingsService service; + + /** + * The service client containing this operation class. + */ + private final SearchManagementClientImpl client; + + /** + * Initializes an instance of OfferingsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + OfferingsClientImpl(SearchManagementClientImpl client) { + this.service + = RestProxy.create(OfferingsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for SearchManagementClientOfferings to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "SearchManagementClientOfferings") + public interface OfferingsService { + @Headers({ "Content-Type: application/json" }) + @Get("/providers/Microsoft.Search/offerings") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Lists all of the features and SKUs offered by the Azure AI Search service in each region. Note: This API returns + * a non-ARM resource collection and is not RPC-compliant. It will be replaced with an action-style API in the next + * preview as a breaking change. Customers should avoid taking new dependencies on the current shape. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the list of offerings available in Azure AI Search, organized by region along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listWithResponseAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all of the features and SKUs offered by the Azure AI Search service in each region. Note: This API returns + * a non-ARM resource collection and is not RPC-compliant. It will be replaced with an action-style API in the next + * preview as a breaking change. Customers should avoid taking new dependencies on the current shape. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the list of offerings available in Azure AI Search, organized by region along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listWithResponseAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.list(this.client.getEndpoint(), this.client.getApiVersion(), accept, context); + } + + /** + * Lists all of the features and SKUs offered by the Azure AI Search service in each region. Note: This API returns + * a non-ARM resource collection and is not RPC-compliant. It will be replaced with an action-style API in the next + * preview as a breaking change. Customers should avoid taking new dependencies on the current shape. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the list of offerings available in Azure AI Search, organized by region on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listAsync() { + return listWithResponseAsync().flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Lists all of the features and SKUs offered by the Azure AI Search service in each region. Note: This API returns + * a non-ARM resource collection and is not RPC-compliant. It will be replaced with an action-style API in the next + * preview as a breaking change. Customers should avoid taking new dependencies on the current shape. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the list of offerings available in Azure AI Search, organized by region along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response listWithResponse(Context context) { + return listWithResponseAsync(context).block(); + } + + /** + * Lists all of the features and SKUs offered by the Azure AI Search service in each region. Note: This API returns + * a non-ARM resource collection and is not RPC-compliant. It will be replaced with an action-style API in the next + * preview as a breaking change. Customers should avoid taking new dependencies on the current shape. + * + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the list of offerings available in Azure AI Search, organized by region. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OfferingsListResultInner list() { + return listWithResponse(Context.NONE).getValue(); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/PrivateEndpointConnectionsClientImpl.java index 0100d035a453..030c4d0030b5 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/PrivateEndpointConnectionsClientImpl.java @@ -436,6 +436,10 @@ public PrivateEndpointConnectionInner update(String resourceGroupName, String se /** * Disconnects the private endpoint connection and deletes it from the search service. + * Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection + * does not exist. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -480,6 +484,10 @@ public Mono> deleteWithResponseAsync(St /** * Disconnects the private endpoint connection and deletes it from the search service. + * Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection + * does not exist. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -523,6 +531,10 @@ private Mono> deleteWithResponseAsync(S /** * Disconnects the private endpoint connection and deletes it from the search service. + * Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection + * does not exist. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -543,6 +555,10 @@ public Mono deleteAsync(String resourceGroupName /** * Disconnects the private endpoint connection and deletes it from the search service. + * Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection + * does not exist. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -564,6 +580,10 @@ public Response deleteWithResponse(String resour /** * Disconnects the private endpoint connection and deletes it from the search service. + * Returns 200 (OK) with the deleted connection details on successful deletion, or 404 (Not Found) if the connection + * does not exist. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/QueryKeysClientImpl.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/QueryKeysClientImpl.java index 2b52815bf5d3..7e8f007900d4 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/QueryKeysClientImpl.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/QueryKeysClientImpl.java @@ -390,6 +390,10 @@ public PagedIterable listBySearchService(String resourceGroupName /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating * a query key is to delete and then recreate it. + * Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or + * 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -430,6 +434,10 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating * a query key is to delete and then recreate it. + * Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or + * 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -470,6 +478,10 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating * a query key is to delete and then recreate it. + * Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or + * 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -487,6 +499,10 @@ public Mono deleteAsync(String resourceGroupName, String searchServiceName /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating * a query key is to delete and then recreate it. + * Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or + * 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -506,6 +522,10 @@ public Response deleteWithResponse(String resourceGroupName, String search /** * Deletes the specified query key. Unlike admin keys, query keys are not regenerated. The process for regenerating * a query key is to delete and then recreate it. + * Returns 200 (OK) on successful deletion, 204 (No Content) if the service exists but the query keys not found, or + * 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/SearchManagementClientImpl.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/SearchManagementClientImpl.java index fa8ddcb5af76..3482299147e2 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/SearchManagementClientImpl.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/SearchManagementClientImpl.java @@ -28,6 +28,7 @@ import com.azure.resourcemanager.resources.fluentcore.AzureServiceClient; import com.azure.resourcemanager.search.fluent.AdminKeysClient; import com.azure.resourcemanager.search.fluent.NetworkSecurityPerimeterConfigurationsClient; +import com.azure.resourcemanager.search.fluent.OfferingsClient; import com.azure.resourcemanager.search.fluent.OperationsClient; import com.azure.resourcemanager.search.fluent.PrivateEndpointConnectionsClient; import com.azure.resourcemanager.search.fluent.PrivateLinkResourcesClient; @@ -134,6 +135,20 @@ public Duration getDefaultPollInterval() { return this.defaultPollInterval; } + /** + * The OfferingsClient object to access its operations. + */ + private final OfferingsClient offerings; + + /** + * Gets the OfferingsClient object to access its operations. + * + * @return the OfferingsClient object. + */ + public OfferingsClient getOfferings() { + return this.offerings; + } + /** * The OperationsClient object to access its operations. */ @@ -278,7 +293,8 @@ public PrivateLinkResourcesClient getPrivateLinkResources() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2025-05-01"; + this.apiVersion = "2026-03-01-preview"; + this.offerings = new OfferingsClientImpl(this); this.operations = new OperationsClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); this.sharedPrivateLinkResources = new SharedPrivateLinkResourcesClientImpl(this); diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/ServicesClientImpl.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/ServicesClientImpl.java index 2ccaa9e9fe2c..748feee2a9ab 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/ServicesClientImpl.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/ServicesClientImpl.java @@ -118,7 +118,7 @@ Mono> update(@HostParam("endpoint") String endpoint @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}") - @ExpectedResponses({ 200, 204, 404 }) + @ExpectedResponses({ 200, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @@ -420,7 +420,8 @@ public SearchServiceInner getByResourceGroup(String resourceGroupName, String se * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -466,7 +467,8 @@ public Mono>> createOrUpdateWithResponseAsync(String r * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -512,7 +514,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -533,7 +536,8 @@ private Mono>> createOrUpdateWithResponseAsync(String * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -556,7 +560,8 @@ private PollerFlux, SearchServiceInner> beginCrea * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -574,7 +579,8 @@ public SyncPoller, SearchServiceInner> beginCreat * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -594,7 +600,8 @@ public SyncPoller, SearchServiceInner> beginCreat * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -613,7 +620,8 @@ public Mono createOrUpdateAsync(String resourceGroupName, St * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -633,7 +641,8 @@ private Mono createOrUpdateAsync(String resourceGroupName, S * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -651,7 +660,8 @@ public SearchServiceInner createOrUpdate(String resourceGroupName, String search * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. - * @param serviceParam The definition of the search service to create or update. + * @param serviceParam The definition of the search service to create or update. Create applies to both serverless + * and dedicated search services; update applies only to dedicated search services. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -808,6 +818,7 @@ public SearchServiceInner update(String resourceGroupName, String searchServiceN /** * Deletes a search service in the given resource group, along with its associated resources. + * Returns 200 (OK) on successful deletion, or 204 (No Content) if the service is not found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -842,6 +853,7 @@ public Mono> deleteWithResponseAsync(String resourceGroupName, St /** * Deletes a search service in the given resource group, along with its associated resources. + * Returns 200 (OK) on successful deletion, or 204 (No Content) if the service is not found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -877,6 +889,7 @@ private Mono> deleteWithResponseAsync(String resourceGroupName, S /** * Deletes a search service in the given resource group, along with its associated resources. + * Returns 200 (OK) on successful deletion, or 204 (No Content) if the service is not found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -892,6 +905,7 @@ public Mono deleteAsync(String resourceGroupName, String searchServiceName /** * Deletes a search service in the given resource group, along with its associated resources. + * Returns 200 (OK) on successful deletion, or 204 (No Content) if the service is not found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -908,6 +922,7 @@ public Response deleteWithResponse(String resourceGroupName, String search /** * Deletes a search service in the given resource group, along with its associated resources. + * Returns 200 (OK) on successful deletion, or 204 (No Content) if the service is not found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -921,13 +936,13 @@ public void delete(String resourceGroupName, String searchServiceName) { } /** - * Gets a list of all Search services in the given resource group. + * Gets a list of all search services in the given resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group along with {@link PagedResponse} on successful + * @return a list of all search services in the given resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -954,14 +969,14 @@ private Mono> listByResourceGroupSinglePageAsy } /** - * Gets a list of all Search services in the given resource group. + * Gets a list of all search services in the given resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group along with {@link PagedResponse} on successful + * @return a list of all search services in the given resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -989,13 +1004,13 @@ private Mono> listByResourceGroupSinglePageAsy } /** - * Gets a list of all Search services in the given resource group. + * Gets a list of all search services in the given resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group as paginated response with {@link PagedFlux}. + * @return a list of all search services in the given resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listByResourceGroupAsync(String resourceGroupName) { @@ -1004,14 +1019,14 @@ public PagedFlux listByResourceGroupAsync(String resourceGro } /** - * Gets a list of all Search services in the given resource group. + * Gets a list of all search services in the given resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group as paginated response with {@link PagedFlux}. + * @return a list of all search services in the given resource group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { @@ -1020,13 +1035,13 @@ private PagedFlux listByResourceGroupAsync(String resourceGr } /** - * Gets a list of all Search services in the given resource group. + * Gets a list of all search services in the given resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group as paginated response with + * @return a list of all search services in the given resource group as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1035,14 +1050,14 @@ public PagedIterable listByResourceGroup(String resourceGrou } /** - * Gets a list of all Search services in the given resource group. + * Gets a list of all search services in the given resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group as paginated response with + * @return a list of all search services in the given resource group as paginated response with * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) @@ -1051,11 +1066,11 @@ public PagedIterable listByResourceGroup(String resourceGrou } /** - * Gets a list of all Search services in the given subscription. + * Gets a list of all search services in the given subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription along with {@link PagedResponse} on successful + * @return a list of all search services in the given subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1078,13 +1093,13 @@ private Mono> listSinglePageAsync() { } /** - * Gets a list of all Search services in the given subscription. + * Gets a list of all search services in the given subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription along with {@link PagedResponse} on successful + * @return a list of all search services in the given subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1107,11 +1122,11 @@ private Mono> listSinglePageAsync(Context cont } /** - * Gets a list of all Search services in the given subscription. + * Gets a list of all search services in the given subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription as paginated response with {@link PagedFlux}. + * @return a list of all search services in the given subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAsync() { @@ -1120,13 +1135,13 @@ public PagedFlux listAsync() { } /** - * Gets a list of all Search services in the given subscription. + * Gets a list of all search services in the given subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription as paginated response with {@link PagedFlux}. + * @return a list of all search services in the given subscription as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux listAsync(Context context) { @@ -1135,11 +1150,11 @@ private PagedFlux listAsync(Context context) { } /** - * Gets a list of all Search services in the given subscription. + * Gets a list of all search services in the given subscription. * * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription as paginated response with {@link PagedIterable}. + * @return a list of all search services in the given subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list() { @@ -1147,13 +1162,13 @@ public PagedIterable list() { } /** - * Gets a list of all Search services in the given subscription. + * Gets a list of all search services in the given subscription. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription as paginated response with {@link PagedIterable}. + * @return a list of all search services in the given subscription as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable list(Context context) { @@ -1374,7 +1389,7 @@ public SearchServiceInner upgrade(String resourceGroupName, String searchService * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group along with {@link PagedResponse} on successful + * @return a list of all search services in the given resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1403,7 +1418,7 @@ private Mono> listByResourceGroupNextSinglePag * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given resource group along with {@link PagedResponse} on successful + * @return a list of all search services in the given resource group along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1430,7 +1445,7 @@ private Mono> listByResourceGroupNextSinglePag * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription along with {@link PagedResponse} on successful + * @return a list of all search services in the given subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1459,7 +1474,7 @@ private Mono> listBySubscriptionNextSinglePage * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of all Search services in the given subscription along with {@link PagedResponse} on successful + * @return a list of all search services in the given subscription along with {@link PagedResponse} on successful * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/SharedPrivateLinkResourcesClientImpl.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/SharedPrivateLinkResourcesClientImpl.java index 64d15cd92592..2f399f2e3529 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/SharedPrivateLinkResourcesClientImpl.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/SharedPrivateLinkResourcesClientImpl.java @@ -575,6 +575,10 @@ public SharedPrivateLinkResourceInner createOrUpdate(String resourceGroupName, S /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -617,6 +621,10 @@ public Mono>> deleteWithResponseAsync(String resourceG /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -658,6 +666,10 @@ private Mono>> deleteWithResponseAsync(String resource /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -679,6 +691,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -702,6 +718,10 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -721,6 +741,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -741,6 +765,10 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -760,6 +788,10 @@ public Mono deleteAsync(String resourceGroupName, String searchServiceName /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -780,6 +812,10 @@ private Mono deleteAsync(String resourceGroupName, String searchServiceNam /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. @@ -796,6 +832,10 @@ public void delete(String resourceGroupName, String searchServiceName, String sh /** * Initiates the deletion of the shared private link resource from the search service. + * Returns 202 (Accepted) for asynchronous deletion, 204 (No Content) if the service exists but the shared private + * link is not found, or 404 (Not Found) if the service is not found. + * NOTE: The behavior of returning 404 is inconsistent with ARM guidelines. Clients should expect a 204 response in + * future versions and avoid new dependencies on the 404 response. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param searchServiceName The name of the Azure AI Search service associated with the specified resource group. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/UsagesClientImpl.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/UsagesClientImpl.java index 061d0bf1745e..5e909f93f15f 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/UsagesClientImpl.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/implementation/UsagesClientImpl.java @@ -81,7 +81,7 @@ Mono> listBySubscriptionNext( /** * Get a list of all Azure AI Search quota usages across the subscription. * - * @param location The location name. + * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -113,7 +113,7 @@ private Mono> listBySubscriptionSinglePageA /** * Get a list of all Azure AI Search quota usages across the subscription. * - * @param location The location name. + * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -147,7 +147,7 @@ private Mono> listBySubscriptionSinglePageA /** * Get a list of all Azure AI Search quota usages across the subscription. * - * @param location The location name. + * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -163,7 +163,7 @@ public PagedFlux listBySubscriptionAsync(String location) /** * Get a list of all Azure AI Search quota usages across the subscription. * - * @param location The location name. + * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -180,7 +180,7 @@ private PagedFlux listBySubscriptionAsync(String location /** * Get a list of all Azure AI Search quota usages across the subscription. * - * @param location The location name. + * @param location The name of the Azure region. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -195,7 +195,7 @@ public PagedIterable listBySubscription(String location) /** * Get a list of all Azure AI Search quota usages across the subscription. * - * @param location The location name. + * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/AzureActiveDirectoryApplicationCredentials.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/AzureActiveDirectoryApplicationCredentials.java new file mode 100644 index 000000000000..87d60ad6489e --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/AzureActiveDirectoryApplicationCredentials.java @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Describes the Azure Active Directory application credentials required to access an Azure Key Vault. + */ +@Fluent +public final class AzureActiveDirectoryApplicationCredentials + implements JsonSerializable { + /* + * The application (client) ID of an App Registration in the tenant. + */ + private String applicationId; + + /* + * An AAD client secret that was generated for the App Registration used to authenticate with Azure Key Vault. + */ + private String applicationSecret; + + /** + * Creates an instance of AzureActiveDirectoryApplicationCredentials class. + */ + public AzureActiveDirectoryApplicationCredentials() { + } + + /** + * Get the applicationId property: The application (client) ID of an App Registration in the tenant. + * + * @return the applicationId value. + */ + public String applicationId() { + return this.applicationId; + } + + /** + * Set the applicationId property: The application (client) ID of an App Registration in the tenant. + * + * @param applicationId the applicationId value to set. + * @return the AzureActiveDirectoryApplicationCredentials object itself. + */ + public AzureActiveDirectoryApplicationCredentials withApplicationId(String applicationId) { + this.applicationId = applicationId; + return this; + } + + /** + * Get the applicationSecret property: An AAD client secret that was generated for the App Registration used to + * authenticate with Azure Key Vault. + * + * @return the applicationSecret value. + */ + public String applicationSecret() { + return this.applicationSecret; + } + + /** + * Set the applicationSecret property: An AAD client secret that was generated for the App Registration used to + * authenticate with Azure Key Vault. + * + * @param applicationSecret the applicationSecret value to set. + * @return the AzureActiveDirectoryApplicationCredentials object itself. + */ + public AzureActiveDirectoryApplicationCredentials withApplicationSecret(String applicationSecret) { + this.applicationSecret = applicationSecret; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("applicationId", this.applicationId); + jsonWriter.writeStringField("applicationSecret", this.applicationSecret); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AzureActiveDirectoryApplicationCredentials from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AzureActiveDirectoryApplicationCredentials if the JsonReader was pointing to an instance + * of it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the AzureActiveDirectoryApplicationCredentials. + */ + public static AzureActiveDirectoryApplicationCredentials fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AzureActiveDirectoryApplicationCredentials deserializedAzureActiveDirectoryApplicationCredentials + = new AzureActiveDirectoryApplicationCredentials(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("applicationId".equals(fieldName)) { + deserializedAzureActiveDirectoryApplicationCredentials.applicationId = reader.getString(); + } else if ("applicationSecret".equals(fieldName)) { + deserializedAzureActiveDirectoryApplicationCredentials.applicationSecret = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAzureActiveDirectoryApplicationCredentials; + }); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/ComputeType.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/ComputeType.java index 636f6c6c6d36..303b1e6f3c15 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/ComputeType.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/ComputeType.java @@ -17,7 +17,7 @@ public final class ComputeType extends ExpandableStringEnum { public static final ComputeType DEFAULT = fromString("Default"); /** - * Create the service with Azure Confidential Compute. + * Create the dedicated service with Azure Confidential Compute. */ public static final ComputeType CONFIDENTIAL = fromString("Confidential"); diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataIdentity.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataIdentity.java new file mode 100644 index 000000000000..8c59dc6b7040 --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataIdentity.java @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Abstract base type for data identities. + */ +@Immutable +public class DataIdentity implements JsonSerializable { + /* + * A URI fragment specifying the type of identity. + */ + private String odataType = "DataIdentity"; + + /** + * Creates an instance of DataIdentity class. + */ + public DataIdentity() { + } + + /** + * Get the odataType property: A URI fragment specifying the type of identity. + * + * @return the odataType value. + */ + public String odataType() { + return this.odataType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("@odata.type", this.odataType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataIdentity if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the DataIdentity. + */ + public static DataIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("@odata.type".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("#Microsoft.Azure.Search.DataNoneIdentity".equals(discriminatorValue)) { + return DataNoneIdentity.fromJson(readerToUse.reset()); + } else if ("#Microsoft.Azure.Search.DataUserAssignedIdentity".equals(discriminatorValue)) { + return DataUserAssignedIdentity.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static DataIdentity fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DataIdentity deserializedDataIdentity = new DataIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("@odata.type".equals(fieldName)) { + deserializedDataIdentity.odataType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDataIdentity; + }); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataNoneIdentity.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataNoneIdentity.java new file mode 100644 index 000000000000..a606a9154dbf --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataNoneIdentity.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Clears the identity property. + */ +@Immutable +public final class DataNoneIdentity extends DataIdentity { + /* + * A URI fragment specifying the type of identity. + */ + private String odataType = "#Microsoft.Azure.Search.DataNoneIdentity"; + + /** + * Creates an instance of DataNoneIdentity class. + */ + public DataNoneIdentity() { + } + + /** + * Get the odataType property: A URI fragment specifying the type of identity. + * + * @return the odataType value. + */ + @Override + public String odataType() { + return this.odataType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("@odata.type", this.odataType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataNoneIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataNoneIdentity if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the DataNoneIdentity. + */ + public static DataNoneIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DataNoneIdentity deserializedDataNoneIdentity = new DataNoneIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("@odata.type".equals(fieldName)) { + deserializedDataNoneIdentity.odataType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDataNoneIdentity; + }); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataUserAssignedIdentity.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataUserAssignedIdentity.java new file mode 100644 index 000000000000..97a6f7cbd7b5 --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/DataUserAssignedIdentity.java @@ -0,0 +1,161 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Specifies the user assigned identity to use. + */ +@Fluent +public final class DataUserAssignedIdentity extends DataIdentity { + /* + * A URI fragment specifying the type of identity. + */ + private String odataType = "#Microsoft.Azure.Search.DataUserAssignedIdentity"; + + /* + * The fully qualified Azure resource Id of a user assigned managed identity typically in the form + * "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId" + * that should have been assigned to the search service. + */ + private String userAssignedIdentity; + + /* + * Optional for Multi-tenant User-Assigned Managed Identity CMK Support: The client id (as a UUID) of the + * multi-tenant App Registration that has been configured to federate with the userAssignedIdentity. + */ + private String federatedIdentityClientId; + + /** + * Creates an instance of DataUserAssignedIdentity class. + */ + public DataUserAssignedIdentity() { + } + + /** + * Get the odataType property: A URI fragment specifying the type of identity. + * + * @return the odataType value. + */ + @Override + public String odataType() { + return this.odataType; + } + + /** + * Get the userAssignedIdentity property: The fully qualified Azure resource Id of a user assigned managed identity + * typically in the form + * "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId" + * that should have been assigned to the search service. + * + * @return the userAssignedIdentity value. + */ + public String userAssignedIdentity() { + return this.userAssignedIdentity; + } + + /** + * Set the userAssignedIdentity property: The fully qualified Azure resource Id of a user assigned managed identity + * typically in the form + * "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId" + * that should have been assigned to the search service. + * + * @param userAssignedIdentity the userAssignedIdentity value to set. + * @return the DataUserAssignedIdentity object itself. + */ + public DataUserAssignedIdentity withUserAssignedIdentity(String userAssignedIdentity) { + this.userAssignedIdentity = userAssignedIdentity; + return this; + } + + /** + * Get the federatedIdentityClientId property: Optional for Multi-tenant User-Assigned Managed Identity CMK Support: + * The client id (as a UUID) of the multi-tenant App Registration that has been configured to federate with the + * userAssignedIdentity. + * + * @return the federatedIdentityClientId value. + */ + public String federatedIdentityClientId() { + return this.federatedIdentityClientId; + } + + /** + * Set the federatedIdentityClientId property: Optional for Multi-tenant User-Assigned Managed Identity CMK Support: + * The client id (as a UUID) of the multi-tenant App Registration that has been configured to federate with the + * userAssignedIdentity. + * + * @param federatedIdentityClientId the federatedIdentityClientId value to set. + * @return the DataUserAssignedIdentity object itself. + */ + public DataUserAssignedIdentity withFederatedIdentityClientId(String federatedIdentityClientId) { + this.federatedIdentityClientId = federatedIdentityClientId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (userAssignedIdentity() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property userAssignedIdentity in model DataUserAssignedIdentity")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(DataUserAssignedIdentity.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("userAssignedIdentity", this.userAssignedIdentity); + jsonWriter.writeStringField("@odata.type", this.odataType); + jsonWriter.writeStringField("federatedIdentityClientId", this.federatedIdentityClientId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DataUserAssignedIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DataUserAssignedIdentity if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the DataUserAssignedIdentity. + */ + public static DataUserAssignedIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DataUserAssignedIdentity deserializedDataUserAssignedIdentity = new DataUserAssignedIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("userAssignedIdentity".equals(fieldName)) { + deserializedDataUserAssignedIdentity.userAssignedIdentity = reader.getString(); + } else if ("@odata.type".equals(fieldName)) { + deserializedDataUserAssignedIdentity.odataType = reader.getString(); + } else if ("federatedIdentityClientId".equals(fieldName)) { + deserializedDataUserAssignedIdentity.federatedIdentityClientId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDataUserAssignedIdentity; + }); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/EncryptionWithCmk.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/EncryptionWithCmk.java index 55b1034629bf..2a85058b7656 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/EncryptionWithCmk.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/EncryptionWithCmk.java @@ -29,6 +29,11 @@ public final class EncryptionWithCmk implements JsonSerializable { + /* + * The name of the feature offered in this region. + */ + private String name; + + /** + * Creates an instance of FeatureOffering class. + */ + private FeatureOffering() { + } + + /** + * Get the name property: The name of the feature offered in this region. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FeatureOffering from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FeatureOffering if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the FeatureOffering. + */ + public static FeatureOffering fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FeatureOffering deserializedFeatureOffering = new FeatureOffering(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedFeatureOffering.name = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedFeatureOffering; + }); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/HostingMode.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/HostingMode.java index 64bf1634e993..c1bb3c40dab9 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/HostingMode.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/HostingMode.java @@ -11,12 +11,12 @@ */ public enum HostingMode { /** - * The limit on number of indexes is determined by the default limits for the SKU. + * The maximum limit of indexes is determined by the SKU or pricing tier. */ DEFAULT("Default"), /** - * Only application for standard3 SKU, where the search service can have up to 1000 indexes. + * Only applies to the Standard3 (S3) SKU, where the search services can have up to 1,000 indexes. */ HIGH_DENSITY("HighDensity"); diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/KnowledgeRetrieval.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/KnowledgeRetrieval.java new file mode 100644 index 000000000000..6c975d57b2fe --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/KnowledgeRetrieval.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Specifies the billing plan for agentic retrieval on the Azure AI Search service. This configuration is only available + * for certain pricing tiers in certain regions. + */ +public final class KnowledgeRetrieval extends ExpandableStringEnum { + /** + * Enables knowledge retrieval on a search service and indicates that it is to be used within the limits of the free + * plan. The free plan would cap the volume of knowledge retrieval requests and is offered at no extra charge. + */ + public static final KnowledgeRetrieval FREE = fromString("free"); + + /** + * Enables knowledge retrieval on a search service as a billable feature after the free quota is exhausted, with + * higher throughput and volume of knowledge retrieval requests. + */ + public static final KnowledgeRetrieval STANDARD = fromString("standard"); + + /** + * Creates a new instance of KnowledgeRetrieval value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public KnowledgeRetrieval() { + } + + /** + * Creates or finds a KnowledgeRetrieval from its string representation. + * + * @param name a name to look for. + * @return the corresponding KnowledgeRetrieval. + */ + public static KnowledgeRetrieval fromString(String name) { + return fromString(name, KnowledgeRetrieval.class); + } + + /** + * Gets known KnowledgeRetrieval values. + * + * @return known KnowledgeRetrieval values. + */ + public static Collection values() { + return values(KnowledgeRetrieval.class); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/OfferingsByRegion.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/OfferingsByRegion.java new file mode 100644 index 000000000000..b03cbae88bb9 --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/OfferingsByRegion.java @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Describes the Azure AI Search features and SKUs available in a specific Azure region. + */ +@Immutable +public final class OfferingsByRegion implements JsonSerializable { + /* + * The name of the region. + */ + private String regionName; + + /* + * The list of features offered in this region. + */ + private List features; + + /* + * The list of SKUs offered in this region. + */ + private List skus; + + /** + * Creates an instance of OfferingsByRegion class. + */ + private OfferingsByRegion() { + } + + /** + * Get the regionName property: The name of the region. + * + * @return the regionName value. + */ + public String regionName() { + return this.regionName; + } + + /** + * Get the features property: The list of features offered in this region. + * + * @return the features value. + */ + public List features() { + return this.features; + } + + /** + * Get the skus property: The list of SKUs offered in this region. + * + * @return the skus value. + */ + public List skus() { + return this.skus; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (features() != null) { + features().forEach(e -> e.validate()); + } + if (skus() != null) { + skus().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("regionName", this.regionName); + jsonWriter.writeArrayField("features", this.features, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("skus", this.skus, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OfferingsByRegion from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OfferingsByRegion if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the OfferingsByRegion. + */ + public static OfferingsByRegion fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OfferingsByRegion deserializedOfferingsByRegion = new OfferingsByRegion(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("regionName".equals(fieldName)) { + deserializedOfferingsByRegion.regionName = reader.getString(); + } else if ("features".equals(fieldName)) { + List features = reader.readArray(reader1 -> FeatureOffering.fromJson(reader1)); + deserializedOfferingsByRegion.features = features; + } else if ("skus".equals(fieldName)) { + List skus = reader.readArray(reader1 -> SkuOffering.fromJson(reader1)); + deserializedOfferingsByRegion.skus = skus; + } else { + reader.skipChildren(); + } + } + + return deserializedOfferingsByRegion; + }); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/ProvisioningState.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/ProvisioningState.java index 3b3a25c59a05..e33660474d6a 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/ProvisioningState.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/ProvisioningState.java @@ -19,7 +19,7 @@ public enum ProvisioningState { SUCCEEDED("succeeded"), /** - * The search service is being provisioned or scaled up or down. + * The search service is being provisioned or scaled up or down. For dedicated search services only. */ PROVISIONING("provisioning"), diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/QuotaUsageResultName.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/QuotaUsageResultName.java index ac3c48302a18..69ed489b809a 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/QuotaUsageResultName.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/QuotaUsageResultName.java @@ -12,7 +12,7 @@ import java.io.IOException; /** - * The name of the SKU supported by Azure AI Search. + * The SKU name information, including its identifier and localized display name. */ @Immutable public final class QuotaUsageResultName implements JsonSerializable { diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchBypass.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchBypass.java index 0aa816e24cbf..2e30eeb47c82 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchBypass.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchBypass.java @@ -16,6 +16,11 @@ public final class SearchBypass extends ExpandableStringEnum { */ public static final SearchBypass NONE = fromString("None"); + /** + * Indicates that requests originating from the Azure Portal can bypass the rules defined in the 'ipRules' section. + */ + public static final SearchBypass AZURE_PORTAL = fromString("AzurePortal"); + /** * Indicates that requests originating from Azure trusted services can bypass the rules defined in the 'ipRules' * section. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchResourceEncryptionKey.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchResourceEncryptionKey.java new file mode 100644 index 000000000000..bc1c719a525f --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchResourceEncryptionKey.java @@ -0,0 +1,228 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be used to encrypt or + * decrypt data-at-rest, such as indexes and synonym maps. + */ +@Fluent +public final class SearchResourceEncryptionKey implements JsonSerializable { + /* + * The name of your Azure Key Vault key to be used to encrypt your data at rest. + */ + private String keyName; + + /* + * The version of your Azure Key Vault key to be used to encrypt your data at rest. + */ + private String keyVersion; + + /* + * The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your + * data at rest. An example URI might be `https://my-keyvault-name.vault.azure.net`. + */ + private String vaultUri; + + /* + * An explicit managed identity to use for this encryption key. If not specified and the access credentials property + * is null, the system-assigned managed identity is used. On update to the resource, if the explicit identity is + * unspecified, it remains unchanged. If "none" is specified, the value of this property is cleared. + */ + private DataIdentity identity; + + /* + * Optional Azure Active Directory credentials used for accessing your Azure Key Vault. Not required if using + * managed identity instead. + */ + private AzureActiveDirectoryApplicationCredentials accessCredentials; + + /** + * Creates an instance of SearchResourceEncryptionKey class. + */ + public SearchResourceEncryptionKey() { + } + + /** + * Get the keyName property: The name of your Azure Key Vault key to be used to encrypt your data at rest. + * + * @return the keyName value. + */ + public String keyName() { + return this.keyName; + } + + /** + * Set the keyName property: The name of your Azure Key Vault key to be used to encrypt your data at rest. + * + * @param keyName the keyName value to set. + * @return the SearchResourceEncryptionKey object itself. + */ + public SearchResourceEncryptionKey withKeyName(String keyName) { + this.keyName = keyName; + return this; + } + + /** + * Get the keyVersion property: The version of your Azure Key Vault key to be used to encrypt your data at rest. + * + * @return the keyVersion value. + */ + public String keyVersion() { + return this.keyVersion; + } + + /** + * Set the keyVersion property: The version of your Azure Key Vault key to be used to encrypt your data at rest. + * + * @param keyVersion the keyVersion value to set. + * @return the SearchResourceEncryptionKey object itself. + */ + public SearchResourceEncryptionKey withKeyVersion(String keyVersion) { + this.keyVersion = keyVersion; + return this; + } + + /** + * Get the vaultUri property: The URI of your Azure Key Vault, also referred to as DNS name, that contains the key + * to be used to encrypt your data at rest. An example URI might be `https://my-keyvault-name.vault.azure.net`. + * + * @return the vaultUri value. + */ + public String vaultUri() { + return this.vaultUri; + } + + /** + * Set the vaultUri property: The URI of your Azure Key Vault, also referred to as DNS name, that contains the key + * to be used to encrypt your data at rest. An example URI might be `https://my-keyvault-name.vault.azure.net`. + * + * @param vaultUri the vaultUri value to set. + * @return the SearchResourceEncryptionKey object itself. + */ + public SearchResourceEncryptionKey withVaultUri(String vaultUri) { + this.vaultUri = vaultUri; + return this; + } + + /** + * Get the identity property: An explicit managed identity to use for this encryption key. If not specified and the + * access credentials property is null, the system-assigned managed identity is used. On update to the resource, if + * the explicit identity is unspecified, it remains unchanged. If "none" is specified, the value of this property is + * cleared. + * + * @return the identity value. + */ + public DataIdentity identity() { + return this.identity; + } + + /** + * Set the identity property: An explicit managed identity to use for this encryption key. If not specified and the + * access credentials property is null, the system-assigned managed identity is used. On update to the resource, if + * the explicit identity is unspecified, it remains unchanged. If "none" is specified, the value of this property is + * cleared. + * + * @param identity the identity value to set. + * @return the SearchResourceEncryptionKey object itself. + */ + public SearchResourceEncryptionKey withIdentity(DataIdentity identity) { + this.identity = identity; + return this; + } + + /** + * Get the accessCredentials property: Optional Azure Active Directory credentials used for accessing your Azure Key + * Vault. Not required if using managed identity instead. + * + * @return the accessCredentials value. + */ + public AzureActiveDirectoryApplicationCredentials accessCredentials() { + return this.accessCredentials; + } + + /** + * Set the accessCredentials property: Optional Azure Active Directory credentials used for accessing your Azure Key + * Vault. Not required if using managed identity instead. + * + * @param accessCredentials the accessCredentials value to set. + * @return the SearchResourceEncryptionKey object itself. + */ + public SearchResourceEncryptionKey + withAccessCredentials(AzureActiveDirectoryApplicationCredentials accessCredentials) { + this.accessCredentials = accessCredentials; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (identity() != null) { + identity().validate(); + } + if (accessCredentials() != null) { + accessCredentials().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("keyVaultKeyName", this.keyName); + jsonWriter.writeStringField("keyVaultKeyVersion", this.keyVersion); + jsonWriter.writeStringField("keyVaultUri", this.vaultUri); + jsonWriter.writeJsonField("identity", this.identity); + jsonWriter.writeJsonField("accessCredentials", this.accessCredentials); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SearchResourceEncryptionKey from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SearchResourceEncryptionKey if the JsonReader was pointing to an instance of it, or null + * if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the SearchResourceEncryptionKey. + */ + public static SearchResourceEncryptionKey fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SearchResourceEncryptionKey deserializedSearchResourceEncryptionKey = new SearchResourceEncryptionKey(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("keyVaultKeyName".equals(fieldName)) { + deserializedSearchResourceEncryptionKey.keyName = reader.getString(); + } else if ("keyVaultKeyVersion".equals(fieldName)) { + deserializedSearchResourceEncryptionKey.keyVersion = reader.getString(); + } else if ("keyVaultUri".equals(fieldName)) { + deserializedSearchResourceEncryptionKey.vaultUri = reader.getString(); + } else if ("identity".equals(fieldName)) { + deserializedSearchResourceEncryptionKey.identity = DataIdentity.fromJson(reader); + } else if ("accessCredentials".equals(fieldName)) { + deserializedSearchResourceEncryptionKey.accessCredentials + = AzureActiveDirectoryApplicationCredentials.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSearchResourceEncryptionKey; + }); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchSemanticSearch.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchSemanticSearch.java index b3c067e964d3..08f11ba6bce3 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchSemanticSearch.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchSemanticSearch.java @@ -8,25 +8,25 @@ import java.util.Collection; /** - * Sets options that control the availability of semantic search. This configuration is only possible for certain Azure - * AI Search SKUs in certain locations. + * Specifies the availability and billing plan for semantic search on the Azure AI Search service. This configuration is + * only available for certain pricing tiers in certain regions. */ public final class SearchSemanticSearch extends ExpandableStringEnum { /** - * Indicates that semantic reranker is disabled for the search service. This is the default. + * Indicates that semantic reranker is disabled for the search service. */ public static final SearchSemanticSearch DISABLED = fromString("disabled"); /** * Enables semantic reranker on a search service and indicates that it is to be used within the limits of the free * plan. The free plan would cap the volume of semantic ranking requests and is offered at no extra charge. This is - * the default for newly provisioned search services. + * the default for newly provisioned search services. This is the default. */ public static final SearchSemanticSearch FREE = fromString("free"); /** - * Enables semantic reranker on a search service as a billable feature, with higher throughput and volume of - * semantically reranked queries. + * Enables semantic reranker on a search service as a billable feature after the free quota is exhausted, with + * higher throughput and volume of semantically reranked queries. */ public static final SearchSemanticSearch STANDARD = fromString("standard"); diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchServiceUpdate.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchServiceUpdate.java index 8e0286fb21d9..6da61b307207 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchServiceUpdate.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SearchServiceUpdate.java @@ -214,8 +214,8 @@ public String id() { } /** - * Get the replicaCount property: 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. + * Get the replicaCount property: The number of replicas in the dedicated 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. * * @return the replicaCount value. */ @@ -224,8 +224,8 @@ public Integer replicaCount() { } /** - * Set the replicaCount property: 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. + * Set the replicaCount property: The number of replicas in the dedicated 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. * * @param replicaCount the replicaCount value to set. * @return the SearchServiceUpdate object itself. @@ -239,9 +239,9 @@ public SearchServiceUpdate withReplicaCount(Integer replicaCount) { } /** - * Get the partitionCount property: The number of partitions in the search service; if specified, it can be 1, 2, 3, - * 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode - * set to 'highDensity', the allowed values are between 1 and 3. + * Get the partitionCount property: The number of partitions in the dedicated search service; if specified, it can + * be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with + * hostingMode set to 'highDensity', the allowed values are between 1 and 3. * * @return the partitionCount value. */ @@ -250,9 +250,9 @@ public Integer partitionCount() { } /** - * Set the partitionCount property: The number of partitions in the search service; if specified, it can be 1, 2, 3, - * 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode - * set to 'highDensity', the allowed values are between 1 and 3. + * Set the partitionCount property: The number of partitions in the dedicated search service; if specified, it can + * be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with + * hostingMode set to 'highDensity', the allowed values are between 1 and 3. * * @param partitionCount the partitionCount value to set. * @return the SearchServiceUpdate object itself. @@ -539,8 +539,8 @@ public SearchServiceUpdate withAuthOptions(DataPlaneAuthOptions authOptions) { } /** - * Get the semanticSearch property: Sets options that control the availability of semantic search. This - * configuration is only possible for certain Azure AI Search SKUs in certain locations. + * Get the semanticSearch property: Specifies the availability and billing plan for semantic search on the Azure AI + * Search service. This configuration is only available for certain pricing tiers in certain regions. * * @return the semanticSearch value. */ @@ -549,8 +549,8 @@ public SearchSemanticSearch semanticSearch() { } /** - * Set the semanticSearch property: Sets options that control the availability of semantic search. This - * configuration is only possible for certain Azure AI Search SKUs in certain locations. + * Set the semanticSearch property: Specifies the availability and billing plan for semantic search on the Azure AI + * Search service. This configuration is only available for certain pricing tiers in certain regions. * * @param semanticSearch the semanticSearch value to set. * @return the SearchServiceUpdate object itself. @@ -563,6 +563,31 @@ public SearchServiceUpdate withSemanticSearch(SearchSemanticSearch semanticSearc return this; } + /** + * Get the knowledgeRetrieval property: Specifies the billing plan for agentic retrieval on the Azure AI Search + * service. This configuration is only available for certain pricing tiers in certain regions. + * + * @return the knowledgeRetrieval value. + */ + public KnowledgeRetrieval knowledgeRetrieval() { + return this.innerProperties() == null ? null : this.innerProperties().knowledgeRetrieval(); + } + + /** + * Set the knowledgeRetrieval property: Specifies the billing plan for agentic retrieval on the Azure AI Search + * service. This configuration is only available for certain pricing tiers in certain regions. + * + * @param knowledgeRetrieval the knowledgeRetrieval value to set. + * @return the SearchServiceUpdate object itself. + */ + public SearchServiceUpdate withKnowledgeRetrieval(KnowledgeRetrieval knowledgeRetrieval) { + if (this.innerProperties() == null) { + this.innerProperties = new SearchServiceProperties(); + } + this.innerProperties().withKnowledgeRetrieval(knowledgeRetrieval); + return this; + } + /** * Get the privateEndpointConnections property: The list of private endpoint connections to the Azure AI Search * service. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/Sku.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/Sku.java index 9e20d74586d3..3f3fe9033ca4 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/Sku.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/Sku.java @@ -22,7 +22,7 @@ public final class Sku implements JsonSerializable { * standard, but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 * partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to * 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': - * Supports 2TB per partition, up to 12 partitions.' + * Supports 2TB per partition, up to 12 partitions. 'serverless': Serverless tier with auto-scaling capabilities. */ private SkuName name; @@ -38,7 +38,8 @@ public Sku() { * 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard * offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the * hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. - * 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.'. + * 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions. 'serverless': Serverless tier with + * auto-scaling capabilities. * * @return the name value. */ @@ -52,7 +53,8 @@ public SkuName name() { * 'standard2': Similar to standard, but with more capacity per search unit. 'standard3': The largest Standard * offering with up to 12 partitions and 12 replicas (or up to 3 partitions with more indexes if you also set the * hostingMode property to 'highDensity'). 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. - * 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions.'. + * 'storage_optimized_l2': Supports 2TB per partition, up to 12 partitions. 'serverless': Serverless tier with + * auto-scaling capabilities. * * @param name the name value to set. * @return the Sku object itself. diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuLimits.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuLimits.java new file mode 100644 index 000000000000..640a174ec79d --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuLimits.java @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Describes the limits associated with a SKU offering. + */ +@Immutable +public final class SkuLimits implements JsonSerializable { + /* + * The maximum number of indexes available for this SKU. + */ + private Integer indexes; + + /* + * The maximum number of indexers available for this SKU. + */ + private Integer indexers; + + /* + * The maximum storage size in Gigabytes available for this SKU per partition. + */ + private Double partitionStorageInGigabytes; + + /* + * The maximum vector storage size in Gigabytes available for this SKU per partition. + */ + private Double partitionVectorStorageInGigabytes; + + /* + * The maximum number of search units available for this SKU. + */ + private Integer searchUnits; + + /* + * The maximum number of replicas available for this SKU. + */ + private Integer replicas; + + /* + * The maximum number of partitions available for this SKU. + */ + private Integer partitions; + + /** + * Creates an instance of SkuLimits class. + */ + private SkuLimits() { + } + + /** + * Get the indexes property: The maximum number of indexes available for this SKU. + * + * @return the indexes value. + */ + public Integer indexes() { + return this.indexes; + } + + /** + * Get the indexers property: The maximum number of indexers available for this SKU. + * + * @return the indexers value. + */ + public Integer indexers() { + return this.indexers; + } + + /** + * Get the partitionStorageInGigabytes property: The maximum storage size in Gigabytes available for this SKU per + * partition. + * + * @return the partitionStorageInGigabytes value. + */ + public Double partitionStorageInGigabytes() { + return this.partitionStorageInGigabytes; + } + + /** + * Get the partitionVectorStorageInGigabytes property: The maximum vector storage size in Gigabytes available for + * this SKU per partition. + * + * @return the partitionVectorStorageInGigabytes value. + */ + public Double partitionVectorStorageInGigabytes() { + return this.partitionVectorStorageInGigabytes; + } + + /** + * Get the searchUnits property: The maximum number of search units available for this SKU. + * + * @return the searchUnits value. + */ + public Integer searchUnits() { + return this.searchUnits; + } + + /** + * Get the replicas property: The maximum number of replicas available for this SKU. + * + * @return the replicas value. + */ + public Integer replicas() { + return this.replicas; + } + + /** + * Get the partitions property: The maximum number of partitions available for this SKU. + * + * @return the partitions value. + */ + public Integer partitions() { + return this.partitions; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("indexes", this.indexes); + jsonWriter.writeNumberField("indexers", this.indexers); + jsonWriter.writeNumberField("partitionStorageInGigabytes", this.partitionStorageInGigabytes); + jsonWriter.writeNumberField("partitionVectorStorageInGigabytes", this.partitionVectorStorageInGigabytes); + jsonWriter.writeNumberField("searchUnits", this.searchUnits); + jsonWriter.writeNumberField("replicas", this.replicas); + jsonWriter.writeNumberField("partitions", this.partitions); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SkuLimits from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SkuLimits if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IOException If an error occurs while reading the SkuLimits. + */ + public static SkuLimits fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SkuLimits deserializedSkuLimits = new SkuLimits(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("indexes".equals(fieldName)) { + deserializedSkuLimits.indexes = reader.getNullable(JsonReader::getInt); + } else if ("indexers".equals(fieldName)) { + deserializedSkuLimits.indexers = reader.getNullable(JsonReader::getInt); + } else if ("partitionStorageInGigabytes".equals(fieldName)) { + deserializedSkuLimits.partitionStorageInGigabytes = reader.getNullable(JsonReader::getDouble); + } else if ("partitionVectorStorageInGigabytes".equals(fieldName)) { + deserializedSkuLimits.partitionVectorStorageInGigabytes = reader.getNullable(JsonReader::getDouble); + } else if ("searchUnits".equals(fieldName)) { + deserializedSkuLimits.searchUnits = reader.getNullable(JsonReader::getInt); + } else if ("replicas".equals(fieldName)) { + deserializedSkuLimits.replicas = reader.getNullable(JsonReader::getInt); + } else if ("partitions".equals(fieldName)) { + deserializedSkuLimits.partitions = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedSkuLimits; + }); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuName.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuName.java index 0b7ac44f13bb..cd14df065508 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuName.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuName.java @@ -13,7 +13,7 @@ * but with more capacity per search unit. 'standard3': The largest Standard offering with up to 12 partitions and 12 * replicas (or up to 3 partitions with more indexes if you also set the hostingMode property to 'highDensity'). * 'storage_optimized_l1': Supports 1TB per partition, up to 12 partitions. 'storage_optimized_l2': Supports 2TB per - * partition, up to 12 partitions.'. + * partition, up to 12 partitions. 'serverless': Serverless tier with auto-scaling capabilities. */ public final class SkuName extends ExpandableStringEnum { /** @@ -52,6 +52,12 @@ public final class SkuName extends ExpandableStringEnum { */ public static final SkuName STORAGE_OPTIMIZED_L2 = fromString("storage_optimized_l2"); + /** + * Serverless tier, offering low-touch, consumption-based, and pay-as-you-go experience, with auto-scaling + * capabilities. + */ + public static final SkuName SERVERLESS = fromString("serverless"); + /** * Creates a new instance of SkuName value. * diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuOffering.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuOffering.java new file mode 100644 index 000000000000..c1e0a9471457 --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/SkuOffering.java @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Describes a SKU offering with its limits in a specific region. + */ +@Immutable +public final class SkuOffering implements JsonSerializable { + /* + * The SKU definition. + */ + private Sku sku; + + /* + * The limits associated with this SKU offered in this region. + */ + private SkuLimits limits; + + /** + * Creates an instance of SkuOffering class. + */ + private SkuOffering() { + } + + /** + * Get the sku property: The SKU definition. + * + * @return the sku value. + */ + public Sku sku() { + return this.sku; + } + + /** + * Get the limits property: The limits associated with this SKU offered in this region. + * + * @return the limits value. + */ + public SkuLimits limits() { + return this.limits; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (sku() != null) { + sku().validate(); + } + if (limits() != null) { + limits().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("sku", this.sku); + jsonWriter.writeJsonField("limits", this.limits); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SkuOffering from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SkuOffering if the JsonReader was pointing to an instance of it, or null if it was + * pointing to JSON null. + * @throws IOException If an error occurs while reading the SkuOffering. + */ + public static SkuOffering fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SkuOffering deserializedSkuOffering = new SkuOffering(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("sku".equals(fieldName)) { + deserializedSkuOffering.sku = Sku.fromJson(reader); + } else if ("limits".equals(fieldName)) { + deserializedSkuOffering.limits = SkuLimits.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSkuOffering; + }); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/UpgradeAvailable.java b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/UpgradeAvailable.java index 338aa3199bb2..d641dca6592c 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/UpgradeAvailable.java +++ b/sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/models/UpgradeAvailable.java @@ -8,16 +8,16 @@ import java.util.Collection; /** - * Indicates if the search service has an upgrade available. + * Indicates if the dedicated search service has an upgrade available. */ public final class UpgradeAvailable extends ExpandableStringEnum { /** - * An upgrade is currently not available for the service. + * An upgrade is currently not available for the dedicated service. */ public static final UpgradeAvailable NOT_AVAILABLE = fromString("notAvailable"); /** - * There is an upgrade available for the service. + * There is an upgrade available for the dedicated service. */ public static final UpgradeAvailable AVAILABLE = fromString("available"); diff --git a/sdk/search/azure-resourcemanager-search/src/main/resources/META-INF/azure-resourcemanager-search_metadata.json b/sdk/search/azure-resourcemanager-search/src/main/resources/META-INF/azure-resourcemanager-search_metadata.json index f4d7ce5fc798..51b97b2909c5 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/resources/META-INF/azure-resourcemanager-search_metadata.json +++ b/sdk/search/azure-resourcemanager-search/src/main/resources/META-INF/azure-resourcemanager-search_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.Search":"2025-05-01"},"generatedFiles":["src/main/java/com/azure/resourcemanager/search/fluent/AdminKeysClient.java","src/main/java/com/azure/resourcemanager/search/fluent/NetworkSecurityPerimeterConfigurationsClient.java","src/main/java/com/azure/resourcemanager/search/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/search/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/search/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/search/fluent/QueryKeysClient.java","src/main/java/com/azure/resourcemanager/search/fluent/SearchManagementClient.java","src/main/java/com/azure/resourcemanager/search/fluent/ServicesClient.java","src/main/java/com/azure/resourcemanager/search/fluent/SharedPrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/search/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/search/fluent/models/AdminKeyResultInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/NetworkSecurityPerimeterConfigurationInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/PrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/QueryKeyInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/QuotaUsageResultInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/SearchServiceInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/SearchServiceProperties.java","src/main/java/com/azure/resourcemanager/search/fluent/models/SharedPrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/search/fluent/package-info.java","src/main/java/com/azure/resourcemanager/search/implementation/AdminKeysClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/QueryKeysClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/SearchManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/search/implementation/SearchManagementClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/ServicesClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/SharedPrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/models/ListQueryKeysResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/NetworkSecurityPerimeterConfigurationListResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/PrivateLinkResourcesResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/QuotaUsagesListResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/SearchServiceListResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/SharedPrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/search/models/AadAuthFailureMode.java","src/main/java/com/azure/resourcemanager/search/models/AccessRule.java","src/main/java/com/azure/resourcemanager/search/models/AccessRuleDirection.java","src/main/java/com/azure/resourcemanager/search/models/AccessRuleProperties.java","src/main/java/com/azure/resourcemanager/search/models/AccessRulePropertiesSubscriptionsItem.java","src/main/java/com/azure/resourcemanager/search/models/ActionType.java","src/main/java/com/azure/resourcemanager/search/models/AdminKeyKind.java","src/main/java/com/azure/resourcemanager/search/models/CheckNameAvailabilityInput.java","src/main/java/com/azure/resourcemanager/search/models/CheckNameAvailabilityOutput.java","src/main/java/com/azure/resourcemanager/search/models/ComputeType.java","src/main/java/com/azure/resourcemanager/search/models/DataPlaneAadOrApiKeyAuthOption.java","src/main/java/com/azure/resourcemanager/search/models/DataPlaneAuthOptions.java","src/main/java/com/azure/resourcemanager/search/models/EncryptionWithCmk.java","src/main/java/com/azure/resourcemanager/search/models/HostingMode.java","src/main/java/com/azure/resourcemanager/search/models/Identity.java","src/main/java/com/azure/resourcemanager/search/models/IdentityType.java","src/main/java/com/azure/resourcemanager/search/models/IpRule.java","src/main/java/com/azure/resourcemanager/search/models/IssueType.java","src/main/java/com/azure/resourcemanager/search/models/NetworkRuleSet.java","src/main/java/com/azure/resourcemanager/search/models/NetworkSecurityPerimeter.java","src/main/java/com/azure/resourcemanager/search/models/NetworkSecurityPerimeterConfigurationProperties.java","src/main/java/com/azure/resourcemanager/search/models/NetworkSecurityPerimeterConfigurationProvisioningState.java","src/main/java/com/azure/resourcemanager/search/models/NetworkSecurityProfile.java","src/main/java/com/azure/resourcemanager/search/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/search/models/Origin.java","src/main/java/com/azure/resourcemanager/search/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/search/models/PrivateEndpointConnectionPropertiesPrivateEndpoint.java","src/main/java/com/azure/resourcemanager/search/models/PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/search/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/search/models/PrivateLinkServiceConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/search/models/PrivateLinkServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/search/models/ProvisioningIssue.java","src/main/java/com/azure/resourcemanager/search/models/ProvisioningIssueProperties.java","src/main/java/com/azure/resourcemanager/search/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/search/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/search/models/QuotaUsageResultName.java","src/main/java/com/azure/resourcemanager/search/models/ResourceAssociation.java","src/main/java/com/azure/resourcemanager/search/models/ResourceAssociationAccessMode.java","src/main/java/com/azure/resourcemanager/search/models/SearchBypass.java","src/main/java/com/azure/resourcemanager/search/models/SearchDataExfiltrationProtection.java","src/main/java/com/azure/resourcemanager/search/models/SearchEncryptionComplianceStatus.java","src/main/java/com/azure/resourcemanager/search/models/SearchEncryptionWithCmk.java","src/main/java/com/azure/resourcemanager/search/models/SearchSemanticSearch.java","src/main/java/com/azure/resourcemanager/search/models/SearchServiceStatus.java","src/main/java/com/azure/resourcemanager/search/models/SearchServiceUpdate.java","src/main/java/com/azure/resourcemanager/search/models/Severity.java","src/main/java/com/azure/resourcemanager/search/models/ShareablePrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/search/models/ShareablePrivateLinkResourceType.java","src/main/java/com/azure/resourcemanager/search/models/SharedPrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/search/models/SharedPrivateLinkResourceProvisioningState.java","src/main/java/com/azure/resourcemanager/search/models/SharedPrivateLinkResourceStatus.java","src/main/java/com/azure/resourcemanager/search/models/Sku.java","src/main/java/com/azure/resourcemanager/search/models/SkuName.java","src/main/java/com/azure/resourcemanager/search/models/UnavailableNameReason.java","src/main/java/com/azure/resourcemanager/search/models/UpgradeAvailable.java","src/main/java/com/azure/resourcemanager/search/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/search/models/package-info.java","src/main/java/com/azure/resourcemanager/search/package-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.Search":"2026-03-01-preview"},"generatedFiles":["src/main/java/com/azure/resourcemanager/search/fluent/AdminKeysClient.java","src/main/java/com/azure/resourcemanager/search/fluent/NetworkSecurityPerimeterConfigurationsClient.java","src/main/java/com/azure/resourcemanager/search/fluent/OfferingsClient.java","src/main/java/com/azure/resourcemanager/search/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/search/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/search/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/search/fluent/QueryKeysClient.java","src/main/java/com/azure/resourcemanager/search/fluent/SearchManagementClient.java","src/main/java/com/azure/resourcemanager/search/fluent/ServicesClient.java","src/main/java/com/azure/resourcemanager/search/fluent/SharedPrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/search/fluent/UsagesClient.java","src/main/java/com/azure/resourcemanager/search/fluent/models/AdminKeyResultInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/NetworkSecurityPerimeterConfigurationInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/OfferingsListResultInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/PrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/QueryKeyInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/QuotaUsageResultInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/SearchServiceInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/SearchServiceProperties.java","src/main/java/com/azure/resourcemanager/search/fluent/models/SharedPrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/search/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/search/fluent/package-info.java","src/main/java/com/azure/resourcemanager/search/implementation/AdminKeysClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/NetworkSecurityPerimeterConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/OfferingsClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/QueryKeysClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/SearchManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/search/implementation/SearchManagementClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/ServicesClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/SharedPrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/UsagesClientImpl.java","src/main/java/com/azure/resourcemanager/search/implementation/models/ListQueryKeysResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/NetworkSecurityPerimeterConfigurationListResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/PrivateEndpointConnectionListResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/PrivateLinkResourcesResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/QuotaUsagesListResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/SearchServiceListResult.java","src/main/java/com/azure/resourcemanager/search/implementation/models/SharedPrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/search/models/AadAuthFailureMode.java","src/main/java/com/azure/resourcemanager/search/models/AccessRule.java","src/main/java/com/azure/resourcemanager/search/models/AccessRuleDirection.java","src/main/java/com/azure/resourcemanager/search/models/AccessRuleProperties.java","src/main/java/com/azure/resourcemanager/search/models/AccessRulePropertiesSubscriptionsItem.java","src/main/java/com/azure/resourcemanager/search/models/ActionType.java","src/main/java/com/azure/resourcemanager/search/models/AdminKeyKind.java","src/main/java/com/azure/resourcemanager/search/models/AzureActiveDirectoryApplicationCredentials.java","src/main/java/com/azure/resourcemanager/search/models/CheckNameAvailabilityInput.java","src/main/java/com/azure/resourcemanager/search/models/CheckNameAvailabilityOutput.java","src/main/java/com/azure/resourcemanager/search/models/ComputeType.java","src/main/java/com/azure/resourcemanager/search/models/DataIdentity.java","src/main/java/com/azure/resourcemanager/search/models/DataNoneIdentity.java","src/main/java/com/azure/resourcemanager/search/models/DataPlaneAadOrApiKeyAuthOption.java","src/main/java/com/azure/resourcemanager/search/models/DataPlaneAuthOptions.java","src/main/java/com/azure/resourcemanager/search/models/DataUserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/search/models/EncryptionWithCmk.java","src/main/java/com/azure/resourcemanager/search/models/FeatureOffering.java","src/main/java/com/azure/resourcemanager/search/models/HostingMode.java","src/main/java/com/azure/resourcemanager/search/models/Identity.java","src/main/java/com/azure/resourcemanager/search/models/IdentityType.java","src/main/java/com/azure/resourcemanager/search/models/IpRule.java","src/main/java/com/azure/resourcemanager/search/models/IssueType.java","src/main/java/com/azure/resourcemanager/search/models/KnowledgeRetrieval.java","src/main/java/com/azure/resourcemanager/search/models/NetworkRuleSet.java","src/main/java/com/azure/resourcemanager/search/models/NetworkSecurityPerimeter.java","src/main/java/com/azure/resourcemanager/search/models/NetworkSecurityPerimeterConfigurationProperties.java","src/main/java/com/azure/resourcemanager/search/models/NetworkSecurityPerimeterConfigurationProvisioningState.java","src/main/java/com/azure/resourcemanager/search/models/NetworkSecurityProfile.java","src/main/java/com/azure/resourcemanager/search/models/OfferingsByRegion.java","src/main/java/com/azure/resourcemanager/search/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/search/models/Origin.java","src/main/java/com/azure/resourcemanager/search/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/search/models/PrivateEndpointConnectionPropertiesPrivateEndpoint.java","src/main/java/com/azure/resourcemanager/search/models/PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/search/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/search/models/PrivateLinkServiceConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/search/models/PrivateLinkServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/search/models/ProvisioningIssue.java","src/main/java/com/azure/resourcemanager/search/models/ProvisioningIssueProperties.java","src/main/java/com/azure/resourcemanager/search/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/search/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/search/models/QuotaUsageResultName.java","src/main/java/com/azure/resourcemanager/search/models/ResourceAssociation.java","src/main/java/com/azure/resourcemanager/search/models/ResourceAssociationAccessMode.java","src/main/java/com/azure/resourcemanager/search/models/SearchBypass.java","src/main/java/com/azure/resourcemanager/search/models/SearchDataExfiltrationProtection.java","src/main/java/com/azure/resourcemanager/search/models/SearchEncryptionComplianceStatus.java","src/main/java/com/azure/resourcemanager/search/models/SearchEncryptionWithCmk.java","src/main/java/com/azure/resourcemanager/search/models/SearchResourceEncryptionKey.java","src/main/java/com/azure/resourcemanager/search/models/SearchSemanticSearch.java","src/main/java/com/azure/resourcemanager/search/models/SearchServiceStatus.java","src/main/java/com/azure/resourcemanager/search/models/SearchServiceUpdate.java","src/main/java/com/azure/resourcemanager/search/models/Severity.java","src/main/java/com/azure/resourcemanager/search/models/ShareablePrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/search/models/ShareablePrivateLinkResourceType.java","src/main/java/com/azure/resourcemanager/search/models/SharedPrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/search/models/SharedPrivateLinkResourceProvisioningState.java","src/main/java/com/azure/resourcemanager/search/models/SharedPrivateLinkResourceStatus.java","src/main/java/com/azure/resourcemanager/search/models/Sku.java","src/main/java/com/azure/resourcemanager/search/models/SkuLimits.java","src/main/java/com/azure/resourcemanager/search/models/SkuName.java","src/main/java/com/azure/resourcemanager/search/models/SkuOffering.java","src/main/java/com/azure/resourcemanager/search/models/UnavailableNameReason.java","src/main/java/com/azure/resourcemanager/search/models/UpgradeAvailable.java","src/main/java/com/azure/resourcemanager/search/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/search/models/package-info.java","src/main/java/com/azure/resourcemanager/search/package-info.java"]} \ No newline at end of file diff --git a/sdk/search/azure-resourcemanager-search/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-search/proxy-config.json b/sdk/search/azure-resourcemanager-search/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-search/proxy-config.json index 78ab24994c22..98fbe337afa0 100644 --- a/sdk/search/azure-resourcemanager-search/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-search/proxy-config.json +++ b/sdk/search/azure-resourcemanager-search/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-search/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.search.implementation.AdminKeysClientImpl$AdminKeysService"],["com.azure.resourcemanager.search.implementation.NetworkSecurityPerimeterConfigurationsClientImpl$NetworkSecurityPerimeterConfigurationsService"],["com.azure.resourcemanager.search.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.search.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.search.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.search.implementation.QueryKeysClientImpl$QueryKeysService"],["com.azure.resourcemanager.search.implementation.SearchManagementClientImpl$SearchManagementClientService"],["com.azure.resourcemanager.search.implementation.ServicesClientImpl$ServicesService"],["com.azure.resourcemanager.search.implementation.SharedPrivateLinkResourcesClientImpl$SharedPrivateLinkResourcesService"],["com.azure.resourcemanager.search.implementation.UsagesClientImpl$UsagesService"]] \ No newline at end of file +[["com.azure.resourcemanager.search.implementation.AdminKeysClientImpl$AdminKeysService"],["com.azure.resourcemanager.search.implementation.NetworkSecurityPerimeterConfigurationsClientImpl$NetworkSecurityPerimeterConfigurationsService"],["com.azure.resourcemanager.search.implementation.OfferingsClientImpl$OfferingsService"],["com.azure.resourcemanager.search.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.search.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.search.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.search.implementation.QueryKeysClientImpl$QueryKeysService"],["com.azure.resourcemanager.search.implementation.SearchManagementClientImpl$SearchManagementClientService"],["com.azure.resourcemanager.search.implementation.ServicesClientImpl$ServicesService"],["com.azure.resourcemanager.search.implementation.SharedPrivateLinkResourcesClientImpl$SharedPrivateLinkResourcesService"],["com.azure.resourcemanager.search.implementation.UsagesClientImpl$UsagesService"]] \ No newline at end of file diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/AdminKeysGetSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/AdminKeysGetSamples.java index e5e4b2bf116a..cb20e446811c 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/AdminKeysGetSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/AdminKeysGetSamples.java @@ -9,7 +9,7 @@ */ public final class AdminKeysGetSamples { /* - * x-ms-original-file: 2025-05-01/SearchGetAdminKeys.json + * x-ms-original-file: 2026-03-01-preview/SearchGetAdminKeys.json */ /** * Sample code: SearchGetAdminKeys. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/AdminKeysRegenerateSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/AdminKeysRegenerateSamples.java index 6ac2b37482c6..e6c4bce367b0 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/AdminKeysRegenerateSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/AdminKeysRegenerateSamples.java @@ -11,7 +11,7 @@ */ public final class AdminKeysRegenerateSamples { /* - * x-ms-original-file: 2025-05-01/SearchRegenerateAdminKey.json + * x-ms-original-file: 2026-03-01-preview/SearchRegenerateAdminKey.json */ /** * Sample code: SearchRegenerateAdminKey. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java index d908d9fa4b60..fbc0424c4a80 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsGetSamples { /* - * x-ms-original-file: 2025-05-01/NetworkSecurityPerimeterConfigurationsGet.json + * x-ms-original-file: 2026-03-01-preview/NetworkSecurityPerimeterConfigurationsGet.json */ /** * Sample code: Get an NSP config by name. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsListByServiceSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsListByServiceSamples.java index e06a718e9eac..d81f2646725b 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsListByServiceSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsListByServiceSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsListByServiceSamples { /* - * x-ms-original-file: 2025-05-01/NetworkSecurityPerimeterConfigurationsListByService.json + * x-ms-original-file: 2026-03-01-preview/NetworkSecurityPerimeterConfigurationsListByService.json */ /** * Sample code: List NSP configs by search service. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java index 7cc5deabc5cb..e71e960299ee 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/NetworkSecurityPerimeterConfigurationsReconcileSamples.java @@ -9,7 +9,7 @@ */ public final class NetworkSecurityPerimeterConfigurationsReconcileSamples { /* - * x-ms-original-file: 2025-05-01/NetworkSecurityPerimeterConfigurationsReconcile.json + * x-ms-original-file: 2026-03-01-preview/NetworkSecurityPerimeterConfigurationsReconcile.json */ /** * Sample code: Reconcile NSP Config. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/OfferingsListSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/OfferingsListSamples.java new file mode 100644 index 000000000000..a922c37b73a6 --- /dev/null +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/OfferingsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.search.generated; + +/** + * Samples for Offerings List. + */ +public final class OfferingsListSamples { + /* + * x-ms-original-file: 2026-03-01-preview/SearchListOfferings.json + */ + /** + * Sample code: SearchListOfferings. + * + * @param manager Entry point to SearchServiceManager. + */ + public static void searchListOfferings(com.azure.resourcemanager.search.SearchServiceManager manager) { + manager.serviceClient().getOfferings().listWithResponse(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/OperationsListSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/OperationsListSamples.java index 6d0c0731298e..709477967089 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/OperationsListSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2025-05-01/SearchListOperations.json + * x-ms-original-file: 2026-03-01-preview/SearchListOperations.json */ /** * Sample code: SearchListOperations. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsDeleteSamples.java index f5d38b098fa4..53b459a75638 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2025-05-01/DeletePrivateEndpointConnection.json + * x-ms-original-file: 2026-03-01-preview/DeletePrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnectionDelete. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsGetSamples.java index f12a20c45aea..adb6b9fb7e08 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2025-05-01/GetPrivateEndpointConnection.json + * x-ms-original-file: 2026-03-01-preview/GetPrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnectionGet. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsListByServiceSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsListByServiceSamples.java index 63f28d0546f0..0dbfca17b75a 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsListByServiceSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsListByServiceSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsListByServiceSamples { /* - * x-ms-original-file: 2025-05-01/ListPrivateEndpointConnectionsByService.json + * x-ms-original-file: 2026-03-01-preview/ListPrivateEndpointConnectionsByService.json */ /** * Sample code: ListPrivateEndpointConnectionsByService. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsUpdateSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsUpdateSamples.java index 13b46ad04c09..e72926cfa1f0 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateEndpointConnectionsUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class PrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: 2025-05-01/UpdatePrivateEndpointConnection.json + * x-ms-original-file: 2026-03-01-preview/UpdatePrivateEndpointConnection.json */ /** * Sample code: PrivateEndpointConnectionUpdate. @@ -29,7 +29,8 @@ public static void privateEndpointConnectionUpdate(com.azure.resourcemanager.sea .withProperties(new PrivateEndpointConnectionProperties().withPrivateLinkServiceConnectionState( new PrivateEndpointConnectionPropertiesPrivateLinkServiceConnectionState() .withStatus(PrivateLinkServiceConnectionStatus.REJECTED) - .withDescription("Rejected for some reason."))), + .withDescription( + "Connection is rejected due to lack of authorization or failure to meet security compliance requirements."))), com.azure.core.util.Context.NONE); } } diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateLinkResourcesListSupportedSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateLinkResourcesListSupportedSamples.java index 45ae4ad61996..8a75fcb5506e 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateLinkResourcesListSupportedSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/PrivateLinkResourcesListSupportedSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkResourcesListSupportedSamples { /* - * x-ms-original-file: 2025-05-01/ListSupportedPrivateLinkResources.json + * x-ms-original-file: 2026-03-01-preview/ListSupportedPrivateLinkResources.json */ /** * Sample code: ListSupportedPrivateLinkResources. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysCreateSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysCreateSamples.java index 6fe7e9d348e2..57d11fabbaf2 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysCreateSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysCreateSamples.java @@ -9,7 +9,7 @@ */ public final class QueryKeysCreateSamples { /* - * x-ms-original-file: 2025-05-01/SearchCreateQueryKey.json + * x-ms-original-file: 2026-03-01-preview/SearchCreateQueryKey.json */ /** * Sample code: SearchCreateQueryKey. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysDeleteSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysDeleteSamples.java index d7ecdf43b6fb..fa99fa11c144 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysDeleteSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class QueryKeysDeleteSamples { /* - * x-ms-original-file: 2025-05-01/SearchDeleteQueryKey.json + * x-ms-original-file: 2026-03-01-preview/SearchDeleteQueryKey.json */ /** * Sample code: SearchDeleteQueryKey. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysListBySearchServiceSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysListBySearchServiceSamples.java index 1160ac94585f..cbc9bdc34d7d 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysListBySearchServiceSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/QueryKeysListBySearchServiceSamples.java @@ -9,7 +9,7 @@ */ public final class QueryKeysListBySearchServiceSamples { /* - * x-ms-original-file: 2025-05-01/SearchListQueryKeysBySearchService.json + * x-ms-original-file: 2026-03-01-preview/SearchListQueryKeysBySearchService.json */ /** * Sample code: SearchListQueryKeysBySearchService. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesCheckNameAvailabilitySamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesCheckNameAvailabilitySamples.java index 88c91828e6a8..29883c20ab96 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesCheckNameAvailabilitySamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesCheckNameAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class ServicesCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2025-05-01/SearchCheckNameAvailability.json + * x-ms-original-file: 2026-03-01-preview/SearchCheckNameAvailability.json */ /** * Sample code: SearchCheckNameAvailability. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesCreateOrUpdateSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesCreateOrUpdateSamples.java index e1fba928e165..bb2bf0f6cc4a 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesCreateOrUpdateSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesCreateOrUpdateSamples.java @@ -9,16 +9,19 @@ import com.azure.resourcemanager.search.models.ComputeType; import com.azure.resourcemanager.search.models.DataPlaneAadOrApiKeyAuthOption; import com.azure.resourcemanager.search.models.DataPlaneAuthOptions; +import com.azure.resourcemanager.search.models.DataUserAssignedIdentity; import com.azure.resourcemanager.search.models.EncryptionWithCmk; import com.azure.resourcemanager.search.models.HostingMode; import com.azure.resourcemanager.search.models.Identity; import com.azure.resourcemanager.search.models.IdentityType; import com.azure.resourcemanager.search.models.IpRule; +import com.azure.resourcemanager.search.models.KnowledgeRetrieval; import com.azure.resourcemanager.search.models.NetworkRuleSet; import com.azure.resourcemanager.search.models.PublicNetworkAccess; import com.azure.resourcemanager.search.models.SearchBypass; import com.azure.resourcemanager.search.models.SearchDataExfiltrationProtection; import com.azure.resourcemanager.search.models.SearchEncryptionWithCmk; +import com.azure.resourcemanager.search.models.SearchResourceEncryptionKey; import com.azure.resourcemanager.search.models.SearchSemanticSearch; import com.azure.resourcemanager.search.models.Sku; import com.azure.resourcemanager.search.models.SkuName; @@ -32,15 +35,15 @@ */ public final class ServicesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-05-01/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateServiceAuthOptions.json */ /** - * Sample code: SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints. + * Sample code: SearchCreateOrUpdateServiceAuthOptions. * * @param manager Entry point to SearchServiceManager. */ - public static void searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints( - com.azure.resourcemanager.search.SearchServiceManager manager) { + public static void + searchCreateOrUpdateServiceAuthOptions(com.azure.resourcemanager.search.SearchServiceManager manager) { manager.serviceClient() .getServices() .createOrUpdate("rg1", "mysearchservice", @@ -51,19 +54,21 @@ public static void searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints( .withPartitionCount(1) .withHostingMode(HostingMode.DEFAULT) .withComputeType(ComputeType.DEFAULT) - .withPublicNetworkAccess(PublicNetworkAccess.DISABLED), + .withAuthOptions(new DataPlaneAuthOptions().withAadOrApiKey(new DataPlaneAadOrApiKeyAuthOption() + .withAadAuthFailureMode(AadAuthFailureMode.HTTP401WITH_BEARER_CHALLENGE))), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-05-01/SearchCreateOrUpdateService.json + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateWithSemanticSearch.json */ /** - * Sample code: SearchCreateOrUpdateService. + * Sample code: SearchCreateOrUpdateWithSemanticSearch. * * @param manager Entry point to SearchServiceManager. */ - public static void searchCreateOrUpdateService(com.azure.resourcemanager.search.SearchServiceManager manager) { + public static void + searchCreateOrUpdateWithSemanticSearch(com.azure.resourcemanager.search.SearchServiceManager manager) { manager.serviceClient() .getServices() .createOrUpdate("rg1", "mysearchservice", @@ -73,20 +78,21 @@ public static void searchCreateOrUpdateService(com.azure.resourcemanager.search. .withReplicaCount(3) .withPartitionCount(1) .withHostingMode(HostingMode.DEFAULT) - .withComputeType(ComputeType.DEFAULT), + .withComputeType(ComputeType.DEFAULT) + .withSemanticSearch(SearchSemanticSearch.FREE), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-05-01/SearchCreateOrUpdateServiceAuthOptions.json + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateServiceWithCmkEnforcement.json */ /** - * Sample code: SearchCreateOrUpdateServiceAuthOptions. + * Sample code: SearchCreateOrUpdateServiceWithCmkEnforcement. * * @param manager Entry point to SearchServiceManager. */ public static void - searchCreateOrUpdateServiceAuthOptions(com.azure.resourcemanager.search.SearchServiceManager manager) { + searchCreateOrUpdateServiceWithCmkEnforcement(com.azure.resourcemanager.search.SearchServiceManager manager) { manager.serviceClient() .getServices() .createOrUpdate("rg1", "mysearchservice", @@ -97,21 +103,20 @@ public static void searchCreateOrUpdateService(com.azure.resourcemanager.search. .withPartitionCount(1) .withHostingMode(HostingMode.DEFAULT) .withComputeType(ComputeType.DEFAULT) - .withAuthOptions(new DataPlaneAuthOptions().withAadOrApiKey(new DataPlaneAadOrApiKeyAuthOption() - .withAadAuthFailureMode(AadAuthFailureMode.HTTP401WITH_BEARER_CHALLENGE))), + .withEncryptionWithCmk(new EncryptionWithCmk().withEnforcement(SearchEncryptionWithCmk.ENABLED)), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-05-01/SearchCreateOrUpdateWithSemanticSearch.json + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateServiceWithDataExfiltration.json */ /** - * Sample code: SearchCreateOrUpdateWithSemanticSearch. + * Sample code: SearchCreateOrUpdateServiceWithDataExfiltration. * * @param manager Entry point to SearchServiceManager. */ public static void - searchCreateOrUpdateWithSemanticSearch(com.azure.resourcemanager.search.SearchServiceManager manager) { + searchCreateOrUpdateServiceWithDataExfiltration(com.azure.resourcemanager.search.SearchServiceManager manager) { manager.serviceClient() .getServices() .createOrUpdate("rg1", "mysearchservice", @@ -122,12 +127,78 @@ public static void searchCreateOrUpdateService(com.azure.resourcemanager.search. .withPartitionCount(1) .withHostingMode(HostingMode.DEFAULT) .withComputeType(ComputeType.DEFAULT) - .withSemanticSearch(SearchSemanticSearch.FREE), + .withDataExfiltrationProtections(Arrays.asList(SearchDataExfiltrationProtection.BLOCK_ALL)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateServiceWithServerless.json + */ + /** + * Sample code: SearchCreateOrUpdateServiceWithServerless. + * + * @param manager Entry point to SearchServiceManager. + */ + public static void + searchCreateOrUpdateServiceWithServerless(com.azure.resourcemanager.search.SearchServiceManager manager) { + manager.serviceClient() + .getServices() + .createOrUpdate("rg1", "myserverlessservice", + new SearchServiceInner().withLocation("westus") + .withTags(mapOf("app-name", "My e-commerce app")) + .withSku(new Sku().withName(SkuName.SERVERLESS)) + .withHostingMode(HostingMode.DEFAULT), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints.json + */ + /** + * Sample code: SearchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints. + * + * @param manager Entry point to SearchServiceManager. + */ + public static void searchCreateOrUpdateServiceToAllowAccessFromPrivateEndpoints( + com.azure.resourcemanager.search.SearchServiceManager manager) { + manager.serviceClient() + .getServices() + .createOrUpdate("rg1", "mysearchservice", + new SearchServiceInner().withLocation("westus") + .withTags(mapOf("app-name", "My e-commerce app")) + .withSku(new Sku().withName(SkuName.STANDARD)) + .withReplicaCount(3) + .withPartitionCount(1) + .withHostingMode(HostingMode.DEFAULT) + .withComputeType(ComputeType.DEFAULT) + .withPublicNetworkAccess(PublicNetworkAccess.DISABLED), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateService.json + */ + /** + * Sample code: SearchCreateOrUpdateService. + * + * @param manager Entry point to SearchServiceManager. + */ + public static void searchCreateOrUpdateService(com.azure.resourcemanager.search.SearchServiceManager manager) { + manager.serviceClient() + .getServices() + .createOrUpdate("rg1", "mysearchservice", + new SearchServiceInner().withLocation("westus") + .withTags(mapOf("app-name", "My e-commerce app")) + .withSku(new Sku().withName(SkuName.STANDARD)) + .withReplicaCount(3) + .withPartitionCount(1) + .withHostingMode(HostingMode.DEFAULT) + .withComputeType(ComputeType.DEFAULT), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-05-01/SearchCreateOrUpdateServiceWithIdentity.json + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateServiceWithIdentity.json */ /** * Sample code: SearchCreateOrUpdateServiceWithIdentity. @@ -152,7 +223,7 @@ public static void searchCreateOrUpdateService(com.azure.resourcemanager.search. } /* - * x-ms-original-file: 2025-05-01/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json */ /** * Sample code: SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass. @@ -174,20 +245,20 @@ public static void searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAn .withNetworkRuleSet(new NetworkRuleSet() .withIpRules( Arrays.asList(new IpRule().withValue("123.4.5.6"), new IpRule().withValue("123.4.6.0/18"))) - .withBypass(SearchBypass.AZURE_SERVICES)), + .withBypass(SearchBypass.AZURE_PORTAL)), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-05-01/SearchCreateOrUpdateServiceDisableLocalAuth.json + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateWithKnowledgeRetrieval.json */ /** - * Sample code: SearchCreateOrUpdateServiceDisableLocalAuth. + * Sample code: SearchCreateOrUpdateWithKnowledgeRetrieval. * * @param manager Entry point to SearchServiceManager. */ public static void - searchCreateOrUpdateServiceDisableLocalAuth(com.azure.resourcemanager.search.SearchServiceManager manager) { + searchCreateOrUpdateWithKnowledgeRetrieval(com.azure.resourcemanager.search.SearchServiceManager manager) { manager.serviceClient() .getServices() .createOrUpdate("rg1", "mysearchservice", @@ -198,80 +269,90 @@ public static void searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPsAn .withPartitionCount(1) .withHostingMode(HostingMode.DEFAULT) .withComputeType(ComputeType.DEFAULT) - .withDisableLocalAuth(true), + .withKnowledgeRetrieval(KnowledgeRetrieval.FREE), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-05-01/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateServiceDisableLocalAuth.json */ /** - * Sample code: SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs. + * Sample code: SearchCreateOrUpdateServiceDisableLocalAuth. * * @param manager Entry point to SearchServiceManager. */ - public static void searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs( - com.azure.resourcemanager.search.SearchServiceManager manager) { + public static void + searchCreateOrUpdateServiceDisableLocalAuth(com.azure.resourcemanager.search.SearchServiceManager manager) { manager.serviceClient() .getServices() .createOrUpdate("rg1", "mysearchservice", new SearchServiceInner().withLocation("westus") .withTags(mapOf("app-name", "My e-commerce app")) .withSku(new Sku().withName(SkuName.STANDARD)) - .withReplicaCount(1) + .withReplicaCount(3) .withPartitionCount(1) .withHostingMode(HostingMode.DEFAULT) .withComputeType(ComputeType.DEFAULT) - .withNetworkRuleSet(new NetworkRuleSet().withIpRules( - Arrays.asList(new IpRule().withValue("123.4.5.6"), new IpRule().withValue("123.4.6.0/18")))), + .withDisableLocalAuth(true), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-05-01/SearchCreateOrUpdateServiceWithCmkEnforcement.json + * x-ms-original-file: 2026-03-01-preview/SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs.json */ /** - * Sample code: SearchCreateOrUpdateServiceWithCmkEnforcement. + * Sample code: SearchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs. * * @param manager Entry point to SearchServiceManager. */ - public static void - searchCreateOrUpdateServiceWithCmkEnforcement(com.azure.resourcemanager.search.SearchServiceManager manager) { + public static void searchCreateOrUpdateServiceToAllowAccessFromPublicCustomIPs( + com.azure.resourcemanager.search.SearchServiceManager manager) { manager.serviceClient() .getServices() .createOrUpdate("rg1", "mysearchservice", new SearchServiceInner().withLocation("westus") .withTags(mapOf("app-name", "My e-commerce app")) .withSku(new Sku().withName(SkuName.STANDARD)) - .withReplicaCount(3) + .withReplicaCount(1) .withPartitionCount(1) .withHostingMode(HostingMode.DEFAULT) .withComputeType(ComputeType.DEFAULT) - .withEncryptionWithCmk(new EncryptionWithCmk().withEnforcement(SearchEncryptionWithCmk.ENABLED)), + .withNetworkRuleSet(new NetworkRuleSet().withIpRules( + Arrays.asList(new IpRule().withValue("123.4.5.6"), new IpRule().withValue("123.4.6.0/18")))), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-05-01/SearchCreateOrUpdateServiceWithDataExfiltration.json + * x-ms-original-file: + * 2026-03-01-preview/SearchCreateOrUpdateServiceWithServiceLevelCmkMultiTenantFederatedIdentity.json */ /** - * Sample code: SearchCreateOrUpdateServiceWithDataExfiltration. + * Sample code: SearchCreateOrUpdateServiceWithServiceLevelCmkMultiTenantFederatedIdentity. * * @param manager Entry point to SearchServiceManager. */ - public static void - searchCreateOrUpdateServiceWithDataExfiltration(com.azure.resourcemanager.search.SearchServiceManager manager) { + public static void searchCreateOrUpdateServiceWithServiceLevelCmkMultiTenantFederatedIdentity( + com.azure.resourcemanager.search.SearchServiceManager manager) { manager.serviceClient() .getServices() - .createOrUpdate("rg1", "mysearchservice", - new SearchServiceInner().withLocation("westus") - .withTags(mapOf("app-name", "My e-commerce app")) - .withSku(new Sku().withName(SkuName.STANDARD)) - .withReplicaCount(3) - .withPartitionCount(1) - .withHostingMode(HostingMode.DEFAULT) - .withComputeType(ComputeType.DEFAULT) - .withDataExfiltrationProtections(Arrays.asList(SearchDataExfiltrationProtection.BLOCK_ALL)), + .createOrUpdate("rg1", "mysearchservice", new SearchServiceInner().withLocation("westus") + .withTags(mapOf("app-name", "My e-commerce app")) + .withSku(new Sku().withName(SkuName.STANDARD)) + .withIdentity(new Identity().withType(IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/user-mi", + new UserAssignedIdentity()))) + .withReplicaCount(3) + .withPartitionCount(1) + .withHostingMode(HostingMode.DEFAULT) + .withComputeType(ComputeType.DEFAULT) + .withEncryptionWithCmk(new EncryptionWithCmk().withEnforcement(SearchEncryptionWithCmk.ENABLED) + .withServiceLevelEncryptionKey(new SearchResourceEncryptionKey().withKeyName("fakeTokenPlaceholder") + .withKeyVersion("fakeTokenPlaceholder") + .withVaultUri("fakeTokenPlaceholder") + .withIdentity(new DataUserAssignedIdentity().withUserAssignedIdentity( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/user-mi") + .withFederatedIdentityClientId("f83c6b1b-4d34-47e4-bb34-9d83df58b540")))), com.azure.core.util.Context.NONE); } diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesDeleteSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesDeleteSamples.java index 050f3c49bbc9..768ecb105c1c 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesDeleteSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ServicesDeleteSamples { /* - * x-ms-original-file: 2025-05-01/SearchDeleteService.json + * x-ms-original-file: 2026-03-01-preview/SearchDeleteService.json */ /** * Sample code: SearchDeleteService. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesGetByResourceGroupSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesGetByResourceGroupSamples.java index 2e1db4e663aa..86705fd19b2a 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesGetByResourceGroupSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ServicesGetByResourceGroupSamples { /* - * x-ms-original-file: 2025-05-01/SearchGetService.json + * x-ms-original-file: 2026-03-01-preview/SearchGetService.json */ /** * Sample code: SearchGetService. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesListByResourceGroupSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesListByResourceGroupSamples.java index 383a8da8478a..291e645215ff 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesListByResourceGroupSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ServicesListByResourceGroupSamples { /* - * x-ms-original-file: 2025-05-01/SearchListServicesByResourceGroup.json + * x-ms-original-file: 2026-03-01-preview/SearchListServicesByResourceGroup.json */ /** * Sample code: SearchListServicesByResourceGroup. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesListSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesListSamples.java index d8a728987e25..ca79cdba7a3c 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesListSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesListSamples.java @@ -9,7 +9,7 @@ */ public final class ServicesListSamples { /* - * x-ms-original-file: 2025-05-01/SearchListServicesBySubscription.json + * x-ms-original-file: 2026-03-01-preview/SearchListServicesBySubscription.json */ /** * Sample code: SearchListServicesBySubscription. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesUpdateSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesUpdateSamples.java index 62cc442ec2af..2faf77277f99 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesUpdateSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesUpdateSamples.java @@ -11,6 +11,7 @@ import com.azure.resourcemanager.search.models.Identity; import com.azure.resourcemanager.search.models.IdentityType; import com.azure.resourcemanager.search.models.IpRule; +import com.azure.resourcemanager.search.models.KnowledgeRetrieval; import com.azure.resourcemanager.search.models.NetworkRuleSet; import com.azure.resourcemanager.search.models.PublicNetworkAccess; import com.azure.resourcemanager.search.models.SearchBypass; @@ -29,7 +30,7 @@ */ public final class ServicesUpdateSamples { /* - * x-ms-original-file: 2025-05-01/SearchUpdateServiceDisableLocalAuth.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceDisableLocalAuth.json */ /** * Sample code: SearchUpdateServiceDisableLocalAuth. @@ -49,7 +50,7 @@ public final class ServicesUpdateSamples { } /* - * x-ms-original-file: 2025-05-01/SearchUpdateServiceWithSku.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceWithSku.json */ /** * Sample code: SearchUpdateServiceWithSku. @@ -66,7 +67,7 @@ public static void searchUpdateServiceWithSku(com.azure.resourcemanager.search.S } /* - * x-ms-original-file: 2025-05-01/SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass.json */ /** * Sample code: SearchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass. @@ -84,12 +85,12 @@ public static void searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass( .withNetworkRuleSet(new NetworkRuleSet() .withIpRules( Arrays.asList(new IpRule().withValue("123.4.5.6"), new IpRule().withValue("123.4.6.0/18"))) - .withBypass(SearchBypass.AZURE_SERVICES)), + .withBypass(SearchBypass.AZURE_PORTAL)), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-05-01/SearchUpdateServiceWithCmkEnforcement.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceWithCmkEnforcement.json */ /** * Sample code: SearchUpdateServiceWithCmkEnforcement. @@ -109,7 +110,7 @@ public static void searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass( } /* - * x-ms-original-file: 2025-05-01/SearchUpdateServiceWithDataExfiltration.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceWithDataExfiltration.json */ /** * Sample code: SearchUpdateServiceWithDataExfiltration. @@ -129,7 +130,7 @@ public static void searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass( } /* - * x-ms-original-file: 2025-05-01/SearchUpdateServiceToRemoveIdentity.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceToRemoveIdentity.json */ /** * Sample code: SearchUpdateServiceToRemoveIdentity. @@ -147,7 +148,7 @@ public static void searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass( } /* - * x-ms-original-file: 2025-05-01/SearchUpdateServiceWithSemanticSearch.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceWithSemanticSearch.json */ /** * Sample code: SearchUpdateServiceWithSemanticSearch. @@ -167,7 +168,7 @@ public static void searchUpdateServiceToAllowAccessFromPublicCustomIPsAndBypass( } /* - * x-ms-original-file: 2025-05-01/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceToAllowAccessFromPrivateEndpoints.json */ /** * Sample code: SearchUpdateServiceToAllowAccessFromPrivateEndpoints. @@ -186,7 +187,7 @@ public static void searchUpdateServiceToAllowAccessFromPrivateEndpoints( } /* - * x-ms-original-file: 2025-05-01/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceToAllowAccessFromPublicCustomIPs.json */ /** * Sample code: SearchUpdateServiceToAllowAccessFromPublicCustomIPs. @@ -201,13 +202,15 @@ public static void searchUpdateServiceToAllowAccessFromPublicCustomIPs( new SearchServiceUpdate().withReplicaCount(3) .withPartitionCount(1) .withPublicNetworkAccess(PublicNetworkAccess.ENABLED) - .withNetworkRuleSet(new NetworkRuleSet().withIpRules( - Arrays.asList(new IpRule().withValue("123.4.5.6"), new IpRule().withValue("123.4.6.0/18")))), + .withNetworkRuleSet(new NetworkRuleSet() + .withIpRules( + Arrays.asList(new IpRule().withValue("123.4.5.6"), new IpRule().withValue("123.4.6.0/18"))) + .withBypass(SearchBypass.NONE)), com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2025-05-01/SearchUpdateServiceAuthOptions.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceAuthOptions.json */ /** * Sample code: SearchUpdateServiceAuthOptions. @@ -227,7 +230,7 @@ public static void searchUpdateServiceAuthOptions(com.azure.resourcemanager.sear } /* - * x-ms-original-file: 2025-05-01/SearchUpdateService.json + * x-ms-original-file: 2026-03-01-preview/SearchUpdateService.json */ /** * Sample code: SearchUpdateService. @@ -244,6 +247,26 @@ public static void searchUpdateService(com.azure.resourcemanager.search.SearchSe com.azure.core.util.Context.NONE); } + /* + * x-ms-original-file: 2026-03-01-preview/SearchUpdateServiceWithKnowledgeRetrieval.json + */ + /** + * Sample code: SearchUpdateServiceWithKnowledgeRetrieval. + * + * @param manager Entry point to SearchServiceManager. + */ + public static void + searchUpdateServiceWithKnowledgeRetrieval(com.azure.resourcemanager.search.SearchServiceManager manager) { + manager.serviceClient() + .getServices() + .updateWithResponse("rg1", "mysearchservice", + new SearchServiceUpdate() + .withTags(mapOf("app-name", "My e-commerce app", "new-tag", "Adding a new tag")) + .withReplicaCount(2) + .withKnowledgeRetrieval(KnowledgeRetrieval.STANDARD), + com.azure.core.util.Context.NONE); + } + // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesUpgradeSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesUpgradeSamples.java index 35bf39f99959..1774c982c425 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesUpgradeSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/ServicesUpgradeSamples.java @@ -9,7 +9,7 @@ */ public final class ServicesUpgradeSamples { /* - * x-ms-original-file: 2025-05-01/UpgradeSearchServiceToLatestVersion.json + * x-ms-original-file: 2026-03-01-preview/UpgradeSearchServiceToLatestVersion.json */ /** * Sample code: UpgradeSearchServiceToLatestVersion. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesCreateOrUpdateSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesCreateOrUpdateSamples.java index b17b26f7e53d..400ec4e359bf 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesCreateOrUpdateSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class SharedPrivateLinkResourcesCreateOrUpdateSamples { /* - * x-ms-original-file: 2025-05-01/CreateOrUpdateSharedPrivateLinkResource.json + * x-ms-original-file: 2026-03-01-preview/CreateOrUpdateSharedPrivateLinkResource.json */ /** * Sample code: SharedPrivateLinkResourceCreateOrUpdate. @@ -25,7 +25,7 @@ public final class SharedPrivateLinkResourcesCreateOrUpdateSamples { .getSharedPrivateLinkResources() .createOrUpdate("rg1", "mysearchservice", "testResource", new SharedPrivateLinkResourceInner() .withProperties(new SharedPrivateLinkResourceProperties().withPrivateLinkResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName") + "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Storage/storageAccounts/storageAccountName") .withGroupId("blob") .withRequestMessage("please approve")), com.azure.core.util.Context.NONE); diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesDeleteSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesDeleteSamples.java index e5a9dcb2a9de..12bb2efd6cda 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesDeleteSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SharedPrivateLinkResourcesDeleteSamples { /* - * x-ms-original-file: 2025-05-01/DeleteSharedPrivateLinkResource.json + * x-ms-original-file: 2026-03-01-preview/DeleteSharedPrivateLinkResource.json */ /** * Sample code: SharedPrivateLinkResourceDelete. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesGetSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesGetSamples.java index 77ecf9bdc23c..52016cddebf3 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesGetSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesGetSamples.java @@ -9,7 +9,7 @@ */ public final class SharedPrivateLinkResourcesGetSamples { /* - * x-ms-original-file: 2025-05-01/GetSharedPrivateLinkResource.json + * x-ms-original-file: 2026-03-01-preview/GetSharedPrivateLinkResource.json */ /** * Sample code: SharedPrivateLinkResourceGet. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesListByServiceSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesListByServiceSamples.java index b336da323378..56f134013c76 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesListByServiceSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/SharedPrivateLinkResourcesListByServiceSamples.java @@ -9,7 +9,7 @@ */ public final class SharedPrivateLinkResourcesListByServiceSamples { /* - * x-ms-original-file: 2025-05-01/ListSharedPrivateLinkResourcesByService.json + * x-ms-original-file: 2026-03-01-preview/ListSharedPrivateLinkResourcesByService.json */ /** * Sample code: ListSharedPrivateLinkResourcesByService. diff --git a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/UsagesListBySubscriptionSamples.java b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/UsagesListBySubscriptionSamples.java index 62ee3a4319cb..0640192fc055 100644 --- a/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/UsagesListBySubscriptionSamples.java +++ b/sdk/search/azure-resourcemanager-search/src/samples/java/com/azure/resourcemanager/search/generated/UsagesListBySubscriptionSamples.java @@ -9,7 +9,7 @@ */ public final class UsagesListBySubscriptionSamples { /* - * x-ms-original-file: 2025-05-01/GetQuotaUsagesList.json + * x-ms-original-file: 2026-03-01-preview/GetQuotaUsagesList.json */ /** * Sample code: GetQuotaUsagesList. diff --git a/sdk/search/azure-resourcemanager-search/tsp-location.yaml b/sdk/search/azure-resourcemanager-search/tsp-location.yaml index 5288a9d5d14c..22f612221bde 100644 --- a/sdk/search/azure-resourcemanager-search/tsp-location.yaml +++ b/sdk/search/azure-resourcemanager-search/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/search/resource-manager/Microsoft.Search/Search -commit: 56b4c685b89a096de3d97b3b86efcbf99c470138 +commit: f90ba8622a186403cc11d43b8977d6bfd8410742 repo: Azure/azure-rest-api-specs additionalDirectories: