Skip to content

Commit addf7dc

Browse files
author
Chang Lu
committed
Search 2025-05-01 RP API support.
1 parent 34ffdb0 commit addf7dc

File tree

165 files changed

+79583
-14504
lines changed

Some content is hidden

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

165 files changed

+79583
-14504
lines changed

src/Search/Search.Management.Sdk/Generated/AdminKeysOperations.cs

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,19 @@ internal AdminKeysOperations (SearchManagementClient client)
3939
public SearchManagementClient Client { get; private set; }
4040

4141
/// <summary>
42-
/// Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
42+
/// Gets the primary and secondary admin API keys for the specified Azure AI
43+
/// Search service.
4344
/// </summary>
4445
/// <param name='searchManagementRequestOptions'>
4546
///
4647
/// </param>
4748
/// <param name='resourceGroupName'>
48-
/// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
49+
/// The name of the resource group within the current subscription. You can
50+
/// obtain this value from the Azure Resource Manager API or the portal.
4951
/// </param>
5052
/// <param name='searchServiceName'>
51-
/// The name of the Azure Cognitive Search service associated with the specified resource group.
53+
/// The name of the Azure AI Search service associated with the specified
54+
/// resource group.
5255
/// </param>
5356
/// <param name='customHeaders'>
5457
/// Headers that will be added to request.
@@ -87,7 +90,13 @@ internal AdminKeysOperations (SearchManagementClient client)
8790
{
8891
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "searchServiceName");
8992
}
90-
93+
if (searchServiceName != null)
94+
{
95+
if (!System.Text.RegularExpressions.Regex.IsMatch(searchServiceName, "^(?=.{2,60}$)[a-z0-9][a-z0-9]+(-[a-z0-9]+)*$"))
96+
{
97+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "searchServiceName", "^(?=.{2,60}$)[a-z0-9][a-z0-9]+(-[a-z0-9]+)*$");
98+
}
99+
}
91100

92101
if (this.Client.ApiVersion == null)
93102
{
@@ -271,19 +280,23 @@ internal AdminKeysOperations (SearchManagementClient client)
271280

272281
}
273282
/// <summary>
274-
/// Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
283+
/// Regenerates either the primary or secondary admin API key. You can only
284+
/// regenerate one key at a time.
275285
/// </summary>
276286
/// <param name='searchManagementRequestOptions'>
277287
///
278288
/// </param>
279289
/// <param name='resourceGroupName'>
280-
/// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
290+
/// The name of the resource group within the current subscription. You can
291+
/// obtain this value from the Azure Resource Manager API or the portal.
281292
/// </param>
282293
/// <param name='searchServiceName'>
283-
/// The name of the Azure Cognitive Search service associated with the specified resource group.
294+
/// The name of the Azure AI Search service associated with the specified
295+
/// resource group.
284296
/// </param>
285297
/// <param name='keyKind'>
286-
/// Specifies which key to regenerate. Valid values include &#39;primary&#39; and &#39;secondary&#39;.
298+
/// Specifies which key to regenerate. Valid values include &#39;primary&#39; and
299+
/// &#39;secondary&#39;.
287300
/// </param>
288301
/// <param name='customHeaders'>
289302
/// Headers that will be added to request.
@@ -322,7 +335,13 @@ internal AdminKeysOperations (SearchManagementClient client)
322335
{
323336
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "searchServiceName");
324337
}
325-
338+
if (searchServiceName != null)
339+
{
340+
if (!System.Text.RegularExpressions.Regex.IsMatch(searchServiceName, "^(?=.{2,60}$)[a-z0-9][a-z0-9]+(-[a-z0-9]+)*$"))
341+
{
342+
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "searchServiceName", "^(?=.{2,60}$)[a-z0-9][a-z0-9]+(-[a-z0-9]+)*$");
343+
}
344+
}
326345

327346

328347
if (this.Client.ApiVersion == null)

