/// <summary>
 /// Create or update a data source.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.OperationalInsights.IDataSourceOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The resource group name of the data source.
 /// </param>
 /// <param name='workspaceName'>
 /// Required. The name of the parent workspace that will contain the
 /// data source
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters required to create or update a data source.
 /// </param>
 /// <returns>
 /// The create or update data source operation response.
 /// </returns>
 public static Task <DataSourceCreateOrUpdateResponse> CreateOrUpdateAsync(this IDataSourceOperations operations, string resourceGroupName, string workspaceName, DataSourceCreateOrUpdateParameters parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Creates a new Azure Search datasource or updates a datasource if it
 /// already exists.  (see
 /// https://msdn.microsoft.com/library/azure/dn946900.aspx for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Search.IDataSourceOperations.
 /// </param>
 /// <param name='dataSource'>
 /// Required. The definition of the datasource to create or update.
 /// </param>
 /// <returns>
 /// Response from a Create, Update, or Get DataSource request. If
 /// successful, it includes the full definition of the datasource that
 /// was created, updated, or retrieved.
 /// </returns>
 public static Task <DataSourceDefinitionResponse> CreateOrUpdateAsync(this IDataSourceOperations operations, DataSource dataSource)
 {
     return(operations.CreateOrUpdateAsync(dataSource, CancellationToken.None));
 }