Class: Azure::Network::Mgmt::V2018_08_01::Models::EffectiveNetworkSecurityRule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb

Overview

Effective network security rules.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#accessSecurityRuleAccess

denied. Possible values are: 'Allow' and 'Deny'. Possible values include: 'Allow', 'Deny'

Returns:


65
66
67
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 65

def access
  @access
end

#destination_address_prefixString

Returns The destination address prefix.

Returns:

  • (String)

    The destination address prefix.


44
45
46
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 44

def destination_address_prefix
  @destination_address_prefix
end

#destination_address_prefixesArray<String>

values include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).

Returns:

  • (Array<String>)

    The destination address prefixes. Expected


54
55
56
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 54

def destination_address_prefixes
  @destination_address_prefixes
end

#destination_port_rangeString

Returns The destination port or range.

Returns:

  • (String)

    The destination port or range.


28
29
30
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 28

def destination_port_range
  @destination_port_range
end

#destination_port_rangesArray<String>

include a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*)

Returns:

  • (Array<String>)

    The destination port ranges. Expected values


38
39
40
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 38

def destination_port_ranges
  @destination_port_ranges
end

#directionSecurityRuleDirection

values are: 'Inbound and Outbound'. Possible values include: 'Inbound', 'Outbound'

Returns:


73
74
75
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 73

def direction
  @direction
end

#expanded_destination_address_prefixArray<String>

Returns Expanded destination address prefix.

Returns:

  • (Array<String>)

    Expanded destination address prefix.


60
61
62
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 60

def expanded_destination_address_prefix
  @expanded_destination_address_prefix
end

#expanded_source_address_prefixArray<String>

Returns The expanded source address prefix.

Returns:

  • (Array<String>)

    The expanded source address prefix.


57
58
59
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 57

def expanded_source_address_prefix
  @expanded_source_address_prefix
end

#nameString

(if created by the user).

Returns:

  • (String)

    The name of the security rule specified by the user


17
18
19
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 17

def name
  @name
end

#priorityInteger

Returns The priority of the rule.

Returns:

  • (Integer)

    The priority of the rule.


68
69
70
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 68

def priority
  @priority
end

#protocolEffectiveSecurityRuleProtocol

applies to. Possible values are: 'Tcp', 'Udp', and 'All'. Possible values include: 'Tcp', 'Udp', 'All'

Returns:


22
23
24
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 22

def protocol
  @protocol
end

#source_address_prefixString

Returns The source address prefix.

Returns:

  • (String)

    The source address prefix.


41
42
43
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 41

def source_address_prefix
  @source_address_prefix
end

#source_address_prefixesArray<String>

include CIDR IP ranges, Default Tags (VirtualNetwork, AzureLoadBalancer, Internet), System Tags, and the asterisk (*).

Returns:

  • (Array<String>)

    The source address prefixes. Expected values


49
50
51
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 49

def source_address_prefixes
  @source_address_prefixes
end

#source_port_rangeString

Returns The source port or range.

Returns:

  • (String)

    The source port or range.


25
26
27
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 25

def source_port_range
  @source_port_range
end

#source_port_rangesArray<String>

a single integer between 0 and 65535, a range using '-' as separator (e.g. 100-400), or an asterisk (*)

Returns:

  • (Array<String>)

    The source port ranges. Expected values include


33
34
35
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 33

def source_port_ranges
  @source_port_ranges
end

Class Method Details

.mapperObject

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


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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 80

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EffectiveNetworkSecurityRule',
    type: {
      name: 'Composite',
      class_name: 'EffectiveNetworkSecurityRule',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        protocol: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protocol',
          type: {
            name: 'String'
          }
        },
        source_port_range: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourcePortRange',
          type: {
            name: 'String'
          }
        },
        destination_port_range: {
          client_side_validation: true,
          required: false,
          serialized_name: 'destinationPortRange',
          type: {
            name: 'String'
          }
        },
        source_port_ranges: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourcePortRanges',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        destination_port_ranges: {
          client_side_validation: true,
          required: false,
          serialized_name: 'destinationPortRanges',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        source_address_prefix: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceAddressPrefix',
          type: {
            name: 'String'
          }
        },
        destination_address_prefix: {
          client_side_validation: true,
          required: false,
          serialized_name: 'destinationAddressPrefix',
          type: {
            name: 'String'
          }
        },
        source_address_prefixes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceAddressPrefixes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        destination_address_prefixes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'destinationAddressPrefixes',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        expanded_source_address_prefix: {
          client_side_validation: true,
          required: false,
          serialized_name: 'expandedSourceAddressPrefix',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        expanded_destination_address_prefix: {
          client_side_validation: true,
          required: false,
          serialized_name: 'expandedDestinationAddressPrefix',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        access: {
          client_side_validation: true,
          required: false,
          serialized_name: 'access',
          type: {
            name: 'String'
          }
        },
        priority: {
          client_side_validation: true,
          required: false,
          serialized_name: 'priority',
          type: {
            name: 'Number'
          }
        },
        direction: {
          client_side_validation: true,
          required: false,
          serialized_name: 'direction',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end