Class: Azure::Network::Mgmt::V2019_11_01::Models::SubnetAssociation

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/subnet_association.rb

Overview

Subnet and it's custom security rules.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idString

Returns Subnet ID.

Returns:

  • (String)

    Subnet ID.


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

def id
  @id
end

#security_rulesArray<SecurityRule>

Returns Collection of custom security rules.

Returns:

  • (Array<SecurityRule>)

    Collection of custom security rules.


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

def security_rules
  @security_rules
end

Class Method Details

.mapperObject

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


26
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
56
57
58
59
60
61
62
63
64
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/subnet_association.rb', line 26

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SubnetAssociation',
    type: {
      name: 'Composite',
      class_name: 'SubnetAssociation',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        security_rules: {
          client_side_validation: true,
          required: false,
          serialized_name: 'securityRules',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'SecurityRuleElementType',
                type: {
                  name: 'Composite',
                  class_name: 'SecurityRule'
                }
            }
          }
        }
      }
    }
  }
end