Class: Azure::Network::Mgmt::V2015_06_15::Models::SecurityRule
- Inherits:
-
SubResource
- Object
- SubResource
- Azure::Network::Mgmt::V2015_06_15::Models::SecurityRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb
Overview
Network security rule.
Instance Attribute Summary collapse
-
#access ⇒ SecurityRuleAccess
Possible values are: ‘Allow’ and ‘Deny’.
-
#description ⇒ String
A description for this rule.
-
#destination_address_prefix ⇒ String
range.
-
#destination_port_range ⇒ String
between 0 and 65535.
-
#direction ⇒ SecurityRuleDirection
direction specifies if rule will be evaluated on incoming or outcoming traffic.
-
#etag ⇒ String
resource is updated.
-
#name ⇒ String
resource group.
-
#priority ⇒ Integer
100 and 4096.
-
#protocol ⇒ SecurityRuleProtocol
Possible values are ‘Tcp’, ‘Udp’, and ‘*’.
-
#provisioning_state ⇒ String
Possible values are: ‘Updating’, ‘Deleting’, and ‘Failed’.
-
#source_address_prefix ⇒ String
used to match all source IPs.
-
#source_port_range ⇒ String
and 65535.
Attributes inherited from SubResource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for SecurityRule class as Ruby Hash.
Instance Attribute Details
#access ⇒ SecurityRuleAccess
Possible values are: ‘Allow’ and ‘Deny’. Possible values include: ‘Allow’, ‘Deny’
46 47 48 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 46 def access @access end |
#description ⇒ String
Returns A description for this rule. Restricted to 140 chars.
16 17 18 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 16 def description @description end |
#destination_address_prefix ⇒ String
range. Asterix ‘*’ can also be used to match all source IPs. Default tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used.
41 42 43 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 41 def destination_address_prefix @destination_address_prefix end |
#destination_port_range ⇒ String
between 0 and 65535. Asterix ‘*’ can also be used to match all ports.
29 30 31 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 29 def destination_port_range @destination_port_range end |
#direction ⇒ SecurityRuleDirection
direction specifies if rule will be evaluated on incoming or outcoming traffic. Possible values are: ‘Inbound’ and ‘Outbound’. Possible values include: ‘Inbound’, ‘Outbound’
58 59 60 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 58 def direction @direction end |
#etag ⇒ String
resource is updated.
70 71 72 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 70 def etag @etag end |
#name ⇒ String
resource group. This name can be used to access the resource.
66 67 68 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 66 def name @name end |
#priority ⇒ Integer
100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.
52 53 54 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 52 def priority @priority end |
#protocol ⇒ SecurityRuleProtocol
Possible values are ‘Tcp’, ‘Udp’, and ‘*’. Possible values include: ‘Tcp’, ‘Udp’, ‘*’
21 22 23 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 21 def protocol @protocol end |
#provisioning_state ⇒ String
Possible values are: ‘Updating’, ‘Deleting’, and ‘Failed’.
62 63 64 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 62 def provisioning_state @provisioning_state end |
#source_address_prefix ⇒ String
used to match all source IPs. Default tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. If this is an ingress rule, specifies where network traffic originates from.
35 36 37 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 35 def source_address_prefix @source_address_prefix end |
#source_port_range ⇒ String
and 65535. Asterix ‘*’ can also be used to match all ports.
25 26 27 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 25 def source_port_range @source_port_range end |
Class Method Details
.mapper ⇒ Object
Mapper for SecurityRule class as Ruby Hash. This will be used for serialization/deserialization.
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 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/2015-06-15/generated/azure_mgmt_network/models/security_rule.rb', line 77 def self.mapper() { required: false, serialized_name: 'SecurityRule', type: { name: 'Composite', class_name: 'SecurityRule', model_properties: { id: { required: false, serialized_name: 'id', type: { name: 'String' } }, description: { required: false, serialized_name: 'properties.description', type: { name: 'String' } }, protocol: { required: true, serialized_name: 'properties.protocol', type: { name: 'String' } }, source_port_range: { required: false, serialized_name: 'properties.sourcePortRange', type: { name: 'String' } }, destination_port_range: { required: false, serialized_name: 'properties.destinationPortRange', type: { name: 'String' } }, source_address_prefix: { required: true, serialized_name: 'properties.sourceAddressPrefix', type: { name: 'String' } }, destination_address_prefix: { required: true, serialized_name: 'properties.destinationAddressPrefix', type: { name: 'String' } }, access: { required: true, serialized_name: 'properties.access', type: { name: 'String' } }, priority: { required: false, serialized_name: 'properties.priority', type: { name: 'Number' } }, direction: { required: true, serialized_name: 'properties.direction', type: { name: 'String' } }, provisioning_state: { required: false, serialized_name: 'properties.provisioningState', type: { name: 'String' } }, name: { required: false, serialized_name: 'name', type: { name: 'String' } }, etag: { required: false, serialized_name: 'etag', type: { name: 'String' } } } } } end |