Class: Google::Apis::ContaineranalysisV1::InTotoStatement
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1::InTotoStatement
- 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
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::ContaineranalysisV1::InTotoProvenance
Corresponds to the JSON property
provenance. -
#slsa_provenance ⇒ Google::Apis::ContaineranalysisV1::SlsaProvenance
Corresponds to the JSON property
slsaProvenance. -
#subject ⇒ Array<Google::Apis::ContaineranalysisV1::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.
3062 3063 3064 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3062 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
3040 3041 3042 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3040 def _type @_type end |
#predicate_type ⇒ String
"https://slsa.dev/provenance/v0.1" for SlsaProvenance.
Corresponds to the JSON property predicateType
3045 3046 3047 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3045 def predicate_type @predicate_type end |
#provenance ⇒ Google::Apis::ContaineranalysisV1::InTotoProvenance
Corresponds to the JSON property provenance
3050 3051 3052 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3050 def provenance @provenance end |
#slsa_provenance ⇒ Google::Apis::ContaineranalysisV1::SlsaProvenance
Corresponds to the JSON property slsaProvenance
3055 3056 3057 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3055 def slsa_provenance @slsa_provenance end |
#subject ⇒ Array<Google::Apis::ContaineranalysisV1::Subject>
Corresponds to the JSON property subject
3060 3061 3062 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3060 def subject @subject end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3067 3068 3069 3070 3071 3072 3073 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3067 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) @subject = args[:subject] if args.key?(:subject) end |