Class: Google::Apis::OndemandscanningV1beta1::SbomReferenceOccurrence
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1beta1::SbomReferenceOccurrence
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ondemandscanning_v1beta1/classes.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb,
lib/google/apis/ondemandscanning_v1beta1/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
-
#payload ⇒ Google::Apis::OndemandscanningV1beta1::SbomReferenceIntotoPayload
The actual payload that contains the SBOM Reference data.
-
#payload_type ⇒ String
The kind of payload that SbomReferenceIntotoPayload takes.
-
#signatures ⇒ Array<Google::Apis::OndemandscanningV1beta1::EnvelopeSignature>
The signatures over the payload.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SbomReferenceOccurrence
constructor
A new instance of SbomReferenceOccurrence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SbomReferenceOccurrence
Returns a new instance of SbomReferenceOccurrence.
2835 2836 2837 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2835 def initialize(**args) update!(**args) end |
Instance Attribute Details
#payload ⇒ Google::Apis::OndemandscanningV1beta1::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
2822 2823 2824 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2822 def payload @payload end |
#payload_type ⇒ String
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
2828 2829 2830 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2828 def payload_type @payload_type end |
#signatures ⇒ Array<Google::Apis::OndemandscanningV1beta1::EnvelopeSignature>
The signatures over the payload.
Corresponds to the JSON property signatures
2833 2834 2835 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2833 def signatures @signatures end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2840 2841 2842 2843 2844 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 2840 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 |