Class: Azure::Web::Mgmt::V2018_02_01::Models::IpSecurityRestriction
- Inherits:
-
Object
- Object
- Azure::Web::Mgmt::V2018_02_01::Models::IpSecurityRestriction
- 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
-
#action ⇒ String
Allow or Deny access for this IP range.
-
#description ⇒ String
IP restriction rule description.
-
#ip_address ⇒ String
It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match).
-
#name ⇒ String
IP restriction rule name.
-
#priority ⇒ Integer
Priority of IP restriction rule.
-
#subnet_mask ⇒ String
restriction is valid for.
-
#tag ⇒ IpFilterTag
This is to support IP filtering on proxies.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for IpSecurityRestriction class as Ruby Hash.
Instance Attribute Details
#action ⇒ String
Returns 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 |
#description ⇒ String
Returns 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_address ⇒ String
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.
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 |
#name ⇒ String
Returns 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 |
#priority ⇒ Integer
Returns 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_mask ⇒ String
restriction is valid for.
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 |
#tag ⇒ IpFilterTag
This is to support IP filtering on proxies. Possible values include: ‘Default’, ‘XffProxy’
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
.mapper ⇒ Object
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 |