Class: Google::Apis::CloudbuildV2::TimeoutFields
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::TimeoutFields
- 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
-
#finally ⇒ String
Finally sets the maximum allowed duration of this pipeline's finally Corresponds to the JSON property
finally
. -
#pipeline ⇒ String
Pipeline sets the maximum allowed duration for execution of the entire pipeline.
-
#tasks ⇒ String
Tasks sets the maximum allowed duration of this pipeline's tasks Corresponds to the JSON property
tasks
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeoutFields
constructor
A new instance of TimeoutFields.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimeoutFields
Returns a new instance of TimeoutFields.
3039 3040 3041 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3039 def initialize(**args) update!(**args) end |
Instance Attribute Details
#finally ⇒ String
Finally sets the maximum allowed duration of this pipeline's finally
Corresponds to the JSON property finally
3025 3026 3027 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3025 def finally @finally end |
#pipeline ⇒ String
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
3032 3033 3034 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3032 def pipeline @pipeline end |
#tasks ⇒ String
Tasks sets the maximum allowed duration of this pipeline's tasks
Corresponds to the JSON property tasks
3037 3038 3039 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3037 def tasks @tasks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3044 3045 3046 3047 3048 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3044 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 |