Class: Azure::Network::Mgmt::V2019_11_01::Models::TopologyResource

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

Overview

The network resource topology information for the given resource group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#associationsArray<TopologyAssociation>

resource has with other resources in the resource group.

Returns:


26
27
28
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/topology_resource.rb', line 26

def associations
  @associations
end

#idString

Returns ID of the resource.

Returns:

  • (String)

    ID of the resource.


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

def id
  @id
end

#locationString

Returns Resource location.

Returns:

  • (String)

    Resource location.


22
23
24
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/topology_resource.rb', line 22

def location
  @location
end

#nameString

Returns Name of the resource.

Returns:

  • (String)

    Name of the resource.


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

def name
  @name
end

Class Method Details

.mapperObject

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


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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/topology_resource.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TopologyResource',
    type: {
      name: 'Composite',
      class_name: 'TopologyResource',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        associations: {
          client_side_validation: true,
          required: false,
          serialized_name: 'associations',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'TopologyAssociationElementType',
                type: {
                  name: 'Composite',
                  class_name: 'TopologyAssociation'
                }
            }
          }
        }
      }
    }
  }
end