# 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::Signalr::Mgmt::V2018_10_01
  module Models
    #
    # Cross-Origin Resource Sharing (CORS) settings.
    #
    class SignalRCorsSettings

      include MsRestAzure

      # @return [Array<String>] Gets or sets the list of origins that should be
      # allowed to make cross-origin calls (for example:
      # http://example.com:12345). Use "*" to allow all. If omitted, allow all
      # by default.
      attr_accessor :allowed_origins


      #
      # Mapper for SignalRCorsSettings class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SignalRCorsSettings',
          type: {
            name: 'Composite',
            class_name: 'SignalRCorsSettings',
            model_properties: {
              allowed_origins: {
                client_side_validation: true,
                required: false,
                serialized_name: 'allowedOrigins',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
