Class: Telnyx::Models::NotificationChannel

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/notification_channel.rb

Overview

Defined Under Namespace

Modules: ChannelTypeID

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(id: nil, channel_destination: nil, channel_type_id: nil, created_at: nil, notification_profile_id: nil, updated_at: nil) ⇒ Object

A Notification Channel

Parameters:

  • id (String) (defaults to: nil)

    A UUID.

  • channel_destination (String) (defaults to: nil)

    The destination associated with the channel type.

  • channel_type_id (Symbol, Telnyx::Models::NotificationChannel::ChannelTypeID) (defaults to: nil)

    A Channel Type ID

  • created_at (Time) (defaults to: nil)

    ISO 8601 formatted date indicating when the resource was created.

  • notification_profile_id (String) (defaults to: nil)

    A UUID reference to the associated Notification Profile.

  • updated_at (Time) (defaults to: nil)

    ISO 8601 formatted date indicating when the resource was updated.



# File 'lib/telnyx/models/notification_channel.rb', line 45

Instance Attribute Details

#channel_destinationString?

The destination associated with the channel type.

Returns:

  • (String, nil)


11
# File 'lib/telnyx/models/notification_channel.rb', line 11

optional :channel_destination, String

#channel_type_idSymbol, ...

A Channel Type ID



17
# File 'lib/telnyx/models/notification_channel.rb', line 17

optional :channel_type_id, enum: -> { Telnyx::NotificationChannel::ChannelTypeID }

#notification_profile_idString?

A UUID reference to the associated Notification Profile.

Returns:

  • (String, nil)


23
# File 'lib/telnyx/models/notification_channel.rb', line 23

optional :notification_profile_id, String