/// <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 ISqlPoolSecurityAlertPoliciesOperations 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);
     }
 }
示例#2
0
 /// <summary>
 /// List Sql pool's security alert policies
 /// </summary>
 /// <remarks>
 /// Get a list of Sql pool's security alert policies.
 /// </remarks>
 /// <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 <IPage <SqlPoolSecurityAlertPolicy> > ListNextAsync(this ISqlPoolSecurityAlertPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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 ISqlPoolSecurityAlertPoliciesOperations operations, string resourceGroupName, string workspaceName, string sqlPoolName, SqlPoolSecurityAlertPolicy parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, sqlPoolName, parameters).GetAwaiter().GetResult());
 }
 /// <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 ISqlPoolSecurityAlertPoliciesOperations operations, string resourceGroupName, string workspaceName, string sqlPoolName)
 {
     return(operations.GetAsync(resourceGroupName, workspaceName, sqlPoolName).GetAwaiter().GetResult());
 }
示例#5
0
 /// <summary>
 /// List Sql pool's security alert policies
 /// </summary>
 /// <remarks>
 /// Get a list of Sql pool's security alert policies.
 /// </remarks>
 /// <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 IPage <SqlPoolSecurityAlertPolicy> ListNext(this ISqlPoolSecurityAlertPoliciesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }