Reference documentation and code samples for the Grafeas V1 Client class Occurrence.
An instance of an analysis type that has been found on a resource.
Generated from protobuf message grafeas.v1.Occurrence
Namespace
Grafeas \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
↳ resource_uri
string
Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, https://gcr.io/project/image@sha256:123abc
for a Docker image.
↳ note_name
string
Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]
. This field can be used as a filter in list requests.
↳ kind
int
Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.
↳ remediation
string
A description of actions that can be taken to remedy the note.
↳ create_time
↳ update_time
↳ vulnerability
↳ build
↳ image
Grafeas\V1\ImageOccurrence
Describes how this resource derives from the basis in the associated note.
↳ package
↳ deployment
↳ discovery
↳ attestation
↳ upgrade
↳ compliance
↳ dsse_attestation
getName
Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
string
setName
Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]
.
var
string
$this
getResourceUri
Required. Immutable. A URI that represents the resource for which the
occurrence applies. For example, https://gcr.io/project/image@sha256:123abc
for a Docker image.
string
setResourceUri
Required. Immutable. A URI that represents the resource for which the
occurrence applies. For example, https://gcr.io/project/image@sha256:123abc
for a Docker image.
var
string
$this
getNoteName
Required. Immutable. The analysis note associated with this occurrence, in
the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]
. This field can be
used as a filter in list requests.
string
setNoteName
Required. Immutable. The analysis note associated with this occurrence, in
the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]
. This field can be
used as a filter in list requests.
var
string
$this
getKind
Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.
int
setKind
Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.
var
int
$this
getRemediation
A description of actions that can be taken to remedy the note.
string
setRemediation
A description of actions that can be taken to remedy the note.
var
string
$this
getCreateTime
Output only. The time this occurrence was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time this occurrence was created.
$this
getUpdateTime
Output only. The time this occurrence was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time this occurrence was last updated.
$this
getVulnerability
Describes a security vulnerability.
hasVulnerability
setVulnerability
Describes a security vulnerability.
$this
getBuild
Describes a verifiable build.
hasBuild
setBuild
Describes a verifiable build.
$this
getImage
Describes how this resource derives from the basis in the associated note.
hasImage
setImage
Describes how this resource derives from the basis in the associated note.
$this
getPackage
Describes the installation of a package on the linked resource.
hasPackage
setPackage
Describes the installation of a package on the linked resource.
$this
getDeployment
Describes the deployment of an artifact on a runtime.
hasDeployment
setDeployment
Describes the deployment of an artifact on a runtime.
$this
getDiscovery
Describes when a resource was discovered.
hasDiscovery
setDiscovery
Describes when a resource was discovered.
$this
getAttestation
Describes an attestation of an artifact.
hasAttestation
setAttestation
Describes an attestation of an artifact.
$this
getUpgrade
Describes an available package upgrade on the linked resource.
hasUpgrade
setUpgrade
Describes an available package upgrade on the linked resource.
$this
getCompliance
Describes a compliance violation on a linked resource.
hasCompliance
setCompliance
Describes a compliance violation on a linked resource.
$this
getDsseAttestation
Describes an attestation of an artifact using dsse.
hasDsseAttestation
setDsseAttestation
Describes an attestation of an artifact using dsse.
$this
getEnvelope
hasEnvelope
clearEnvelope
setEnvelope
$this
getDetails
string