Class: Google::Apis::OndemandscanningV1beta1::DsseAttestationOccurrence
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1beta1::DsseAttestationOccurrence
- 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
Deprecated. Prefer to use a regular Occurrence, and populate the Envelope at the top level of the Occurrence.
Instance Attribute Summary collapse
- #envelope ⇒ Google::Apis::OndemandscanningV1beta1::Envelope
-
#statement ⇒ Google::Apis::OndemandscanningV1beta1::InTotoStatement
Spec defined at https://github.com/in-toto/attestation/tree/main/spec# statement The serialized InTotoStatement will be stored as Envelope.payload.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DsseAttestationOccurrence
constructor
A new instance of DsseAttestationOccurrence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DsseAttestationOccurrence
Returns a new instance of DsseAttestationOccurrence.
863 864 865 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 863 def initialize(**args) update!(**args) end |
Instance Attribute Details
#envelope ⇒ Google::Apis::OndemandscanningV1beta1::Envelope
MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.
proto. An authenticated message of arbitrary type.
Corresponds to the JSON property envelope
854 855 856 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 854 def envelope @envelope end |
#statement ⇒ Google::Apis::OndemandscanningV1beta1::InTotoStatement
Spec defined at https://github.com/in-toto/attestation/tree/main/spec#
statement The serialized InTotoStatement will be stored as Envelope.payload.
Envelope.payloadType is always "application/vnd.in-toto+json".
Corresponds to the JSON property statement
861 862 863 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 861 def statement @statement end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
868 869 870 871 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 868 def update!(**args) @envelope = args[:envelope] if args.key?(:envelope) @statement = args[:statement] if args.key?(:statement) end |