src/Search/Search.Management.Sdk/Generated/AdminKeysOperationsExtensions.cs

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ namespace Microsoft.Azure.Management.Search
1313
public static partial class AdminKeysOperationsExtensions
1414
{
1515
/// <summary>
16-
/// Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
16+
/// Gets the primary and secondary admin API keys for the specified Azure AI
17+
/// Search service.
1718
/// </summary>
1819
/// <param name='operations'>
1920
/// The operations group for this extension method.
@@ -22,18 +23,21 @@ public static partial class AdminKeysOperationsExtensions
2223
///
2324
/// </param>
2425
/// <param name='resourceGroupName'>
25-
/// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
26+
/// The name of the resource group within the current subscription. You can
27+
/// obtain this value from the Azure Resource Manager API or the portal.
2628
/// </param>
2729
/// <param name='searchServiceName'>
28-
/// The name of the Azure Cognitive Search service associated with the specified resource group.
30+
/// The name of the Azure AI Search service associated with the specified
31+
/// resource group.
2932
/// </param>
3033
public static AdminKeyResult Get(this IAdminKeysOperations operations, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions))
3134
{
3235
return ((IAdminKeysOperations)operations).GetAsync(resourceGroupName, searchServiceName, searchManagementRequestOptions).GetAwaiter().GetResult();
3336
}
3437

3538
/// <summary>
36-
/// Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
39+
/// Gets the primary and secondary admin API keys for the specified Azure AI
40+
/// Search service.
3741
/// </summary>
3842
/// <param name='operations'>
3943
/// The operations group for this extension method.
@@ -42,10 +46,12 @@ public static partial class AdminKeysOperationsExtensions
4246
///
4347
/// </param>
4448
/// <param name='resourceGroupName'>
45-
/// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
49+
/// The name of the resource group within the current subscription. You can
50+
/// obtain this value from the Azure Resource Manager API or the portal.
4651
/// </param>
4752
/// <param name='searchServiceName'>
48-
/// The name of the Azure Cognitive Search service associated with the specified resource group.
53+
/// The name of the Azure AI Search service associated with the specified
54+
/// resource group.
4955
/// </param>
5056
/// <param name='cancellationToken'>
5157
/// The cancellation token.
@@ -58,7 +64,8 @@ public static partial class AdminKeysOperationsExtensions
5864
}
5965
}
6066
/// <summary>
61-
/// Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
67+
/// Regenerates either the primary or secondary admin API key. You can only
68+
/// regenerate one key at a time.
6269
/// </summary>
6370
/// <param name='operations'>
6471
/// The operations group for this extension method.
@@ -67,21 +74,25 @@ public static partial class AdminKeysOperationsExtensions
6774
///
6875
/// </param>
6976
/// <param name='resourceGroupName'>
70-
/// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
77+
/// The name of the resource group within the current subscription. You can
78+
/// obtain this value from the Azure Resource Manager API or the portal.
7179
/// </param>
7280
/// <param name='searchServiceName'>
73-
/// The name of the Azure Cognitive Search service associated with the specified resource group.
81+
/// The name of the Azure AI Search service associated with the specified
82+
/// resource group.
7483
/// </param>
7584
/// <param name='keyKind'>
76-
/// Specifies which key to regenerate. Valid values include &#39;primary&#39; and &#39;secondary&#39;.
85+
/// Specifies which key to regenerate. Valid values include &#39;primary&#39; and
86+
/// &#39;secondary&#39;.
7787
/// </param>
7888
public static AdminKeyResult Regenerate(this IAdminKeysOperations operations, string resourceGroupName, string searchServiceName, AdminKeyKind keyKind, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions))
7989
{
8090
return ((IAdminKeysOperations)operations).RegenerateAsync(resourceGroupName, searchServiceName, keyKind, searchManagementRequestOptions).GetAwaiter().GetResult();
8191
}
8292

