コード例 #1
0
 /// <summary>
 /// Create or Update a link relation between current workspace and a group of
 /// storage accounts of a specific data source type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='dataSourceType'>
 /// Linked storage accounts type. Possible values include: 'CustomLogs',
 /// 'AzureWatson', 'Query', 'Alerts'
 /// </param>
 /// <param name='storageAccountIds'>
 /// Linked storage accounts resources ids.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LinkedStorageAccountsResource> CreateOrUpdateAsync(this ILinkedStorageAccountsOperations operations, string resourceGroupName, string workspaceName, DataSourceType dataSourceType, IList <string> storageAccountIds = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, workspaceName, dataSourceType, storageAccountIds, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Deletes all linked storage accounts of a specific data source type
 /// associated with the specified workspace.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='dataSourceType'>
 /// Linked storage accounts type. Possible values include: 'CustomLogs',
 /// 'AzureWatson', 'Query', 'Alerts'
 /// </param>
 public static void Delete(this ILinkedStorageAccountsOperations operations, string resourceGroupName, string workspaceName, DataSourceType dataSourceType)
 {
     operations.DeleteAsync(resourceGroupName, workspaceName, dataSourceType).GetAwaiter().GetResult();
 }
コード例 #3
0
 /// <summary>
 /// Create or Update a link relation between current workspace and a group of
 /// storage accounts of a specific data source type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='dataSourceType'>
 /// Linked storage accounts type. Possible values include: 'CustomLogs',
 /// 'AzureWatson', 'Query', 'Alerts'
 /// </param>
 /// <param name='storageAccountIds'>
 /// Linked storage accounts resources ids.
 /// </param>
 public static LinkedStorageAccountsResource CreateOrUpdate(this ILinkedStorageAccountsOperations operations, string resourceGroupName, string workspaceName, DataSourceType dataSourceType, IList <string> storageAccountIds = default(IList <string>))
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, dataSourceType, storageAccountIds).GetAwaiter().GetResult());
 }
コード例 #4
0
 /// <summary>
 /// Gets all linked storage accounts associated with the specified workspace,
 /// storage accounts will be sorted by their data source type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <LinkedStorageAccountsResource> > ListByWorkspaceAsync(this ILinkedStorageAccountsOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByWorkspaceWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #5
0
 /// <summary>
 /// Gets all linked storage accounts associated with the specified workspace,
 /// storage accounts will be sorted by their data source type.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 public static IEnumerable <LinkedStorageAccountsResource> ListByWorkspace(this ILinkedStorageAccountsOperations operations, string resourceGroupName, string workspaceName)
 {
     return(operations.ListByWorkspaceAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult());
 }
コード例 #6
0
 /// <summary>
 /// Gets all linked storage account of a specific data source type associated
 /// with the specified workspace.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='dataSourceType'>
 /// Linked storage accounts type. Possible values include: 'CustomLogs',
 /// 'AzureWatson', 'Query', 'Alerts'
 /// </param>
 public static LinkedStorageAccountsResource Get(this ILinkedStorageAccountsOperations operations, string resourceGroupName, string workspaceName, DataSourceType dataSourceType)
 {
     return(operations.GetAsync(resourceGroupName, workspaceName, dataSourceType).GetAwaiter().GetResult());
 }
コード例 #7
0
 /// <summary>
 /// Deletes all linked storage accounts of a specific data source type
 /// associated with the specified workspace.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='dataSourceType'>
 /// Linked storage accounts type. Possible values include: 'CustomLogs',
 /// 'AzureWatson', 'Query', 'Alerts'
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this ILinkedStorageAccountsOperations operations, string resourceGroupName, string workspaceName, DataSourceType dataSourceType, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, dataSourceType, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }