Grafeas V1 API - Class Grafeas::V1::Occurrence (v1.0.0)

Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::Occurrence.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#attestation

def attestation() -> ::Grafeas::V1::AttestationOccurrence
Returns

#attestation=

def attestation=(value) -> ::Grafeas::V1::AttestationOccurrence
Parameter
Returns

#build

def build() -> ::Grafeas::V1::BuildOccurrence
Returns

#build=

def build=(value) -> ::Grafeas::V1::BuildOccurrence
Parameter
Returns

#compliance

def compliance() -> ::Grafeas::V1::ComplianceOccurrence
Returns

#compliance=

def compliance=(value) -> ::Grafeas::V1::ComplianceOccurrence
Parameter
Returns

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#create_time=

def create_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns

#deployment

def deployment() -> ::Grafeas::V1::DeploymentOccurrence
Returns

#deployment=

def deployment=(value) -> ::Grafeas::V1::DeploymentOccurrence
Parameter
Returns

#discovery

def discovery() -> ::Grafeas::V1::DiscoveryOccurrence
Returns

#discovery=

def discovery=(value) -> ::Grafeas::V1::DiscoveryOccurrence
Parameter
Returns

#dsse_attestation

def dsse_attestation() -> ::Grafeas::V1::DSSEAttestationOccurrence
Returns

#dsse_attestation=

def dsse_attestation=(value) -> ::Grafeas::V1::DSSEAttestationOccurrence
Parameter
Returns

#envelope

def envelope() -> ::Grafeas::V1::Envelope
Returns

#envelope=

def envelope=(value) -> ::Grafeas::V1::Envelope
Parameter
Returns

#image

def image() -> ::Grafeas::V1::ImageOccurrence
Returns

#image=

def image=(value) -> ::Grafeas::V1::ImageOccurrence
Parameter
Returns

#kind

def kind() -> ::Grafeas::V1::NoteKind
Returns
  • (::Grafeas::V1::NoteKind) — Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

#kind=

def kind=(value) -> ::Grafeas::V1::NoteKind
Parameter
  • value (::Grafeas::V1::NoteKind) — Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.
Returns
  • (::Grafeas::V1::NoteKind) — Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

#name

def name() -> ::String
Returns
  • (::String) — Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].
Returns
  • (::String) — Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

#note_name

def note_name() -> ::String
Returns
  • (::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.

#note_name=

def note_name=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.

#package

def package() -> ::Grafeas::V1::PackageOccurrence
Returns

#package=

def package=(value) -> ::Grafeas::V1::PackageOccurrence
Parameter
Returns

#remediation

def remediation() -> ::String
Returns
  • (::String) — A description of actions that can be taken to remedy the note.

#remediation=

def remediation=(value) -> ::String
Parameter
  • value (::String) — A description of actions that can be taken to remedy the note.
Returns
  • (::String) — A description of actions that can be taken to remedy the note.

#resource_uri

def resource_uri() -> ::String
Returns
  • (::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.

#resource_uri=

def resource_uri=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.

#sbom_reference

def sbom_reference() -> ::Grafeas::V1::SBOMReferenceOccurrence
Returns

#sbom_reference=

def sbom_reference=(value) -> ::Grafeas::V1::SBOMReferenceOccurrence
Parameter
Returns

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#update_time=

def update_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns

#upgrade

def upgrade() -> ::Grafeas::V1::UpgradeOccurrence
Returns

#upgrade=

def upgrade=(value) -> ::Grafeas::V1::UpgradeOccurrence
Parameter
Returns

#vulnerability

def vulnerability() -> ::Grafeas::V1::VulnerabilityOccurrence
Returns

#vulnerability=

def vulnerability=(value) -> ::Grafeas::V1::VulnerabilityOccurrence
Parameter
Returns