Class: Google::Apis::OndemandscanningV1::SlsaProvenanceV1

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ondemandscanning_v1/classes.rb,
lib/google/apis/ondemandscanning_v1/representations.rb,
lib/google/apis/ondemandscanning_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.



3655
3656
3657
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3655

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

Instance Attribute Details

#build_definitionGoogle::Apis::OndemandscanningV1::BuildDefinition

Corresponds to the JSON property buildDefinition



3648
3649
3650
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3648

def build_definition
  @build_definition
end

#run_detailsGoogle::Apis::OndemandscanningV1::RunDetails

Corresponds to the JSON property runDetails



3653
3654
3655
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3653

def run_details
  @run_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3660
3661
3662
3663
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 3660

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