Skip to content

Commit 9b039de

Browse files
Migrate azure-resourcemanager-search to TypeSpec
Regenerated SDK from TypeSpec specification. Changes: - Regenerated all Java source from TypeSpec - Updated module-info.java with implementation.models opens - Removed stale generated samples - Added revapi suppressions for TypeSpec migration breaking changes - Updated CHANGELOG.md and tsp-location.yaml Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e8e3e0c commit 9b039de

File tree

105 files changed

+2498
-4200
lines changed

Some content is hidden

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

105 files changed

+2498
-4200
lines changed

eng/lintingconfigs/revapi/track2/revapi.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,67 @@
10101010
"code": "java.class.removed",
10111011
"old": "class com.azure.resourcemanager.appservice.models.ExpressionTraces",
10121012
"justification": "Model not used."
1013+
},
1014+
{
1015+
"code": "java.class.removed",
1016+
"old" : {
1017+
"matcher": "regex",
1018+
"match": "class com\\.azure\\.resourcemanager\\.search\\.models\\..*ListResult"
1019+
},
1020+
"justification": "Pageable models moved to implementation package. Unlikely used by user."
1021+
},
1022+
{
1023+
"code": "java.class.removed",
1024+
"old": "class com.azure.resourcemanager.search.models.ListQueryKeysResult",
1025+
"justification": "Pageable models moved to implementation package. Unlikely used by user."
1026+
},
1027+
{
1028+
"code": "java.class.removed",
1029+
"old": "class com.azure.resourcemanager.search.models.OperationListResult",
1030+
"justification": "Pageable models moved to implementation package. Unlikely used by user."
1031+
},
1032+
{
1033+
"code": "java.class.removed",
1034+
"old": "class com.azure.resourcemanager.search.models.PrivateLinkResourcesResult",
1035+
"justification": "Pageable models moved to implementation package. Unlikely used by user."
1036+
},
1037+
{
1038+
"code": "java.class.removed",
1039+
"old": "class com.azure.resourcemanager.search.models.AccessRulePropertiesSubscriptionsItem",
1040+
"justification": "Model moved to implementation package."
1041+
},
1042+
{
1043+
"ignore": true,
1044+
"code": "java.method.visibilityReduced",
1045+
"old" : {
1046+
"matcher": "regex",
1047+
"match": "method void com\\.azure\\.resourcemanager\\.search\\.models\\..*\\:\\:\\<init\\>\\(\\)"
1048+
},
1049+
"justification": "Output-only immutable models' constructors are now private."
1050+
},
1051+
{
1052+
"ignore": true,
1053+
"code": "java.method.removed",
1054+
"old" : {
1055+
"matcher": "regex",
1056+
"match": "method .* com\\.azure\\.resourcemanager\\.search\\.models\\..*\\:\\:with.*\\(.*\\).*"
1057+
},
1058+
"justification": "Output-only immutable models' setters are removed if no explicit usage."
1059+
},
1060+
{
1061+
"ignore": true,
1062+
"code": "java.method.visibilityReduced",
1063+
"old" : {
1064+
"matcher": "regex",
1065+
"match": "method .* com\\.azure\\.resourcemanager\\.search\\.models\\..*\\:\\:with.*\\(.*\\).*"
1066+
},
1067+
"justification": "Output-only immutable models' setters are now package-private if it's being used by child class."
1068+
},
1069+
{
1070+
"regex": true,
1071+
"code": ".*",
1072+
"old": ".*com\\.azure\\.resourcemanager\\.search\\.models\\.(IdentityType|PublicNetworkAccess|SharedPrivateLinkResourceProvisioningState|SharedPrivateLinkResourceStatus|SkuName).*",
1073+
"justification": "Enum changed from sealed to expandable (ExpandableStringEnum) during TypeSpec migration."
10131074
}
10141075
]
10151076
}

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

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

3-
## 2.55.0-beta.1 (Unreleased)
3+
## 2.55.0-beta.1 (2026-03-11)
44

