Class: Google::Apis::ContaineranalysisV1::InTotoStatement

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeString

"https://in-toto.io/Provenance/v0.1" for InTotoProvenance. Corresponds to the JSON property predicateType

Returns:

  • (String)


1927
1928
1929
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 1927

def predicate_type
  @predicate_type
end

#provenanceGoogle::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

#subjectArray<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

#typeString

Always "https://in-toto.io/Statement/v0.1". Corresponds to the JSON property type

Returns:

  • (String)


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