class Azure::Storage::Mgmt::V2018_07_01::Models::IPRule

IP rule with specific IP or IP range in CIDR format.

Attributes

action[RW]

@return [Action] The action of IP ACL rule. Possible values include: 'Allow'. Default value: 'Allow' .

ipaddress_or_range[RW]

@return [String] Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-07-01/generated/azure_mgmt_storage/models/iprule.rb, line 27
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'IPRule',
    type: {
      name: 'Composite',
      class_name: 'IPRule',
      model_properties: {
        ipaddress_or_range: {
          client_side_validation: true,
          required: true,
          serialized_name: 'value',
          type: {
            name: 'String'
          }
        },
        action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'action',
          default_value: 'Allow',
          type: {
            name: 'Enum',
            module: 'Action'
          }
        }
      }
    }
  }
end