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

module Azure::Web::Mgmt::V2016_03_01
  module Models
    #
    # IP security restriction on an app.
    #
    class IpSecurityRestriction

      include MsRestAzure

      # @return [String] IP address the security restriction is valid for.
      attr_accessor :ip_address

      # @return [String] Subnet mask for the range of IP addresses the
      # restriction is valid for.
      attr_accessor :subnet_mask


      #
      # Mapper for IpSecurityRestriction class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'IpSecurityRestriction',
          type: {
            name: 'Composite',
            class_name: 'IpSecurityRestriction',
            model_properties: {
              ip_address: {
                client_side_validation: true,
                required: true,
                serialized_name: 'ipAddress',
                type: {
                  name: 'String'
                }
              },
              subnet_mask: {
                client_side_validation: true,
                required: false,
                serialized_name: 'subnetMask',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
