# 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::Redis::Mgmt::V2017_02_01
  module Models
    #
    # Parameter required for creating a linked server to redis cache.
    #
    class RedisLinkedServerCreateParameters

      include MsRestAzure

      # @return [String] Fully qualified resourceId of the linked redis cache.
      attr_accessor :linked_redis_cache_id

      # @return [String] Location of the linked redis cache.
      attr_accessor :linked_redis_cache_location

      # @return [ReplicationRole] Role of the linked server. Possible values
      # include: 'Primary', 'Secondary'
      attr_accessor :server_role


      #
      # Mapper for RedisLinkedServerCreateParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RedisLinkedServerCreateParameters',
          type: {
            name: 'Composite',
            class_name: 'RedisLinkedServerCreateParameters',
            model_properties: {
              linked_redis_cache_id: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.linkedRedisCacheId',
                type: {
                  name: 'String'
                }
              },
              linked_redis_cache_location: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.linkedRedisCacheLocation',
                type: {
                  name: 'String'
                }
              },
              server_role: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.serverRole',
                type: {
                  name: 'Enum',
                  module: 'ReplicationRole'
                }
              }
            }
          }
        }
      end
    end
  end
end
