Google Cloud Security Command Center V1 Client - Class SimulatedResult (1.29.0)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class SimulatedResult.

Possible test result.

Generated from protobuf message google.cloud.securitycenter.v1.SimulateSecurityHealthAnalyticsCustomModuleResponse.SimulatedResult

Namespace

Google \ Cloud \ SecurityCenter \ V1 \ SimulateSecurityHealthAnalyticsCustomModuleResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ finding Google\Cloud\SecurityCenter\V1\Finding

Finding that would be published for the test case, if a violation is detected.

↳ no_violation Google\Protobuf\GPBEmpty

Indicates that the test case does not trigger any violation.

↳ error Google\Rpc\Status

Error encountered during the test.

getFinding

Finding that would be published for the test case, if a violation is detected.

Returns
Type Description
Google\Cloud\SecurityCenter\V1\Finding|null

hasFinding

setFinding

Finding that would be published for the test case, if a violation is detected.

Parameter
Name Description
var Google\Cloud\SecurityCenter\V1\Finding
Returns
Type Description
$this

getNoViolation

Indicates that the test case does not trigger any violation.

Returns
Type Description
Google\Protobuf\GPBEmpty|null

hasNoViolation

setNoViolation

Indicates that the test case does not trigger any violation.

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

getError

Error encountered during the test.

Returns
Type Description
Google\Rpc\Status|null

hasError

setError

Error encountered during the test.

Parameter
Name Description
var Google\Rpc\Status
Returns
Type Description
$this

getResult

Returns
Type Description
string