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.



1174
1175
1176
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1174

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)


1152
1153
1154
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1152

def _type
  @_type
end

#predicate_typeString

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

Returns:

  • (String)


1157
1158
1159
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1157

def predicate_type
  @predicate_type
end

#provenanceGoogle::Apis::OndemandscanningV1beta1::InTotoProvenance

Corresponds to the JSON property provenance



1162
1163
1164
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1162

def provenance
  @provenance
end

#slsa_provenanceGoogle::Apis::OndemandscanningV1beta1::SlsaProvenance

Corresponds to the JSON property slsaProvenance



1167
1168
1169
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1167

def slsa_provenance
  @slsa_provenance
end

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

Corresponds to the JSON property subject



1172
1173
1174
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1172

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1179
1180
1181
1182
1183
1184
1185
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1179

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