diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/AdminKeysOperations.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/AdminKeysOperations.cs
index e6b88107c7a9..3ebd3bf14336 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/AdminKeysOperations.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/AdminKeysOperations.cs
@@ -52,7 +52,7 @@ internal AdminKeysOperations(SearchManagementClient client)
///
/// Gets the primary and secondary admin API keys for the specified Azure
- /// Search service.
+ /// Cognitive Search service.
///
///
///
@@ -60,8 +60,8 @@ internal AdminKeysOperations(SearchManagementClient client)
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -277,8 +277,8 @@ internal AdminKeysOperations(SearchManagementClient client)
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Specifies which key to regenerate. Valid values include 'primary' and
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/AdminKeysOperationsExtensions.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/AdminKeysOperationsExtensions.cs
index b7f1e9a92bc1..55591f6233eb 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/AdminKeysOperationsExtensions.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/AdminKeysOperationsExtensions.cs
@@ -23,7 +23,7 @@ public static partial class AdminKeysOperationsExtensions
{
///
/// Gets the primary and secondary admin API keys for the specified Azure
- /// Search service.
+ /// Cognitive Search service.
///
///
///
@@ -34,8 +34,8 @@ public static partial class AdminKeysOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -47,7 +47,7 @@ public static partial class AdminKeysOperationsExtensions
///
/// Gets the primary and secondary admin API keys for the specified Azure
- /// Search service.
+ /// Cognitive Search service.
///
///
///
@@ -58,8 +58,8 @@ public static partial class AdminKeysOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -88,8 +88,8 @@ public static partial class AdminKeysOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Specifies which key to regenerate. Valid values include 'primary' and
@@ -116,8 +116,8 @@ public static partial class AdminKeysOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Specifies which key to regenerate. Valid values include 'primary' and
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IAdminKeysOperations.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IAdminKeysOperations.cs
index 0137cf3d08f2..29be7735d804 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IAdminKeysOperations.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IAdminKeysOperations.cs
@@ -25,7 +25,7 @@ public partial interface IAdminKeysOperations
{
///
/// Gets the primary and secondary admin API keys for the specified
- /// Azure Search service.
+ /// Azure Cognitive Search service.
///
///
///
@@ -34,8 +34,8 @@ public partial interface IAdminKeysOperations
/// portal.
///
///
- /// The name of the Azure Search service associated with the specified
- /// resource group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -67,8 +67,8 @@ public partial interface IAdminKeysOperations
/// portal.
///
///
- /// The name of the Azure Search service associated with the specified
- /// resource group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Specifies which key to regenerate. Valid values include 'primary'
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IQueryKeysOperations.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IQueryKeysOperations.cs
index 29d992b66776..61d1c9b724c9 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IQueryKeysOperations.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IQueryKeysOperations.cs
@@ -34,8 +34,8 @@ public partial interface IQueryKeysOperations
/// portal.
///
///
- /// The name of the Azure Search service associated with the specified
- /// resource group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// The name of the new query API key.
@@ -60,8 +60,8 @@ public partial interface IQueryKeysOperations
///
Task> CreateWithHttpMessagesAsync(string resourceGroupName, string searchServiceName, string name, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Returns the list of query API keys for the given Azure Search
- /// service.
+ /// Returns the list of query API keys for the given Azure Cognitive
+ /// Search service.
///
///
///
@@ -70,8 +70,42 @@ public partial interface IQueryKeysOperations
/// portal.
///
///
- /// The name of the Azure Search service associated with the specified
- /// resource group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ [System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
+ Task>> ListBySearchServiceGetWithHttpMessagesAsync(string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns the list of query API keys for the given Azure Cognitive
+ /// Search service.
+ ///
+ ///
+ ///
+ /// The name of the resource group within the current subscription. You
+ /// can obtain this value from the Azure Resource Manager API or the
+ /// portal.
+ ///
+ ///
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -104,8 +138,8 @@ public partial interface IQueryKeysOperations
/// portal.
///
///
- /// The name of the Azure Search service associated with the specified
- /// resource group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// The query key to be deleted. Query keys are identified by value,
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ISearchManagementClient.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ISearchManagementClient.cs
index ea1612e7397a..b1449235a482 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ISearchManagementClient.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ISearchManagementClient.cs
@@ -16,7 +16,8 @@ namespace Microsoft.Azure.Management.Search
using Newtonsoft.Json;
///
- /// Client that can be used to manage Azure Search services and API keys.
+ /// Client that can be used to manage Azure Cognitive Search services and
+ /// API keys.
///
public partial interface ISearchManagementClient : System.IDisposable
{
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IServicesOperations.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IServicesOperations.cs
index 2ad4afc75815..b99e19ac2499 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IServicesOperations.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/IServicesOperations.cs
@@ -35,8 +35,8 @@ public partial interface IServicesOperations
/// portal.
///
///
- /// The name of the Azure Search service to create or update. Search
- /// service names must only contain lowercase letters, digits or
+ /// The name of the Azure Cognitive Search service to create or update.
+ /// Search service names must only contain lowercase letters, digits or
/// dashes, cannot use dash as the first two or last one characters,
/// cannot contain consecutive dashes, and must be between 2 and 60
/// characters in length. Search service names must be globally unique
@@ -76,7 +76,7 @@ public partial interface IServicesOperations
/// portal.
///
///
- /// The name of the Azure Search service to update.
+ /// The name of the Azure Cognitive Search service to update.
///
///
/// The definition of the Search service to update.
@@ -111,8 +111,8 @@ public partial interface IServicesOperations
/// portal.
///
///
- /// The name of the Azure Search service associated with the specified
- /// resource group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -144,8 +144,8 @@ public partial interface IServicesOperations
/// portal.
///
///
- /// The name of the Azure Search service associated with the specified
- /// resource group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -258,8 +258,8 @@ public partial interface IServicesOperations
/// portal.
///
///
- /// The name of the Azure Search service to create or update. Search
- /// service names must only contain lowercase letters, digits or
+ /// The name of the Azure Cognitive Search service to create or update.
+ /// Search service names must only contain lowercase letters, digits or
/// dashes, cannot use dash as the first two or last one characters,
/// cannot contain consecutive dashes, and must be between 2 and 60
/// characters in length. Search service names must be globally unique
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/AdminKeyResult.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/AdminKeyResult.cs
index 4be0bd0adcd1..1718ca9988d0 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/AdminKeyResult.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/AdminKeyResult.cs
@@ -15,7 +15,7 @@ namespace Microsoft.Azure.Management.Search.Models
///
/// Response containing the primary and secondary admin API keys for a
- /// given Azure Search service.
+ /// given Azure Cognitive Search service.
///
public partial class AdminKeyResult
{
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/QueryKey.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/QueryKey.cs
index 3b13e94f9540..c2b48e30f9ef 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/QueryKey.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/QueryKey.cs
@@ -14,8 +14,8 @@ namespace Microsoft.Azure.Management.Search.Models
using System.Linq;
///
- /// Describes an API key for a given Azure Search service that has
- /// permissions for query operations only.
+ /// Describes an API key for a given Azure Cognitive Search service that
+ /// has permissions for query operations only.
///
public partial class QueryKey
{
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/SearchService.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/SearchService.cs
index 74449ae29e93..0b207742d7e6 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/SearchService.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/SearchService.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.Search.Models
using System.Linq;
///
- /// Describes an Azure Search service and its current state.
+ /// Describes an Azure Cognitive Search service and its current state.
///
[Rest.Serialization.JsonTransformation]
public partial class SearchService : Resource
@@ -72,11 +72,11 @@ public SearchService()
/// 'disabled': The Search service is disabled. In this state, the
/// service will reject all API requests. 'error': The Search service
/// is in an error state. If your service is in the degraded, disabled,
- /// or error states, it means the Azure Search team is actively
- /// investigating the underlying issue. Dedicated services in these
- /// states are still chargeable based on the number of search units
- /// provisioned. Possible values include: 'running', 'provisioning',
- /// 'deleting', 'degraded', 'disabled', 'error'
+ /// or error states, it means the Azure Cognitive Search team is
+ /// actively investigating the underlying issue. Dedicated services in
+ /// these states are still chargeable based on the number of search
+ /// units provisioned. Possible values include: 'running',
+ /// 'provisioning', 'deleting', 'degraded', 'disabled', 'error'
/// The details of the Search service
/// status.
/// The state of the last provisioning
@@ -154,11 +154,11 @@ public SearchService()
/// 'disabled': The Search service is disabled. In this state, the
/// service will reject all API requests. 'error': The Search service
/// is in an error state. If your service is in the degraded, disabled,
- /// or error states, it means the Azure Search team is actively
- /// investigating the underlying issue. Dedicated services in these
- /// states are still chargeable based on the number of search units
- /// provisioned. Possible values include: 'running', 'provisioning',
- /// 'deleting', 'degraded', 'disabled', 'error'
+ /// or error states, it means the Azure Cognitive Search team is
+ /// actively investigating the underlying issue. Dedicated services in
+ /// these states are still chargeable based on the number of search
+ /// units provisioned. Possible values include: 'running',
+ /// 'provisioning', 'deleting', 'degraded', 'disabled', 'error'
///
[JsonProperty(PropertyName = "properties.status")]
public SearchServiceStatus? Status { get; private set; }
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/Sku.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/Sku.cs
index 6074733c7f1c..c417e03e4d9b 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/Sku.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/Models/Sku.cs
@@ -14,8 +14,8 @@ namespace Microsoft.Azure.Management.Search.Models
using System.Linq;
///
- /// Defines the SKU of an Azure Search Service, which determines price tier
- /// and capacity limits.
+ /// Defines the SKU of an Azure Cognitive Search Service, which determines
+ /// price tier and capacity limits.
///
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/QueryKeysOperations.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/QueryKeysOperations.cs
index 6e18aaa24a5d..f6182dc29d1b 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/QueryKeysOperations.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/QueryKeysOperations.cs
@@ -60,8 +60,8 @@ internal QueryKeysOperations(SearchManagementClient client)
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// The name of the new query API key.
@@ -277,7 +277,8 @@ internal QueryKeysOperations(SearchManagementClient client)
}
///
- /// Returns the list of query API keys for the given Azure Search service.
+ /// Returns the list of query API keys for the given Azure Cognitive Search
+ /// service.
///
///
///
@@ -285,8 +286,226 @@ internal QueryKeysOperations(SearchManagementClient client)
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ [System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
+ public async Task>> ListBySearchServiceGetWithHttpMessagesAsync(string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (searchServiceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "searchServiceName");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ System.Guid? clientRequestId = default(System.Guid?);
+ if (searchManagementRequestOptions != null)
+ {
+ clientRequestId = searchManagementRequestOptions.ClientRequestId;
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("searchServiceName", searchServiceName);
+ tracingParameters.Add("clientRequestId", clientRequestId);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListBySearchServiceGet", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Search/searchServices/{searchServiceName}/listQueryKeys").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{searchServiceName}", System.Uri.EscapeDataString(searchServiceName));
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+ if (clientRequestId != null)
+ {
+ if (_httpRequest.Headers.Contains("x-ms-client-request-id"))
+ {
+ _httpRequest.Headers.Remove("x-ms-client-request-id");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", Rest.Serialization.SafeJsonConvert.SerializeObject(clientRequestId, Client.SerializationSettings).Trim('"'));
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Returns the list of query API keys for the given Azure Cognitive Search
+ /// service.
+ ///
+ ///
+ ///
+ /// The name of the resource group within the current subscription. You can
+ /// obtain this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -366,7 +585,7 @@ internal QueryKeysOperations(SearchManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -503,8 +722,8 @@ internal QueryKeysOperations(SearchManagementClient client)
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// The query key to be deleted. Query keys are identified by value, not by
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/QueryKeysOperationsExtensions.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/QueryKeysOperationsExtensions.cs
index 4cfd9eaca328..6ef00967fdb9 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/QueryKeysOperationsExtensions.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/QueryKeysOperationsExtensions.cs
@@ -36,8 +36,8 @@ public static partial class QueryKeysOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// The name of the new query API key.
@@ -63,8 +63,8 @@ public static partial class QueryKeysOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// The name of the new query API key.
@@ -84,7 +84,8 @@ public static partial class QueryKeysOperationsExtensions
}
///
- /// Returns the list of query API keys for the given Azure Search service.
+ /// Returns the list of query API keys for the given Azure Cognitive Search
+ /// service.
///
///
///
@@ -95,8 +96,64 @@ public static partial class QueryKeysOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ [System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
+ public static IEnumerable ListBySearchServiceGet(this IQueryKeysOperations operations, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions))
+ {
+ return operations.ListBySearchServiceGetAsync(resourceGroupName, searchServiceName, searchManagementRequestOptions).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns the list of query API keys for the given Azure Cognitive Search
+ /// service.
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the current subscription. You can
+ /// obtain this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
+ ///
+ ///
+ /// Additional parameters for the operation
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ [System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
+ public static async Task> ListBySearchServiceGetAsync(this IQueryKeysOperations operations, string resourceGroupName, string searchServiceName, SearchManagementRequestOptions searchManagementRequestOptions = default(SearchManagementRequestOptions), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListBySearchServiceGetWithHttpMessagesAsync(resourceGroupName, searchServiceName, searchManagementRequestOptions, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Returns the list of query API keys for the given Azure Cognitive Search
+ /// service.
+ ///
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group within the current subscription. You can
+ /// obtain this value from the Azure Resource Manager API or the portal.
+ ///
+ ///
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -107,7 +164,8 @@ public static partial class QueryKeysOperationsExtensions
}
///
- /// Returns the list of query API keys for the given Azure Search service.
+ /// Returns the list of query API keys for the given Azure Cognitive Search
+ /// service.
///
///
///
@@ -118,8 +176,8 @@ public static partial class QueryKeysOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -149,8 +207,8 @@ public static partial class QueryKeysOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// The query key to be deleted. Query keys are identified by value, not by
@@ -178,8 +236,8 @@ public static partial class QueryKeysOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// The query key to be deleted. Query keys are identified by value, not by
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/SdkInfo_SearchManagementClient.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/SdkInfo_SearchManagementClient.cs
index baacb31c9849..3a06922d2131 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/SdkInfo_SearchManagementClient.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/SdkInfo_SearchManagementClient.cs
@@ -26,16 +26,5 @@ public static IEnumerable> ApiInfo_SearchManagemen
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "latest";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/search/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=E:\\azs-sdk-n-docs\\azure-sdk-for-net\\src\\SDKs";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "b1740c0f568fd1d5f10453030590cc8a4264bed1";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/SearchManagementClient.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/SearchManagementClient.cs
index a44f59aea21e..1ef6c6fef45a 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/SearchManagementClient.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/SearchManagementClient.cs
@@ -22,7 +22,8 @@ namespace Microsoft.Azure.Management.Search
using System.Net.Http;
///
- /// Client that can be used to manage Azure Search services and API keys.
+ /// Client that can be used to manage Azure Cognitive Search services and
+ /// API keys.
///
public partial class SearchManagementClient : ServiceClient, ISearchManagementClient, IAzureClient
{
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ServicesOperations.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ServicesOperations.cs
index 48061ad0457a..9b518e8bd05f 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ServicesOperations.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ServicesOperations.cs
@@ -61,13 +61,13 @@ internal ServicesOperations(SearchManagementClient client)
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service to create or update. Search service
- /// names must only contain lowercase letters, digits or dashes, cannot use
- /// dash as the first two or last one characters, cannot contain consecutive
- /// dashes, and must be between 2 and 60 characters in length. Search service
- /// names must be globally unique since they are part of the service URI
- /// (https://<name>.search.windows.net). You cannot change the service
- /// name after the service is created.
+ /// The name of the Azure Cognitive Search service to create or update. Search
+ /// service names must only contain lowercase letters, digits or dashes, cannot
+ /// use dash as the first two or last one characters, cannot contain
+ /// consecutive dashes, and must be between 2 and 60 characters in length.
+ /// Search service names must be globally unique since they are part of the
+ /// service URI (https://<name>.search.windows.net). You cannot change
+ /// the service name after the service is created.
///
///
/// The definition of the Search service to create or update.
@@ -97,7 +97,7 @@ internal ServicesOperations(SearchManagementClient client)
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service to update.
+ /// The name of the Azure Cognitive Search service to update.
///
///
/// The definition of the Search service to update.
@@ -326,8 +326,8 @@ internal ServicesOperations(SearchManagementClient client)
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -543,8 +543,8 @@ internal ServicesOperations(SearchManagementClient client)
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -1362,13 +1362,13 @@ internal ServicesOperations(SearchManagementClient client)
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service to create or update. Search service
- /// names must only contain lowercase letters, digits or dashes, cannot use
- /// dash as the first two or last one characters, cannot contain consecutive
- /// dashes, and must be between 2 and 60 characters in length. Search service
- /// names must be globally unique since they are part of the service URI
- /// (https://<name>.search.windows.net). You cannot change the service
- /// name after the service is created.
+ /// The name of the Azure Cognitive Search service to create or update. Search
+ /// service names must only contain lowercase letters, digits or dashes, cannot
+ /// use dash as the first two or last one characters, cannot contain
+ /// consecutive dashes, and must be between 2 and 60 characters in length.
+ /// Search service names must be globally unique since they are part of the
+ /// service URI (https://<name>.search.windows.net). You cannot change
+ /// the service name after the service is created.
///
///
/// The definition of the Search service to create or update.
diff --git a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ServicesOperationsExtensions.cs b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ServicesOperationsExtensions.cs
index a24d98f6b171..255eb7b307fc 100644
--- a/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ServicesOperationsExtensions.cs
+++ b/sdk/search/Microsoft.Azure.Management.Search/src/Generated/ServicesOperationsExtensions.cs
@@ -37,13 +37,13 @@ public static partial class ServicesOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service to create or update. Search service
- /// names must only contain lowercase letters, digits or dashes, cannot use
- /// dash as the first two or last one characters, cannot contain consecutive
- /// dashes, and must be between 2 and 60 characters in length. Search service
- /// names must be globally unique since they are part of the service URI
- /// (https://<name>.search.windows.net). You cannot change the service
- /// name after the service is created.
+ /// The name of the Azure Cognitive Search service to create or update. Search
+ /// service names must only contain lowercase letters, digits or dashes, cannot
+ /// use dash as the first two or last one characters, cannot contain
+ /// consecutive dashes, and must be between 2 and 60 characters in length.
+ /// Search service names must be globally unique since they are part of the
+ /// service URI (https://<name>.search.windows.net). You cannot change
+ /// the service name after the service is created.
///
///
/// The definition of the Search service to create or update.
@@ -70,13 +70,13 @@ public static partial class ServicesOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service to create or update. Search service
- /// names must only contain lowercase letters, digits or dashes, cannot use
- /// dash as the first two or last one characters, cannot contain consecutive
- /// dashes, and must be between 2 and 60 characters in length. Search service
- /// names must be globally unique since they are part of the service URI
- /// (https://<name>.search.windows.net). You cannot change the service
- /// name after the service is created.
+ /// The name of the Azure Cognitive Search service to create or update. Search
+ /// service names must only contain lowercase letters, digits or dashes, cannot
+ /// use dash as the first two or last one characters, cannot contain
+ /// consecutive dashes, and must be between 2 and 60 characters in length.
+ /// Search service names must be globally unique since they are part of the
+ /// service URI (https://<name>.search.windows.net). You cannot change
+ /// the service name after the service is created.
///
///
/// The definition of the Search service to create or update.
@@ -107,7 +107,7 @@ public static partial class ServicesOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service to update.
+ /// The name of the Azure Cognitive Search service to update.
///
///
/// The definition of the Search service to update.
@@ -132,7 +132,7 @@ public static partial class ServicesOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service to update.
+ /// The name of the Azure Cognitive Search service to update.
///
///
/// The definition of the Search service to update.
@@ -163,8 +163,8 @@ public static partial class ServicesOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -186,8 +186,8 @@ public static partial class ServicesOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -216,8 +216,8 @@ public static partial class ServicesOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -240,8 +240,8 @@ public static partial class ServicesOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service associated with the specified resource
- /// group.
+ /// The name of the Azure Cognitive Search service associated with the
+ /// specified resource group.
///
///
/// Additional parameters for the operation
@@ -400,13 +400,13 @@ public static partial class ServicesOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service to create or update. Search service
- /// names must only contain lowercase letters, digits or dashes, cannot use
- /// dash as the first two or last one characters, cannot contain consecutive
- /// dashes, and must be between 2 and 60 characters in length. Search service
- /// names must be globally unique since they are part of the service URI
- /// (https://<name>.search.windows.net). You cannot change the service
- /// name after the service is created.
+ /// The name of the Azure Cognitive Search service to create or update. Search
+ /// service names must only contain lowercase letters, digits or dashes, cannot
+ /// use dash as the first two or last one characters, cannot contain
+ /// consecutive dashes, and must be between 2 and 60 characters in length.
+ /// Search service names must be globally unique since they are part of the
+ /// service URI (https://<name>.search.windows.net). You cannot change
+ /// the service name after the service is created.
///
///
/// The definition of the Search service to create or update.
@@ -433,13 +433,13 @@ public static partial class ServicesOperationsExtensions
/// obtain this value from the Azure Resource Manager API or the portal.
///
///
- /// The name of the Azure Search service to create or update. Search service
- /// names must only contain lowercase letters, digits or dashes, cannot use
- /// dash as the first two or last one characters, cannot contain consecutive
- /// dashes, and must be between 2 and 60 characters in length. Search service
- /// names must be globally unique since they are part of the service URI
- /// (https://<name>.search.windows.net). You cannot change the service
- /// name after the service is created.
+ /// The name of the Azure Cognitive Search service to create or update. Search
+ /// service names must only contain lowercase letters, digits or dashes, cannot
+ /// use dash as the first two or last one characters, cannot contain
+ /// consecutive dashes, and must be between 2 and 60 characters in length.
+ /// Search service names must be globally unique since they are part of the
+ /// service URI (https://<name>.search.windows.net). You cannot change
+ /// the service name after the service is created.
///
///
/// The definition of the Search service to create or update.