Class: Google::Apis::CloudbuildV2::TimeoutFields

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

TimeoutFields allows granular specification of pipeline, task, and finally timeouts

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TimeoutFields

Returns a new instance of TimeoutFields.



2453
2454
2455
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2453

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

Instance Attribute Details

#finallyString

Finally sets the maximum allowed duration of this pipeline's finally Corresponds to the JSON property finally

Returns:

  • (String)


2439
2440
2441
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2439

def finally
  @finally
end

#pipelineString

Pipeline sets the maximum allowed duration for execution of the entire pipeline. The sum of individual timeouts for tasks and finally must not exceed this value. Corresponds to the JSON property pipeline

Returns:

  • (String)


2446
2447
2448
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2446

def pipeline
  @pipeline
end

#tasksString

Tasks sets the maximum allowed duration of this pipeline's tasks Corresponds to the JSON property tasks

Returns:

  • (String)


2451
2452
2453
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2451

def tasks
  @tasks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2458
2459
2460
2461
2462
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 2458

def update!(**args)
  @finally = args[:finally] if args.key?(:finally)
  @pipeline = args[:pipeline] if args.key?(:pipeline)
  @tasks = args[:tasks] if args.key?(:tasks)
end