Class: Telnyx::Models::EmailInboxes::Messages::LabelMutationRequest

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/email_inboxes/messages/label_mutation_request.rb,
sig/telnyx/models/email_inboxes/messages/label_mutation_request.rbs

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(labels:) ⇒ LabelMutationRequest

Some parameter documentations has been truncated, see Telnyx::Models::EmailInboxes::Messages::LabelMutationRequest for more details.

Labels to add or remove. Both operations are idempotent set operations, so a retried request converges instead of failing.

Parameters:

  • labels (Array<String>)

    One or more labels. Each label is a freeform, case-sensitive string of at most 2

  • labels: (::Array[String])


# File 'lib/telnyx/models/email_inboxes/messages/label_mutation_request.rb', line 16

Instance Attribute Details

#labelsArray<String>

One or more labels. Each label is a freeform, case-sensitive string of at most 255 characters; a message or thread may carry at most 50 labels. The telnyx: prefix is a reserved system namespace and is rejected on customer writes.

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


14
# File 'lib/telnyx/models/email_inboxes/messages/label_mutation_request.rb', line 14

required :labels, Telnyx::Internal::Type::ArrayOf[String]

Instance Method Details

#to_hash{ labels: ::Array[String] }

Returns:

  • ({ labels: ::Array[String] })


12
# File 'sig/telnyx/models/email_inboxes/messages/label_mutation_request.rbs', line 12

def to_hash: -> { labels: ::Array[String] }