# 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::EventHub::Mgmt::V2018_01_01_preview
  module Models
    #
    # Single item in a List or Get IpFilterRules operation
    #
    class IpFilterRule < Resource

      include MsRestAzure

      # @return [String] IP Mask
      attr_accessor :ip_mask

      # @return [IPAction] The IP Filter Action. Possible values include:
      # 'Accept', 'Reject'
      attr_accessor :action

      # @return [String] IP Filter name
      attr_accessor :filter_name


      #
      # Mapper for IpFilterRule class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'IpFilterRule',
          type: {
            name: 'Composite',
            class_name: 'IpFilterRule',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              ip_mask: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.ipMask',
                type: {
                  name: 'String'
                }
              },
              action: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.action',
                type: {
                  name: 'String'
                }
              },
              filter_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.filterName',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
