Class: Google::Apis::CloudbuildV2::SkippedTask

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

SkippedTask is used to describe the Tasks that were skipped due to their When Expressions evaluating to False.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SkippedTask

Returns a new instance of SkippedTask.



2502
2503
2504
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2502

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

Instance Attribute Details

#nameString

Name is the Pipeline Task name Corresponds to the JSON property name

Returns:

  • (String)


2489
2490
2491
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2489

def name
  @name
end

#reasonString

Output only. Reason is the cause of the PipelineTask being skipped. Corresponds to the JSON property reason

Returns:

  • (String)


2494
2495
2496
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2494

def reason
  @reason
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



2500
2501
2502
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2500

def when_expressions
  @when_expressions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2507
2508
2509
2510
2511
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2507

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