Exemple #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);
     }
 }