Class: Google::Apis::BatchV1::Barrier

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameString

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

Returns:

  • (String)


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