# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::MariaDB::Mgmt::V2018_06_01
  module Models
    #
    # The properties used to create a new server by restoring to a different
    # region from a geo replicated backup.
    #
    class ServerPropertiesForGeoRestore < ServerPropertiesForCreate

      include MsRestAzure


      def initialize
        @createMode = "GeoRestore"
      end

      attr_accessor :createMode

      # @return [String] The source server id to restore from.
      attr_accessor :source_server_id


      #
      # Mapper for ServerPropertiesForGeoRestore class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'GeoRestore',
          type: {
            name: 'Composite',
            class_name: 'ServerPropertiesForGeoRestore',
            model_properties: {
              version: {
                client_side_validation: true,
                required: false,
                serialized_name: 'version',
                type: {
                  name: 'String'
                }
              },
              ssl_enforcement: {
                client_side_validation: true,
                required: false,
                serialized_name: 'sslEnforcement',
                type: {
                  name: 'Enum',
                  module: 'SslEnforcementEnum'
                }
              },
              storage_profile: {
                client_side_validation: true,
                required: false,
                serialized_name: 'storageProfile',
                type: {
                  name: 'Composite',
                  class_name: 'StorageProfile'
                }
              },
              createMode: {
                client_side_validation: true,
                required: true,
                serialized_name: 'createMode',
                type: {
                  name: 'String'
                }
              },
              source_server_id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'sourceServerId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
