telnyx 5.112.0 → 5.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +9 -178
- data/lib/telnyx/models/ai/assistant_integration.rb +38 -0
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +35 -0
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +9 -178
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +3 -123
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +3 -125
- data/lib/telnyx/models/ai/assistants/clause.rb +54 -0
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +27 -0
- data/lib/telnyx/models/ai/assistants/rule_input.rb +40 -0
- data/lib/telnyx/models/ai/assistants/rule_output.rb +40 -0
- data/lib/telnyx/models/ai/assistants/serve.rb +33 -0
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -179
- data/lib/telnyx/models/ai/inference_embedding.rb +9 -177
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +47 -0
- data/lib/telnyx/models/ai/openai_create_response_params.rb +3 -3
- data/lib/telnyx/models/ai/openai_list_models_response.rb +3 -210
- data/lib/telnyx/models/ai/start_speaking_plan.rb +37 -0
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +39 -0
- data/lib/telnyx/models/ai/transfer_tool.rb +7 -9
- data/lib/telnyx/models/ai_create_response_params.rb +4 -4
- data/lib/telnyx/models/ai_retrieve_models_response.rb +3 -210
- data/lib/telnyx/models/call_conversation_ended.rb +13 -1
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +4 -23
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +4 -23
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +169 -118
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +64 -0
- data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +108 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -167
- data/lib/telnyx/models/conferences/action_speak_params.rb +4 -23
- data/lib/telnyx/models/fax.rb +7 -5
- data/lib/telnyx/models/fax_create_params.rb +7 -5
- data/lib/telnyx/models/fax_delivered.rb +3 -2
- data/lib/telnyx/models/fax_failed.rb +3 -2
- data/lib/telnyx/models/fax_media_processed.rb +3 -2
- data/lib/telnyx/models/fax_queued.rb +3 -2
- data/lib/telnyx/models/fax_sending_started.rb +3 -2
- data/lib/telnyx/models/model_metadata.rb +212 -0
- data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +62 -12
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +18 -4
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection.rb +412 -0
- data/lib/telnyx/models/uac_connection_create_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_create_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_delete_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +3 -879
- data/lib/telnyx/models/uac_connection_update_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_update_response.rb +3 -878
- data/lib/telnyx/models/uac_external_settings.rb +101 -0
- data/lib/telnyx/models/uac_inbound.rb +210 -0
- data/lib/telnyx/models/uac_internal_settings.rb +25 -0
- data/lib/telnyx/models/uac_outbound.rb +131 -0
- data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
- data/lib/telnyx/models/xai_voice_settings.rb +36 -0
- data/lib/telnyx/models.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/ai/openai.rb +1 -1
- data/lib/telnyx/resources/ai.rb +3 -3
- data/lib/telnyx/resources/calls/actions.rb +15 -17
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/faxes.rb +13 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/texml.rb +4 -2
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
- data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +23 -4
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -352
- data/rbi/telnyx/models/ai/assistant_integration.rbi +60 -0
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +51 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -352
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +4 -290
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +3 -301
- data/rbi/telnyx/models/ai/assistants/clause.rbi +91 -0
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +36 -0
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/serve.rbi +61 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -366
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -351
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +83 -0
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +3 -315
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +70 -0
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +71 -0
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +3 -310
- data/rbi/telnyx/models/call_conversation_ended.rbi +10 -0
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +371 -254
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +155 -0
- data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +329 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +20 -480
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/fax.rbi +12 -8
- data/rbi/telnyx/models/fax_create_params.rbi +12 -8
- data/rbi/telnyx/models/fax_delivered.rbi +6 -4
- data/rbi/telnyx/models/fax_failed.rbi +6 -4
- data/rbi/telnyx/models/fax_media_processed.rbi +6 -4
- data/rbi/telnyx/models/fax_queued.rbi +6 -4
- data/rbi/telnyx/models/fax_sending_started.rbi +6 -4
- data/rbi/telnyx/models/model_metadata.rbi +272 -0
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +81 -9
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +27 -3
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection.rbi +684 -0
- data/rbi/telnyx/models/uac_connection_create_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_create_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_update_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_update_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_external_settings.rbi +146 -0
- data/rbi/telnyx/models/uac_inbound.rbi +410 -0
- data/rbi/telnyx/models/uac_internal_settings.rbi +39 -0
- data/rbi/telnyx/models/uac_outbound.rbi +224 -0
- data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
- data/rbi/telnyx/models/xai_voice_settings.rbi +64 -0
- data/rbi/telnyx/models.rbi +20 -0
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +2 -4
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -9
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
- data/rbi/telnyx/resources/ai/openai.rbi +1 -1
- data/rbi/telnyx/resources/ai.rbi +2 -2
- data/rbi/telnyx/resources/calls/actions.rbi +24 -24
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/faxes.rbi +18 -4
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/texml.rbi +7 -1
- data/rbi/telnyx/resources/uac_connections.rbi +7 -13
- data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
- data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -149
- data/sig/telnyx/models/ai/assistant_integration.rbs +26 -0
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +19 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -149
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +6 -113
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +4 -109
- data/sig/telnyx/models/ai/assistants/clause.rbs +46 -0
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +19 -0
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/serve.rbs +35 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -152
- data/sig/telnyx/models/ai/inference_embedding.rbs +18 -149
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +40 -0
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +5 -5
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +4 -149
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +33 -0
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +38 -0
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_create_response_params.rbs +5 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +4 -149
- data/sig/telnyx/models/call_conversation_ended.rbs +5 -0
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +141 -102
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +62 -0
- data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +130 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +13 -185
- data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/model_metadata.rbs +142 -0
- data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +27 -3
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +9 -1
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection.rbs +338 -0
- data/sig/telnyx/models/uac_connection_create_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_create_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_delete_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_update_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_update_response.rbs +5 -731
- data/sig/telnyx/models/uac_external_settings.rbs +73 -0
- data/sig/telnyx/models/uac_inbound.rbs +190 -0
- data/sig/telnyx/models/uac_internal_settings.rbs +15 -0
- data/sig/telnyx/models/uac_outbound.rbs +113 -0
- data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/xai_voice_settings.rbs +34 -0
- data/sig/telnyx/models.rbs +20 -0
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/ai/openai.rbs +1 -1
- data/sig/telnyx/resources/ai.rbs +1 -1
- data/sig/telnyx/resources/calls/actions.rbs +2 -4
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/texml.rbs +1 -0
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
- data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
- metadata +71 -14
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
- data/lib/telnyx/models/uac_connection_list_response.rb +0 -876
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
- data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
- data/rbi/telnyx/models/uac_connection_list_response.rbi +0 -1727
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
- data/sig/telnyx/models/uac_connection_list_response.rbs +0 -722
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class UacExternalSettings < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute auth_username
|
|
7
|
+
# The authentication username used in SIP digest authentication. If not set, the
|
|
8
|
+
# Username value will be used.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :auth_username, String, nil?: true
|
|
12
|
+
|
|
13
|
+
# @!attribute expiration_sec
|
|
14
|
+
# The registration interval, in seconds, indicating how often the system refreshes
|
|
15
|
+
# the SIP registration with the external SIP peer.
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer, nil]
|
|
18
|
+
optional :expiration_sec, Integer, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute from_user
|
|
21
|
+
# The user portion of the SIP From header used in outbound requests. This controls
|
|
22
|
+
# the caller identity presented to the external SIP peer.
|
|
23
|
+
#
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
optional :from_user, String, nil?: true
|
|
26
|
+
|
|
27
|
+
# @!attribute outbound_proxy
|
|
28
|
+
# An optional SIP proxy used to route outbound requests before reaching the
|
|
29
|
+
# external SIP peer.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :outbound_proxy, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute password
|
|
35
|
+
# The SIP password used for digest authentication with the external SIP peer.
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :password, String
|
|
39
|
+
|
|
40
|
+
# @!attribute proxy
|
|
41
|
+
# The SIP proxy address of the external SIP peer used for registrations and
|
|
42
|
+
# outbound call routing.
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :proxy, String
|
|
46
|
+
|
|
47
|
+
# @!attribute transport
|
|
48
|
+
# The transport protocol used for SIP signaling when communicating with the
|
|
49
|
+
# external SIP peer. One of UDP, TLS, or TCP.
|
|
50
|
+
#
|
|
51
|
+
# @return [Symbol, Telnyx::Models::UacExternalSettings::Transport, nil]
|
|
52
|
+
optional :transport, enum: -> { Telnyx::UacExternalSettings::Transport }, nil?: true
|
|
53
|
+
|
|
54
|
+
# @!attribute username
|
|
55
|
+
# The SIP username used to authenticate with the external SIP peer for
|
|
56
|
+
# registrations and outbound calls. Must start with a letter or number and contain
|
|
57
|
+
# only letters, numbers, hyphens, and underscores.
|
|
58
|
+
#
|
|
59
|
+
# @return [String, nil]
|
|
60
|
+
optional :username, String
|
|
61
|
+
|
|
62
|
+
# @!method initialize(auth_username: nil, expiration_sec: nil, from_user: nil, outbound_proxy: nil, password: nil, proxy: nil, transport: nil, username: nil)
|
|
63
|
+
# Some parameter documentations has been truncated, see
|
|
64
|
+
# {Telnyx::Models::UacExternalSettings} for more details.
|
|
65
|
+
#
|
|
66
|
+
# External SIP peer settings used by Telnyx when registering to your PBX and
|
|
67
|
+
# routing outbound calls.
|
|
68
|
+
#
|
|
69
|
+
# @param auth_username [String, nil] The authentication username used in SIP digest authentication. If not set, the U
|
|
70
|
+
#
|
|
71
|
+
# @param expiration_sec [Integer, nil] The registration interval, in seconds, indicating how often the system refreshes
|
|
72
|
+
#
|
|
73
|
+
# @param from_user [String, nil] The user portion of the SIP From header used in outbound requests. This controls
|
|
74
|
+
#
|
|
75
|
+
# @param outbound_proxy [String, nil] An optional SIP proxy used to route outbound requests before reaching the extern
|
|
76
|
+
#
|
|
77
|
+
# @param password [String] The SIP password used for digest authentication with the external SIP peer.
|
|
78
|
+
#
|
|
79
|
+
# @param proxy [String] The SIP proxy address of the external SIP peer used for registrations and outbou
|
|
80
|
+
#
|
|
81
|
+
# @param transport [Symbol, Telnyx::Models::UacExternalSettings::Transport, nil] The transport protocol used for SIP signaling when communicating with the extern
|
|
82
|
+
#
|
|
83
|
+
# @param username [String] The SIP username used to authenticate with the external SIP peer for registratio
|
|
84
|
+
|
|
85
|
+
# The transport protocol used for SIP signaling when communicating with the
|
|
86
|
+
# external SIP peer. One of UDP, TLS, or TCP.
|
|
87
|
+
#
|
|
88
|
+
# @see Telnyx::Models::UacExternalSettings#transport
|
|
89
|
+
module Transport
|
|
90
|
+
extend Telnyx::Internal::Type::Enum
|
|
91
|
+
|
|
92
|
+
UDP = :UDP
|
|
93
|
+
TLS = :TLS
|
|
94
|
+
TCP = :TCP
|
|
95
|
+
|
|
96
|
+
# @!method self.values
|
|
97
|
+
# @return [Array<Symbol>]
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class UacInbound < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute ani_number_format
|
|
7
|
+
# This setting allows you to set the format with which the caller's number (ANI)
|
|
8
|
+
# is sent for inbound phone calls.
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, Telnyx::Models::UacInbound::AniNumberFormat, nil]
|
|
11
|
+
optional :ani_number_format, enum: -> { Telnyx::UacInbound::AniNumberFormat }
|
|
12
|
+
|
|
13
|
+
# @!attribute channel_limit
|
|
14
|
+
# When set, this will limit the total number of inbound calls to phone numbers
|
|
15
|
+
# associated with this connection.
|
|
16
|
+
#
|
|
17
|
+
# @return [Integer, nil]
|
|
18
|
+
optional :channel_limit, Integer
|
|
19
|
+
|
|
20
|
+
# @!attribute codecs
|
|
21
|
+
# Defines the list of codecs that Telnyx will send for inbound calls to a specific
|
|
22
|
+
# number on your portal account, in priority order. This only works when the
|
|
23
|
+
# Connection the number is assigned to uses Media Handling mode: default. OPUS and
|
|
24
|
+
# H.264 codecs are available only when using TCP or TLS transport for SIP.
|
|
25
|
+
#
|
|
26
|
+
# @return [Array<String>, nil]
|
|
27
|
+
optional :codecs, Telnyx::Internal::Type::ArrayOf[String]
|
|
28
|
+
|
|
29
|
+
# @!attribute default_routing_method
|
|
30
|
+
# Default routing method to be used when a number is associated with the
|
|
31
|
+
# connection. Must be one of the routing method types or left blank, other values
|
|
32
|
+
# are not allowed.
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, Telnyx::Models::UacInbound::DefaultRoutingMethod, nil]
|
|
35
|
+
optional :default_routing_method, enum: -> { Telnyx::UacInbound::DefaultRoutingMethod }
|
|
36
|
+
|
|
37
|
+
# @!attribute dnis_number_format
|
|
38
|
+
#
|
|
39
|
+
# @return [Symbol, Telnyx::Models::UacInbound::DnisNumberFormat, nil]
|
|
40
|
+
optional :dnis_number_format, enum: -> { Telnyx::UacInbound::DnisNumberFormat }
|
|
41
|
+
|
|
42
|
+
# @!attribute generate_ringback_tone
|
|
43
|
+
# Generate ringback tone through 183 session progress message with early media.
|
|
44
|
+
#
|
|
45
|
+
# @return [Boolean, nil]
|
|
46
|
+
optional :generate_ringback_tone, Telnyx::Internal::Type::Boolean
|
|
47
|
+
|
|
48
|
+
# @!attribute isup_headers_enabled
|
|
49
|
+
# When set, inbound phone calls will receive ISUP parameters via SIP headers.
|
|
50
|
+
# (Only when available and only when using TCP or TLS transport.)
|
|
51
|
+
#
|
|
52
|
+
# @return [Boolean, nil]
|
|
53
|
+
optional :isup_headers_enabled, Telnyx::Internal::Type::Boolean
|
|
54
|
+
|
|
55
|
+
# @!attribute prack_enabled
|
|
56
|
+
# Enable PRACK messages as defined in RFC3262.
|
|
57
|
+
#
|
|
58
|
+
# @return [Boolean, nil]
|
|
59
|
+
optional :prack_enabled, Telnyx::Internal::Type::Boolean
|
|
60
|
+
|
|
61
|
+
# @!attribute shaken_stir_enabled
|
|
62
|
+
# When enabled the SIP Connection will receive the Identity header with
|
|
63
|
+
# Shaken/Stir data in the SIP INVITE message of inbound calls, even when using UDP
|
|
64
|
+
# transport.
|
|
65
|
+
#
|
|
66
|
+
# @return [Boolean, nil]
|
|
67
|
+
optional :shaken_stir_enabled, Telnyx::Internal::Type::Boolean
|
|
68
|
+
|
|
69
|
+
# @!attribute simultaneous_ringing
|
|
70
|
+
# When enabled, allows multiple devices to ring simultaneously on incoming calls.
|
|
71
|
+
#
|
|
72
|
+
# @return [Symbol, Telnyx::Models::UacInbound::SimultaneousRinging, nil]
|
|
73
|
+
optional :simultaneous_ringing, enum: -> { Telnyx::UacInbound::SimultaneousRinging }
|
|
74
|
+
|
|
75
|
+
# @!attribute sip_compact_headers_enabled
|
|
76
|
+
# Defaults to true.
|
|
77
|
+
#
|
|
78
|
+
# @return [Boolean, nil]
|
|
79
|
+
optional :sip_compact_headers_enabled, Telnyx::Internal::Type::Boolean
|
|
80
|
+
|
|
81
|
+
# @!attribute sip_subdomain
|
|
82
|
+
# The Telnyx-generated SIP subdomain for this UAC connection.
|
|
83
|
+
#
|
|
84
|
+
# @return [String, nil]
|
|
85
|
+
optional :sip_subdomain, String
|
|
86
|
+
|
|
87
|
+
# @!attribute sip_subdomain_receive_settings
|
|
88
|
+
# Controls which SIP URI callers may reach this connection.
|
|
89
|
+
#
|
|
90
|
+
# @return [Symbol, Telnyx::Models::UacInbound::SipSubdomainReceiveSettings, nil]
|
|
91
|
+
optional :sip_subdomain_receive_settings, enum: -> { Telnyx::UacInbound::SipSubdomainReceiveSettings }
|
|
92
|
+
|
|
93
|
+
# @!attribute timeout_1xx_secs
|
|
94
|
+
# Time(sec) before aborting if connection is not made.
|
|
95
|
+
#
|
|
96
|
+
# @return [Integer, nil]
|
|
97
|
+
optional :timeout_1xx_secs, Integer
|
|
98
|
+
|
|
99
|
+
# @!attribute timeout_2xx_secs
|
|
100
|
+
# Time(sec) before aborting if call is unanswered (min: 1, max: 600).
|
|
101
|
+
#
|
|
102
|
+
# @return [Integer, nil]
|
|
103
|
+
optional :timeout_2xx_secs, Integer
|
|
104
|
+
|
|
105
|
+
# @!method initialize(ani_number_format: nil, channel_limit: nil, codecs: nil, default_routing_method: nil, dnis_number_format: nil, generate_ringback_tone: nil, isup_headers_enabled: nil, prack_enabled: nil, shaken_stir_enabled: nil, simultaneous_ringing: nil, sip_compact_headers_enabled: nil, sip_subdomain: nil, sip_subdomain_receive_settings: nil, timeout_1xx_secs: nil, timeout_2xx_secs: nil)
|
|
106
|
+
# Some parameter documentations has been truncated, see
|
|
107
|
+
# {Telnyx::Models::UacInbound} for more details.
|
|
108
|
+
#
|
|
109
|
+
# @param ani_number_format [Symbol, Telnyx::Models::UacInbound::AniNumberFormat] This setting allows you to set the format with which the caller's number (ANI) i
|
|
110
|
+
#
|
|
111
|
+
# @param channel_limit [Integer] When set, this will limit the total number of inbound calls to phone numbers ass
|
|
112
|
+
#
|
|
113
|
+
# @param codecs [Array<String>] Defines the list of codecs that Telnyx will send for inbound calls to a specific
|
|
114
|
+
#
|
|
115
|
+
# @param default_routing_method [Symbol, Telnyx::Models::UacInbound::DefaultRoutingMethod] Default routing method to be used when a number is associated with the connectio
|
|
116
|
+
#
|
|
117
|
+
# @param dnis_number_format [Symbol, Telnyx::Models::UacInbound::DnisNumberFormat]
|
|
118
|
+
#
|
|
119
|
+
# @param generate_ringback_tone [Boolean] Generate ringback tone through 183 session progress message with early media.
|
|
120
|
+
#
|
|
121
|
+
# @param isup_headers_enabled [Boolean] When set, inbound phone calls will receive ISUP parameters via SIP headers. (Onl
|
|
122
|
+
#
|
|
123
|
+
# @param prack_enabled [Boolean] Enable PRACK messages as defined in RFC3262.
|
|
124
|
+
#
|
|
125
|
+
# @param shaken_stir_enabled [Boolean] When enabled the SIP Connection will receive the Identity header with Shaken/Sti
|
|
126
|
+
#
|
|
127
|
+
# @param simultaneous_ringing [Symbol, Telnyx::Models::UacInbound::SimultaneousRinging] When enabled, allows multiple devices to ring simultaneously on incoming calls.
|
|
128
|
+
#
|
|
129
|
+
# @param sip_compact_headers_enabled [Boolean] Defaults to true.
|
|
130
|
+
#
|
|
131
|
+
# @param sip_subdomain [String] The Telnyx-generated SIP subdomain for this UAC connection.
|
|
132
|
+
#
|
|
133
|
+
# @param sip_subdomain_receive_settings [Symbol, Telnyx::Models::UacInbound::SipSubdomainReceiveSettings] Controls which SIP URI callers may reach this connection.
|
|
134
|
+
#
|
|
135
|
+
# @param timeout_1xx_secs [Integer] Time(sec) before aborting if connection is not made.
|
|
136
|
+
#
|
|
137
|
+
# @param timeout_2xx_secs [Integer] Time(sec) before aborting if call is unanswered (min: 1, max: 600).
|
|
138
|
+
|
|
139
|
+
# This setting allows you to set the format with which the caller's number (ANI)
|
|
140
|
+
# is sent for inbound phone calls.
|
|
141
|
+
#
|
|
142
|
+
# @see Telnyx::Models::UacInbound#ani_number_format
|
|
143
|
+
module AniNumberFormat
|
|
144
|
+
extend Telnyx::Internal::Type::Enum
|
|
145
|
+
|
|
146
|
+
PLUS_E_164 = :"+E.164"
|
|
147
|
+
E_164 = :"E.164"
|
|
148
|
+
PLUS_E_164_NATIONAL = :"+E.164-national"
|
|
149
|
+
E_164_NATIONAL = :"E.164-national"
|
|
150
|
+
|
|
151
|
+
# @!method self.values
|
|
152
|
+
# @return [Array<Symbol>]
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Default routing method to be used when a number is associated with the
|
|
156
|
+
# connection. Must be one of the routing method types or left blank, other values
|
|
157
|
+
# are not allowed.
|
|
158
|
+
#
|
|
159
|
+
# @see Telnyx::Models::UacInbound#default_routing_method
|
|
160
|
+
module DefaultRoutingMethod
|
|
161
|
+
extend Telnyx::Internal::Type::Enum
|
|
162
|
+
|
|
163
|
+
SEQUENTIAL = :sequential
|
|
164
|
+
ROUND_ROBIN = :"round-robin"
|
|
165
|
+
|
|
166
|
+
# @!method self.values
|
|
167
|
+
# @return [Array<Symbol>]
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# @see Telnyx::Models::UacInbound#dnis_number_format
|
|
171
|
+
module DnisNumberFormat
|
|
172
|
+
extend Telnyx::Internal::Type::Enum
|
|
173
|
+
|
|
174
|
+
PLUS_E164 = :"+e164"
|
|
175
|
+
E164 = :e164
|
|
176
|
+
NATIONAL = :national
|
|
177
|
+
SIP_USERNAME = :sip_username
|
|
178
|
+
|
|
179
|
+
# @!method self.values
|
|
180
|
+
# @return [Array<Symbol>]
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# When enabled, allows multiple devices to ring simultaneously on incoming calls.
|
|
184
|
+
#
|
|
185
|
+
# @see Telnyx::Models::UacInbound#simultaneous_ringing
|
|
186
|
+
module SimultaneousRinging
|
|
187
|
+
extend Telnyx::Internal::Type::Enum
|
|
188
|
+
|
|
189
|
+
DISABLED = :disabled
|
|
190
|
+
ENABLED = :enabled
|
|
191
|
+
|
|
192
|
+
# @!method self.values
|
|
193
|
+
# @return [Array<Symbol>]
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Controls which SIP URI callers may reach this connection.
|
|
197
|
+
#
|
|
198
|
+
# @see Telnyx::Models::UacInbound#sip_subdomain_receive_settings
|
|
199
|
+
module SipSubdomainReceiveSettings
|
|
200
|
+
extend Telnyx::Internal::Type::Enum
|
|
201
|
+
|
|
202
|
+
ONLY_MY_CONNECTIONS = :only_my_connections
|
|
203
|
+
FROM_ANYONE = :from_anyone
|
|
204
|
+
|
|
205
|
+
# @!method self.values
|
|
206
|
+
# @return [Array<Symbol>]
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class UacInternalSettings < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute destination_uri
|
|
7
|
+
# The SIP URI that Telnyx will call when handling an inbound request from the
|
|
8
|
+
# external peer. Do not include a `sip:` prefix. The value must be in the format
|
|
9
|
+
# `userinfo@<subdomain.>sip.telnyx.com` or
|
|
10
|
+
# `userinfo@<subdomain.>sipdev.telnyx.com`; the userinfo portion may contain only
|
|
11
|
+
# letters, digits, hyphens, and underscores.
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :destination_uri, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(destination_uri: nil)
|
|
17
|
+
# Some parameter documentations has been truncated, see
|
|
18
|
+
# {Telnyx::Models::UacInternalSettings} for more details.
|
|
19
|
+
#
|
|
20
|
+
# Internal Telnyx-side settings for a UAC connection.
|
|
21
|
+
#
|
|
22
|
+
# @param destination_uri [String] The SIP URI that Telnyx will call when handling an inbound request from the exte
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class UacOutbound < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute ani_override
|
|
7
|
+
# Set a phone number as the ani_override value to override caller id number on
|
|
8
|
+
# outbound calls.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :ani_override, String
|
|
12
|
+
|
|
13
|
+
# @!attribute ani_override_type
|
|
14
|
+
# Specifies when we apply your ani_override setting. Only applies when
|
|
15
|
+
# ani_override is not blank.
|
|
16
|
+
#
|
|
17
|
+
# @return [Symbol, Telnyx::Models::UacOutbound::AniOverrideType, nil]
|
|
18
|
+
optional :ani_override_type, enum: -> { Telnyx::UacOutbound::AniOverrideType }
|
|
19
|
+
|
|
20
|
+
# @!attribute call_parking_enabled
|
|
21
|
+
# Forces all SIP calls originated on this connection to be "parked" instead of
|
|
22
|
+
# "bridged" to the destination specified on the URI. Parked calls will return
|
|
23
|
+
# ringback to the caller and will await for a Call Control command to define which
|
|
24
|
+
# action will be taken next.
|
|
25
|
+
#
|
|
26
|
+
# @return [Boolean, nil]
|
|
27
|
+
optional :call_parking_enabled, Telnyx::Internal::Type::Boolean, nil?: true
|
|
28
|
+
|
|
29
|
+
# @!attribute channel_limit
|
|
30
|
+
# When set, this will limit the total number of outbound calls to phone numbers
|
|
31
|
+
# associated with this connection.
|
|
32
|
+
#
|
|
33
|
+
# @return [Integer, nil]
|
|
34
|
+
optional :channel_limit, Integer
|
|
35
|
+
|
|
36
|
+
# @!attribute generate_ringback_tone
|
|
37
|
+
# Generate ringback tone through 183 session progress message with early media.
|
|
38
|
+
#
|
|
39
|
+
# @return [Boolean, nil]
|
|
40
|
+
optional :generate_ringback_tone, Telnyx::Internal::Type::Boolean
|
|
41
|
+
|
|
42
|
+
# @!attribute instant_ringback_enabled
|
|
43
|
+
# When set, ringback will not wait for indication before sending ringback tone to
|
|
44
|
+
# calling party.
|
|
45
|
+
#
|
|
46
|
+
# @return [Boolean, nil]
|
|
47
|
+
optional :instant_ringback_enabled, Telnyx::Internal::Type::Boolean
|
|
48
|
+
|
|
49
|
+
# @!attribute localization
|
|
50
|
+
# A 2-character country code specifying the country whose national dialing rules
|
|
51
|
+
# should be used. For example, if set to `US` then any US number can be dialed
|
|
52
|
+
# without preprending +1 to the number. When left blank, Telnyx will try US and GB
|
|
53
|
+
# dialing rules, in that order, by default.
|
|
54
|
+
#
|
|
55
|
+
# @return [String, nil]
|
|
56
|
+
optional :localization, String
|
|
57
|
+
|
|
58
|
+
# @!attribute outbound_voice_profile_id
|
|
59
|
+
# Identifies the associated outbound voice profile.
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
optional :outbound_voice_profile_id, String
|
|
63
|
+
|
|
64
|
+
# @!attribute t38_reinvite_source
|
|
65
|
+
# This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
66
|
+
# setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By
|
|
67
|
+
# default, Telnyx will send the re-invite. If set to `customer`, the caller is
|
|
68
|
+
# expected to send the t.38 reinvite.
|
|
69
|
+
#
|
|
70
|
+
# @return [Symbol, Telnyx::Models::UacOutbound::T38ReinviteSource, nil]
|
|
71
|
+
optional :t38_reinvite_source, enum: -> { Telnyx::UacOutbound::T38ReinviteSource }
|
|
72
|
+
|
|
73
|
+
# @!method initialize(ani_override: nil, ani_override_type: nil, call_parking_enabled: nil, channel_limit: nil, generate_ringback_tone: nil, instant_ringback_enabled: nil, localization: nil, outbound_voice_profile_id: nil, t38_reinvite_source: nil)
|
|
74
|
+
# Some parameter documentations has been truncated, see
|
|
75
|
+
# {Telnyx::Models::UacOutbound} for more details.
|
|
76
|
+
#
|
|
77
|
+
# @param ani_override [String] Set a phone number as the ani_override value to override caller id number on out
|
|
78
|
+
#
|
|
79
|
+
# @param ani_override_type [Symbol, Telnyx::Models::UacOutbound::AniOverrideType] Specifies when we apply your ani_override setting. Only applies when ani_overrid
|
|
80
|
+
#
|
|
81
|
+
# @param call_parking_enabled [Boolean, nil] Forces all SIP calls originated on this connection to be "parked" instead of "br
|
|
82
|
+
#
|
|
83
|
+
# @param channel_limit [Integer] When set, this will limit the total number of outbound calls to phone numbers as
|
|
84
|
+
#
|
|
85
|
+
# @param generate_ringback_tone [Boolean] Generate ringback tone through 183 session progress message with early media.
|
|
86
|
+
#
|
|
87
|
+
# @param instant_ringback_enabled [Boolean] When set, ringback will not wait for indication before sending ringback tone to
|
|
88
|
+
#
|
|
89
|
+
# @param localization [String] A 2-character country code specifying the country whose national dialing rules s
|
|
90
|
+
#
|
|
91
|
+
# @param outbound_voice_profile_id [String] Identifies the associated outbound voice profile.
|
|
92
|
+
#
|
|
93
|
+
# @param t38_reinvite_source [Symbol, Telnyx::Models::UacOutbound::T38ReinviteSource] This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
94
|
+
|
|
95
|
+
# Specifies when we apply your ani_override setting. Only applies when
|
|
96
|
+
# ani_override is not blank.
|
|
97
|
+
#
|
|
98
|
+
# @see Telnyx::Models::UacOutbound#ani_override_type
|
|
99
|
+
module AniOverrideType
|
|
100
|
+
extend Telnyx::Internal::Type::Enum
|
|
101
|
+
|
|
102
|
+
ALWAYS = :always
|
|
103
|
+
NORMAL = :normal
|
|
104
|
+
EMERGENCY = :emergency
|
|
105
|
+
|
|
106
|
+
# @!method self.values
|
|
107
|
+
# @return [Array<Symbol>]
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# This setting only affects connections with Fax-type Outbound Voice Profiles. The
|
|
111
|
+
# setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By
|
|
112
|
+
# default, Telnyx will send the re-invite. If set to `customer`, the caller is
|
|
113
|
+
# expected to send the t.38 reinvite.
|
|
114
|
+
#
|
|
115
|
+
# @see Telnyx::Models::UacOutbound#t38_reinvite_source
|
|
116
|
+
module T38ReinviteSource
|
|
117
|
+
extend Telnyx::Internal::Type::Enum
|
|
118
|
+
|
|
119
|
+
TELNYX = :telnyx
|
|
120
|
+
CUSTOMER = :customer
|
|
121
|
+
DISABLED = :disabled
|
|
122
|
+
PASSTHRU = :passthru
|
|
123
|
+
CALLER_PASSTHRU = :"caller-passthru"
|
|
124
|
+
CALLEE_PASSTHRU = :"callee-passthru"
|
|
125
|
+
|
|
126
|
+
# @!method self.values
|
|
127
|
+
# @return [Array<Symbol>]
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
end
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::VirtualCrossConnects#list
|
|
6
|
+
class VirtualCrossConnectCombined < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute bandwidth_mbps
|
|
8
|
+
# The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
|
|
9
|
+
# Connect.
|
|
10
|
+
#
|
|
11
|
+
# @return [Float, nil]
|
|
12
|
+
optional :bandwidth_mbps, Float
|
|
13
|
+
|
|
14
|
+
# @!attribute bgp_asn
|
|
15
|
+
# The Border Gateway Protocol (BGP) Autonomous System Number (ASN).
|
|
16
|
+
#
|
|
17
|
+
# @return [Float, nil]
|
|
18
|
+
optional :bgp_asn, Float
|
|
19
|
+
|
|
20
|
+
# @!attribute cloud_provider
|
|
21
|
+
# The Virtual Private Cloud with which you would like to establish a cross
|
|
22
|
+
# connect.
|
|
23
|
+
#
|
|
24
|
+
# @return [Symbol, Telnyx::Models::VirtualCrossConnectCombined::CloudProvider, nil]
|
|
25
|
+
optional :cloud_provider, enum: -> { Telnyx::VirtualCrossConnectCombined::CloudProvider }
|
|
26
|
+
|
|
27
|
+
# @!attribute cloud_provider_region
|
|
28
|
+
# The region where your Virtual Private Cloud hosts are located.
|
|
29
|
+
#
|
|
30
|
+
# @return [String, nil]
|
|
31
|
+
optional :cloud_provider_region, String
|
|
32
|
+
|
|
33
|
+
# @!attribute name
|
|
34
|
+
# A user specified name for the interface.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :name, String
|
|
38
|
+
|
|
39
|
+
# @!attribute network_id
|
|
40
|
+
# The id of the network associated with the interface.
|
|
41
|
+
#
|
|
42
|
+
# @return [String, nil]
|
|
43
|
+
optional :network_id, String
|
|
44
|
+
|
|
45
|
+
# @!attribute primary_bgp_key
|
|
46
|
+
# The authentication key for BGP peer configuration.
|
|
47
|
+
#
|
|
48
|
+
# @return [String, nil]
|
|
49
|
+
optional :primary_bgp_key, String
|
|
50
|
+
|
|
51
|
+
# @!attribute primary_cloud_account_id
|
|
52
|
+
# The identifier for your Virtual Private Cloud.
|
|
53
|
+
#
|
|
54
|
+
# @return [String, nil]
|
|
55
|
+
optional :primary_cloud_account_id, String
|
|
56
|
+
|
|
57
|
+
# @!attribute primary_cloud_ip
|
|
58
|
+
# The IP address assigned for your side of the Virtual Cross Connect.
|
|
59
|
+
#
|
|
60
|
+
# @return [String, nil]
|
|
61
|
+
optional :primary_cloud_ip, String
|
|
62
|
+
|
|
63
|
+
# @!attribute primary_enabled
|
|
64
|
+
# Indicates whether the primary circuit is enabled.
|
|
65
|
+
#
|
|
66
|
+
# @return [Boolean, nil]
|
|
67
|
+
optional :primary_enabled, Telnyx::Internal::Type::Boolean
|
|
68
|
+
|
|
69
|
+
# @!attribute primary_routing_announcement
|
|
70
|
+
# Whether
|
|
71
|
+
#
|
|
72
|
+
# @return [Boolean, nil]
|
|
73
|
+
optional :primary_routing_announcement, Telnyx::Internal::Type::Boolean
|
|
74
|
+
|
|
75
|
+
# @!attribute primary_telnyx_ip
|
|
76
|
+
# The IP address assigned to the Telnyx side of the Virtual Cross Connect.
|
|
77
|
+
#
|
|
78
|
+
# @return [String, nil]
|
|
79
|
+
optional :primary_telnyx_ip, String
|
|
80
|
+
|
|
81
|
+
# @!attribute region
|
|
82
|
+
#
|
|
83
|
+
# @return [Telnyx::Models::VirtualCrossConnectCombined::Region, nil]
|
|
84
|
+
optional :region, -> { Telnyx::VirtualCrossConnectCombined::Region }
|
|
85
|
+
|
|
86
|
+
# @!attribute region_code
|
|
87
|
+
# The region interface is deployed to.
|
|
88
|
+
#
|
|
89
|
+
# @return [String, nil]
|
|
90
|
+
optional :region_code, String
|
|
91
|
+
|
|
92
|
+
response_only do
|
|
93
|
+
# @!attribute id
|
|
94
|
+
# Identifies the resource.
|
|
95
|
+
#
|
|
96
|
+
# @return [String, nil]
|
|
97
|
+
optional :id, String
|
|
98
|
+
|
|
99
|
+
# @!attribute created_at
|
|
100
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
101
|
+
#
|
|
102
|
+
# @return [String, nil]
|
|
103
|
+
optional :created_at, String
|
|
104
|
+
|
|
105
|
+
# @!attribute record_type
|
|
106
|
+
# Identifies the type of the resource.
|
|
107
|
+
#
|
|
108
|
+
# @return [String, nil]
|
|
109
|
+
optional :record_type, String
|
|
110
|
+
|
|
111
|
+
# @!attribute status
|
|
112
|
+
# The current status of the interface deployment.
|
|
113
|
+
#
|
|
114
|
+
# @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
|
|
115
|
+
optional :status, enum: -> { Telnyx::InterfaceStatus }
|
|
116
|
+
|
|
117
|
+
# @!attribute updated_at
|
|
118
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
119
|
+
#
|
|
120
|
+
# @return [String, nil]
|
|
121
|
+
optional :updated_at, String
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# @!method initialize(id: nil, bandwidth_mbps: nil, bgp_asn: nil, cloud_provider: nil, cloud_provider_region: nil, created_at: nil, name: nil, network_id: nil, primary_bgp_key: nil, primary_cloud_account_id: nil, primary_cloud_ip: nil, primary_enabled: nil, primary_routing_announcement: nil, primary_telnyx_ip: nil, record_type: nil, region: nil, region_code: nil, status: nil, updated_at: nil)
|
|
125
|
+
# Some parameter documentations has been truncated, see
|
|
126
|
+
# {Telnyx::Models::VirtualCrossConnectCombined} for more details.
|
|
127
|
+
#
|
|
128
|
+
# @param id [String] Identifies the resource.
|
|
129
|
+
#
|
|
130
|
+
# @param bandwidth_mbps [Float] The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Conn
|
|
131
|
+
#
|
|
132
|
+
# @param bgp_asn [Float] The Border Gateway Protocol (BGP) Autonomous System Number (ASN).
|
|
133
|
+
#
|
|
134
|
+
# @param cloud_provider [Symbol, Telnyx::Models::VirtualCrossConnectCombined::CloudProvider] The Virtual Private Cloud with which you would like to establish a cross connect
|
|
135
|
+
#
|
|
136
|
+
# @param cloud_provider_region [String] The region where your Virtual Private Cloud hosts are located.
|
|
137
|
+
#
|
|
138
|
+
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
139
|
+
#
|
|
140
|
+
# @param name [String] A user specified name for the interface.
|
|
141
|
+
#
|
|
142
|
+
# @param network_id [String] The id of the network associated with the interface.
|
|
143
|
+
#
|
|
144
|
+
# @param primary_bgp_key [String] The authentication key for BGP peer configuration.
|
|
145
|
+
#
|
|
146
|
+
# @param primary_cloud_account_id [String] The identifier for your Virtual Private Cloud.
|
|
147
|
+
#
|
|
148
|
+
# @param primary_cloud_ip [String] The IP address assigned for your side of the Virtual Cross Connect.
|
|
149
|
+
#
|
|
150
|
+
# @param primary_enabled [Boolean] Indicates whether the primary circuit is enabled.
|
|
151
|
+
#
|
|
152
|
+
# @param primary_routing_announcement [Boolean] Whether
|
|
153
|
+
#
|
|
154
|
+
# @param primary_telnyx_ip [String] The IP address assigned to the Telnyx side of the Virtual Cross Connect.
|
|
155
|
+
#
|
|
156
|
+
# @param record_type [String] Identifies the type of the resource.
|
|
157
|
+
#
|
|
158
|
+
# @param region [Telnyx::Models::VirtualCrossConnectCombined::Region]
|
|
159
|
+
#
|
|
160
|
+
# @param region_code [String] The region interface is deployed to.
|
|
161
|
+
#
|
|
162
|
+
# @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
|
|
163
|
+
#
|
|
164
|
+
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
165
|
+
|
|
166
|
+
# The Virtual Private Cloud with which you would like to establish a cross
|
|
167
|
+
# connect.
|
|
168
|
+
#
|
|
169
|
+
# @see Telnyx::Models::VirtualCrossConnectCombined#cloud_provider
|
|
170
|
+
module CloudProvider
|
|
171
|
+
extend Telnyx::Internal::Type::Enum
|
|
172
|
+
|
|
173
|
+
AWS = :aws
|
|
174
|
+
AZURE = :azure
|
|
175
|
+
GCE = :gce
|
|
176
|
+
|
|
177
|
+
# @!method self.values
|
|
178
|
+
# @return [Array<Symbol>]
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# @see Telnyx::Models::VirtualCrossConnectCombined#region
|
|
182
|
+
class Region < Telnyx::Internal::Type::BaseModel
|
|
183
|
+
# @!attribute code
|
|
184
|
+
# Region code of the interface.
|
|
185
|
+
#
|
|
186
|
+
# @return [String, nil]
|
|
187
|
+
optional :code, String
|
|
188
|
+
|
|
189
|
+
# @!attribute name
|
|
190
|
+
# Region name of the interface.
|
|
191
|
+
#
|
|
192
|
+
# @return [String, nil]
|
|
193
|
+
optional :name, String
|
|
194
|
+
|
|
195
|
+
response_only do
|
|
196
|
+
# @!attribute record_type
|
|
197
|
+
# Identifies the type of the resource.
|
|
198
|
+
#
|
|
199
|
+
# @return [String, nil]
|
|
200
|
+
optional :record_type, String
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# @!method initialize(code: nil, name: nil, record_type: nil)
|
|
204
|
+
# @param code [String] Region code of the interface.
|
|
205
|
+
#
|
|
206
|
+
# @param name [String] Region name of the interface.
|
|
207
|
+
#
|
|
208
|
+
# @param record_type [String] Identifies the type of the resource.
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
end
|