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.



3139
3140
3141
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3139

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)


3117
3118
3119
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3117

def _type
  @_type
end

#predicate_typeString

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

Returns:

  • (String)


3122
3123
3124
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3122

def predicate_type
  @predicate_type
end

#provenanceGoogle::Apis::ContaineranalysisV1::InTotoProvenance

Corresponds to the JSON property provenance



3127
3128
3129
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3127

def provenance
  @provenance
end

#slsa_provenanceGoogle::Apis::ContaineranalysisV1::SlsaProvenance

Corresponds to the JSON property slsaProvenance



3132
3133
3134
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3132

def slsa_provenance
  @slsa_provenance
end

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

Corresponds to the JSON property subject



3137
3138
3139
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3137

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3144
3145
3146
3147
3148
3149
3150
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 3144

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)
  @subject = args[:subject] if args.key?(:subject)
end