Class: Google::Apis::BatchV1::Barrier
- Inherits:
-
Object
- Object
- Google::Apis::BatchV1::Barrier
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/batch_v1/classes.rb,
lib/google/apis/batch_v1/representations.rb,
lib/google/apis/batch_v1/representations.rb
Overview
A barrier runnable automatically blocks the execution of subsequent runnables until all the tasks in the task group reach the barrier.
Instance Attribute Summary collapse
-
#name ⇒ String
Barriers are identified by their index in runnable list.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Barrier
constructor
A new instance of Barrier.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Barrier
Returns a new instance of Barrier.
753 754 755 |
# File 'lib/google/apis/batch_v1/classes.rb', line 753 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Barriers are identified by their index in runnable list. Names are not
required, but if present should be an identifier.
Corresponds to the JSON property name
751 752 753 |
# File 'lib/google/apis/batch_v1/classes.rb', line 751 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
758 759 760 |
# File 'lib/google/apis/batch_v1/classes.rb', line 758 def update!(**args) @name = args[:name] if args.key?(:name) end |