Property

Namespaces

Property

constant static

NoteKind  number

Kind represents the kinds of notes supported.

Properties

Name Type Optional Description

NOTE_KIND_UNSPECIFIED

 

 

Unknown.

VULNERABILITY

 

 

The note and occurrence represent a package vulnerability.

BUILD

 

 

The note and occurrence assert build provenance.

IMAGE

 

 

This represents an image basis relationship.

PACKAGE

 

 

This represents a package installed via a package manager.

DEPLOYMENT

 

 

The note and occurrence track deployment events.

DISCOVERY

 

 

The note and occurrence track the initial discovery status of a resource.

ATTESTATION

 

 

This represents a logical "role" that can attest to artifacts.

Abstract types

static

BatchCreateNotesRequest

Request to create notes in batch.

Properties

Name Type Optional Description

parent

string

 

The name of the project in the form of projects/[PROJECT_ID], under which the notes are to be created.

notes

Object with Object properties

 

The notes to create.

See also

grafeas.v1beta1.BatchCreateNotesRequest definition in proto format

static

BatchCreateNotesResponse

Response for creating notes in batch.

Property

Name Type Optional Description

notes

Array of Object

 

The notes that were created.

This object should have the same structure as Note

See also

grafeas.v1beta1.BatchCreateNotesResponse definition in proto format

static

BatchCreateOccurrencesRequest

Request to create occurrences in batch.

Properties

Name Type Optional Description

parent

string

 

The name of the project in the form of projects/[PROJECT_ID], under which the occurrences are to be created.

occurrences

Array of Object

 

The occurrences to create.

This object should have the same structure as Occurrence

See also

grafeas.v1beta1.BatchCreateOccurrencesRequest definition in proto format

static

BatchCreateOccurrencesResponse

Response for creating occurrences in batch.

Property

Name Type Optional Description

occurrences

Array of Object

 

The occurrences that were created.

This object should have the same structure as Occurrence

See also

grafeas.v1beta1.BatchCreateOccurrencesResponse definition in proto format

static

CreateNoteRequest

Request to create a new note.

Properties

Name Type Optional Description

parent

string

 

The name of the project in the form of projects/[PROJECT_ID], under which the note is to be created.

noteId

string

 

The ID to use for this note.

note

Object

 

The note to create.

This object should have the same structure as Note

See also

grafeas.v1beta1.CreateNoteRequest definition in proto format

static

CreateOccurrenceRequest

Request to create a new occurrence.

Properties

Name Type Optional Description

parent

string

 

The name of the project in the form of projects/[PROJECT_ID], under which the occurrence is to be created.

occurrence

Object

 

The occurrence to create.

This object should have the same structure as Occurrence

See also

grafeas.v1beta1.CreateOccurrenceRequest definition in proto format

static

DeleteNoteRequest

Request to delete a note.

Property

Name Type Optional Description

name

string

 

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

See also

grafeas.v1beta1.DeleteNoteRequest definition in proto format

static

DeleteOccurrenceRequest

Request to delete a occurrence.

Property

Name Type Optional Description

name

string

 

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

See also

grafeas.v1beta1.DeleteOccurrenceRequest definition in proto format

static

FixableTotalByDigest

Per resource and severity counts of fixable and total vulnerabilites.

Properties

Name Type Optional Description

resource

Object

 

The affected resource.

This object should have the same structure as Resource

severity

number

 

The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities.

The number should be among the values of Severity

fixableCount

number

 

The number of fixable vulnerabilities associated with this resource.

totalCount

number

 

The total number of vulnerabilities associated with this resource.

See also

grafeas.v1beta1.VulnerabilityOccurrencesSummary.FixableTotalByDigest definition in proto format

static

GetNoteRequest

Request to get a note.

Property

Name Type Optional Description

name

string

 

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

See also

grafeas.v1beta1.GetNoteRequest definition in proto format

static

GetOccurrenceNoteRequest

Request to get the note to which the specified occurrence is attached.

Property

Name Type Optional Description

name

string

 

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

See also

grafeas.v1beta1.GetOccurrenceNoteRequest definition in proto format

static

GetOccurrenceRequest

Request to get an occurrence.

Property

Name Type Optional Description

name

string

 

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

See also

grafeas.v1beta1.GetOccurrenceRequest definition in proto format

static

GetVulnerabilityOccurrencesSummaryRequest

Request to get a vulnerability summary for some set of occurrences.

Properties

Name Type Optional Description

parent

string

 

The name of the project to get a vulnerability summary for in the form of projects/[PROJECT_ID].

filter

string

 

The filter expression.

See also

grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest definition in proto format

static

ListNoteOccurrencesRequest

Request to list occurrences for a note.

Properties

Name Type Optional Description

name

string

 

The name of the note to list occurrences for in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

filter

string

 

The filter expression.

pageSize

number

 

Number of occurrences to return in the list.

pageToken

string

 

Token to provide to skip to a particular spot in the list.

See also

grafeas.v1beta1.ListNoteOccurrencesRequest definition in proto format

static

ListNoteOccurrencesResponse

Response for listing occurrences for a note.

Properties

Name Type Optional Description

occurrences

Array of Object

 

The occurrences attached to the specified note.

This object should have the same structure as Occurrence

nextPageToken

string

 

Token to provide to skip to a particular spot in the list.

See also

grafeas.v1beta1.ListNoteOccurrencesResponse definition in proto format

static

ListNotesRequest

Request to list notes.

Properties

Name Type Optional Description

parent

string

 

The name of the project to list notes for in the form of projects/[PROJECT_ID].

filter

string

 

The filter expression.

pageSize

