Class: Azure::ARM::Network::Models::EffectiveNetworkSecurityRules

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb

Overview

Effective NetworkSecurityRules

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#accessSecurityRuleAccess

denied. Possible values include: ‘Allow’, ‘Deny’

Returns:



43
44
45
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 43

def access
  @access
end

#destination_address_prefixString

Returns Gets destination address prefix.

Returns:

  • (String)

    Gets destination address prefix



33
34
35
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 33

def destination_address_prefix
  @destination_address_prefix
end

#destination_port_rangeString

Returns Gets destination port or range.

Returns:

  • (String)

    Gets destination port or range



27
28
29
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 27

def destination_port_range
  @destination_port_range
end

#directionSecurityRuleDirection

Possible values include: ‘Inbound’, ‘Outbound’

Returns:



50
51
52
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 50

def direction
  @direction
end

#expanded_destination_address_prefixArray<String>

Returns Gets expanded destination address prefix.

Returns:

  • (Array<String>)

    Gets expanded destination address prefix



39
40
41
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 39

def expanded_destination_address_prefix
  @expanded_destination_address_prefix
end

#expanded_source_address_prefixArray<String>

Returns Gets expanded source address prefix.

Returns:

  • (Array<String>)

    Gets expanded source address prefix



36
37
38
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 36

def expanded_source_address_prefix
  @expanded_source_address_prefix
end

#nameString

user (if created by the user)

Returns:

  • (String)

    Gets the name of the security rule specified by the



17
18
19
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 17

def name
  @name
end

#priorityInteger

Returns Gets the priority of the rule.

Returns:

  • (Integer)

    Gets the priority of the rule



46
47
48
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 46

def priority
  @priority
end

#protocolSecurityRuleProtocol

to. Possible values include: ‘Tcp’, ‘Udp’, ‘*’

Returns:



21
22
23
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 21

def protocol
  @protocol
end

#source_address_prefixString

Returns Gets source address prefix.

Returns:

  • (String)

    Gets source address prefix



30
31
32
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 30

def source_address_prefix
  @source_address_prefix
end

#source_port_rangeString

Returns Gets source port or range.

Returns:

  • (String)

    Gets source port or range



24
25
26
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 24

def source_port_range
  @source_port_range
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/generated/azure_mgmt_network/models/effective_network_security_rules.rb', line 57

def self.mapper()
  {
    required: false,
    serialized_name: 'EffectiveNetworkSecurityRules',
    type: {
      name: 'Composite',
      class_name: 'EffectiveNetworkSecurityRules',
      model_properties: {
        name: {
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        protocol: {
          required: false,
          serialized_name: 'protocol',
          type: {
            name: 'String'
          }
        },
        source_port_range: {
          required: false,
          serialized_name: 'sourcePortRange',
          type: {
            name: 'String'
          }
        },
        destination_port_range: {
          required: false,
          serialized_name: 'destinationPortRange',
          type: {
            name: 'String'
          }
        },
        source_address_prefix: {
          required: false,
          serialized_name: 'sourceAddressPrefix',
          type: {
            name: 'String'
          }
        },
        destination_address_prefix: {
          required: false,
          serialized_name: 'destinationAddressPrefix',
          type: {
            name: 'String'
          }
        },
        expanded_source_address_prefix: {
          required: false,
          serialized_name: 'expandedSourceAddressPrefix',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        expanded_destination_address_prefix: {
          required: false,
          serialized_name: 'expandedDestinationAddressPrefix',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        access: {
          required: false,
          serialized_name: 'access',
          type: {
            name: 'String'
          }
        },
        priority: {
          required: false,
          serialized_name: 'priority',
          type: {
            name: 'Number'
          }
        },
        direction: {
          required: false,
          serialized_name: 'direction',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end