class Azure::EventGrid::Mgmt::V2020_10_15_preview::Models::InboundIpRule

Model object.

Attributes

action[RW]

@return [IpActionType] Action to perform based on the match or no match of the IpMask. Possible values include: 'Allow'

ip_mask[RW]

@return [String] IP Address in CIDR notation e.g., 10.0.0.0/8.

Private Class Methods

mapper() click to toggle source

Mapper for InboundIpRule class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2020-10-15-preview/generated/azure_mgmt_event_grid/models/inbound_ip_rule.rb, line 28
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'InboundIpRule',
    type: {
      name: 'Composite',
      class_name: 'InboundIpRule',
      model_properties: {
        ip_mask: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ipMask',
          type: {
            name: 'String'
          }
        },
        action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'action',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end