Class: Google::Apis::OndemandscanningV1::SlsaMetadata

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

Other properties of the build.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SlsaMetadata

Returns a new instance of SlsaMetadata.



2758
2759
2760
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2758

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

Instance Attribute Details

#build_finished_onString

The timestamp of when the build completed. Corresponds to the JSON property buildFinishedOn

Returns:

  • (String)


2731
2732
2733
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2731

def build_finished_on
  @build_finished_on
end

#build_invocation_idString

Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec. Corresponds to the JSON property buildInvocationId

Returns:

  • (String)


2738
2739
2740
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2738

def build_invocation_id
  @build_invocation_id
end

#build_started_onString

The timestamp of when the build started. Corresponds to the JSON property buildStartedOn

Returns:

  • (String)


2743
2744
2745
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2743

def build_started_on
  @build_started_on
end

#completenessGoogle::Apis::OndemandscanningV1::SlsaCompleteness

Indicates that the builder claims certain fields in this message to be complete. Corresponds to the JSON property completeness



2749
2750
2751
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2749

def completeness
  @completeness
end

#reproducibleBoolean Also known as: reproducible?

If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output. Corresponds to the JSON property reproducible

Returns:

  • (Boolean)


2755
2756
2757
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2755

def reproducible
  @reproducible
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2763
2764
2765
2766
2767
2768
2769
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 2763

def update!(**args)
  @build_finished_on = args[:build_finished_on] if args.key?(:build_finished_on)
  @build_invocation_id = args[:build_invocation_id] if args.key?(:build_invocation_id)
  @build_started_on = args[:build_started_on] if args.key?(:build_started_on)
  @completeness = args[:completeness] if args.key?(:completeness)
  @reproducible = args[:reproducible] if args.key?(:reproducible)
end