Grafeas V1 Client - Class VulnerabilityAttestation (1.1.1)

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

The status of an vulnerability attestation generation.

Generated from protobuf message grafeas.v1.DiscoveryOccurrence.VulnerabilityAttestation

Namespace

Grafeas \ V1 \ DiscoveryOccurrence

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ last_attempt_time Google\Protobuf\Timestamp

The last time we attempted to generate an attestation.

↳ state int

The success/failure state of the latest attestation attempt.

↳ error string

If failure, the error reason for why the attestation generation failed.

getLastAttemptTime

The last time we attempted to generate an attestation.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLastAttemptTime

clearLastAttemptTime

setLastAttemptTime

The last time we attempted to generate an attestation.

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

getState

The success/failure state of the latest attestation attempt.

Returns
Type Description
int

setState

The success/failure state of the latest attestation attempt.

Parameter
Name Description
var int
Returns
Type Description
$this

getError

If failure, the error reason for why the attestation generation failed.

Returns
Type Description
string

setError

If failure, the error reason for why the attestation generation failed.

Parameter
Name Description
var string
Returns
Type Description
$this