Class: Google::Apis::OndemandscanningV1beta1::BuildProvenance

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

Constructor Details

#initialize(**args) ⇒ BuildProvenance

Returns a new instance of BuildProvenance.



373
374
375
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 373

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>)


309
310
311
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 309

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)


314
315
316
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 314

def builder_version
  @builder_version
end

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

Output of the build. Corresponds to the JSON property builtArtifacts



319
320
321
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 319

def built_artifacts
  @built_artifacts
end

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

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



324
325
326
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 324

def commands
  @commands
end

#create_timeString

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

Returns:

  • (String)


329
330
331
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 329

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)


336
337
338
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 336

def creator
  @creator
end

#end_timeString

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

Returns:

  • (String)


341
342
343
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 341

def end_time
  @end_time
end

#idString

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

Returns:

  • (String)


346
347
348
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 346

def id
  @id
end

#logs_uriString

URI where any logs for this provenance were written. Corresponds to the JSON property logsUri

Returns:

  • (String)


351
352
353
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 351

def logs_uri
  @logs_uri
end

#project_idString

ID of the project. Corresponds to the JSON property projectId

Returns:

  • (String)


356
357
358
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 356

def project_id
  @project_id
end

#source_provenanceGoogle::Apis::OndemandscanningV1beta1::Source

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



361
362
363
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 361

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)


366
367
368
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 366

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)


371
372
373
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 371

def trigger_id
  @trigger_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 378

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)
  @end_time = args[:end_time] if args.key?(:end_time)
  @id = args[:id] if args.key?(:id)
  @logs_uri = args[:logs_uri] if args.key?(:logs_uri)
  @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