number

 

Number of notes to return in the list.

pageToken

string

 

Token to provide to skip to a particular spot in the list.

See also

grafeas.v1beta1.ListNotesRequest definition in proto format

static

ListNotesResponse

Response for listing notes.

Properties

Name Type Optional Description

notes

Array of Object

 

The notes requested.

This object should have the same structure as Note

nextPageToken

string

 

The next pagination token in the list response. It should be used as page_token for the following request. An empty value means no more results.

See also

grafeas.v1beta1.ListNotesResponse definition in proto format

static

ListOccurrencesRequest

Request to list occurrences.

Properties

Name Type Optional Description

parent

string

 

The name of the project to list occurrences for in the form of projects/[PROJECT_ID].

filter

string

 

The filter expression.

pageSize

number

 

Number of occurrences to return in the list.

pageToken

string

 

Token to provide to skip to a particular spot in the list.

See also

grafeas.v1beta1.ListOccurrencesRequest definition in proto format

static

ListOccurrencesResponse

Response for listing occurrences.

Properties

Name Type Optional Description

occurrences

Array of Object

 

The occurrences requested.

This object should have the same structure as Occurrence

nextPageToken

string

 

The next pagination token in the list response. It should be used as page_token for the following request. An empty value means no more results.

See also

grafeas.v1beta1.ListOccurrencesResponse definition in proto format

static

Note

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

Properties

Name Type Optional Description

name

string

 

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

shortDescription

string

 

A one sentence description of this note.

longDescription

string

 

A detailed description of this note.

kind

number

 

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

The number should be among the values of NoteKind

relatedUrl

Array of Object

 

URLs associated with this note.

This object should have the same structure as RelatedUrl

expirationTime

Object

 

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

This object should have the same structure as Timestamp

createTime

Object

 

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

This object should have the same structure as Timestamp

updateTime

Object

 

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

This object should have the same structure as Timestamp

relatedNoteNames

Array of string

 

Other notes related to this note.

vulnerability

Object

 

A note describing a package vulnerability.

This object should have the same structure as Vulnerability

build

Object

 

A note describing build provenance for a verifiable build.

This object should have the same structure as Build

baseImage

Object

 

A note describing a base image.

This object should have the same structure as Basis

package

Object

 

A note describing a package hosted by various package managers.

This object should have the same structure as Package

deployable

Object

 

A note describing something that can be deployed.

This object should have the same structure as Deployable

discovery

Object

 

A note describing the initial analysis of a resource.

This object should have the same structure as Discovery

attestationAuthority

Object

 

A note describing an attestation role.

This object should have the same structure as Authority

See also

grafeas.v1beta1.Note definition in proto format

static

Occurrence

An instance of an analysis type that has been found on a resource.

Properties

Name Type Optional Description

name

string

 

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

resource

Object

 

Required. Immutable. The resource for which the occurrence applies.

This object should have the same structure as Resource

noteName

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

number

 

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

The number should be among the values of NoteKind

remediation

string

 

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

createTime

Object

 

Output only. The time this occurrence was created.

This object should have the same structure as Timestamp

updateTime

Object

 

Output only. The time this occurrence was last updated.

This object should have the same structure as Timestamp

vulnerability

Object

 

Describes a security vulnerability.

This object should have the same structure as Details

build

Object

 

Describes a verifiable build.

This object should have the same structure as Details

derivedImage

Object

 

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

This object should have the same structure as Details

installation

Object

 

Describes the installation of a package on the linked resource.

This object should have the same structure as Details

deployment

Object

 

Describes the deployment of an artifact on a runtime.

This object should have the same structure as Details

discovered

Object

 

Describes when a resource was discovered.

This object should have the same structure as Details

attestation

Object

 

Describes an attestation of an artifact.

This object should have the same structure as Details

See also

grafeas.v1beta1.Occurrence definition in proto format

static

RelatedUrl

Metadata for any related URL information.

Properties

Name Type Optional Description

url

string

 

Specific URL associated with the resource.

label

string

 

Label to describe usage of the URL.

See also

grafeas.v1beta1.RelatedUrl definition in proto format

static

Resource

An entity that can have metadata. For example, a Docker image.

Properties

Name Type Optional Description

name

string

 

The name of the resource. For example, the name of a Docker image - "Debian".

uri

string

 

The unique URI of the resource. For example, https://gcr.io/project/image@sha256:foo for a Docker image.

contentHash

Object

 

The hash of the resource content. For example, the Docker digest.

This object should have the same structure as Hash

See also

grafeas.v1beta1.Resource definition in proto format

static

UpdateNoteRequest

Request to update a note.

Properties

Name Type Optional Description

name

string

 

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

note

Object

 

The updated note.

This object should have the same structure as Note

updateMask

Object

 

The fields to update.

This object should have the same structure as FieldMask

See also

grafeas.v1beta1.UpdateNoteRequest definition in proto format

static

UpdateOccurrenceRequest

Request to update an occurrence.

Properties

Name Type Optional Description

name

string

 

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

occurrence

Object

 

The updated occurrence.

This object should have the same structure as Occurrence

updateMask

Object

 

The fields to update.

This object should have the same structure as FieldMask

See also

grafeas.v1beta1.UpdateOccurrenceRequest definition in proto format

static

VulnerabilityOccurrencesSummary

A summary of how many vulnerability occurrences there are per resource and severity type.

Property

Name Type Optional Description

counts

Array of Object

 

A listing by resource of the number of fixable and total vulnerabilities.

This object should have the same structure as FixableTotalByDigest

See also

grafeas.v1beta1.VulnerabilityOccurrencesSummary definition in proto format