Class: Azure::Network::Mgmt::V2018_08_01::Models::MatchedRule

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

Overview

Matched rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionString

values are 'Allow' and 'Deny'.

Returns:

  • (String)

    The network traffic is allowed or denied. Possible


20
21
22
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/matched_rule.rb', line 20

def action
  @action
end

#rule_nameString

Returns Name of the matched network security rule.

Returns:

  • (String)

    Name of the matched network security rule.


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

def rule_name
  @rule_name
end

Class Method Details

.mapperObject

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


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/matched_rule.rb', line 27

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MatchedRule',
    type: {
      name: 'Composite',
      class_name: 'MatchedRule',
      model_properties: {
        rule_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ruleName',
          type: {
            name: 'String'
          }
        },
        action: {
          client_side_validation: true,
          required: false,
          serialized_name: 'action',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end