Class: Azure::Network::Mgmt::V2016_12_01::Models::EffectiveNetworkSecurityRule

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-12-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:


45
46
47
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 45

def access
  @access
end

#destination_address_prefixString

Returns The destination address prefix.

Returns:

  • (String)

    The destination address prefix.


34
35
36
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 34

def destination_address_prefix
  @destination_address_prefix
end

#destination_port_rangeString

Returns The destination port or range.

Returns:

  • (String)

    The destination port or range.


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

def destination_port_range
  @destination_port_range
end

#directionSecurityRuleDirection

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

Returns:


53
54
55
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 53

def direction
  @direction
end

#expanded_destination_address_prefixArray<String>

Returns Expanded destination address prefix.

Returns:

  • (Array<String>)

    Expanded destination address prefix.


40
41
42
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 40

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.


37
38
39
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 37

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/2016-12-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.


48
49
50
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 48

def priority
  @priority
end

#protocolSecurityRuleProtocol

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

Returns:


22
23
24
# File 'lib/2016-12-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.


31
32
33
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 31

def source_address_prefix
  @source_address_prefix
end

#source_port_rangeString

Returns The source port or range.

Returns:

  • (String)

    The source port or range.


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

def source_port_range
  @source_port_range
end

Class Method Details

.mapperObject

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


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
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
# File 'lib/2016-12-01/generated/azure_mgmt_network/models/effective_network_security_rule.rb', line 60

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_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'
          }
        },
        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