# 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::BotService::Mgmt::V2017_12_01_preview
  module Models
    #
    # A site for the Webchat channel
    #
    class WebChatSite

      include MsRestAzure

      # @return [String] Site Id
      attr_accessor :site_id

      # @return [String] Site name
      attr_accessor :site_name

      # @return [String] Primary key. Value only returned through POST to the
      # action Channel List API, otherwise empty.
      attr_accessor :key

      # @return [String] Secondary key. Value only returned through POST to the
      # action Channel List API, otherwise empty.
      attr_accessor :key2

      # @return [Boolean] Whether this site is enabled for DirectLine channel
      attr_accessor :is_enabled

      # @return [Boolean] Whether this site is enabled for preview versions of
      # Webchat
      attr_accessor :enable_preview


      #
      # Mapper for WebChatSite class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'WebChatSite',
          type: {
            name: 'Composite',
            class_name: 'WebChatSite',
            model_properties: {
              site_id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'siteId',
                type: {
                  name: 'String'
                }
              },
              site_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'siteName',
                type: {
                  name: 'String'
                }
              },
              key: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'key',
                type: {
                  name: 'String'
                }
              },
              key2: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'key2',
                type: {
                  name: 'String'
                }
              },
              is_enabled: {
                client_side_validation: true,
                required: true,
                serialized_name: 'isEnabled',
                type: {
                  name: 'Boolean'
                }
              },
              enable_preview: {
                client_side_validation: true,
                required: true,
                serialized_name: 'enablePreview',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
