Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Search.Models
using System.Linq;

/// <summary>
/// The result of Autocomlete query.
/// The result of Autocomplete query.
/// </summary>
public partial class AutocompleteResult
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,16 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_SearchIndexClie
}.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/data-plane/Microsoft.Azure.Search.Data/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\src\\azure-sdk-for-net\\src\\SDKs";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "8c304e7250847a0221171ef82400ce4115d32667";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,19 @@ public partial class SearchIndexClient : ServiceClient<SearchIndexClient>, ISear
/// </summary>
public virtual IDocumentsOperations Documents { get; private set; }

/// <summary>
/// Initializes a new instance of the SearchIndexClient class.
/// </summary>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling SearchIndexClient.Dispose(). False: will not dispose provided httpClient</param>
protected SearchIndexClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
{
Initialize();
}

/// <summary>
/// Initializes a new instance of the SearchIndexClient class.
/// </summary>
Expand Down Expand Up @@ -141,6 +154,33 @@ public SearchIndexClient(ServiceClientCredentials credentials, params Delegating
}
}

/// <summary>
/// Initializes a new instance of the SearchIndexClient class.
/// </summary>
/// <param name='credentials'>
/// Required. Credentials needed for the client to connect to Azure.
/// </param>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling SearchIndexClient.Dispose(). False: will not dispose provided httpClient</param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
public SearchIndexClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
{
if (credentials == null)
{
throw new System.ArgumentNullException("credentials");
}
Credentials = credentials;
if (Credentials != null)
{
Credentials.InitializeServiceClient(this);
}
}

/// <summary>
/// Initializes a new instance of the SearchIndexClient class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,20 @@ public partial interface ISearchServiceClient : System.IDisposable
string SearchDnsSuffix { get; set; }

/// <summary>
/// Gets or sets the preferred language for the response.
/// The preferred language for the response.
/// </summary>
string AcceptLanguage { get; set; }

/// <summary>
/// Gets or sets the retry timeout in seconds for Long Running
/// Operations. Default value is 30.
/// The retry timeout in seconds for Long Running Operations. Default
/// value is 30.
/// </summary>
int? LongRunningOperationRetryTimeout { get; set; }

