Class: Google::Apis::WorkflowexecutionsV1::Callback

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workflowexecutions_v1/classes.rb,
lib/google/apis/workflowexecutions_v1/representations.rb,
lib/google/apis/workflowexecutions_v1/representations.rb

Overview

An instance of a Callback created by an execution.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Callback

Returns a new instance of Callback.



52
53
54
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 52

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#available_payloadsArray<String>

Output only. The payloads received by the callback that have not been processed by a waiting execution step. Corresponds to the JSON property availablePayloads

Returns:

  • (Array<String>)


33
34
35
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 33

def available_payloads
  @available_payloads
end

#method_propString

Output only. The method accepted by the callback. For example: GET, POST, PUT. Corresponds to the JSON property method

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 38

def method_prop
  @method_prop
end

#nameString

Output only. The resource name of the callback. Format: projects/project/ locations/location/workflows/workflow/executions/execution/callback/ callback Corresponds to the JSON property name

Returns:

  • (String)


45
46
47
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 45

def name
  @name
end

#waitersFixnum

Output only. Number of execution steps waiting on this callback. Corresponds to the JSON property waiters

Returns:

  • (Fixnum)


50
51
52
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 50

def waiters
  @waiters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



57
58
59
60
61
62
# File 'lib/google/apis/workflowexecutions_v1/classes.rb', line 57

def update!(**args)
  @available_payloads = args[:available_payloads] if args.key?(:available_payloads)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @name = args[:name] if args.key?(:name)
  @waiters = args[:waiters] if args.key?(:waiters)
end