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.



2114
2115
2116
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2114

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)


2097
2098
2099
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2097

def predicate_type
  @predicate_type
end

#provenanceGoogle::Apis::ContaineranalysisV1alpha1::InTotoProvenance

Corresponds to the JSON property provenance



2102
2103
2104
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2102

def provenance
  @provenance
end

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

Corresponds to the JSON property subject



2107
2108
2109
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2107

def subject
  @subject
end

#typeString

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

Returns:

  • (String)


2112
2113
2114
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2112

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2119
2120
2121
2122
2123
2124
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2119

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