Class: Telnyx::Models::MobileVoiceConnection

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

Overview

See Also:

  • Telnyx::Resources::MobileVoiceConnections#list

Defined Under Namespace

Modules: RecordType, WebhookAPIVersion Classes: Inbound, Outbound

Instance Attribute Summary collapse

Class Method 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(channel_limit: nil, outbound_voice_profile_id: nil) ⇒ Object

Parameters:

  • channel_limit (Integer, nil) (defaults to: nil)
  • outbound_voice_profile_id (String, nil) (defaults to: nil)


# File 'lib/telnyx/models/mobile_voice_connection.rb', line 83

Instance Attribute Details

#activeBoolean?

Indicates if the connection is active.

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

optional :active, Telnyx::Internal::Type::Boolean

#connection_nameString?

The name of the connection.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :connection_name, String

#created_atTime? (readonly)

Returns the value of attribute created_at.

Returns:

  • (Time, nil)


57
58
59
# File 'sig/telnyx/models/mobile_voice_connection.rbs', line 57

def created_at
  @created_at
end

#idString? (readonly)

Returns the value of attribute id.

Returns:

  • (String, nil)


53
54
55
# File 'sig/telnyx/models/mobile_voice_connection.rbs', line 53

def id
  @id
end

#inboundTelnyx::Models::MobileVoiceConnection::Inbound?



22
# File 'lib/telnyx/models/mobile_voice_connection.rb', line 22

optional :inbound, -> { Telnyx::MobileVoiceConnection::Inbound }

#outboundTelnyx::Models::MobileVoiceConnection::Outbound?



27
# File 'lib/telnyx/models/mobile_voice_connection.rb', line 27

optional :outbound, -> { Telnyx::MobileVoiceConnection::Outbound }

#record_typeTelnyx::Models::MobileVoiceConnection::record_type? (readonly)

Returns the value of attribute record_type.

Returns:

  • (Telnyx::Models::MobileVoiceConnection::record_type, nil)


61
62
63
# File 'sig/telnyx/models/mobile_voice_connection.rbs', line 61

def record_type
  @record_type
end

#tagsArray<String>?

A list of tags associated with the connection.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


33
# File 'lib/telnyx/models/mobile_voice_connection.rb', line 33

optional :tags, Telnyx::Internal::Type::ArrayOf[String]

#updated_atTime? (readonly)

Returns the value of attribute updated_at.

Returns:

  • (Time, nil)


67
68
69
# File 'sig/telnyx/models/mobile_voice_connection.rbs', line 67

def updated_at
  @updated_at
end

#webhook_api_versionSymbol, ...

The API version for webhooks.

Parameters:

  • value (Telnyx::Models::MobileVoiceConnection::webhook_api_version, nil)

Returns:



39
# File 'lib/telnyx/models/mobile_voice_connection.rb', line 39

optional :webhook_api_version, enum: -> { Telnyx::MobileVoiceConnection::WebhookAPIVersion }, nil?: true

#webhook_event_failover_urlString?

The failover URL where webhooks are sent.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :webhook_event_failover_url, String, nil?: true

#webhook_event_urlString?

The URL where webhooks are sent.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


51
# File 'lib/telnyx/models/mobile_voice_connection.rb', line 51

optional :webhook_event_url, String, nil?: true

#webhook_timeout_secsInteger?

The timeout for webhooks in seconds.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


57
# File 'lib/telnyx/models/mobile_voice_connection.rb', line 57

optional :webhook_timeout_secs, Integer, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/telnyx/models/mobile_voice_connection.rb', line 146

Instance Method Details

#created_at=Time (readonly)

Parameters:

  • (Time)

Returns:

  • (Time)


59
# File 'sig/telnyx/models/mobile_voice_connection.rbs', line 59

def created_at=: (Time) -> Time

#id=String (readonly)

Parameters:

  • (String)

Returns:

  • (String)


55
# File 'sig/telnyx/models/mobile_voice_connection.rbs', line 55

def id=: (String) -> String

#record_type=Object (readonly)



63
# File 'sig/telnyx/models/mobile_voice_connection.rbs', line 63

def record_type=: (

#to_hash{

Returns:

  • ({)


87
# File 'sig/telnyx/models/mobile_voice_connection.rbs', line 87

def to_hash: -> {

#updated_at=Time (readonly)

Parameters:

  • (Time)

Returns:

  • (Time)


69
# File 'sig/telnyx/models/mobile_voice_connection.rbs', line 69

def updated_at=: (Time) -> Time