Class: Azure::Network::Mgmt::V2019_07_01::Models::ApplicationRuleCondition

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

Overview

Rule condition of type application.

Instance Attribute Summary collapse

Attributes inherited from FirewallPolicyRuleCondition

#description, #name

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeApplicationRuleCondition

Returns a new instance of ApplicationRuleCondition.


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

def initialize
  @ruleConditionType = "ApplicationRuleCondition"
end

Instance Attribute Details

#destination_addressesArray<String>

Tags.

Returns:

  • (Array<String>)

    List of destination IP addresses or Service


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

def destination_addresses
  @destination_addresses
end

#fqdn_tagsArray<String>

Returns List of FQDN Tags for this rule condition.

Returns:

  • (Array<String>)

    List of FQDN Tags for this rule condition.


37
38
39
# File 'lib/2019-07-01/generated/azure_mgmt_network/models/application_rule_condition.rb', line 37

def fqdn_tags
  @fqdn_tags
end

#protocolsArray<FirewallPolicyRuleConditionApplicationProtocol>

of Application Protocols.


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

def protocols
  @protocols
end

#ruleConditionTypeObject

Returns the value of attribute ruleConditionType


20
21
22
# File 'lib/2019-07-01/generated/azure_mgmt_network/models/application_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.


23
24
25
# File 'lib/2019-07-01/generated/azure_mgmt_network/models/application_rule_condition.rb', line 23

def source_addresses
  @source_addresses
end

#target_fqdnsArray<String>

Returns List of FQDNs for this rule condition.

Returns:

  • (Array<String>)

    List of FQDNs for this rule condition.


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

def target_fqdns
  @target_fqdns
end

Class Method Details

.mapperObject

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


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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# File 'lib/2019-07-01/generated/azure_mgmt_network/models/application_rule_condition.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApplicationRuleCondition',
    type: {
      name: 'Composite',
      class_name: 'ApplicationRuleCondition',
      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'
          }
        },
        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'
                }
            }
          }
        },
        protocols: {
          client_side_validation: true,
          required: false,
          serialized_name: 'protocols',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'FirewallPolicyRuleConditionApplicationProtocolElementType',
                type: {
                  name: 'Composite',
                  class_name: 'FirewallPolicyRuleConditionApplicationProtocol'
                }
            }
          }
        },
        target_fqdns: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetFqdns',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        fqdn_tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'fqdnTags',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end