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.



1062
1063
1064
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1062

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)


1045
1046
1047
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1045

def predicate_type
  @predicate_type
end

#provenanceGoogle::Apis::OndemandscanningV1beta1::InTotoProvenance

Corresponds to the JSON property provenance



1050
1051
1052
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1050

def provenance
  @provenance
end

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

Corresponds to the JSON property subject



1055
1056
1057
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1055

def subject
  @subject
end

#typeString

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

Returns:

  • (String)


1060
1061
1062
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1060

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1067
1068
1069
1070
1071
1072
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 1067

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