コード例 #1
0
 /// <summary>
 /// Gets a storage insight instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to get. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// Log Analytics Workspace name that contains the storageInsightsConfigs
 /// resource
 /// </param>
 /// <param name='storageInsightName'>
 /// Name of the storageInsightsConfigs resource
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <StorageInsight> GetAsync(this IStorageInsightsOperations operations, string resourceGroupName, string workspaceName, string storageInsightName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, storageInsightName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// Gets a storage insight instance.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to get. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// Log Analytics Workspace name that contains the storageInsightsConfigs
 /// resource
 /// </param>
 /// <param name='storageInsightName'>
 /// Name of the storageInsightsConfigs resource
 /// </param>
 public static StorageInsight Get(this IStorageInsightsOperations operations, string resourceGroupName, string workspaceName, string storageInsightName)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageInsightsOperations)s).GetAsync(resourceGroupName, workspaceName, storageInsightName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #3
0
 /// <summary>
 /// Lists the storage insight instances within a workspace
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Microsoft.Rest.Azure.IPage <StorageInsight> > ListByWorkspaceNextAsync(this IStorageInsightsOperations operations, string nextPageLink, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.ListByWorkspaceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #4
0
 /// <summary>
 /// Lists the storage insight instances within a workspace
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static Microsoft.Rest.Azure.IPage <StorageInsight> ListByWorkspaceNext(this IStorageInsightsOperations operations, string nextPageLink)
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageInsightsOperations)s).ListByWorkspaceNextAsync(nextPageLink), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
コード例 #5
0
 /// <summary>
 /// Deletes a storageInsightsConfigs resource
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to get. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// Log Analytics Workspace name that contains the storageInsightsConfigs
 /// resource
 /// </param>
 /// <param name='storageInsightName'>
 /// Name of the storageInsightsConfigs resource
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task DeleteAsync(this IStorageInsightsOperations operations, string resourceGroupName, string workspaceName, string storageInsightName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     await operations.DeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, storageInsightName, null, cancellationToken).ConfigureAwait(false);
 }