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
Barrier runnable blocks until all tasks in a taskgroup reach it.
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.
466 467 468 |
# File 'lib/google/apis/batch_v1/classes.rb', line 466 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
464 465 466 |
# File 'lib/google/apis/batch_v1/classes.rb', line 464 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
471 472 473 |
# File 'lib/google/apis/batch_v1/classes.rb', line 471 def update!(**args) @name = args[:name] if args.key?(:name) end |