Class: Courier::Models::WorkspacePreferenceReplaceRequest
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::WorkspacePreferenceReplaceRequest
- Defined in:
- lib/courier/models/workspace_preference_replace_request.rb,
sig/courier/models/workspace_preference_replace_request.rbs
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ String?
Optional description shown under the section on the hosted preferences page.
-
#has_custom_routing ⇒ Boolean?
Whether the workspace preference defines custom routing for its topics.
-
#name ⇒ String
Human-readable name for the workspace preference.
-
#routing_options ⇒ Array<Symbol, Courier::Models::ChannelClassification>?
Default channels for the workspace preference.
Instance Method Summary collapse
-
#initialize(name:, description: nil, has_custom_routing: nil, routing_options: nil) ⇒ WorkspacePreferenceReplaceRequest
constructor
Some parameter documentations has been truncated, see WorkspacePreferenceReplaceRequest for more details.
- #to_hash ⇒ { name: String, description: String?, has_custom_routing: bool?, routing_options: ::Array[Courier::Models::channel_classification]? }
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(name:, description: nil, has_custom_routing: nil, routing_options: nil) ⇒ WorkspacePreferenceReplaceRequest
Some parameter documentations has been truncated, see Courier::Models::WorkspacePreferenceReplaceRequest for more details.
Request body for replacing a workspace preference. Full document replacement; missing optional fields are cleared.
|
|
# File 'lib/courier/models/workspace_preference_replace_request.rb', line 33
|
Instance Attribute Details
#description ⇒ String?
Optional description shown under the section on the hosted preferences page. Omit to clear.
17 |
# File 'lib/courier/models/workspace_preference_replace_request.rb', line 17 optional :description, String, nil?: true |
#has_custom_routing ⇒ Boolean?
Whether the workspace preference defines custom routing for its topics.
23 |
# File 'lib/courier/models/workspace_preference_replace_request.rb', line 23 optional :has_custom_routing, Courier::Internal::Type::Boolean, nil?: true |
#name ⇒ String
Human-readable name for the workspace preference.
10 |
# File 'lib/courier/models/workspace_preference_replace_request.rb', line 10 required :name, String |
#routing_options ⇒ Array<Symbol, Courier::Models::ChannelClassification>?
Default channels for the workspace preference. Omit to clear.
29 30 31 |
# File 'lib/courier/models/workspace_preference_replace_request.rb', line 29 optional :routing_options, -> { Courier::Internal::Type::ArrayOf[enum: Courier::ChannelClassification] }, nil?: true |
Instance Method Details
#to_hash ⇒ { name: String, description: String?, has_custom_routing: bool?, routing_options: ::Array[Courier::Models::channel_classification]? }
27 28 29 30 31 32 |
# File 'sig/courier/models/workspace_preference_replace_request.rbs', line 27
def to_hash: -> {
name: String,
description: String?,
has_custom_routing: bool?,
routing_options: ::Array[Courier::Models::channel_classification]?
}
|