Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,20 @@ public partial interface ISearchIndexClient : System.IDisposable
string IndexName { 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 @@ -69,19 +69,20 @@ public partial class SearchIndexClient : ServiceClient<SearchIndexClient>, ISear
public string IndexName { 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.

namespace Microsoft.Azure.Search
{
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Rest.Azure;
using Models;

public partial interface ISkillsetsOperations
{
/// <summary>
/// Creates a new Azure Search skillset or updates a skillset if
/// it already exists.
/// </summary>
/// <param name='skillset'>
/// The definition of the skillset to create or update.
/// </param>
/// <param name='searchRequestOptions'>
/// Additional parameters for the operation
/// </param>
/// <param name='accessCondition'>
/// Additional parameters for the operation
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<AzureOperationResponse<Skillset>> CreateOrUpdateWithHttpMessagesAsync(Skillset skillset, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions), AccessCondition accessCondition = default(AccessCondition), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

/// <summary>
/// Determines whether or not the given skillset exists in the Azure Search service.
/// </summary>
/// <param name="skillsetName">
/// The name of the skillset.
/// </param>
/// <param name='searchRequestOptions'>
/// Additional parameters for the operation
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <returns>
/// A response with the value <c>true</c> if the skillset exists; <c>false</c> otherwise.
/// </returns>
Task<AzureOperationResponse<bool>> ExistsWithHttpMessagesAsync(string skillsetName, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.

namespace Microsoft.Azure.Search.Models
{
using Newtonsoft.Json;
using Serialization;

/// <summary>
/// Defines the format of ImageAnalysisSkill supported language codes.
/// </summary>
[JsonConverter(typeof(ExtensibleEnumConverter<ImageAnalysisSkillLanguage>))]
public sealed class ImageAnalysisSkillLanguage : ExtensibleEnum<ImageAnalysisSkillLanguage>
{
/// <summary>
/// Indicates language code "en" (for English)
/// </summary>
public static readonly ImageAnalysisSkillLanguage En = new ImageAnalysisSkillLanguage("en");

/// <summary>
/// Indicates language code "zh" (for Simplified Chinese)
/// </summary>
public static readonly ImageAnalysisSkillLanguage Zh = new ImageAnalysisSkillLanguage("zh");

private ImageAnalysisSkillLanguage(string name) : base(name)
{
// Base class does all initialization.
}

/// <summary>
/// Creates a new ImageAnalysisSkillLanguage instance, or returns an existing instance.
/// </summary>
/// <param name="name">Supported language code.</param>
/// <returns>An ImageAnalysisSkillLanguage instance with the given name.</returns>
public static ImageAnalysisSkillLanguage Create(string name) => Lookup(name) ?? new ImageAnalysisSkillLanguage(name);

/// <summary>
/// Defines implicit conversion from string to ImageAnalysisSkillLanguage.
/// </summary>
/// <param name="name">string to convert.</param>
/// <returns>The string as a ImageAnalysisSkillLanguage.</returns>
public static implicit operator ImageAnalysisSkillLanguage(string name) => Create(name);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.

namespace Microsoft.Azure.Search.Models
{
using Newtonsoft.Json;
using Serialization;

/// <summary>
/// Defines the format of KeyPhraseExtractionSkill supported language codes.
/// </summary>
[JsonConverter(typeof(ExtensibleEnumConverter<KeyPhraseExtractionSkillLanguage>))]
public sealed class KeyPhraseExtractionSkillLanguage : ExtensibleEnum<KeyPhraseExtractionSkillLanguage>
{
/// <summary>
/// Indicates language code "da" (for Danish)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage Da = new KeyPhraseExtractionSkillLanguage("da");

/// <summary>
/// Indicates language code "nl" (for Dutch)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage Nl = new KeyPhraseExtractionSkillLanguage("nl");

/// <summary>
/// Indicates language code "en" (for English)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage En = new KeyPhraseExtractionSkillLanguage("en");

/// <summary>
/// Indicates language code "fi" (for Finnish)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage Fi = new KeyPhraseExtractionSkillLanguage("fi");

/// <summary>
/// Indicates language code "fr" (for French)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage Fr = new KeyPhraseExtractionSkillLanguage("fr");

/// <summary>
/// Indicates language code "de" (for German)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage De = new KeyPhraseExtractionSkillLanguage("de");

/// <summary>
/// Indicates language code "it" (for Italian)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage It = new KeyPhraseExtractionSkillLanguage("it");

/// <summary>
/// Indicates language code "ja" (for Japanese)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage Ja = new KeyPhraseExtractionSkillLanguage("ja");

/// <summary>
/// Indicates language code "ko" (for Korean)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage Ko = new KeyPhraseExtractionSkillLanguage("ko");

/// <summary>
/// Indicates language code "no" (for Norwegian)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage No = new KeyPhraseExtractionSkillLanguage("no");

/// <summary>
/// Indicates language code "pl" (for Polish)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage Pl = new KeyPhraseExtractionSkillLanguage("pl");

/// <summary>
/// Indicates language code "pt-PT" (for Portuguese (Portugal))
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage PtPt = new KeyPhraseExtractionSkillLanguage("pt-PT");

/// <summary>
/// Indicates language code "pt-BR" (for Portuguese (Brazil))
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage PtBr = new KeyPhraseExtractionSkillLanguage("pt-BR");

/// <summary>
/// Indicates language code "ru" (for Russian)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage Ru = new KeyPhraseExtractionSkillLanguage("ru");

/// <summary>
/// Indicates language code "es" (for Spanish)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage Es = new KeyPhraseExtractionSkillLanguage("es");

/// <summary>
/// Indicates language code "sv" (for Swedish)
/// </summary>
public static readonly KeyPhraseExtractionSkillLanguage Sv = new KeyPhraseExtractionSkillLanguage("sv");

private KeyPhraseExtractionSkillLanguage(string name) : base(name)
{
// Base class does all initialization.
}

/// <summary>
/// Creates a new KeyPhraseExtractionSkillLanguage instance, or returns an existing instance.
/// </summary>
/// <param name="name">Supported language code.</param>
/// <returns>A KeyPhraseExtractionSkillLanguage instance with the given name.</returns>
public static KeyPhraseExtractionSkillLanguage Create(string name) => Lookup(name) ?? new KeyPhraseExtractionSkillLanguage(name);

/// <summary>
/// Defines implicit conversion from string to KeyPhraseExtractionSkillLanguage.
/// </summary>
/// <param name="name">string to convert.</param>
/// <returns>The string as a KeyPhraseExtractionSkillLanguage.</returns>
public static implicit operator KeyPhraseExtractionSkillLanguage(string name) => Create(name);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.

namespace Microsoft.Azure.Search.Models
{
using Newtonsoft.Json;
using Serialization;

/// <summary>
/// Defines the format of NamedEntityRecognitionSkill supported language codes.
/// </summary>
[JsonConverter(typeof(ExtensibleEnumConverter<NamedEntityRecognitionSkillLanguage>))]
public sealed class NamedEntityRecognitionSkillLanguage : ExtensibleEnum<NamedEntityRecognitionSkillLanguage>
{
/// <summary>
/// Indicates language code "ar" (for Arabic)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage Ar = new NamedEntityRecognitionSkillLanguage("ar");

/// <summary>
/// Indicates language code "cs" (for Czech)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage Cs = new NamedEntityRecognitionSkillLanguage("cs");

/// <summary>
/// Indicates language code "da" (for Danish)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage Da = new NamedEntityRecognitionSkillLanguage("da");

/// <summary>
/// Indicates language code "de" (for German)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage De = new NamedEntityRecognitionSkillLanguage("de");

/// <summary>
/// Indicates language code "en" (for English)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage En = new NamedEntityRecognitionSkillLanguage("en");

/// <summary>
/// Indicates language code "es" (for Spanish)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage Es = new NamedEntityRecognitionSkillLanguage("es");

/// <summary>
/// Indicates language code "fi" (for Finnish)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage Fi = new NamedEntityRecognitionSkillLanguage("fi");

/// <summary>
/// Indicates language code "fr" (for French)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage Fr = new NamedEntityRecognitionSkillLanguage("fr");

/// <summary>
/// Indicates language code "he" (for Hebrew)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage He = new NamedEntityRecognitionSkillLanguage("he");

/// <summary>
/// Indicates language code "hu" (for Hungarian)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage Hu = new NamedEntityRecognitionSkillLanguage("hu");

/// <summary>
/// Indicates language code "it" (for Italian)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage It = new NamedEntityRecognitionSkillLanguage("it");

/// <summary>
/// Indicates language code "ko" (for Korean)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage Ko = new NamedEntityRecognitionSkillLanguage("ko");

/// <summary>
/// Indicates language code "pt-br" (for Portuguese (Brazil))
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage PtBr = new NamedEntityRecognitionSkillLanguage("pt-br");

/// <summary>
/// Indicates language code "pt" (for Portuguese)
/// </summary>
public static readonly NamedEntityRecognitionSkillLanguage Pt = new NamedEntityRecognitionSkillLanguage("pt");

private NamedEntityRecognitionSkillLanguage(string name) : base(name)
{
// Base class does all initialization.
}

/// <summary>
/// Creates a new NamedEntityRecognitionSkillLanguage instance, or returns an existing instance.
/// </summary>
/// <param name="name">Supported language code.</param>
/// <returns>A NamedEntityRecognitionSkillLanguage instance with the given name.</returns>
public static NamedEntityRecognitionSkillLanguage Create(string name) => Lookup(name) ?? new NamedEntityRecognitionSkillLanguage(name);

/// <summary>
/// Defines implicit conversion from string to NamedEntityRecognitionSkillLanguage.
/// </summary>
/// <param name="name">string to convert.</param>
/// <returns>The string as a NamedEntityRecognitionSkillLanguage.</returns>
public static implicit operator NamedEntityRecognitionSkillLanguage(string name) => Create(name);
}
}

Loading