Class: Courier::Models::ProviderUpdateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::ProviderUpdateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/courier/models/provider_update_params.rb,
sig/courier/models/provider_update_params.rbs
Overview
Instance Attribute Summary collapse
-
#alias_ ⇒ String?
Updated alias.
- #id ⇒ String
-
#provider ⇒ String
The provider key identifying the type.
-
#settings ⇒ Hash{Symbol=>Object}?
Provider-specific settings (snake_case keys).
-
#title ⇒ String?
Updated display title.
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
-
#initialize(id:, provider:, alias_: nil, settings: nil, title: nil, request_options: {}) ⇒ ProviderUpdateParams
constructor
Some parameter documentations has been truncated, see ProviderUpdateParams for more details.
- #to_hash ⇒ { id: String, provider: String, alias_: String, settings: ::Hash[Symbol, top], title: String, request_options: Courier::RequestOptions }
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(id:, provider:, alias_: nil, settings: nil, title: nil, request_options: {}) ⇒ ProviderUpdateParams
Some parameter documentations has been truncated, see Courier::Models::ProviderUpdateParams for more details.
|
|
# File 'lib/courier/models/provider_update_params.rb', line 51
|
Instance Attribute Details
#alias_ ⇒ String?
Updated alias. Omit to clear.
26 |
# File 'lib/courier/models/provider_update_params.rb', line 26 optional :alias_, String, api_name: :alias |
#id ⇒ String
13 |
# File 'lib/courier/models/provider_update_params.rb', line 13 required :id, String |
#provider ⇒ String
The provider key identifying the type. Required on every request because it selects the provider-specific settings schema for validation.
20 |
# File 'lib/courier/models/provider_update_params.rb', line 20 required :provider, String |
#settings ⇒ Hash{Symbol=>Object}?
Provider-specific settings (snake_case keys). Replaces the full settings object
— omitted settings fields are removed. Use the catalog endpoint to check
required fields. Set rate_limit to cap this configuration's send rate:
{ "rate": <number greater than 0>, "period": "second" | "minute" | "hour" },
e.g. { "rate": 0.5, "period": "minute" } for one send every 2 minutes. The
interval between sends (period divided by rate) must be from 1 millisecond
to 12 hours, otherwise the request returns a 400 InvalidRateLimit error. The
limit applies per configuration and per environment (a test-environment
configuration has its own limit). Sends above the rate are queued, not dropped,
and changes take up to 60 seconds to apply. It has no effect on observability or
CDP integrations, which do not send messages. Omitting rate_limit or setting
it to null removes any existing limit, including one set in Studio.
43 |
# File 'lib/courier/models/provider_update_params.rb', line 43 optional :settings, Courier::Internal::Type::HashOf[Courier::Internal::Type::Unknown] |
#title ⇒ String?
Updated display title.
49 |
# File 'lib/courier/models/provider_update_params.rb', line 49 optional :title, String |
Instance Method Details
#to_hash ⇒ { id: String, provider: String, alias_: String, settings: ::Hash[Symbol, top], title: String, request_options: Courier::RequestOptions }
42 43 44 45 46 47 48 49 |
# File 'sig/courier/models/provider_update_params.rbs', line 42
def to_hash: -> {
id: String,
provider: String,
alias_: String,
settings: ::Hash[Symbol, top],
title: String,
request_options: Courier::RequestOptions
}
|