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.



274
275
276
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 274

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)


256
257
258
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 256

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)


261
262
263
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 261

def pipeline_task_name
  @pipeline_task_name
end

#typeString

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

Returns:

  • (String)


266
267
268
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 266

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



272
273
274
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 272

def when_expressions
  @when_expressions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



279
280
281
282
283
284
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 279

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