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.
408 409 410 |
# File 'lib/google/apis/batch_v1/classes.rb', line 408 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
406 407 408 |
# File 'lib/google/apis/batch_v1/classes.rb', line 406 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
413 414 415 |
# File 'lib/google/apis/batch_v1/classes.rb', line 413 def update!(**args) @name = args[:name] if args.key?(:name) end |