class Azure::Security::Mgmt::V2020_01_01::Models::TopologySingleResource

Model object.

Attributes

children[RW]

@return [Array<TopologySingleResourceChild>] Azure resources connected to this resource which are in lower level in the topology view

location[RW]

@return [String] The location of this resource

network_zones[RW]

@return [String] Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.)

parents[RW]

@return [Array<TopologySingleResourceParent>] Azure resources connected to this resource which are in higher level in the topology view

recommendations_exist[RW]

@return [Boolean] Indicates if the resource has security recommendations

resource_id[RW]

@return [String] Azure resource id

severity[RW]

@return [String] The security severity of the resource

topology_score[RW]

@return [Integer] Score of the resource based on its security severity

Private Class Methods

mapper() click to toggle source

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

# 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