Class: Google::Apis::CloudbuildV2::ChildStatusReference

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

Overview

ChildStatusReference is used to point to the statuses of individual TaskRuns and Runs within this PipelineRun.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChildStatusReference

Returns a new instance of ChildStatusReference.



400
401
402
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 400

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

Instance Attribute Details

#nameString

Name is the name of the TaskRun or Run this is referencing. Corresponds to the JSON property name

Returns:

  • (String)


382
383
384
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 382

def name
  @name
end

#pipeline_task_nameString

PipelineTaskName is the name of the PipelineTask this is referencing. Corresponds to the JSON property pipelineTaskName

Returns:

  • (String)


387
388
389
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 387

def pipeline_task_name
  @pipeline_task_name
end

#typeString

Output only. Type of the child reference. Corresponds to the JSON property type

Returns:

  • (String)


392
393
394
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 392

def type
  @type
end

#when_expressionsArray<Google::Apis::CloudbuildV2::WhenExpression>

WhenExpressions is the list of checks guarding the execution of the PipelineTask Corresponds to the JSON property whenExpressions



398
399
400
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 398

def when_expressions
  @when_expressions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



405
406
407
408
409
410
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 405

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @pipeline_task_name = args[:pipeline_task_name] if args.key?(:pipeline_task_name)
  @type = args[:type] if args.key?(:type)
  @when_expressions = args[:when_expressions] if args.key?(:when_expressions)
end