Class: Google::Apis::ContaineranalysisV1alpha1::InTotoStatement
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::InTotoStatement
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/containeranalysis_v1alpha1/classes.rb,
lib/google/apis/containeranalysis_v1alpha1/representations.rb,
lib/google/apis/containeranalysis_v1alpha1/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::ContaineranalysisV1alpha1::InTotoProvenance
Generic Grafeas provenance.
-
#slsa_provenance ⇒ Google::Apis::ContaineranalysisV1alpha1::SlsaProvenance
SlsaProvenance is the slsa provenance as defined by the slsa spec.
-
#slsa_provenance_zero_two ⇒ Google::Apis::ContaineranalysisV1alpha1::SlsaProvenanceZeroTwo
SlsaProvenanceZeroTwo is the slsa provenance as defined by the slsa spec.
-
#subject ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::Subject>
subject is the subjects of the intoto statement 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.
4044 4045 4046 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4044 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
4016 4017 4018 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4016 def _type @_type end |
#predicate_type ⇒ String
"https://slsa.dev/provenance/v0.1" for SlsaProvenance.
Corresponds to the JSON property predicateType
4021 4022 4023 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4021 def predicate_type @predicate_type end |
#provenance ⇒ Google::Apis::ContaineranalysisV1alpha1::InTotoProvenance
Generic Grafeas provenance.
Corresponds to the JSON property provenance
4026 4027 4028 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4026 def provenance @provenance end |
#slsa_provenance ⇒ Google::Apis::ContaineranalysisV1alpha1::SlsaProvenance
SlsaProvenance is the slsa provenance as defined by the slsa spec.
Corresponds to the JSON property slsaProvenance
4031 4032 4033 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4031 def slsa_provenance @slsa_provenance end |
#slsa_provenance_zero_two ⇒ Google::Apis::ContaineranalysisV1alpha1::SlsaProvenanceZeroTwo
SlsaProvenanceZeroTwo is the slsa provenance as defined by the slsa spec. See
full explanation of fields at slsa.dev/provenance/v0.2.
Corresponds to the JSON property slsaProvenanceZeroTwo
4037 4038 4039 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4037 def slsa_provenance_zero_two @slsa_provenance_zero_two end |
#subject ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::Subject>
subject is the subjects of the intoto statement
Corresponds to the JSON property subject
4042 4043 4044 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4042 def subject @subject end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4049 4050 4051 4052 4053 4054 4055 4056 |
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 4049 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 |