Class: Azure::Network::Mgmt::V2016_09_01::Models::SecurityRuleAssociations

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-09-01/generated/azure_mgmt_network/models/security_rule_associations.rb

Overview

All security rules associated with the network interface.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#default_security_rulesArray<SecurityRule>

the network security group.

Returns:

  • (Array<SecurityRule>)

    Collection of default security rules of



23
24
25
# File 'lib/2016-09-01/generated/azure_mgmt_network/models/security_rule_associations.rb', line 23

def default_security_rules
  @default_security_rules
end

#effective_security_rulesArray<EffectiveNetworkSecurityRule>

security rules.

Returns:



27
28
29
# File 'lib/2016-09-01/generated/azure_mgmt_network/models/security_rule_associations.rb', line 27

def effective_security_rules
  @effective_security_rules
end

#network_interface_associationNetworkInterfaceAssociation



16
17
18
# File 'lib/2016-09-01/generated/azure_mgmt_network/models/security_rule_associations.rb', line 16

def network_interface_association
  @network_interface_association
end

#subnet_associationSubnetAssociation

Returns:



19
20
21
# File 'lib/2016-09-01/generated/azure_mgmt_network/models/security_rule_associations.rb', line 19

def subnet_association
  @subnet_association
end

Class Method Details

.mapperObject

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



34
35
36
37
38
39
40
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
# File 'lib/2016-09-01/generated/azure_mgmt_network/models/security_rule_associations.rb', line 34

def self.mapper()
  {
    required: false,
    serialized_name: 'SecurityRuleAssociations',
    type: {
      name: 'Composite',
      class_name: 'SecurityRuleAssociations',
      model_properties: {
        network_interface_association: {
          required: false,
          serialized_name: 'networkInterfaceAssociation',
          type: {
            name: 'Composite',
            class_name: 'NetworkInterfaceAssociation'
          }
        },
        subnet_association: {
          required: false,
          serialized_name: 'subnetAssociation',
          type: {
            name: 'Composite',
            class_name: 'SubnetAssociation'
          }
        },
        default_security_rules: {
          required: false,
          serialized_name: 'defaultSecurityRules',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'SecurityRuleElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SecurityRule'
                }
            }
          }
        },
        effective_security_rules: {
          required: false,
          serialized_name: 'effectiveSecurityRules',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'EffectiveNetworkSecurityRuleElementType',
                type: {
                  name: 'Composite',
                  class_name: 'EffectiveNetworkSecurityRule'
                }
            }
          }
        }
      }
    }
  }
end