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 \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ non_compliant_files |
array<NonCompliantFile>
|
↳ non_compliance_reason |
string
|
↳ version |
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<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 |
ComplianceVersion|null |
|
hasVersion
clearVersion
setVersion
The OS and config version the benchmark was run on.
| Parameter | |
|---|---|
| Name | Description |
var |
ComplianceVersion
|
| Returns | |
|---|---|
| Type | Description |
$this |
|