Class: Google::Apis::OndemandscanningV1::SlsaProvenance02

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

See full explanation of fields at slsa.dev/provenance/v0.2.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SlsaProvenance02

Returns a new instance of SlsaProvenance02.



2484
2485
2486
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2484

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

Instance Attribute Details

#build_configHash<String,Object>

Corresponds to the JSON property buildConfig

Returns:

  • (Hash<String,Object>)


2456
2457
2458
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2456

def build_config
  @build_config
end

#build_typeString

Corresponds to the JSON property buildType

Returns:

  • (String)


2461
2462
2463
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2461

def build_type
  @build_type
end

#builderGoogle::Apis::OndemandscanningV1::GrafeasV1SlsaProvenance02SlsaBuilder

Identifies the entity that executed the recipe, which is trusted to have correctly performed the operation and populated this provenance. Corresponds to the JSON property builder



2467
2468
2469
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2467

def builder
  @builder
end

#invocationGoogle::Apis::OndemandscanningV1::GrafeasV1SlsaProvenance02SlsaInvocation

Identifies the event that kicked off the build. Corresponds to the JSON property invocation



2472
2473
2474
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2472

def invocation
  @invocation
end

#materialsArray<Google::Apis::OndemandscanningV1::GrafeasV1SlsaProvenance02SlsaMaterial>

Corresponds to the JSON property materials



2477
2478
2479
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2477

def materials
  @materials
end

#metadataGoogle::Apis::OndemandscanningV1::GrafeasV1SlsaProvenance02SlsaMetadata

Other properties of the build. Corresponds to the JSON property metadata



2482
2483
2484
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2482

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2489
2490
2491
2492
2493
2494
2495
2496
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2489

def update!(**args)
  @build_config = args[:build_config] if args.key?(:build_config)
  @build_type = args[:build_type] if args.key?(:build_type)
  @builder = args[:builder] if args.key?(:builder)
  @invocation = args[:invocation] if args.key?(:invocation)
  @materials = args[:materials] if args.key?(:materials)
  @metadata = args[:metadata] if args.key?(:metadata)
end