Exemple #1
0
 /// <summary>
 /// Gets a managed database's transparent data encryption.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the managed database for which the transparent data encryption
 /// is defined.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ManagedTransparentDataEncryption> GetAsync(this IManagedDatabaseTransparentDataEncryptionOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, managedInstanceName, databaseName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <summary>
 /// Updates a database's transparent data encryption configuration.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the managed database for which the security alert policy is
 /// defined.
 /// </param>
 /// <param name='parameters'>
 /// The database transparent data encryption.
 /// </param>
 public static ManagedTransparentDataEncryption CreateOrUpdate(this IManagedDatabaseTransparentDataEncryptionOperations operations, string resourceGroupName, string managedInstanceName, string databaseName, ManagedTransparentDataEncryption parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, managedInstanceName, databaseName, parameters).GetAwaiter().GetResult());
 }
Exemple #3
0
 /// <summary>
 /// Gets a list of managed database's transparent data encryptions.
 /// </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 <IPage <ManagedTransparentDataEncryption> > ListByDatabaseNextAsync(this IManagedDatabaseTransparentDataEncryptionOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByDatabaseNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #4
0
 /// <summary>
 /// Gets a managed database's transparent data encryption.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='managedInstanceName'>
 /// The name of the managed instance.
 /// </param>
 /// <param name='databaseName'>
 /// The name of the managed database for which the transparent data encryption
 /// is defined.
 /// </param>
 public static ManagedTransparentDataEncryption Get(this IManagedDatabaseTransparentDataEncryptionOperations operations, string resourceGroupName, string managedInstanceName, string databaseName)
 {
     return(operations.GetAsync(resourceGroupName, managedInstanceName, databaseName).GetAwaiter().GetResult());
 }
Exemple #5
0
 /// <summary>
 /// Gets a list of managed database's transparent data encryptions.
 /// </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 IPage <ManagedTransparentDataEncryption> ListByDatabaseNext(this IManagedDatabaseTransparentDataEncryptionOperations operations, string nextPageLink)
 {
     return(operations.ListByDatabaseNextAsync(nextPageLink).GetAwaiter().GetResult());
 }