Grafeas V1 Client - Class Note (0.4.4)

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

A type of analysis that can be done for a resource.

Generated from protobuf message grafeas.v1.Note

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

↳ short_description string

A one sentence description of this note.

↳ long_description string

A detailed description of this note.

↳ kind int

Output only. The type of analysis. This field can be used as a filter in list requests.

↳ related_url array<Grafeas\V1\RelatedUrl>

URLs associated with this note.

↳ expiration_time Google\Protobuf\Timestamp

Time of expiration for this note. Empty if note does not expire.

↳ create_time Google\Protobuf\Timestamp

Output only. The time this note was created. This field can be used as a filter in list requests.

↳ update_time Google\Protobuf\Timestamp

Output only. The time this note was last updated. This field can be used as a filter in list requests.

↳ related_note_names array

Other notes related to this note.

↳ vulnerability Grafeas\V1\VulnerabilityNote

A note describing a package vulnerability.

↳ build Grafeas\V1\BuildNote

A note describing build provenance for a verifiable build.

↳ image Grafeas\V1\ImageNote

A note describing a base image.

↳ package Grafeas\V1\PackageNote

A note describing a package hosted by various package managers.

↳ deployment Grafeas\V1\DeploymentNote

A note describing something that can be deployed.

↳ discovery Grafeas\V1\DiscoveryNote

A note describing the initial analysis of a resource.

↳ attestation Grafeas\V1\AttestationNote

A note describing an attestation role.

↳ upgrade Grafeas\V1\UpgradeNote

A note describing available package upgrades.

↳ compliance Grafeas\V1\ComplianceNote

A note describing a compliance check.

↳ dsse_attestation Grafeas\V1\DSSEAttestationNote

A note describing a dsse attestation note.

getName

Output only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

Returns
TypeDescription
string

setName

Output only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getShortDescription

A one sentence description of this note.

Returns
TypeDescription
string

setShortDescription

A one sentence description of this note.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLongDescription

A detailed description of this note.

Returns
TypeDescription
string

setLongDescription

A detailed description of this note.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getKind

Output only. The type of analysis. This field can be used as a filter in list requests.

Returns
TypeDescription
int

setKind

Output only. The type of analysis. This field can be used as a filter in list requests.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getRelatedUrl

URLs associated with this note.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRelatedUrl

URLs associated with this note.

Parameter
NameDescription
var array<Grafeas\V1\RelatedUrl>
Returns
TypeDescription
$this

getExpirationTime

Time of expiration for this note. Empty if note does not expire.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasExpirationTime

clearExpirationTime

setExpirationTime

Time of expiration for this note. Empty if note does not expire.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getCreateTime

Output only. The time this note was created. This field can be used as a filter in list requests.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time this note was created. This field can be used as a filter in list requests.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The time this note was last updated. This field can be used as a filter in list requests.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time this note was last updated. This field can be used as a filter in list requests.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getRelatedNoteNames

Other notes related to this note.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRelatedNoteNames

Other notes related to this note.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getVulnerability

A note describing a package vulnerability.

Returns
TypeDescription
Grafeas\V1\VulnerabilityNote|null

hasVulnerability

setVulnerability

A note describing a package vulnerability.

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

getBuild

A note describing build provenance for a verifiable build.

Returns
TypeDescription
Grafeas\V1\BuildNote|null

hasBuild

setBuild

A note describing build provenance for a verifiable build.

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

getImage

A note describing a base image.

Returns
TypeDescription
Grafeas\V1\ImageNote|null

hasImage

setImage

A note describing a base image.

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

getPackage

A note describing a package hosted by various package managers.

Returns
TypeDescription
Grafeas\V1\PackageNote|null

hasPackage

setPackage

A note describing a package hosted by various package managers.

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

getDeployment

A note describing something that can be deployed.

Returns
TypeDescription
Grafeas\V1\DeploymentNote|null

hasDeployment

setDeployment

A note describing something that can be deployed.

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

getDiscovery

A note describing the initial analysis of a resource.

Returns
TypeDescription
Grafeas\V1\DiscoveryNote|null

hasDiscovery

setDiscovery

A note describing the initial analysis of a resource.

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

getAttestation

A note describing an attestation role.

Returns
TypeDescription
Grafeas\V1\AttestationNote|null

hasAttestation

setAttestation

A note describing an attestation role.

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

getUpgrade

A note describing available package upgrades.

Returns
TypeDescription
Grafeas\V1\UpgradeNote|null

hasUpgrade

setUpgrade

A note describing available package upgrades.

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

getCompliance

A note describing a compliance check.

Returns
TypeDescription
Grafeas\V1\ComplianceNote|null

hasCompliance

setCompliance

A note describing a compliance check.

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

getDsseAttestation

A note describing a dsse attestation note.

Returns
TypeDescription
Grafeas\V1\DSSEAttestationNote|null

hasDsseAttestation

setDsseAttestation

A note describing a dsse attestation note.

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

getType

Returns
TypeDescription
string