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
-
#predicate_type ⇒ String
"https://in-toto.io/Provenance/v0.1" for InTotoProvenance.
-
#provenance ⇒ Google::Apis::ContaineranalysisV1::InTotoProvenance
Corresponds to the JSON property
provenance. -
#subject ⇒ Array<Google::Apis::ContaineranalysisV1::Subject>
Corresponds to the JSON property
subject. -
#type ⇒ String
Always "https://in-toto.io/Statement/v0.1".
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.
1944 1945 1946 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1944 def initialize(**args) update!(**args) end |
Instance Attribute Details
#predicate_type ⇒ String
"https://in-toto.io/Provenance/v0.1" for InTotoProvenance.
Corresponds to the JSON property predicateType
1927 1928 1929 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1927 def predicate_type @predicate_type end |
#provenance ⇒ Google::Apis::ContaineranalysisV1::InTotoProvenance
Corresponds to the JSON property provenance
1932 1933 1934 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1932 def provenance @provenance end |
#subject ⇒ Array<Google::Apis::ContaineranalysisV1::Subject>
Corresponds to the JSON property subject
1937 1938 1939 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1937 def subject @subject end |
#type ⇒ String
Always "https://in-toto.io/Statement/v0.1".
Corresponds to the JSON property type
1942 1943 1944 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1942 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1949 1950 1951 1952 1953 1954 |
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1949 def update!(**args) @predicate_type = args[:predicate_type] if args.key?(:predicate_type) @provenance = args[:provenance] if args.key?(:provenance) @subject = args[:subject] if args.key?(:subject) @type = args[:type] if args.key?(:type) end |