NAME

Google::Cloud::Securitycenter::V2::AttackExposure - Compiled Protocol Buffers messages for google/cloud/securitycenter/v2/attack_exposure.proto

SYNOPSIS

use Google::Cloud::Securitycenter::V2::AttackExposure;

my $msg = Google::Cloud::Securitycenter::V2::AttackExposure::AttackExposure->new({
    score => $score,
    latest_calculation_time => $latest_calculation_time,
    attack_exposure_result => $attack_exposure_result,
    state => $state,
});

# Read or update a field
my $val = $msg->score();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Securitycenter::V2::AttackExposure::AttackExposure->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/securitycenter/v2/attack_exposure.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Securitycenter::V2::AttackExposure::AttackExposure

An attack exposure contains the results of an attack path simulation run.

Inherits from Protobuf::Message.

Accessors

  • $msg->score() / $msg->score($value)

    Type: Double

    A number between 0 (inclusive) and infinity that represents how important this finding is to remediate. The higher the score, the more important it is to remediate.

  • $msg->latest_calculation_time() / $msg->latest_calculation_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    The most recent time the attack exposure was updated on this finding.

  • $msg->attack_exposure_result() / $msg->attack_exposure_result($value)

    Type: String

    The resource name of the attack path simulation result that contains the details regarding this attack exposure score. Example: `organizations/123/simulations/456/attackExposureResults/789`

  • $msg->state() / $msg->state($value)

    Type: Enum (Google::Cloud::Securitycenter::V2::AttackExposure::State)

    Output only. What state this AttackExposure is in. This captures whether or not an attack exposure has been calculated or not.

  • $msg->exposed_high_value_resources_count() / $msg->exposed_high_value_resources_count($value)

    Type: Int32

    The number of high value resources that are exposed as a result of this finding.

  • $msg->exposed_medium_value_resources_count() / $msg->exposed_medium_value_resources_count($value)

    Type: Int32

    The number of medium value resources that are exposed as a result of this finding.

  • $msg->exposed_low_value_resources_count() / $msg->exposed_low_value_resources_count($value)

    Type: Int32

    The number of high value resources that are exposed as a result of this finding.

Enum: AttackExposure::State

  • STATE_UNSPECIFIED => 0

  • CALCULATED => 1

  • NOT_CALCULATED => 2

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Securitycenter::V2::AttackExposure::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.