5-
### Features Added
5+
- Azure Resource Manager Cognitive Search client library for Java. This package contains Microsoft Azure SDK for Cognitive Search Management SDK. Client that can be used to manage Azure AI Search services and API keys. Package tag package-2025-02. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
6+
- Based on Azure REST API version 2025-02-01.
7+
- This is a TypeSpec-based SDK. The SDK is generated from TypeSpec specification.
68

79
### Breaking Changes
810

9-
### Bugs Fixed
10-
11-
### Other Changes
11+
- `models.IdentityType`, `models.PublicNetworkAccess`, `models.SharedPrivateLinkResourceProvisioningState`, `models.SharedPrivateLinkResourceStatus`, `models.SkuName` changed from sealed `enum` to `ExpandableStringEnum`.
12+
- Output-only immutable models' constructors are now private, and their setter methods are removed.
1213

1314
## 2.54.5 (2026-01-29)
1415

sdk/search/azure-resourcemanager-search/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra
1818
<dependency>
1919
<groupId>com.azure.resourcemanager</groupId>
2020
<artifactId>azure-resourcemanager-search</artifactId>
21-
<version>2.54.0</version>
21+
<version>2.55.0-beta.1</version>
2222
</dependency>
2323
```
2424
[//]: # ({x-version-update-end})

sdk/search/azure-resourcemanager-search/src/main/java/com/azure/resourcemanager/search/fluent/AdminKeysClient.java

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License.
3-
// Code generated by Microsoft (R) AutoRest Code Generator.
3+
// Code generated by Microsoft (R) TypeSpec Code Generator.
44

55
package com.azure.resourcemanager.search.fluent;
66

@@ -10,7 +10,6 @@
1010
import com.azure.core.util.Context;
1111
import com.azure.resourcemanager.search.fluent.models.AdminKeyResultInner;
1212
import com.azure.resourcemanager.search.models.AdminKeyKind;
13-
import java.util.UUID;
1413
import reactor.core.publisher.Mono;
1514

1615
/**
@@ -20,26 +19,21 @@ public interface AdminKeysClient {
2019
/**
2120
* Gets the primary and secondary admin API keys for the specified Azure AI Search service.
2221
*
23-
* @param resourceGroupName The name of the resource group within the current subscription. You can obtain this
24-
* value from the Azure Resource Manager API or the portal.
22+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2523
* @param searchServiceName The name of the Azure AI Search service associated with the specified resource group.
26-
* @param clientRequestId A client-generated GUID value that identifies this request. If specified, this will be
27-
* included in response information as a way to track the request.
2824
* @throws IllegalArgumentException thrown if parameters fail the validation.
2925
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
3026
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
3127
* @return the primary and secondary admin API keys for the specified Azure AI Search service along with
3228
* {@link Response} on successful completion of {@link Mono}.
3329
*/
3430
@ServiceMethod(returns = ReturnType.SINGLE)
35-
Mono<Response<AdminKeyResultInner>> getWithResponseAsync(String resourceGroupName, String searchServiceName,
36-
UUID clientRequestId);
31+
Mono<Response<AdminKeyResultInner>> getWithResponseAsync(String resourceGroupName, String searchServiceName);
3732

3833
/**
3934
* Gets the primary and secondary admin API keys for the specified Azure AI Search service.
4035
*
41-
* @param resourceGroupName The name of the resource group within the current subscription. You can obtain this
42-
* value from the Azure Resource Manager API or the portal.
36+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
4337
* @param searchServiceName The name of the Azure AI Search service associated with the specified resource group.
4438
* @throws IllegalArgumentException thrown if parameters fail the validation.
4539
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -53,11 +47,8 @@ Mono<Response<AdminKeyResultInner>> getWithResponseAsync(String resourceGroupNam
5347
/**
5448
* Gets the primary and secondary admin API keys for the specified Azure AI Search service.
5549
*
56-
* @param resourceGroupName The name of the resource group within the current subscription. You can obtain this
57-
* value from the Azure Resource Manager API or the portal.
50+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
5851
* @param searchServiceName The name of the Azure AI Search service associated with the specified resource group.
59-
* @param clientRequestId A client-generated GUID value that identifies this request. If specified, this will be
60-
* included in response information as a way to track the request.
6152
* @param context The context to associate with this operation.
6253
* @throws IllegalArgumentException thrown if parameters fail the validation.
6354
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -66,14 +57,12 @@ Mono<Response<AdminKeyResultInner>> getWithResponseAsync(String resourceGroupNam
6657
* {@link Response}.
6758
*/
6859
@ServiceMethod(returns = ReturnType.SINGLE)
69-
Response<AdminKeyResultInner> getWithResponse(String resourceGroupName, String searchServiceName,
70-
UUID clientRequestId, Context context);
60+
Response<AdminKeyResultInner> getWithResponse(String resourceGroupName, String searchServiceName, Context context);
7161

7262
/**
7363
* Gets the primary and secondary admin API keys for the specified Azure AI Search service.
7464
*
75-
* @param resourceGroupName The name of the resource group within the current subscription. You can obtain this
76-
* value from the Azure Resource Manager API or the portal.
65+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
7766
* @param searchServiceName The name of the Azure AI Search service associated with the specified resource group.
7867
* @throws IllegalArgumentException thrown if parameters fail the validation.
7968
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -86,12 +75,9 @@ Response<AdminKeyResultInner> getWithResponse(String resourceGroupName, String s
8675
/**
8776
* Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
8877
*
89-
* @param resourceGroupName The name of the resource group within the current subscription. You can obtain this
90-
* value from the Azure Resource Manager API or the portal.
78+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
9179
* @param searchServiceName The name of the Azure AI Search service associated with the specified resource group.
9280
* @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'.
93-
* @param clientRequestId A client-generated GUID value that identifies this request. If specified, this will be
94-
* included in response information as a way to track the request.
9581
* @throws IllegalArgumentException thrown if parameters fail the validation.
9682
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
9783
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -100,13 +86,12 @@ Response<AdminKeyResultInner> getWithResponse(String resourceGroupName, String s
10086
*/
10187
@ServiceMethod(returns = ReturnType.SINGLE)
10288
Mono<Response<AdminKeyResultInner>> regenerateWithResponseAsync(String resourceGroupName, String searchServiceName,
103-
AdminKeyKind keyKind, UUID clientRequestId);
89+
AdminKeyKind keyKind);
10490

10591
/**
10692
* Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
10793
*
108-
* @param resourceGroupName The name of the resource group within the current subscription. You can obtain this
109-
* value from the Azure Resource Manager API or the portal.
94+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
11095
* @param searchServiceName The name of the Azure AI Search service associated with the specified resource group.
11196
* @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'.
11297
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -121,12 +106,9 @@ Mono<Response<AdminKeyResultInner>> regenerateWithResponseAsync(String resourceG
121106
/**
122107
* Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
123108
*
124-
* @param resourceGroupName The name of the resource group within the current subscription. You can obtain this
125-
* value from the Azure Resource Manager API or the portal.
109+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
126110
* @param searchServiceName The name of the Azure AI Search service associated with the specified resource group.
127111
* @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'.
128-
* @param clientRequestId A client-generated GUID value that identifies this request. If specified, this will be
129-
* included in response information as a way to track the request.
130112
* @param context The context to associate with this operation.
131113
* @throws IllegalArgumentException thrown if parameters fail the validation.
132114
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -136,13 +118,12 @@ Mono<Response<AdminKeyResultInner>> regenerateWithResponseAsync(String resourceG
136118
*/
137119
@ServiceMethod(returns = ReturnType.SINGLE)
138120
Response<AdminKeyResultInner> regenerateWithResponse(String resourceGroupName, String searchServiceName,
139-
AdminKeyKind keyKind, UUID clientRequestId, Context context);
121+
AdminKeyKind keyKind, Context context);
140122

141123
/**
142124
* Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
143125
*
144-
* @param resourceGroupName The name of the resource group within the current subscription. You can obtain this
145-
* value from the Azure Resource Manager API or the portal.
126+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
146127
* @param searchServiceName The name of the Azure AI Search service associated with the specified resource group.
147128
* @param keyKind Specifies which key to regenerate. Valid values include 'primary' and 'secondary'.
148129
* @throws IllegalArgumentException thrown if parameters fail the validation.

0 commit comments

Comments
 (0)