Class: Azure::Network::Mgmt::V2019_11_01::Models::SecurityRuleAssociations

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-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


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

def default_security_rules
  @default_security_rules
end

#effective_security_rulesArray<EffectiveNetworkSecurityRule>

security rules.

Returns:


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

def effective_security_rules
  @effective_security_rules
end

#network_interface_associationNetworkInterfaceAssociation

security rules.

Returns:


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

def network_interface_association
  @network_interface_association
end

#subnet_associationSubnetAssociation

Returns Subnet and it's custom security rules.

Returns:


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

def subnet_association
  @subnet_association
end

Class Method Details

.mapperObject

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


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
92
93
94
95
96
97
98
99
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/security_rule_associations.rb', line 35

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