Ejemplo n.º 1
0
 /// <summary>
 /// Get a Sql pool's security alert policy
 /// </summary>
 /// <remarks>
 /// Get a Sql pool's security alert policy.
 /// </remarks>
 /// <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='sqlPoolName'>
 /// SQL pool name
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SqlPoolSecurityAlertPolicy> GetAsync(this ISqlPoolSecurityAlertPolicies operations, string resourceGroupName, string workspaceName, string sqlPoolName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, sqlPoolName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create or update a Sql pool's security alert policy
 /// </summary>
 /// <remarks>
 /// Create or update a Sql pool's security alert policy.
 /// </remarks>
 /// <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='sqlPoolName'>
 /// SQL pool name
 /// </param>
 /// <param name='parameters'>
 /// The Sql pool security alert policy.
 /// </param>
 public static SqlPoolSecurityAlertPolicy CreateOrUpdate(this ISqlPoolSecurityAlertPolicies operations, string resourceGroupName, string workspaceName, string sqlPoolName, SqlPoolSecurityAlertPolicy parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).GetAwaiter().GetResult());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Get a Sql pool's security alert policy
 /// </summary>
 /// <remarks>
 /// Get a Sql pool's security alert policy.
 /// </remarks>
 /// <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='sqlPoolName'>
 /// SQL pool name
 /// </param>
 public static SqlPoolSecurityAlertPolicy Get(this ISqlPoolSecurityAlertPolicies operations, string resourceGroupName, string workspaceName, string sqlPoolName)
 {
     return(operations.GetAsync(resourceGroupName, workspaceName, sqlPoolName).GetAwaiter().GetResult());
 }