Class: Google::Apis::ContaineranalysisV1::SbomReferenceOccurrence

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/containeranalysis_v1/classes.rb,
lib/google/apis/containeranalysis_v1/representations.rb,
lib/google/apis/containeranalysis_v1/representations.rb

Overview

The occurrence representing an SBOM reference as applied to a specific resource. The occurrence follows the DSSE specification. See https://github. com/secure-systems-lab/dsse/blob/master/envelope.md for more details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SbomReferenceOccurrence

Returns a new instance of SbomReferenceOccurrence.



5761
5762
5763
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5761

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#payloadGoogle::Apis::ContaineranalysisV1::SbomReferenceIntotoPayload

The actual payload that contains the SBOM Reference data. The payload follows the intoto statement specification. See https://github.com/in-toto/attestation/ blob/main/spec/v1.0/statement.md for more details. Corresponds to the JSON property payload



5748
5749
5750
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5748

def payload
  @payload
end

#payload_typeString

The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'. Corresponds to the JSON property payloadType

Returns:

  • (String)


5754
5755
5756
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5754

def payload_type
  @payload_type
end

#signaturesArray<Google::Apis::ContaineranalysisV1::EnvelopeSignature>

The signatures over the payload. Corresponds to the JSON property signatures



5759
5760
5761
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5759

def signatures
  @signatures
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5766
5767
5768
5769
5770
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 5766

def update!(**args)
  @payload = args[:payload] if args.key?(:payload)
  @payload_type = args[:payload_type] if args.key?(:payload_type)
  @signatures = args[:signatures] if args.key?(:signatures)
end