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.



3026
3027
3028
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3026

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)


3012
3013
3014
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3012

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)


3019
3020
3021
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3019

def pipeline
  @pipeline
end

#tasksString

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

Returns:

  • (String)


3024
3025
3026
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3024

def tasks
  @tasks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3031
3032
3033
3034
3035
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3031

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