Class: Knockapi::Models::ScheduleCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::ScheduleCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/knockapi/models/schedule_create_params.rb
Overview
Instance Attribute Summary collapse
-
#actor ⇒ String, ...
Specifies a recipient in a request.
-
#data ⇒ Hash{Symbol=>Object}?
An optional map of data to pass into the workflow execution.
-
#ending_at ⇒ Time?
The ending date and time for the schedule.
-
#recipients ⇒ Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>
The recipients to set the schedule for.
-
#repeats ⇒ Array<Knockapi::Models::ScheduleRepeatRule>?
The repeat rule for the schedule.
-
#scheduled_at ⇒ Time?
The starting date and time for the schedule.
-
#tenant ⇒ String, ...
An request to set a tenant inline.
-
#workflow ⇒ String
The key of the workflow.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(recipients:, workflow:, actor: nil, data: nil, ending_at: nil, repeats: nil, scheduled_at: nil, tenant: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see ScheduleCreateParams 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:, workflow:, actor: nil, data: nil, ending_at: nil, repeats: nil, scheduled_at: nil, tenant: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see Knockapi::Models::ScheduleCreateParams for more details.
|
|
# File 'lib/knockapi/models/schedule_create_params.rb', line 63
|
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.
28 |
# File 'lib/knockapi/models/schedule_create_params.rb', line 28 optional :actor, union: -> { Knockapi::RecipientRequest }, 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.
37 |
# File 'lib/knockapi/models/schedule_create_params.rb', line 37 optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true |
#ending_at ⇒ Time?
The ending date and time for the schedule.
43 |
# File 'lib/knockapi/models/schedule_create_params.rb', line 43 optional :ending_at, Time, nil?: true |
#recipients ⇒ Array<String, Knockapi::Models::InlineIdentifyUserRequest, Knockapi::Models::InlineObjectRequest>
The recipients to set the schedule for. Limited to 100 recipients per request.
14 |
# File 'lib/knockapi/models/schedule_create_params.rb', line 14 required :recipients, -> { Knockapi::Internal::Type::ArrayOf[union: Knockapi::RecipientRequest] } |
#repeats ⇒ Array<Knockapi::Models::ScheduleRepeatRule>?
The repeat rule for the schedule.
49 |
# File 'lib/knockapi/models/schedule_create_params.rb', line 49 optional :repeats, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::ScheduleRepeatRule] } |
#scheduled_at ⇒ Time?
The starting date and time for the schedule.
55 |
# File 'lib/knockapi/models/schedule_create_params.rb', line 55 optional :scheduled_at, Time, nil?: true |
#tenant ⇒ String, ...
An request to set a tenant inline.
61 |
# File 'lib/knockapi/models/schedule_create_params.rb', line 61 optional :tenant, union: -> { Knockapi::InlineTenantRequest }, nil?: true |
#workflow ⇒ String
The key of the workflow.
20 |
# File 'lib/knockapi/models/schedule_create_params.rb', line 20 required :workflow, String |