Class: Google::Apis::OndemandscanningV1beta1::InTotoStatement
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1beta1::InTotoStatement
- 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
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".
Instance Attribute Summary collapse
-
#_type ⇒ String
Always
https://in-toto.io/Statement/v0.1
. -
#predicate_type ⇒ String
https://slsa.dev/provenance/v0.1
for SlsaProvenance. -
#provenance ⇒ Google::Apis::OndemandscanningV1beta1::InTotoProvenance
Corresponds to the JSON property
provenance
. -
#slsa_provenance ⇒ Google::Apis::OndemandscanningV1beta1::SlsaProvenance
Corresponds to the JSON property
slsaProvenance
. -
#slsa_provenance_zero_two ⇒ Google::Apis::OndemandscanningV1beta1::SlsaProvenanceZeroTwo
See full explanation of fields at slsa.dev/provenance/v0.2.
-
#subject ⇒ Array<Google::Apis::OndemandscanningV1beta1::Subject>
Corresponds to the JSON property
subject
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InTotoStatement
constructor
A new instance of InTotoStatement.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InTotoStatement
Returns a new instance of InTotoStatement.
1407 1408 1409 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1407 def initialize(**args) update!(**args) end |
Instance Attribute Details
#_type ⇒ String
Always https://in-toto.io/Statement/v0.1
.
Corresponds to the JSON property _type
1380 1381 1382 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1380 def _type @_type end |
#predicate_type ⇒ String
https://slsa.dev/provenance/v0.1
for SlsaProvenance.
Corresponds to the JSON property predicateType
1385 1386 1387 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1385 def predicate_type @predicate_type end |
#provenance ⇒ Google::Apis::OndemandscanningV1beta1::InTotoProvenance
Corresponds to the JSON property provenance
1390 1391 1392 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1390 def provenance @provenance end |
#slsa_provenance ⇒ Google::Apis::OndemandscanningV1beta1::SlsaProvenance
Corresponds to the JSON property slsaProvenance
1395 1396 1397 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1395 def slsa_provenance @slsa_provenance end |
#slsa_provenance_zero_two ⇒ Google::Apis::OndemandscanningV1beta1::SlsaProvenanceZeroTwo
See full explanation of fields at slsa.dev/provenance/v0.2.
Corresponds to the JSON property slsaProvenanceZeroTwo
1400 1401 1402 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1400 def slsa_provenance_zero_two @slsa_provenance_zero_two end |
#subject ⇒ Array<Google::Apis::OndemandscanningV1beta1::Subject>
Corresponds to the JSON property subject
1405 1406 1407 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1405 def subject @subject end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1412 1413 1414 1415 1416 1417 1418 1419 |
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1412 def update!(**args) @_type = args[:_type] if args.key?(:_type) @predicate_type = args[:predicate_type] if args.key?(:predicate_type) @provenance = args[:provenance] if args.key?(:provenance) @slsa_provenance = args[:slsa_provenance] if args.key?(:slsa_provenance) @slsa_provenance_zero_two = args[:slsa_provenance_zero_two] if args.key?(:slsa_provenance_zero_two) @subject = args[:subject] if args.key?(:subject) end |