Class: Google::Apis::ContaineranalysisV1alpha1::BuildProvenance

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/containeranalysis_v1alpha1/classes.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb

Overview

Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ BuildProvenance

Returns a new instance of BuildProvenance.



380
381
382
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 380

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

Instance Attribute Details

#build_optionsHash<String,String>

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. Corresponds to the JSON property buildOptions

Returns:

  • (Hash<String,String>)


316
317
318
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 316

def build_options
  @build_options
end

#builder_versionString

Version string of the builder at the time this build was executed. Corresponds to the JSON property builderVersion

Returns:

  • (String)


321
322
323
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 321

def builder_version
  @builder_version
end

#built_artifactsArray<Google::Apis::ContaineranalysisV1alpha1::Artifact>

Output of the build. Corresponds to the JSON property builtArtifacts



326
327
328
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 326

def built_artifacts
  @built_artifacts
end

#commandsArray<Google::Apis::ContaineranalysisV1alpha1::Command>

Commands requested by the build. Corresponds to the JSON property commands



331
332
333
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 331

def commands
  @commands
end

#create_timeString

Time at which the build was created. Corresponds to the JSON property createTime

Returns:

  • (String)


336
337
338
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 336

def create_time
  @create_time
end

#creatorString

E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time. Corresponds to the JSON property creator

Returns:

  • (String)


343
344
345
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 343

def creator
  @creator
end

#finish_timeString

Time at which execution of the build was finished. Corresponds to the JSON property finishTime

Returns:

  • (String)


348
349
350
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 348

def finish_time
  @finish_time
end

#idString

Unique identifier of the build. Corresponds to the JSON property id

Returns:

  • (String)


353
354
355
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 353

def id
  @id
end

#logs_bucketString

Google Cloud Storage bucket where logs were written. Corresponds to the JSON property logsBucket

Returns:

  • (String)


358
359
360
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 358

def logs_bucket
  @logs_bucket
end

#project_idString

ID of the project. Corresponds to the JSON property projectId

Returns:

  • (String)


363
364
365
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 363

def project_id
  @project_id
end

#source_provenanceGoogle::Apis::ContaineranalysisV1alpha1::Source

Source describes the location of the source used for the build. Corresponds to the JSON property sourceProvenance



368
369
370
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 368

def source_provenance
  @source_provenance
end

#start_timeString

Time at which execution of the build was started. Corresponds to the JSON property startTime

Returns:

  • (String)


373
374
375
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 373

def start_time
  @start_time
end

#trigger_idString

Trigger identifier if the build was triggered automatically; empty if not. Corresponds to the JSON property triggerId

Returns:

  • (String)


378
379
380
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 378

def trigger_id
  @trigger_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 385

def update!(**args)
  @build_options = args[:build_options] if args.key?(:build_options)
  @builder_version = args[:builder_version] if args.key?(:builder_version)
  @built_artifacts = args[:built_artifacts] if args.key?(:built_artifacts)
  @commands = args[:commands] if args.key?(:commands)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creator = args[:creator] if args.key?(:creator)
  @finish_time = args[:finish_time] if args.key?(:finish_time)
  @id = args[:id] if args.key?(:id)
  @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket)
  @project_id = args[:project_id] if args.key?(:project_id)
  @source_provenance = args[:source_provenance] if args.key?(:source_provenance)
  @start_time = args[:start_time] if args.key?(:start_time)
  @trigger_id = args[:trigger_id] if args.key?(:trigger_id)
end