Class: Knockapi::Models::ScheduleCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/knockapi/models/schedule_create_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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.

Parameters:



# File 'lib/knockapi/models/schedule_create_params.rb', line 63


Instance Attribute Details

#actorString, ...

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

#dataHash{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.

Returns:



37
# File 'lib/knockapi/models/schedule_create_params.rb', line 37

optional :data, Knockapi::Internal::Type::HashOf[Knockapi::Internal::Type::Unknown], nil?: true

#ending_atTime?

The ending date and time for the schedule.

Returns:

  • (Time, nil)


43
# File 'lib/knockapi/models/schedule_create_params.rb', line 43

optional :ending_at, Time, nil?: true

#recipientsArray<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] }

#repeatsArray<Knockapi::Models::ScheduleRepeatRule>?

The repeat rule for the schedule.

Returns:



49
# File 'lib/knockapi/models/schedule_create_params.rb', line 49

optional :repeats, -> { Knockapi::Internal::Type::ArrayOf[Knockapi::ScheduleRepeatRule] }

#scheduled_atTime?

The starting date and time for the schedule.

Returns:

  • (Time, nil)


55
# File 'lib/knockapi/models/schedule_create_params.rb', line 55

optional :scheduled_at, Time, nil?: true

#tenantString, ...

An request to set a tenant inline.

Returns:



61
# File 'lib/knockapi/models/schedule_create_params.rb', line 61

optional :tenant, union: -> { Knockapi::InlineTenantRequest }, nil?: true

#workflowString

The key of the workflow.

Returns:

  • (String)


20
# File 'lib/knockapi/models/schedule_create_params.rb', line 20

required :workflow, String