Grafeas V1 Client - Class Occurrence (0.5.0)

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

Methods

__construct

Constructor.

Parameters
Name
Description
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
Google\Protobuf\Timestamp

Output only. The time this occurrence was created.

↳ update_time
Google\Protobuf\Timestamp

Output only. The time this occurrence was last updated.

↳ vulnerability
Grafeas\V1\VulnerabilityOccurrence

Describes a security vulnerability.

↳ build
Grafeas\V1\BuildOccurrence

Describes a verifiable build.

↳ image
Grafeas\V1\ImageOccurrence

Describes how this resource derives from the basis in the associated note.

↳ package
Grafeas\V1\PackageOccurrence

Describes the installation of a package on the linked resource.

↳ deployment
Grafeas\V1\DeploymentOccurrence

Describes the deployment of an artifact on a runtime.

↳ discovery
Grafeas\V1\DiscoveryOccurrence

Describes when a resource was discovered.

↳ attestation
Grafeas\V1\AttestationOccurrence

Describes an attestation of an artifact.

↳ upgrade
Grafeas\V1\UpgradeOccurrence

Describes an available package upgrade on the linked resource.

↳ compliance
Grafeas\V1\ComplianceOccurrence

Describes a compliance violation on a linked resource.

↳ dsse_attestation
Grafeas\V1\DSSEAttestationOccurrence

Describes an attestation of an artifact using dsse.

getName

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] .

Returns
Type
Description
string

setName

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID] .

Parameter
Name
Description
var
string
Returns
Type
Description
$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.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$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.

Returns
Type
Description
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.

Parameter
Name
Description
var
string
Returns
Type
Description
$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.

Returns
Type
Description
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.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getRemediation

A description of actions that can be taken to remedy the note.

Returns
Type
Description
string

setRemediation

A description of actions that can be taken to remedy the note.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCreateTime

Output only. The time this occurrence was created.

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time this occurrence was created.

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

Output only. The time this occurrence was last updated.

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time this occurrence was last updated.

Parameter
Name
Description
Returns
Type
Description
$this

getVulnerability

Describes a security vulnerability.

Returns
Type
Description

hasVulnerability

setVulnerability

Describes a security vulnerability.

Parameter
Name
Description
Returns
Type
Description
$this

getBuild

Describes a verifiable build.

Returns
Type
Description

hasBuild

setBuild

Describes a verifiable build.

Parameter
Name
Description
Returns
Type
Description
$this

getImage

Describes how this resource derives from the basis in the associated note.

Returns
Type
Description

hasImage

setImage

Describes how this resource derives from the basis in the associated note.

Parameter
Name
Description
Returns
Type
Description
$this

getPackage

Describes the installation of a package on the linked resource.

Returns
Type
Description

hasPackage

setPackage

Describes the installation of a package on the linked resource.

Parameter
Name
Description
Returns
Type
Description
$this

getDeployment

Describes the deployment of an artifact on a runtime.

Returns
Type
Description

hasDeployment

setDeployment

Describes the deployment of an artifact on a runtime.

Parameter
Name
Description
Returns
Type
Description
$this

getDiscovery

Describes when a resource was discovered.

Returns
Type
Description

hasDiscovery

setDiscovery

Describes when a resource was discovered.

Parameter
Name
Description
Returns
Type
Description
$this

getAttestation

Describes an attestation of an artifact.

Returns
Type
Description

hasAttestation

setAttestation

Describes an attestation of an artifact.

Parameter
Name
Description
Returns
Type
Description
$this

getUpgrade

Describes an available package upgrade on the linked resource.

Returns
Type
Description

hasUpgrade

setUpgrade

Describes an available package upgrade on the linked resource.

Parameter
Name
Description
Returns
Type
Description
$this

getCompliance

Describes a compliance violation on a linked resource.

Returns
Type
Description

hasCompliance

setCompliance

Describes a compliance violation on a linked resource.

Parameter
Name
Description
Returns
Type
Description
$this

getDsseAttestation

Describes an attestation of an artifact using dsse.

Returns
Type
Description

hasDsseAttestation

setDsseAttestation

Describes an attestation of an artifact using dsse.

Parameter
Name
Description
Returns
Type
Description
$this

getEnvelope

Returns
Type
Description

hasEnvelope

clearEnvelope

setEnvelope

Parameter
Name
Description
Returns
Type
Description
$this

getDetails

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: