Class: Google::Apis::OndemandscanningV1beta1::InTotoStatement

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InTotoStatement

Returns a new instance of InTotoStatement.



1939
1940
1941
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1939

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#_typeString

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

Returns:

  • (String)


1912
1913
1914
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1912

def _type
  @_type
end

#predicate_typeString

https://slsa.dev/provenance/v0.1 for SlsaProvenance. Corresponds to the JSON property predicateType

Returns:

  • (String)


1917
1918
1919
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1917

def predicate_type
  @predicate_type
end

#provenanceGoogle::Apis::OndemandscanningV1beta1::InTotoProvenance

Corresponds to the JSON property provenance



1922
1923
1924
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1922

def provenance
  @provenance
end

#slsa_provenanceGoogle::Apis::OndemandscanningV1beta1::SlsaProvenance

Corresponds to the JSON property slsaProvenance



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

def slsa_provenance
  @slsa_provenance
end

#slsa_provenance_zero_twoGoogle::Apis::OndemandscanningV1beta1::SlsaProvenanceZeroTwo

See full explanation of fields at slsa.dev/provenance/v0.2. Corresponds to the JSON property slsaProvenanceZeroTwo



1932
1933
1934
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1932

def slsa_provenance_zero_two
  @slsa_provenance_zero_two
end

#subjectArray<Google::Apis::OndemandscanningV1beta1::Subject>

Corresponds to the JSON property subject



1937
1938
1939
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1937

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1944
1945
1946
1947
1948
1949
1950
1951
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1944

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