/// <summary>
 /// Creates or updates an Azure SQL Database Transparent Data
 /// Encryption Operation.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.ITransparentDataEncryptionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server on which the
 /// database is hosted.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the Azure SQL Database for which setting the
 /// Transparent Data Encryption applies.
 /// </param>
 /// <param name='parameters'>
 /// Required. The required parameters for creating or updating
 /// transparent data encryption.
 /// </param>
 /// <returns>
 /// Represents the response to a Get for a Azure Sql Database
 /// Transparent Data Encryption request.
 /// </returns>
 public static TransparentDataEncryptionGetResponse CreateOrUpdate(this ITransparentDataEncryptionOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionCreateOrUpdateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((ITransparentDataEncryptionOperations)s).CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Creates or updates an Azure SQL Database Transparent Data
 /// Encryption Operation.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Sql.ITransparentDataEncryptionOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the Resource Group to which the server
 /// belongs.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server on which the
 /// database is hosted.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the Azure SQL Database for which setting the
 /// Transparent Data Encryption applies.
 /// </param>
 /// <param name='parameters'>
 /// Required. The required parameters for creating or updating
 /// transparent data encryption.
 /// </param>
 /// <returns>
 /// Represents the response to a Get for a Azure Sql Database
 /// Transparent Data Encryption request.
 /// </returns>
 public static Task<TransparentDataEncryptionGetResponse> CreateOrUpdateAsync(this ITransparentDataEncryptionOperations operations, string resourceGroupName, string serverName, string databaseName, TransparentDataEncryptionCreateOrUpdateParameters parameters)
 {
     return operations.CreateOrUpdateAsync(resourceGroupName, serverName, databaseName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Creates or updates an Azure Sql Database Transparent Data Encryption
 /// </summary>
 public Management.Sql.Models.TransparentDataEncryption CreateOrUpdate(string resourceGroupName, string serverName, string databaseName, string clientRequestId, TransparentDataEncryptionCreateOrUpdateParameters parameters)
 {
     return GetCurrentSqlClient(clientRequestId).TransparentDataEncryption.CreateOrUpdate(resourceGroupName, serverName, databaseName, parameters).TransparentDataEncryption;
 }