/// <summary>
 /// Creates or updates an Azure Sql Database Transparent Data Encryption
 /// </summary>
 public Management.Sql.Models.LogicalDatabaseTransparentDataEncryption CreateOrUpdate(string resourceGroupName, string serverName, string databaseName, Management.Sql.Models.LogicalDatabaseTransparentDataEncryption parameters)
 {
     return(GetCurrentSqlClient().TransparentDataEncryptions.CreateOrUpdate(resourceGroupName, serverName, databaseName, parameters));
 }
        /// <summary>
        /// Convert a Management.Sql.LegacySdk.Models.TransparentDataEncryption to AzureSqlDatabaseTransparentDataEncryptionModel
        /// </summary>
        /// <param name="resourceGroup">The resource group the server is in</param>
        /// <param name="serverName">The name of the server</param>
        /// <param name="resp">The management client server response to convert</param>
        /// <returns>The converted server model</returns>
        private static AzureSqlDatabaseTransparentDataEncryptionModel CreateTransparentDataEncryptionModelFromResponse(string resourceGroup, string serverName, string databaseName, Management.Sql.Models.LogicalDatabaseTransparentDataEncryption resp)
        {
            AzureSqlDatabaseTransparentDataEncryptionModel TransparentDataEncryption = new AzureSqlDatabaseTransparentDataEncryptionModel();

            TransparentDataEncryption.ResourceGroupName = resourceGroup;
            TransparentDataEncryption.ServerName        = serverName;
            TransparentDataEncryption.DatabaseName      = databaseName;

            TransparentDataEncryptionStateType State = TransparentDataEncryptionStateType.Disabled;

            if (resp != null)
            {
                Enum.TryParse <TransparentDataEncryptionStateType>(resp.State.ToString(), true, out State);
                TransparentDataEncryption.State = State;
            }

            return(TransparentDataEncryption);
        }