Class: Google::Apis::ContaineranalysisV1::SlsaProvenanceV1

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

Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/ docs/provenance/schema/v1/provenance.proto Builder renamed to ProvenanceBuilder because of Java conflicts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SlsaProvenanceV1

Returns a new instance of SlsaProvenanceV1.



6175
6176
6177
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6175

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#build_definitionGoogle::Apis::ContaineranalysisV1::BuildDefinition

Corresponds to the JSON property buildDefinition



6168
6169
6170
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6168

def build_definition
  @build_definition
end

#run_detailsGoogle::Apis::ContaineranalysisV1::RunDetails

Corresponds to the JSON property runDetails



6173
6174
6175
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6173

def run_details
  @run_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6180
6181
6182
6183
# File 'lib/google/apis/containeranalysis_v1/classes.rb', line 6180

def update!(**args)
  @build_definition = args[:build_definition] if args.key?(:build_definition)
  @run_details = args[:run_details] if args.key?(:run_details)
end