/// <summary>
/// When set to true a unique x-ms-client-request-id value is generated
/// and included in each request. Default is true.
/// Whether a unique x-ms-client-request-id should be generated. When
/// set to true a unique x-ms-client-request-id value is generated and
/// included in each request. Default is true.
/// </summary>
bool? GenerateClientRequestId { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public CorsOptions()
/// '*' to allow all origins (not recommended).</param>
/// <param name="maxAgeInSeconds">The duration for which browsers
/// should cache CORS preflight responses. Defaults to 5
/// mintues.</param>
/// minutes.</param>
public CorsOptions(IList<string> allowedOrigins, long? maxAgeInSeconds = default(long?))
{
AllowedOrigins = allowedOrigins;
Expand All @@ -67,7 +67,7 @@ public CorsOptions()

/// <summary>
/// Gets or sets the duration for which browsers should cache CORS
/// preflight responses. Defaults to 5 mintues.
/// preflight responses. Defaults to 5 minutes.
/// </summary>
[JsonProperty(PropertyName = "maxAgeInSeconds")]
public long? MaxAgeInSeconds { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public SoftDeleteColumnDeletionDetectionPolicy()
/// <param name="softDeleteColumnName">The name of the column to use
/// for soft-deletion detection.</param>
/// <param name="softDeleteMarkerValue">The marker value that
/// indentifies an item as deleted.</param>
/// identifies an item as deleted.</param>
public SoftDeleteColumnDeletionDetectionPolicy(string softDeleteColumnName = default(string), string softDeleteMarkerValue = default(string))
{
SoftDeleteColumnName = softDeleteColumnName;
Expand All @@ -58,7 +58,7 @@ public SoftDeleteColumnDeletionDetectionPolicy()
public string SoftDeleteColumnName { get; set; }

/// <summary>
/// Gets or sets the marker value that indentifies an item as deleted.
/// Gets or sets the marker value that identifies an item as deleted.
/// </summary>
[JsonProperty(PropertyName = "softDeleteMarkerValue")]
public string SoftDeleteMarkerValue { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,16 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_SearchServiceCl
}.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/data-plane/Microsoft.Azure.Search.Service/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\src\\azure-sdk-for-net\\src\\SDKs";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "72afb6459cdb4d4474c8c7d3f616e325301a7e50";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,20 @@ public partial class SearchServiceClient : ServiceClient<SearchServiceClient>, I
public string SearchDnsSuffix { get; set; }

/// <summary>
/// Gets or sets the preferred language for the response.
/// The preferred language for the response.
/// </summary>
public string AcceptLanguage { get; set; }

/// <summary>
/// Gets or sets the retry timeout in seconds for Long Running Operations.
/// Default value is 30.
/// The retry timeout in seconds for Long Running Operations. Default value is
/// 30.
/// </summary>
public int? LongRunningOperationRetryTimeout { get; set; }

/// <summary>
/// When set to true a unique x-ms-client-request-id value is generated and
/// included in each request. Default is true.
/// Whether a unique x-ms-client-request-id should be generated. When set to
/// true a unique x-ms-client-request-id value is generated and included in
/// each request. Default is true.
/// </summary>
public bool? GenerateClientRequestId { get; set; }

Expand Down Expand Up @@ -107,6 +108,19 @@ public partial class SearchServiceClient : ServiceClient<SearchServiceClient>, I
/// </summary>
public virtual IIndexesOperations Indexes { get; private set; }

/// <summary>
/// Initializes a new instance of the SearchServiceClient class.
/// </summary>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling SearchServiceClient.Dispose(). False: will not dispose provided httpClient</param>
protected SearchServiceClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
{
Initialize();
}

/// <summary>
/// Initializes a new instance of the SearchServiceClient class.
/// </summary>
Expand Down Expand Up @@ -157,6 +171,33 @@ public SearchServiceClient(ServiceClientCredentials credentials, params Delegati
}
}

/// <summary>
/// Initializes a new instance of the SearchServiceClient class.
/// </summary>
/// <param name='credentials'>
/// Required. Credentials needed for the client to connect to Azure.
/// </param>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling SearchServiceClient.Dispose(). False: will not dispose provided httpClient</param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
public SearchServiceClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
Comment thread
arv100kri marked this conversation as resolved.
{
if (credentials == null)
{
throw new System.ArgumentNullException("credentials");
}
Credentials = credentials;
if (Credentials != null)
{
Credentials.InitializeServiceClient(this);
}
}

/// <summary>
/// Initializes a new instance of the SearchServiceClient class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ internal SkillsetsOperations(SearchServiceClient client)
{
if (Client.SearchServiceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SearchServiceName");
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SearchServiceName");
}
if (Client.SearchDnsSuffix == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SearchDnsSuffix");
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SearchDnsSuffix");
}
if (skillsetName == null)
{
Expand Down Expand Up @@ -299,11 +299,11 @@ internal SkillsetsOperations(SearchServiceClient client)
{
if (Client.SearchServiceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SearchServiceName");
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SearchServiceName");
}
if (Client.SearchDnsSuffix == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SearchDnsSuffix");
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SearchDnsSuffix");
}
if (skillsetName == null)
{
Expand Down Expand Up @@ -549,11 +549,11 @@ internal SkillsetsOperations(SearchServiceClient client)
{
if (Client.SearchServiceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SearchServiceName");
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SearchServiceName");
}
if (Client.SearchDnsSuffix == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SearchDnsSuffix");
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SearchDnsSuffix");
}
if (skillsetName == null)
{
Expand Down Expand Up @@ -738,11 +738,11 @@ internal SkillsetsOperations(SearchServiceClient client)
{
if (Client.SearchServiceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SearchServiceName");
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SearchServiceName");
}
if (Client.SearchDnsSuffix == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SearchDnsSuffix");
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SearchDnsSuffix");
}
if (Client.ApiVersion == null)
{
Expand Down Expand Up @@ -943,11 +943,11 @@ internal SkillsetsOperations(SearchServiceClient client)
{
if (Client.SearchServiceName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SearchServiceName");
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SearchServiceName");
}
if (Client.SearchDnsSuffix == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.SearchDnsSuffix");
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SearchDnsSuffix");
}
if (skillset == null)
{
Expand Down
Loading