Class: Azure::Web::Mgmt::V2018_02_01::Models::IpSecurityRestriction

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb

Overview

IP security restriction on an app.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionString

Returns Allow or Deny access for this IP range.

Returns:

  • (String)

    Allow or Deny access for this IP range.



27
28
29
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb', line 27

def action
  @action
end

#descriptionString

Returns IP restriction rule description.

Returns:

  • (String)

    IP restriction rule description.



41
42
43
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb', line 41

def description
  @description
end

#ip_addressString

It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified.

Returns:

  • (String)

    IP address the security restriction is valid for.



20
21
22
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb', line 20

def ip_address
  @ip_address
end

#nameString

Returns IP restriction rule name.

Returns:

  • (String)

    IP restriction rule name.



38
39
40
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb', line 38

def name
  @name
end

#priorityInteger

Returns Priority of IP restriction rule.

Returns:

  • (Integer)

    Priority of IP restriction rule.



35
36
37
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb', line 35

def priority
  @priority
end

#subnet_maskString

restriction is valid for.

Returns:

  • (String)

    Subnet mask for the range of IP addresses the



24
25
26
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb', line 24

def subnet_mask
  @subnet_mask
end

#tagIpFilterTag

This is to support IP filtering on proxies. Possible values include: ‘Default’, ‘XffProxy’

Returns:

  • (IpFilterTag)

    Defines what this IP filter will be used for.



32
33
34
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb', line 32

def tag
  @tag
end

Class Method Details

.mapperObject

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



48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/ip_security_restriction.rb', line 48

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'
          }
        },
        action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'action',
          type: {
            name: 'String'
          }
        },
        tag: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tag',
          type: {
            name: 'Enum',
            module: 'IpFilterTag'
          }
        },
        priority: {
          client_side_validation: true,
          required: false,
          serialized_name: 'priority',
          type: {
            name: 'Number'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'description',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end