Class: Azure::Network::Mgmt::V2019_11_01::Models::NetworkRuleCondition

Inherits:
FirewallPolicyRuleCondition show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/network_rule_condition.rb

Overview

Rule condition of type network.

Instance Attribute Summary collapse

Attributes inherited from FirewallPolicyRuleCondition

#description, #name

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNetworkRuleCondition

Returns a new instance of NetworkRuleCondition.


16
17
18
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/network_rule_condition.rb', line 16

def initialize
  @ruleConditionType = "NetworkRuleCondition"
end

Instance Attribute Details

#destination_addressesArray<String>

Tags.

Returns:

  • (Array<String>)

    List of destination IP addresses or Service


31
32
33
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/network_rule_condition.rb', line 31

def destination_addresses
  @destination_addresses
end

#destination_portsArray<String>

Returns List of destination ports.

Returns:

  • (Array<String>)

    List of destination ports.


34
35
36
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/network_rule_condition.rb', line 34

def destination_ports
  @destination_ports
end

#ip_protocolsArray<FirewallPolicyRuleConditionNetworkProtocol>

FirewallPolicyRuleConditionNetworkProtocols.

Returns:


24
25
26
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/network_rule_condition.rb', line 24

def ip_protocols
  @ip_protocols
end

#ruleConditionTypeObject

Returns the value of attribute ruleConditionType


20
21
22
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/network_rule_condition.rb', line 20

def ruleConditionType
  @ruleConditionType
end

#source_addressesArray<String>

Returns List of source IP addresses for this rule.

Returns:

  • (Array<String>)

    List of source IP addresses for this rule.


27
28
29
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/network_rule_condition.rb', line 27

def source_addresses
  @source_addresses
end

Class Method Details

.mapperObject

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


41
42
43
44
45
46
47
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/network_rule_condition.rb', line 41

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'NetworkRuleCondition',
    type: {
      name: 'Composite',
      class_name: 'NetworkRuleCondition',
      model_properties: {
        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'
          }
        },
        ruleConditionType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ruleConditionType',
          type: {
            name: 'String'
          }
        },
        ip_protocols: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ipProtocols',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'FirewallPolicyRuleConditionNetworkProtocolElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        source_addresses: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceAddresses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        destination_addresses: {
          client_side_validation: true,
          required: false,
          serialized_name: 'destinationAddresses',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        destination_ports: {
          client_side_validation: true,
          required: false,
          serialized_name: 'destinationPorts',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end