Grafeas V1 Client - Class ComplianceOccurrence (1.1.0)

Reference documentation and code samples for the Grafeas V1 Client class ComplianceOccurrence.

An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason.

Generated from protobuf message grafeas.v1.ComplianceOccurrence

Namespace

Grafeas \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ non_compliant_files array<Grafeas\V1\NonCompliantFile>
↳ non_compliance_reason string
↳ version Grafeas\V1\ComplianceVersion

The OS and config version the benchmark was run on.

getNonCompliantFiles

Generated from protobuf field repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setNonCompliantFiles

Generated from protobuf field repeated .grafeas.v1.NonCompliantFile non_compliant_files = 2;

Parameter
Name Description
var array<Grafeas\V1\NonCompliantFile>
Returns
Type Description
$this

getNonComplianceReason

Generated from protobuf field string non_compliance_reason = 3;

Returns
Type Description
string

setNonComplianceReason

Generated from protobuf field string non_compliance_reason = 3;

Parameter
Name Description
var string
Returns
Type Description
$this

getVersion

The OS and config version the benchmark was run on.

Returns
Type Description
Grafeas\V1\ComplianceVersion|null

hasVersion

clearVersion

setVersion

The OS and config version the benchmark was run on.

Parameter
Name Description
var Grafeas\V1\ComplianceVersion
Returns
Type Description
$this