8393
/// <summary>
84-
/// Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
94+
/// Regenerates either the primary or secondary admin API key. You can only
95+
/// regenerate one key at a time.
8596
/// </summary>
8697
/// <param name='operations'>
8798
/// The operations group for this extension method.
@@ -90,13 +101,16 @@ public static partial class AdminKeysOperationsExtensions
90101
///
91102
/// </param>
92103
/// <param name='resourceGroupName'>
93-
/// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
104+
/// The name of the resource group within the current subscription. You can
105+
/// obtain this value from the Azure Resource Manager API or the portal.
94106
/// </param>
95107
/// <param name='searchServiceName'>
96-
/// The name of the Azure Cognitive Search service associated with the specified resource group.
108+
/// The name of the Azure AI Search service associated with the specified
109+
/// resource group.
97110
/// </param>
98111
/// <param name='keyKind'>
99-
/// Specifies which key to regenerate. Valid values include &#39;primary&#39; and &#39;secondary&#39;.
112+
/// Specifies which key to regenerate. Valid values include &#39;primary&#39; and
113+
/// &#39;secondary&#39;.
100114
/// </param>
101115
/// <param name='cancellationToken'>
102116
/// The cancellation token.

src/Search/Search.Management.Sdk/Generated/IAdminKeysOperations.cs

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,23 @@ namespace Microsoft.Azure.Management.Search
1414
public partial interface IAdminKeysOperations
1515
{
1616
/// <summary>
17-
/// Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
17+
/// Gets the primary and secondary admin API keys for the specified Azure AI
18+
/// Search service.
1819
/// </summary>
1920
/// <remarks>
20-
/// Gets the primary and secondary admin API keys for the specified Azure Cognitive Search service.
21+
/// Gets the primary and secondary admin API keys for the specified Azure AI
22+
/// Search service.
2123
/// </remarks>
2224
/// <param name='searchManagementRequestOptions'>
2325
///
2426
/// </param>
2527
/// <param name='resourceGroupName'>
26-
/// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
28+
/// The name of the resource group within the current subscription. You can
29+
/// obtain this value from the Azure Resource Manager API or the portal.
2730
/// </param>
2831
/// <param name='searchServiceName'>
29-
/// The name of the Azure Cognitive Search service associated with the specified resource group.
32+
/// The name of the Azure AI Search service associated with the specified
33+
/// resource group.
3034
/// </param>
3135
/// <param name='customHeaders'>
3236
/// The headers that will be added to request.
@@ -43,22 +47,27 @@ public partial interface IAdminKeysOperations
4347
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<AdminKeyResult>> GetWithHttpMessagesAsync(string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
4448

4549
/// <summary>
46-
/// Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
50+
/// Regenerates either the primary or secondary admin API key. You can only
51+
/// regenerate one key at a time.
4752
/// </summary>
4853
/// <remarks>
49-
/// Regenerates either the primary or secondary admin API key. You can only regenerate one key at a time.
54+
/// Regenerates either the primary or secondary admin API key. You can only
55+
/// regenerate one key at a time.
5056
/// </remarks>
5157
/// <param name='searchManagementRequestOptions'>
5258
///
5359
/// </param>
5460
/// <param name='resourceGroupName'>
55-
/// The name of the resource group within the current subscription. You can obtain this value from the Azure Resource Manager API or the portal.
61+
/// The name of the resource group within the current subscription. You can
62+
/// obtain this value from the Azure Resource Manager API or the portal.
5663
/// </param>
5764
/// <param name='searchServiceName'>
58-
/// The name of the Azure Cognitive Search service associated with the specified resource group.
65+
/// The name of the Azure AI Search service associated with the specified
66+
/// resource group.
5967
/// </param>
6068
/// <param name='keyKind'>
61-
/// Specifies which key to regenerate. Valid values include &#39;primary&#39; and &#39;secondary&#39;.
69+
/// Specifies which key to regenerate. Valid values include &#39;primary&#39; and
70+
/// &#39;secondary&#39;.
6271
/// </param>
6372
/// <param name='customHeaders'>
6473
/// The headers that will be added to request.

0 commit comments

Comments
 (0)