Class: Google::Apis::ContaineranalysisV1alpha1::BuildProvenance
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::BuildProvenance
- 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
-
#build_options ⇒ Hash<String,String>
Special options applied to this build.
-
#builder_version ⇒ String
Version string of the builder at the time this build was executed.
-
#built_artifacts ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::Artifact>
Output of the build.
-
#commands ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::Command>
Commands requested by the build.
-
#create_time ⇒ String
Time at which the build was created.
-
#creator ⇒ String
E-mail address of the user who initiated this build.
-
#finish_time ⇒ String
Time at which execution of the build was finished.
-
#id ⇒ String
Unique identifier of the build.
-
#logs_bucket ⇒ String
Google Cloud Storage bucket where logs were written.
-
#project_id ⇒ String
ID of the project.
-
#source_provenance ⇒ Google::Apis::ContaineranalysisV1alpha1::Source
Source describes the location of the source used for the build.
-
#start_time ⇒ String
Time at which execution of the build was started.
-
#trigger_id ⇒ String
Trigger identifier if the build was triggered automatically; empty if not.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BuildProvenance
constructor
A new instance of BuildProvenance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BuildProvenance
Returns a new instance of BuildProvenance.
364 365 366 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 364 def initialize(**args) update!(**args) end |
Instance Attribute Details
#build_options ⇒ Hash<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
300 301 302 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 300 def @build_options end |
#builder_version ⇒ String
Version string of the builder at the time this build was executed.
Corresponds to the JSON property builderVersion
305 306 307 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 305 def builder_version @builder_version end |
#built_artifacts ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::Artifact>
Output of the build.
Corresponds to the JSON property builtArtifacts
310 311 312 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 310 def built_artifacts @built_artifacts end |
#commands ⇒ Array<Google::Apis::ContaineranalysisV1alpha1::Command>
Commands requested by the build.
Corresponds to the JSON property commands
315 316 317 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 315 def commands @commands end |
#create_time ⇒ String
Time at which the build was created.
Corresponds to the JSON property createTime
320 321 322 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 320 def create_time @create_time end |
#creator ⇒ String
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
327 328 329 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 327 def creator @creator end |
#finish_time ⇒ String
Time at which execution of the build was finished.
Corresponds to the JSON property finishTime
332 333 334 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 332 def finish_time @finish_time end |
#id ⇒ String
Unique identifier of the build.
Corresponds to the JSON property id
337 338 339 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 337 def id @id end |
#logs_bucket ⇒ String
Google Cloud Storage bucket where logs were written.
Corresponds to the JSON property logsBucket
342 343 344 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 342 def logs_bucket @logs_bucket end |
#project_id ⇒ String
ID of the project.
Corresponds to the JSON property projectId
347 348 349 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 347 def project_id @project_id end |
#source_provenance ⇒ Google::Apis::ContaineranalysisV1alpha1::Source
Source describes the location of the source used for the build.
Corresponds to the JSON property sourceProvenance
352 353 354 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 352 def source_provenance @source_provenance end |
#start_time ⇒ String
Time at which execution of the build was started.
Corresponds to the JSON property startTime
357 358 359 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 357 def start_time @start_time end |
#trigger_id ⇒ String
Trigger identifier if the build was triggered automatically; empty if not.
Corresponds to the JSON property triggerId
362 363 364 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 362 def trigger_id @trigger_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 369 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 |