# 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::Redis::Mgmt::V2018_03_01 module Models # # A firewall rule on a redis cache has a name, and describes a contiguous # range of IP addresses permitted to connect # class RedisFirewallRule < ProxyResource include MsRestAzure # @return [String] lowest IP address included in the range attr_accessor :start_ip # @return [String] highest IP address included in the range attr_accessor :end_ip # # Mapper for RedisFirewallRule class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'RedisFirewallRule', type: { name: 'Composite', class_name: 'RedisFirewallRule', 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' } }, start_ip: { client_side_validation: true, required: true, serialized_name: 'properties.startIP', type: { name: 'String' } }, end_ip: { client_side_validation: true, required: true, serialized_name: 'properties.endIP', type: { name: 'String' } } } } } end end end end