Class: Google::Apis::ContaineranalysisV1alpha1::InTotoStatement

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InTotoStatement

Returns a new instance of InTotoStatement.



1988
1989
1990
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1988

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)


1971
1972
1973
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1971

def predicate_type
  @predicate_type
end

#provenanceGoogle::Apis::ContaineranalysisV1alpha1::InTotoProvenance

Corresponds to the JSON property provenance



1976
1977
1978
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1976

def provenance
  @provenance
end

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

Corresponds to the JSON property subject



1981
1982
1983
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1981

def subject
  @subject
end

#typeString

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

Returns:

  • (String)


1986
1987
1988
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1986

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1993
1994
1995
1996
1997
1998
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 1993

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