Represents an Azure Sql Database Import Request
Inheritance: AzureSqlDatabaseImportExportBaseModel
        /// <summary>
        /// Creates a new import request
        /// </summary>
        /// <param name="importRequest">Import request parameters</param>
        /// <returns>Operation response including the OperationStatusLink to get the operation status</returns>
        public AzureSqlDatabaseImportExportBaseModel Import(AzureSqlDatabaseImportModel importRequest)
        {
            ImportRequestParameters parameters = new ImportRequestParameters()
            {
                AdministratorLogin = importRequest.AdministratorLogin,
                AdministratorLoginPassword = AzureSqlServerAdapter.Decrypt(importRequest.AdministratorLoginPassword),
                StorageKey = importRequest.StorageKey,
                StorageKeyType = importRequest.StorageKeyType.ToString(),
                StorageUri = importRequest.StorageUri,
                DatabaseMaxSize = importRequest.DatabaseMaxSizeBytes,
                Edition = importRequest.Edition != Database.Model.DatabaseEdition.None ? importRequest.Edition.ToString() : string.Empty,
                ServiceObjectiveName = importRequest.ServiceObjectiveName,
                DatabaseName = importRequest.DatabaseName
            };

            if (importRequest.AuthenticationType != AuthenticationType.None)
            {
                parameters.AuthenticationType = importRequest.AuthenticationType.ToString().ToLowerInvariant();
            }

            ImportExportResponse response = Communicator.Import(importRequest.ResourceGroupName, importRequest.ServerName, parameters, Util.GenerateTracingId());

            return CreateImportExportResponse(response, importRequest);
        }
 /// <summary>
 /// Updates the given model element with the cmdlet specific operation 
 /// </summary>
 /// <param name="model">A model object</param>
 protected override AzureSqlDatabaseImportExportBaseModel ApplyUserInputToModel(AzureSqlDatabaseImportExportBaseModel model)
 {
     AzureSqlDatabaseImportModel exportRequest = new AzureSqlDatabaseImportModel()
     {
         ResourceGroupName = ResourceGroupName,
         AdministratorLogin = AdministratorLogin,
         AdministratorLoginPassword = AdministratorLoginPassword,
         AuthenticationType = AuthenticationType,
         DatabaseName = DatabaseName,
         ServerName = ServerName,
         StorageKey = StorageKey,
         StorageKeyType = StorageKeyType,
         StorageUri = StorageUri,
         Edition = Edition,
         ServiceObjectiveName = ServiceObjectiveName,
         DatabaseMaxSizeBytes = DatabaseMaxSizeBytes
     };
     return exportRequest;
 }