Class: Courier::Models::TenantTemplateInput::Provider

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/courier/models/tenant_template_input.rb

Defined Under Namespace

Classes: Metadata

Instance Attribute Summary collapse

Instance Method Summary collapse

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(if_: nil, metadata: nil, override: nil, timeouts: nil) ⇒ Object

Parameters:

  • if_ (String, nil) (defaults to: nil)

    JS conditional with access to data/profile.

  • metadata (Courier::Models::TenantTemplateInput::Provider::Metadata, nil) (defaults to: nil)
  • override (Hash{Symbol=>Object}, nil) (defaults to: nil)

    Provider-specific overrides.

  • timeouts (Integer, nil) (defaults to: nil)


# File 'lib/courier/models/tenant_template_input.rb', line 170


Instance Attribute Details

#if_String?

JS conditional with access to data/profile.

Returns:

  • (String, nil)


152
# File 'lib/courier/models/tenant_template_input.rb', line 152

optional :if_, String, api_name: :if, nil?: true

#metadataCourier::Models::TenantTemplateInput::Provider::Metadata?



157
# File 'lib/courier/models/tenant_template_input.rb', line 157

optional :metadata, -> { Courier::TenantTemplateInput::Provider:: }, nil?: true

#overrideHash{Symbol=>Object}?

Provider-specific overrides.

Returns:

  • (Hash{Symbol=>Object}, nil)


163
# File 'lib/courier/models/tenant_template_input.rb', line 163

optional :override, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown], nil?: true

#timeoutsInteger?

Returns:

  • (Integer, nil)


168
# File 'lib/courier/models/tenant_template_input.rb', line 168

optional :timeouts, Integer, nil?: true