Esempio n. 1
0
 /// <summary>
 /// Get workspace server's encryption protector.
 /// </summary>
 /// <remarks>
 /// Get workspace managed sql server's encryption protector.
 /// </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='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EncryptionProtector> GetAsync(this IWorkspaceManagedSqlServerEncryptionProtectorOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Get list of encryption protectors for the server.
 /// </summary>
 /// <remarks>
 /// Get list of encryption protectors for workspace managed sql server.
 /// </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 <EncryptionProtector> > ListNextAsync(this IWorkspaceManagedSqlServerEncryptionProtectorOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Updates workspace server's encryption protector.
 /// </summary>
 /// <remarks>
 /// Updates workspace managed sql server's encryption protector.
 /// </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='parameters'>
 /// The requested encryption protector resource state.
 /// </param>
 public static EncryptionProtector CreateOrUpdate(this IWorkspaceManagedSqlServerEncryptionProtectorOperations operations, string resourceGroupName, string workspaceName, EncryptionProtector parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, parameters).GetAwaiter().GetResult());
 }
Esempio n. 4
0
 /// <summary>
 /// Get workspace server's encryption protector.
 /// </summary>
 /// <remarks>
 /// Get workspace managed sql server's encryption protector.
 /// </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>
 public static EncryptionProtector Get(this IWorkspaceManagedSqlServerEncryptionProtectorOperations operations, string resourceGroupName, string workspaceName)
 {
     return(operations.GetAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult());
 }
Esempio n. 5
0
 /// <summary>
 /// Get list of encryption protectors for the server.
 /// </summary>
 /// <remarks>
 /// Get list of encryption protectors for workspace managed sql server.
 /// </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 <EncryptionProtector> ListNext(this IWorkspaceManagedSqlServerEncryptionProtectorOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Esempio n. 6
0
 /// <summary>
 /// Revalidates server's existing encryption protector.
 /// </summary>
 /// <remarks>
 /// Revalidates workspace managed sql server's existing encryption protector.
 /// </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='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginRevalidateAsync(this IWorkspaceManagedSqlServerEncryptionProtectorOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginRevalidateWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Esempio n. 7
0
 /// <summary>
 /// Revalidates server's existing encryption protector.
 /// </summary>
 /// <remarks>
 /// Revalidates workspace managed sql server's existing encryption protector.
 /// </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>
 public static void BeginRevalidate(this IWorkspaceManagedSqlServerEncryptionProtectorOperations operations, string resourceGroupName, string workspaceName)
 {
     operations.BeginRevalidateAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult();
 }