/// <summary> /// Gets a data source instance. /// </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 workspace that contains the data source. /// </param> /// <param name='dataSourceName'> /// Required. Name of the data source /// </param> /// <returns> /// The get data source operation response. /// </returns> public static Task <DataSourceGetResponse> GetAsync(this IDataSourceOperations operations, string resourceGroupName, string workspaceName, string dataSourceName) { return(operations.GetAsync(resourceGroupName, workspaceName, dataSourceName, CancellationToken.None)); }
/// <summary> /// Retrieves a datasource definition from Azure Search. (see /// https://msdn.microsoft.com/library/azure/dn946893.aspx for more /// information) /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Search.IDataSourceOperations. /// </param> /// <param name='dataSourceName'> /// Required. The name of the datasource to retrieve. /// </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> GetAsync(this IDataSourceOperations operations, string dataSourceName) { return(operations.GetAsync(dataSourceName, CancellationToken.None)); }