Class: Azure::Security::Mgmt::V2020_01_01::Models::TopologySingleResource

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb

Overview

Model object.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#childrenArray<TopologySingleResourceChild>

to this resource which are in lower level in the topology view

Returns:



42
43
44
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb', line 42

def children
  @children
end

#locationString

Returns The location of this resource.

Returns:

  • (String)

    The location of this resource



34
35
36
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb', line 34

def location
  @location
end

#network_zonesString

Internet (InternetFacing, Internal ,etc.)

Returns:

  • (String)

    Indicates the resource connectivity level to the



28
29
30
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb', line 28

def network_zones
  @network_zones
end

#parentsArray<TopologySingleResourceParent>

to this resource which are in higher level in the topology view

Returns:



38
39
40
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb', line 38

def parents
  @parents
end

#recommendations_existBoolean

recommendations

Returns:

  • (Boolean)

    Indicates if the resource has security



24
25
26
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb', line 24

def recommendations_exist
  @recommendations_exist
end

#resource_idString

Returns Azure resource id.

Returns:

  • (String)

    Azure resource id



17
18
19
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb', line 17

def resource_id
  @resource_id
end

#severityString

Returns The security severity of the resource.

Returns:

  • (String)

    The security severity of the resource



20
21
22
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb', line 20

def severity
  @severity
end

#topology_scoreInteger

Returns Score of the resource based on its security severity.

Returns:

  • (Integer)

    Score of the resource based on its security severity



31
32
33
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb', line 31

def topology_score
  @topology_score
end

Class Method Details

.mapperObject

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



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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# File 'lib/2020-01-01/generated/azure_mgmt_security/models/topology_single_resource.rb', line 49

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TopologySingleResource',
    type: {
      name: 'Composite',
      class_name: 'TopologySingleResource',
      model_properties: {
        resource_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resourceId',
          type: {
            name: 'String'
          }
        },
        severity: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'severity',
          type: {
            name: 'String'
          }
        },
        recommendations_exist: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'recommendationsExist',
          type: {
            name: 'Boolean'
          }
        },
        network_zones: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'networkZones',
          type: {
            name: 'String'
          }
        },
        topology_score: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'topologyScore',
          type: {
            name: 'Number'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        parents: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'parents',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'TopologySingleResourceParentElementType',
                type: {
                  name: 'Composite',
                  class_name: 'TopologySingleResourceParent'
                }
            }
          }
        },
        children: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'children',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'TopologySingleResourceChildElementType',
                type: {
                  name: 'Composite',
                  class_name: 'TopologySingleResourceChild'
                }
            }
          }
        }
      }
    }
  }
end