Google Cloud Security Command Center V2 Client - Class AttackExposure (1.28.0)

Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class AttackExposure.

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

Generated from protobuf message google.cloud.securitycenter.v2.AttackExposure

Namespace

Google \ Cloud \ SecurityCenter \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ score float

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.

↳ latest_calculation_time Google\Protobuf\Timestamp

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

↳ attack_exposure_result 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

↳ state int

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

↳ exposed_high_value_resources_count int

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

↳ exposed_medium_value_resources_count int

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

↳ exposed_low_value_resources_count int

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

getScore

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.

Returns
Type Description
float

setScore

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.

Parameter
Name Description
var float
Returns
Type Description
$this

getLatestCalculationTime

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

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLatestCalculationTime

clearLatestCalculationTime

setLatestCalculationTime

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

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getAttackExposureResult

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

Returns
Type Description
string

setAttackExposureResult

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

Parameter
Name Description
var string
Returns
Type Description
$this

getState

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

Returns
Type Description
int

setState

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

Parameter
Name Description
var int
Returns
Type Description
$this

getExposedHighValueResourcesCount

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

Returns
Type Description
int

setExposedHighValueResourcesCount

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

Parameter
Name Description
var int
Returns
Type Description
$this

getExposedMediumValueResourcesCount

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

Returns
Type Description
int

setExposedMediumValueResourcesCount

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

Parameter
Name Description
var int
Returns
Type Description
$this

getExposedLowValueResourcesCount

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

Returns
Type Description
int

setExposedLowValueResourcesCount

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

Parameter
Name Description
var int
Returns
Type Description
$this