/// <summary> /// Creates a new cognitive skillset in an Azure Search service or updates the /// skillset if it already exists. /// <see href="https://docs.microsoft.com/rest/api/searchservice/update-skillset" /> /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='skillsetName'> /// The name of the skillset to create or update. /// </param> /// <param name='skillset'> /// The skillset containing one or more cognitive skills to create or update in /// an Azure Search service. /// </param> /// <param name='searchRequestOptions'> /// Additional parameters for the operation /// </param> public static Skillset CreateOrUpdate(this ISkillsetsOperations operations, string skillsetName, Skillset skillset, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions)) { return(operations.CreateOrUpdateAsync(skillsetName, skillset, searchRequestOptions).GetAwaiter().GetResult()); }
/// <summary> /// Creates a new skillset or updates a skillset if it /// already exists. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <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> public static Skillset CreateOrUpdate(this ISkillsetsOperations operations, Skillset skillset, SearchRequestOptions searchRequestOptions = default(SearchRequestOptions), AccessCondition accessCondition = default(AccessCondition)) { return(operations.CreateOrUpdateAsync(skillset, searchRequestOptions, accessCondition).GetAwaiter().GetResult()); }