Class: Google::Apis::CloudbuildV2::ChildStatusReference
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::ChildStatusReference
- 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
-
#name ⇒ String
Name is the name of the TaskRun or Run this is referencing.
-
#pipeline_task_name ⇒ String
PipelineTaskName is the name of the PipelineTask this is referencing.
-
#type ⇒ String
Output only.
-
#when_expressions ⇒ Array<Google::Apis::CloudbuildV2::WhenExpression>
WhenExpressions is the list of checks guarding the execution of the PipelineTask Corresponds to the JSON property
whenExpressions
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChildStatusReference
constructor
A new instance of ChildStatusReference.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#name ⇒ String
Name is the name of the TaskRun or Run this is referencing.
Corresponds to the JSON property name
382 383 384 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 382 def name @name end |
#pipeline_task_name ⇒ String
PipelineTaskName is the name of the PipelineTask this is referencing.
Corresponds to the JSON property pipelineTaskName
387 388 389 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 387 def pipeline_task_name @pipeline_task_name end |
#type ⇒ String
Output only. Type of the child reference.
Corresponds to the JSON property type
392 393 394 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 392 def type @type end |
#when_expressions ⇒ Array<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 |