text: # coding=utf-8
  # --------------------------------------------------------------------------
  # Copyright (c) Microsoft Corporation. All rights reserved.
  # Licensed under the MIT License. See License.txt in the project root for
  # license information.
  #
  # Code generated by Microsoft (R) AutoRest Code Generator.
  # Changes may cause incorrect behavior and will be lost if the code is
  # regenerated.
  # --------------------------------------------------------------------------
  
  from .server_properties_for_create import ServerPropertiesForCreate
  
  
  class ServerPropertiesForRestore(ServerPropertiesForCreate):
      """The properties to a new server by restoring from a backup.
  
      :param storage_mb: The maximum storage allowed for a server.
      :type storage_mb: long
      :param version: Server version. Possible values include: '9.5', '9.6'
      :type version: str or ~azure.mgmt.rdbms.postgresql.models.ServerVersion
      :param ssl_enforcement: Enable ssl enforcement or not when connect to
       server. Possible values include: 'Enabled', 'Disabled'
      :type ssl_enforcement: str or
       ~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum
      :param create_mode: Constant filled by server.
      :type create_mode: str
      :param source_server_id: The source server id to restore from.
      :type source_server_id: str
      :param restore_point_in_time: Restore point creation time (ISO8601
       format), specifying the time to restore from.
      :type restore_point_in_time: datetime
      """
  
      _validation = {
          'storage_mb': {'minimum': 1024},
          'create_mode': {'required': True},
          'source_server_id': {'required': True},
          'restore_point_in_time': {'required': True},
      }
  
      _attribute_map = {
          'storage_mb': {'key': 'storageMB', 'type': 'long'},
          'version': {'key': 'version', 'type': 'str'},
          'ssl_enforcement': {'key': 'sslEnforcement', 'type': 'SslEnforcementEnum'},
          'create_mode': {'key': 'createMode', 'type': 'str'},
          'source_server_id': {'key': 'sourceServerId', 'type': 'str'},
          'restore_point_in_time': {'key': 'restorePointInTime', 'type': 'iso-8601'},
      }
  
      def __init__(self, source_server_id, restore_point_in_time, storage_mb=None, version=None, ssl_enforcement=None):
          super(ServerPropertiesForRestore, self).__init__(storage_mb=storage_mb, version=version, ssl_enforcement=ssl_enforcement)
          self.source_server_id = source_server_id
          self.restore_point_in_time = restore_point_in_time
          self.create_mode = 'PointInTimeRestore'
  