Google Cloud Security Center Management V1 Client - Class SimulatedResult (1.1.1)

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

Possible test result.

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

Namespace

Google \ Cloud \ SecurityCenterManagement \ V1 \ SimulateSecurityHealthAnalyticsCustomModuleResponse

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ finding Google\Cloud\SecurityCenterManagement\V1\SimulatedFinding

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\SecurityCenterManagement\V1\SimulatedFinding|null

hasFinding

setFinding

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

Parameter
Name Description
var Google\Cloud\SecurityCenterManagement\V1\SimulatedFinding
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