Grafeas V1 Client - Class Note (0.7.1)

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
Name
Description
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.

↳ vulnerability_assessment
Grafeas\V1\VulnerabilityAssessmentNote

A note describing a vulnerability assessment.

getName

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

Returns
Type
Description
string

setName

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

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getShortDescription

A one sentence description of this note.

Returns
Type
Description
string

setShortDescription

A one sentence description of this note.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getLongDescription

A detailed description of this note.

Returns
Type
Description
string

setLongDescription

A detailed description of this note.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getKind

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

Returns
Type
Description
int

setKind

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

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getRelatedUrl

URLs associated with this note.

Returns
Type
Description

setRelatedUrl

URLs associated with this note.

Parameter
Name
Description
var
Returns
Type
Description
$this

getExpirationTime

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

Returns
Type
Description

hasExpirationTime

clearExpirationTime

setExpirationTime

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

Parameter
Name
Description
Returns
Type
Description
$this

getCreateTime

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

Returns
Type
Description

hasCreateTime

clearCreateTime

setCreateTime

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

Parameter
Name
Description
Returns
Type
Description
$this

getUpdateTime

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

Returns
Type
Description

hasUpdateTime

clearUpdateTime

setUpdateTime

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

Parameter
Name
Description
Returns
Type
Description
$this

getRelatedNoteNames

Other notes related to this note.

Returns
Type
Description

setRelatedNoteNames

Other notes related to this note.

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this

getVulnerability

A note describing a package vulnerability.

Returns
Type
Description

hasVulnerability

setVulnerability

A note describing a package vulnerability.

Parameter
Name
Description
Returns
Type
Description
$this

getBuild

A note describing build provenance for a verifiable build.

Returns
Type
Description

hasBuild

setBuild

A note describing build provenance for a verifiable build.

Parameter
Name
Description
Returns
Type
Description
$this

getImage

A note describing a base image.

Returns
Type
Description

hasImage

setImage

A note describing a base image.

Parameter
Name
Description
Returns
Type
Description
$this

getPackage

A note describing a package hosted by various package managers.

Returns
Type
Description

hasPackage

setPackage

A note describing a package hosted by various package managers.

Parameter
Name
Description
Returns
Type
Description
$this

getDeployment

A note describing something that can be deployed.

Returns
Type
Description

hasDeployment

setDeployment

A note describing something that can be deployed.

Parameter
Name
Description
Returns
Type
Description
$this

getDiscovery

A note describing the initial analysis of a resource.

Returns
Type
Description

hasDiscovery

setDiscovery

A note describing the initial analysis of a resource.

Parameter
Name
Description
Returns
Type
Description
$this

getAttestation

A note describing an attestation role.

Returns
Type
Description

hasAttestation

setAttestation

A note describing an attestation role.

Parameter
Name
Description
Returns
Type
Description
$this

getUpgrade

A note describing available package upgrades.

Returns
Type
Description

hasUpgrade

setUpgrade

A note describing available package upgrades.

Parameter
Name
Description
Returns
Type
Description
$this

getCompliance

A note describing a compliance check.

Returns
Type
Description

hasCompliance

setCompliance

A note describing a compliance check.

Parameter
Name
Description
Returns
Type
Description
$this

getDsseAttestation

A note describing a dsse attestation note.

Returns
Type
Description

hasDsseAttestation

setDsseAttestation

A note describing a dsse attestation note.

Parameter
Name
Description
Returns
Type
Description
$this

getVulnerabilityAssessment

A note describing a vulnerability assessment.

Returns
Type
Description

hasVulnerabilityAssessment

setVulnerabilityAssessment

A note describing a vulnerability assessment.

Parameter
Name
Description
Returns
Type
Description
$this

getType

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