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.
274 275 276 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 274 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
256 257 258 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 256 def name @name end |
#pipeline_task_name ⇒ String
PipelineTaskName is the name of the PipelineTask this is referencing.
Corresponds to the JSON property pipelineTaskName
261 262 263 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 261 def pipeline_task_name @pipeline_task_name end |
#type ⇒ String
Output only. Type of the child reference.
Corresponds to the JSON property type
266 267 268 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 266 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
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 |