Grafeas V1 Client - Class SBOMReferenceOccurrence (1.1.0)

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

The occurrence representing an SBOM reference as applied to a specific resource. The occurrence follows the DSSE specification. See https://github.com/secure-systems-lab/dsse/blob/master/envelope.md for more details.

Generated from protobuf message grafeas.v1.SBOMReferenceOccurrence

Namespace

Grafeas \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ payload Grafeas\V1\SbomReferenceIntotoPayload

The actual payload that contains the SBOM reference data.

↳ payload_type string

The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'.

↳ signatures array<Grafeas\V1\EnvelopeSignature>

The signatures over the payload.

getPayload

The actual payload that contains the SBOM reference data.

Returns
Type Description
Grafeas\V1\SbomReferenceIntotoPayload|null

hasPayload

clearPayload

setPayload

The actual payload that contains the SBOM reference data.

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

getPayloadType

The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'.

Returns
Type Description
string

setPayloadType

The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'.

Parameter
Name Description
var string
Returns
Type Description
$this

getSignatures

The signatures over the payload.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSignatures

The signatures over the payload.

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