Class: Knockapi::Models::WorkflowTriggerParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::WorkflowTriggerParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/knockapi/models/workflow_trigger_params.rb
Overview
Instance Attribute Summary collapse
-
#actor ⇒ String, ...
Specifies a recipient in a request.
-
#cancellation_key ⇒ String?
An optional key that is used to reference a specific workflow trigger request when issuing a [workflow cancellation](/send-notifications/canceling-workflows) request.
-
#data ⇒ Hash{Symbol=>Object}?
An optional map of data to pass into the workflow execution.
-
#recipients ⇒ Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>
The recipients to trigger the workflow for.
-
#tenant ⇒ String, ...
An request to set a tenant inline.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(recipients:, actor: nil, cancellation_key: nil, data: nil, tenant: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see WorkflowTriggerParams for more details.
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(recipients:, actor: nil, cancellation_key: nil, data: nil, tenant: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Knockapi::Models::WorkflowTriggerParams for more details.
|
|
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 50
|
Instance Attribute Details
#actor ⇒ String, ...
Specifies a recipient in a request. This can either be a user identifier (string), an inline user request (object), or an inline object request, which is determined by the presence of a ‘collection` property.
23 |
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 23 optional :actor, union: -> { Knockapi::RecipientRequest }, nil?: true |
#cancellation_key ⇒ String?
An optional key that is used to reference a specific workflow trigger request when issuing a [workflow cancellation](/send-notifications/canceling-workflows) request. Must be provided while triggering a workflow in order to enable subsequent cancellation. Should be unique across trigger requests to avoid unintentional cancellations.
33 |
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 33 optional :cancellation_key, String, nil?: true |
#data ⇒ Hash{Symbol=>Object}?
An optional map of data to pass into the workflow execution. There is a 10MB limit on the size of the full ‘data` payload. Any individual string value greater than 1024 bytes in length will be [truncated](/developer-tools/api-logs#log-truncation) in your logs.
42 |
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 42 optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true |
#recipients ⇒ Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>
The recipients to trigger the workflow for. Can inline identify users, objects, or use a list of user IDs. Limited to 1,000 recipients.
15 |
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 15 required :recipients, -> { Knockapi::Internal::Type::ArrayOf[union: Knockapi::RecipientRequest] } |
#tenant ⇒ String, ...
An request to set a tenant inline.
48 |
# File 'lib/knockapi/models/workflow_trigger_params.rb', line 48 optional :tenant, union: -> { Knockapi::InlineTenantRequest }, nil?: true |