Google Cloud Binary Authorization V1 Client - Class ValidateAttestationOccurrenceRequest (0.5.13)

Reference documentation and code samples for the Google Cloud Binary Authorization V1 Client class ValidateAttestationOccurrenceRequest.

Request message for ValidationHelperV1.ValidateAttestationOccurrence.

Generated from protobuf message google.cloud.binaryauthorization.v1.ValidateAttestationOccurrenceRequest

Namespace

Google \ Cloud \ BinaryAuthorization \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ attestor string

Required. The resource name of the Attestor of the occurrence, in the format projects/*/attestors/*.

↳ attestation Grafeas\V1\AttestationOccurrence

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

↳ occurrence_note string

Required. The resource name of the Note to which the containing Occurrence is associated.

↳ occurrence_resource_uri string

Required. The URI of the artifact (e.g. container image) that is the subject of the containing Occurrence.

getAttestor

Required. The resource name of the Attestor of the occurrence, in the format projects/*/attestors/*.

Returns
TypeDescription
string

setAttestor

Required. The resource name of the Attestor of the occurrence, in the format projects/*/attestors/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAttestation

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

Returns
TypeDescription
Grafeas\V1\AttestationOccurrence|null

hasAttestation

clearAttestation

setAttestation

Required. An AttestationOccurrence to be checked that it can be verified by the Attestor. It does not have to be an existing entity in Container Analysis. It must otherwise be a valid AttestationOccurrence.

Parameter
NameDescription
var Grafeas\V1\AttestationOccurrence
Returns
TypeDescription
$this

getOccurrenceNote

Required. The resource name of the Note to which the containing Occurrence is associated.

Returns
TypeDescription
string

setOccurrenceNote

Required. The resource name of the Note to which the containing Occurrence is associated.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOccurrenceResourceUri

Required. The URI of the artifact (e.g. container image) that is the subject of the containing Occurrence.

Returns
TypeDescription
string

setOccurrenceResourceUri

Required. The URI of the artifact (e.g. container image) that is the subject of the containing Occurrence.

Parameter
NameDescription
var string
Returns
TypeDescription
$this