# 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::V2020_05_01
  module Models
    #
    # Network ACL
    #
    class NetworkACL

      include MsRestAzure

      # @return [Array<SignalRRequestType>] Allowed request types. The value
      # can be one or more of: ClientConnection, ServerConnection, RESTAPI.
      attr_accessor :allow

      # @return [Array<SignalRRequestType>] Denied request types. The value can
      # be one or more of: ClientConnection, ServerConnection, RESTAPI.
      attr_accessor :deny


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