Class: Courier::Models::ProviderUpdateParams

Inherits:
Internal::Type::BaseModel show all
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

See Also:

  • Courier::Resources::Providers#update

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(id:, provider:, alias_: nil, settings: nil, title: nil, request_options: {}) ⇒ ProviderUpdateParams

Some parameter documentations has been truncated, see Courier::Models::ProviderUpdateParams for more details.

Parameters:

  • id (String)
  • provider (String) —

    The provider key identifying the type. Required on every request because it sele

  • alias_ (String) (defaults to: nil) —

    Updated alias. Omit to clear.

  • settings (Hash{Symbol=>Object}) (defaults to: nil) —

    Provider-specific settings (snake_case keys). Replaces the full settings object

  • title (String) (defaults to: nil) —

    Updated display title.

  • request_options (Courier::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • id: (String)
  • provider: (String)
  • alias_: (String) (defaults to: nil)
  • settings: (::Hash[Symbol, top]) (defaults to: nil)
  • title: (String) (defaults to: nil)
  • request_options: (Courier::request_opts) (defaults to: {})


# File 'lib/courier/models/provider_update_params.rb', line 51

Instance Attribute Details

#alias_ ⇒ String?

Updated alias. Omit to clear.

Parameters:

  • (String)

Returns:

  • (String, nil)


26
# File 'lib/courier/models/provider_update_params.rb', line 26

optional :alias_, String, api_name: :alias

#id ⇒ String

Parameters:

  • value (String)

Returns:

  • (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.

Parameters:

  • value (String)

Returns:

  • (String)


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.

Parameters:

  • (::Hash[Symbol, top])

Returns:

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


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.

Parameters:

  • (String)

Returns:

  • (String, nil)


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 }

Returns:

  • ({ 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
}