Google Cloud Security Command Center V1 Client - Class SimulatedResult (1.21.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
NameDescription
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
TypeDescription
Google\Cloud\SecurityCenter\V1\Finding|null

hasFinding

setFinding

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

Parameter
NameDescription
var Google\Cloud\SecurityCenter\V1\Finding
Returns
TypeDescription
$this

getNoViolation

Indicates that the test case does not trigger any violation.

Returns
TypeDescription
Google\Protobuf\GPBEmpty|null

hasNoViolation

setNoViolation

Indicates that the test case does not trigger any violation.

Parameter
NameDescription
var Google\Protobuf\GPBEmpty
Returns
TypeDescription
$this

getError

Error encountered during the test.

Returns
TypeDescription
Google\Rpc\Status|null

hasError

setError

Error encountered during the test.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getResult

Returns
TypeDescription
string