telnyx 5.150.0 → 5.151.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 +7 -0
- data/README.md +10 -1
- data/lib/telnyx/models/ai_retrieve_conversation_histories_params.rb +22 -48
- data/lib/telnyx/models/ai_retrieve_conversation_histories_response.rb +10 -50
- data/lib/telnyx/models/calls/deepgram_nova2_config.rb +23 -1
- data/lib/telnyx/models/calls/deepgram_nova3_config.rb +22 -1
- data/lib/telnyx/models/calls/transcription_start_request.rb +5 -3
- data/lib/telnyx/models/public_internet_gateway.rb +24 -1
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +9 -69
- data/lib/telnyx/models/virtual_cross_connect_create.rb +176 -2
- data/lib/telnyx/models/wireguard_interface.rb +24 -1
- data/lib/telnyx/resources/ai.rb +20 -21
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +1 -0
- data/rbi/telnyx/models/ai_retrieve_conversation_histories_params.rbi +30 -97
- data/rbi/telnyx/models/ai_retrieve_conversation_histories_response.rbi +10 -85
- data/rbi/telnyx/models/calls/deepgram_nova2_config.rbi +34 -0
- data/rbi/telnyx/models/calls/deepgram_nova3_config.rbi +32 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +5 -0
- data/rbi/telnyx/models/public_internet_gateway.rbi +45 -3
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +12 -189
- data/rbi/telnyx/models/virtual_cross_connect_create.rbi +265 -7
- data/rbi/telnyx/models/wireguard_interface.rbi +48 -3
- data/rbi/telnyx/models.rbi +0 -7
- data/rbi/telnyx/resources/ai.rbi +21 -28
- data/rbi/telnyx/resources/calls/actions.rbi +1 -0
- data/sig/telnyx/models/ai_retrieve_conversation_histories_params.rbs +15 -34
- data/sig/telnyx/models/ai_retrieve_conversation_histories_response.rbs +0 -24
- data/sig/telnyx/models/calls/deepgram_nova2_config.rbs +14 -0
- data/sig/telnyx/models/calls/deepgram_nova3_config.rbs +14 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +1 -0
- data/sig/telnyx/models/public_internet_gateway.rbs +32 -3
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +15 -63
- data/sig/telnyx/models/virtual_cross_connect_create.rbs +138 -7
- data/sig/telnyx/models/wireguard_interface.rbs +34 -3
- data/sig/telnyx/models.rbs +0 -1
- data/sig/telnyx/resources/ai.rbs +2 -3
- metadata +2 -38
- data/lib/telnyx/models/dir/phone_number_create_params.rb +0 -47
- data/lib/telnyx/models/dir/phone_number_create_response.rb +0 -32
- data/lib/telnyx/models/dir/phone_number_delete_all_params.rb +0 -28
- data/lib/telnyx/models/dir/phone_number_delete_all_response.rb +0 -103
- data/lib/telnyx/models/dir_loa_params.rb +0 -79
- data/lib/telnyx/models/dir_retrieve_document_types_params.rb +0 -14
- data/lib/telnyx/models/dir_retrieve_document_types_response.rb +0 -51
- data/lib/telnyx/models/dir_retrieve_infringement_claims_params.rb +0 -40
- data/lib/telnyx/models/dir_retrieve_infringement_claims_response.rb +0 -30
- data/lib/telnyx/models/dir_update_infringement_update_params.rb +0 -134
- data/lib/telnyx/models/enterprises/reputation/loa_create_params.rb +0 -146
- data/lib/telnyx/models/enterprises/reputation/loa_patch_all_params.rb +0 -38
- data/rbi/telnyx/models/dir/phone_number_create_params.rbi +0 -72
- data/rbi/telnyx/models/dir/phone_number_create_response.rbi +0 -48
- data/rbi/telnyx/models/dir/phone_number_delete_all_params.rbi +0 -48
- data/rbi/telnyx/models/dir/phone_number_delete_all_response.rbi +0 -206
- data/rbi/telnyx/models/dir_loa_params.rbi +0 -120
- data/rbi/telnyx/models/dir_retrieve_document_types_params.rbi +0 -30
- data/rbi/telnyx/models/dir_retrieve_document_types_response.rbi +0 -103
- data/rbi/telnyx/models/dir_retrieve_infringement_claims_params.rbi +0 -66
- data/rbi/telnyx/models/dir_retrieve_infringement_claims_response.rbi +0 -55
- data/rbi/telnyx/models/dir_update_infringement_update_params.rbi +0 -256
- data/rbi/telnyx/models/enterprises/reputation/loa_create_params.rbi +0 -238
- data/rbi/telnyx/models/enterprises/reputation/loa_patch_all_params.rbi +0 -60
- data/sig/telnyx/models/dir/phone_number_create_params.rbs +0 -38
- data/sig/telnyx/models/dir/phone_number_create_response.rbs +0 -16
- data/sig/telnyx/models/dir/phone_number_delete_all_params.rbs +0 -30
- data/sig/telnyx/models/dir/phone_number_delete_all_response.rbs +0 -86
- data/sig/telnyx/models/dir_loa_params.rbs +0 -61
- data/sig/telnyx/models/dir_retrieve_document_types_params.rbs +0 -15
- data/sig/telnyx/models/dir_retrieve_document_types_response.rbs +0 -41
- data/sig/telnyx/models/dir_retrieve_infringement_claims_params.rbs +0 -36
- data/sig/telnyx/models/dir_retrieve_infringement_claims_response.rbs +0 -25
- data/sig/telnyx/models/dir_update_infringement_update_params.rbs +0 -111
- data/sig/telnyx/models/enterprises/reputation/loa_create_params.rbs +0 -135
- data/sig/telnyx/models/enterprises/reputation/loa_patch_all_params.rbs +0 -32
|
@@ -484,21 +484,10 @@ module Telnyx
|
|
|
484
484
|
|
|
485
485
|
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
486
486
|
# defined when separated by a space.
|
|
487
|
-
sig
|
|
488
|
-
returns(
|
|
489
|
-
T.nilable(
|
|
490
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::OrSymbol
|
|
491
|
-
)
|
|
492
|
-
)
|
|
493
|
-
end
|
|
487
|
+
sig { returns(T.nilable(String)) }
|
|
494
488
|
attr_reader :status_callback_event
|
|
495
489
|
|
|
496
|
-
sig
|
|
497
|
-
params(
|
|
498
|
-
status_callback_event:
|
|
499
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::OrSymbol
|
|
500
|
-
).void
|
|
501
|
-
end
|
|
490
|
+
sig { params(status_callback_event: String).void }
|
|
502
491
|
attr_writer :status_callback_event
|
|
503
492
|
|
|
504
493
|
# HTTP request type used for `StatusCallback`.
|
|
@@ -664,8 +653,7 @@ module Telnyx
|
|
|
664
653
|
sip_region:
|
|
665
654
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::SipRegion::OrSymbol,
|
|
666
655
|
status_callback: String,
|
|
667
|
-
status_callback_event:
|
|
668
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::OrSymbol,
|
|
656
|
+
status_callback_event: String,
|
|
669
657
|
status_callback_method:
|
|
670
658
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackMethod::OrSymbol,
|
|
671
659
|
supervise_call_sid: String,
|
|
@@ -862,8 +850,7 @@ module Telnyx
|
|
|
862
850
|
sip_region:
|
|
863
851
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::SipRegion::OrSymbol,
|
|
864
852
|
status_callback: String,
|
|
865
|
-
status_callback_event:
|
|
866
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::OrSymbol,
|
|
853
|
+
status_callback_event: String,
|
|
867
854
|
status_callback_method:
|
|
868
855
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackMethod::OrSymbol,
|
|
869
856
|
supervise_call_sid: String,
|
|
@@ -1304,52 +1291,6 @@ module Telnyx
|
|
|
1304
1291
|
end
|
|
1305
1292
|
end
|
|
1306
1293
|
|
|
1307
|
-
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
1308
|
-
# defined when separated by a space.
|
|
1309
|
-
module StatusCallbackEvent
|
|
1310
|
-
extend Telnyx::Internal::Type::Enum
|
|
1311
|
-
|
|
1312
|
-
TaggedSymbol =
|
|
1313
|
-
T.type_alias do
|
|
1314
|
-
T.all(
|
|
1315
|
-
Symbol,
|
|
1316
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent
|
|
1317
|
-
)
|
|
1318
|
-
end
|
|
1319
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1320
|
-
|
|
1321
|
-
INITIATED =
|
|
1322
|
-
T.let(
|
|
1323
|
-
:initiated,
|
|
1324
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::TaggedSymbol
|
|
1325
|
-
)
|
|
1326
|
-
RINGING =
|
|
1327
|
-
T.let(
|
|
1328
|
-
:ringing,
|
|
1329
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::TaggedSymbol
|
|
1330
|
-
)
|
|
1331
|
-
ANSWERED =
|
|
1332
|
-
T.let(
|
|
1333
|
-
:answered,
|
|
1334
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::TaggedSymbol
|
|
1335
|
-
)
|
|
1336
|
-
COMPLETED =
|
|
1337
|
-
T.let(
|
|
1338
|
-
:completed,
|
|
1339
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::TaggedSymbol
|
|
1340
|
-
)
|
|
1341
|
-
|
|
1342
|
-
sig do
|
|
1343
|
-
override.returns(
|
|
1344
|
-
T::Array[
|
|
1345
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::StatusCallbackEvent::TaggedSymbol
|
|
1346
|
-
]
|
|
1347
|
-
)
|
|
1348
|
-
end
|
|
1349
|
-
def self.values
|
|
1350
|
-
end
|
|
1351
|
-
end
|
|
1352
|
-
|
|
1353
1294
|
# HTTP request type used for `StatusCallback`.
|
|
1354
1295
|
module StatusCallbackMethod
|
|
1355
1296
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -1911,21 +1852,10 @@ module Telnyx
|
|
|
1911
1852
|
|
|
1912
1853
|
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
1913
1854
|
# defined when separated by a space.
|
|
1914
|
-
sig
|
|
1915
|
-
returns(
|
|
1916
|
-
T.nilable(
|
|
1917
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::OrSymbol
|
|
1918
|
-
)
|
|
1919
|
-
)
|
|
1920
|
-
end
|
|
1855
|
+
sig { returns(T.nilable(String)) }
|
|
1921
1856
|
attr_reader :status_callback_event
|
|
1922
1857
|
|
|
1923
|
-
sig
|
|
1924
|
-
params(
|
|
1925
|
-
status_callback_event:
|
|
1926
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::OrSymbol
|
|
1927
|
-
).void
|
|
1928
|
-
end
|
|
1858
|
+
sig { params(status_callback_event: String).void }
|
|
1929
1859
|
attr_writer :status_callback_event
|
|
1930
1860
|
|
|
1931
1861
|
# HTTP request type used for `StatusCallback`.
|
|
@@ -2091,8 +2021,7 @@ module Telnyx
|
|
|
2091
2021
|
sip_region:
|
|
2092
2022
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::SipRegion::OrSymbol,
|
|
2093
2023
|
status_callback: String,
|
|
2094
|
-
status_callback_event:
|
|
2095
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::OrSymbol,
|
|
2024
|
+
status_callback_event: String,
|
|
2096
2025
|
status_callback_method:
|
|
2097
2026
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackMethod::OrSymbol,
|
|
2098
2027
|
supervise_call_sid: String,
|
|
@@ -2290,8 +2219,7 @@ module Telnyx
|
|
|
2290
2219
|
sip_region:
|
|
2291
2220
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::SipRegion::OrSymbol,
|
|
2292
2221
|
status_callback: String,
|
|
2293
|
-
status_callback_event:
|
|
2294
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::OrSymbol,
|
|
2222
|
+
status_callback_event: String,
|
|
2295
2223
|
status_callback_method:
|
|
2296
2224
|
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackMethod::OrSymbol,
|
|
2297
2225
|
supervise_call_sid: String,
|
|
@@ -2732,52 +2660,6 @@ module Telnyx
|
|
|
2732
2660
|
end
|
|
2733
2661
|
end
|
|
2734
2662
|
|
|
2735
|
-
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
2736
|
-
# defined when separated by a space.
|
|
2737
|
-
module StatusCallbackEvent
|
|
2738
|
-
extend Telnyx::Internal::Type::Enum
|
|
2739
|
-
|
|
2740
|
-
TaggedSymbol =
|
|
2741
|
-
T.type_alias do
|
|
2742
|
-
T.all(
|
|
2743
|
-
Symbol,
|
|
2744
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent
|
|
2745
|
-
)
|
|
2746
|
-
end
|
|
2747
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2748
|
-
|
|
2749
|
-
INITIATED =
|
|
2750
|
-
T.let(
|
|
2751
|
-
:initiated,
|
|
2752
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::TaggedSymbol
|
|
2753
|
-
)
|
|
2754
|
-
RINGING =
|
|
2755
|
-
T.let(
|
|
2756
|
-
:ringing,
|
|
2757
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::TaggedSymbol
|
|
2758
|
-
)
|
|
2759
|
-
ANSWERED =
|
|
2760
|
-
T.let(
|
|
2761
|
-
:answered,
|
|
2762
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::TaggedSymbol
|
|
2763
|
-
)
|
|
2764
|
-
COMPLETED =
|
|
2765
|
-
T.let(
|
|
2766
|
-
:completed,
|
|
2767
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::TaggedSymbol
|
|
2768
|
-
)
|
|
2769
|
-
|
|
2770
|
-
sig do
|
|
2771
|
-
override.returns(
|
|
2772
|
-
T::Array[
|
|
2773
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::StatusCallbackEvent::TaggedSymbol
|
|
2774
|
-
]
|
|
2775
|
-
)
|
|
2776
|
-
end
|
|
2777
|
-
def self.values
|
|
2778
|
-
end
|
|
2779
|
-
end
|
|
2780
|
-
|
|
2781
2663
|
# HTTP request type used for `StatusCallback`.
|
|
2782
2664
|
module StatusCallbackMethod
|
|
2783
2665
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -3334,21 +3216,10 @@ module Telnyx
|
|
|
3334
3216
|
|
|
3335
3217
|
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
3336
3218
|
# defined when separated by a space.
|
|
3337
|
-
sig
|
|
3338
|
-
returns(
|
|
3339
|
-
T.nilable(
|
|
3340
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::OrSymbol
|
|
3341
|
-
)
|
|
3342
|
-
)
|
|
3343
|
-
end
|
|
3219
|
+
sig { returns(T.nilable(String)) }
|
|
3344
3220
|
attr_reader :status_callback_event
|
|
3345
3221
|
|
|
3346
|
-
sig
|
|
3347
|
-
params(
|
|
3348
|
-
status_callback_event:
|
|
3349
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::OrSymbol
|
|
3350
|
-
).void
|
|
3351
|
-
end
|
|
3222
|
+
sig { params(status_callback_event: String).void }
|
|
3352
3223
|
attr_writer :status_callback_event
|
|
3353
3224
|
|
|
3354
3225
|
# HTTP request type used for `StatusCallback`.
|
|
@@ -3516,8 +3387,7 @@ module Telnyx
|
|
|
3516
3387
|
sip_region:
|
|
3517
3388
|
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::SipRegion::OrSymbol,
|
|
3518
3389
|
status_callback: String,
|
|
3519
|
-
status_callback_event:
|
|
3520
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::OrSymbol,
|
|
3390
|
+
status_callback_event: String,
|
|
3521
3391
|
status_callback_method:
|
|
3522
3392
|
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackMethod::OrSymbol,
|
|
3523
3393
|
supervise_call_sid: String,
|
|
@@ -3713,8 +3583,7 @@ module Telnyx
|
|
|
3713
3583
|
sip_region:
|
|
3714
3584
|
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::SipRegion::OrSymbol,
|
|
3715
3585
|
status_callback: String,
|
|
3716
|
-
status_callback_event:
|
|
3717
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::OrSymbol,
|
|
3586
|
+
status_callback_event: String,
|
|
3718
3587
|
status_callback_method:
|
|
3719
3588
|
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackMethod::OrSymbol,
|
|
3720
3589
|
supervise_call_sid: String,
|
|
@@ -4156,52 +4025,6 @@ module Telnyx
|
|
|
4156
4025
|
end
|
|
4157
4026
|
end
|
|
4158
4027
|
|
|
4159
|
-
# The call events for which Telnyx should send a webhook. Multiple events can be
|
|
4160
|
-
# defined when separated by a space.
|
|
4161
|
-
module StatusCallbackEvent
|
|
4162
|
-
extend Telnyx::Internal::Type::Enum
|
|
4163
|
-
|
|
4164
|
-
TaggedSymbol =
|
|
4165
|
-
T.type_alias do
|
|
4166
|
-
T.all(
|
|
4167
|
-
Symbol,
|
|
4168
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent
|
|
4169
|
-
)
|
|
4170
|
-
end
|
|
4171
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
4172
|
-
|
|
4173
|
-
INITIATED =
|
|
4174
|
-
T.let(
|
|
4175
|
-
:initiated,
|
|
4176
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::TaggedSymbol
|
|
4177
|
-
)
|
|
4178
|
-
RINGING =
|
|
4179
|
-
T.let(
|
|
4180
|
-
:ringing,
|
|
4181
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::TaggedSymbol
|
|
4182
|
-
)
|
|
4183
|
-
ANSWERED =
|
|
4184
|
-
T.let(
|
|
4185
|
-
:answered,
|
|
4186
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::TaggedSymbol
|
|
4187
|
-
)
|
|
4188
|
-
COMPLETED =
|
|
4189
|
-
T.let(
|
|
4190
|
-
:completed,
|
|
4191
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::TaggedSymbol
|
|
4192
|
-
)
|
|
4193
|
-
|
|
4194
|
-
sig do
|
|
4195
|
-
override.returns(
|
|
4196
|
-
T::Array[
|
|
4197
|
-
Telnyx::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::StatusCallbackEvent::TaggedSymbol
|
|
4198
|
-
]
|
|
4199
|
-
)
|
|
4200
|
-
end
|
|
4201
|
-
def self.values
|
|
4202
|
-
end
|
|
4203
|
-
end
|
|
4204
|
-
|
|
4205
4028
|
# HTTP request type used for `StatusCallback`.
|
|
4206
4029
|
module StatusCallbackMethod
|
|
4207
4030
|
extend Telnyx::Internal::Type::Enum
|
|
@@ -8,11 +8,272 @@ module Telnyx
|
|
|
8
8
|
T.any(Telnyx::VirtualCrossConnectCreate, Telnyx::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
# A user specified name for the interface.
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_reader :name
|
|
14
|
+
|
|
15
|
+
sig { params(name: String).void }
|
|
16
|
+
attr_writer :name
|
|
17
|
+
|
|
18
|
+
# The id of the network associated with the interface.
|
|
19
|
+
sig { returns(T.nilable(String)) }
|
|
20
|
+
attr_reader :network_id
|
|
21
|
+
|
|
22
|
+
sig { params(network_id: String).void }
|
|
23
|
+
attr_writer :network_id
|
|
24
|
+
|
|
25
|
+
# The region the interface should be deployed to.
|
|
26
|
+
sig { returns(String) }
|
|
27
|
+
attr_accessor :region_code
|
|
28
|
+
|
|
29
|
+
# The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
|
|
30
|
+
# Connect.<br /><br />The available bandwidths can be found using the
|
|
31
|
+
# /virtual_cross_connect_regions endpoint.
|
|
32
|
+
sig { returns(T.nilable(Float)) }
|
|
33
|
+
attr_reader :bandwidth_mbps
|
|
34
|
+
|
|
35
|
+
sig { params(bandwidth_mbps: Float).void }
|
|
36
|
+
attr_writer :bandwidth_mbps
|
|
37
|
+
|
|
38
|
+
# The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
|
|
39
|
+
# will be assigned by Telnyx.
|
|
40
|
+
sig { returns(T.nilable(Float)) }
|
|
41
|
+
attr_reader :bgp_asn
|
|
42
|
+
|
|
43
|
+
sig { params(bgp_asn: Float).void }
|
|
44
|
+
attr_writer :bgp_asn
|
|
45
|
+
|
|
46
|
+
# The Virtual Private Cloud with which you would like to establish a cross
|
|
47
|
+
# connect.
|
|
48
|
+
sig do
|
|
49
|
+
returns(
|
|
50
|
+
T.nilable(Telnyx::VirtualCrossConnectCreate::CloudProvider::OrSymbol)
|
|
51
|
+
)
|
|
13
52
|
end
|
|
53
|
+
attr_reader :cloud_provider
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
params(
|
|
57
|
+
cloud_provider:
|
|
58
|
+
Telnyx::VirtualCrossConnectCreate::CloudProvider::OrSymbol
|
|
59
|
+
).void
|
|
60
|
+
end
|
|
61
|
+
attr_writer :cloud_provider
|
|
62
|
+
|
|
63
|
+
# The region where your Virtual Private Cloud hosts are located.<br /><br />The
|
|
64
|
+
# available regions can be found using the /virtual_cross_connect_regions
|
|
65
|
+
# endpoint.
|
|
66
|
+
sig { returns(T.nilable(String)) }
|
|
67
|
+
attr_reader :cloud_provider_region
|
|
68
|
+
|
|
69
|
+
sig { params(cloud_provider_region: String).void }
|
|
70
|
+
attr_writer :cloud_provider_region
|
|
71
|
+
|
|
72
|
+
# The authentication key for BGP peer configuration.
|
|
73
|
+
sig { returns(T.nilable(String)) }
|
|
74
|
+
attr_reader :primary_bgp_key
|
|
75
|
+
|
|
76
|
+
sig { params(primary_bgp_key: String).void }
|
|
77
|
+
attr_writer :primary_bgp_key
|
|
78
|
+
|
|
79
|
+
# The identifier for your Virtual Private Cloud. The number will be different
|
|
80
|
+
# based upon your Cloud provider.
|
|
81
|
+
sig { returns(T.nilable(String)) }
|
|
82
|
+
attr_reader :primary_cloud_account_id
|
|
83
|
+
|
|
84
|
+
sig { params(primary_cloud_account_id: String).void }
|
|
85
|
+
attr_writer :primary_cloud_account_id
|
|
86
|
+
|
|
87
|
+
# The IP address assigned for your side of the Virtual Cross
|
|
88
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
|
89
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
|
90
|
+
# of your assigned IP once the connection has been accepted.
|
|
91
|
+
sig { returns(T.nilable(String)) }
|
|
92
|
+
attr_reader :primary_cloud_ip
|
|
93
|
+
|
|
94
|
+
sig { params(primary_cloud_ip: String).void }
|
|
95
|
+
attr_writer :primary_cloud_ip
|
|
14
96
|
|
|
15
|
-
|
|
97
|
+
# The IP address assigned to the Telnyx side of the Virtual Cross
|
|
98
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
|
99
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
|
100
|
+
# of your assigned IP once the connection has been accepted.
|
|
101
|
+
sig { returns(T.nilable(String)) }
|
|
102
|
+
attr_reader :primary_telnyx_ip
|
|
103
|
+
|
|
104
|
+
sig { params(primary_telnyx_ip: String).void }
|
|
105
|
+
attr_writer :primary_telnyx_ip
|
|
106
|
+
|
|
107
|
+
# The authentication key for BGP peer configuration.
|
|
108
|
+
sig { returns(T.nilable(String)) }
|
|
109
|
+
attr_reader :secondary_bgp_key
|
|
110
|
+
|
|
111
|
+
sig { params(secondary_bgp_key: String).void }
|
|
112
|
+
attr_writer :secondary_bgp_key
|
|
113
|
+
|
|
114
|
+
# The identifier for your Virtual Private Cloud. The number will be different
|
|
115
|
+
# based upon your Cloud provider.<br /><br />This attribute is only necessary for
|
|
116
|
+
# GCE.
|
|
117
|
+
sig { returns(T.nilable(String)) }
|
|
118
|
+
attr_reader :secondary_cloud_account_id
|
|
119
|
+
|
|
120
|
+
sig { params(secondary_cloud_account_id: String).void }
|
|
121
|
+
attr_writer :secondary_cloud_account_id
|
|
122
|
+
|
|
123
|
+
# The IP address assigned for your side of the Virtual Cross
|
|
124
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
|
125
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
|
126
|
+
# of your assigned IP once the connection has been accepted.
|
|
127
|
+
sig { returns(T.nilable(String)) }
|
|
128
|
+
attr_reader :secondary_cloud_ip
|
|
129
|
+
|
|
130
|
+
sig { params(secondary_cloud_ip: String).void }
|
|
131
|
+
attr_writer :secondary_cloud_ip
|
|
132
|
+
|
|
133
|
+
# The IP address assigned to the Telnyx side of the Virtual Cross
|
|
134
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
|
135
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
|
136
|
+
# of your assigned IP once the connection has been accepted.
|
|
137
|
+
sig { returns(T.nilable(String)) }
|
|
138
|
+
attr_reader :secondary_telnyx_ip
|
|
139
|
+
|
|
140
|
+
sig { params(secondary_telnyx_ip: String).void }
|
|
141
|
+
attr_writer :secondary_telnyx_ip
|
|
142
|
+
|
|
143
|
+
# The current status of the interface deployment.
|
|
144
|
+
sig { returns(T.nilable(Telnyx::InterfaceStatus::OrSymbol)) }
|
|
145
|
+
attr_reader :status
|
|
146
|
+
|
|
147
|
+
sig { params(status: Telnyx::InterfaceStatus::OrSymbol).void }
|
|
148
|
+
attr_writer :status
|
|
149
|
+
|
|
150
|
+
# Indicates whether the primary circuit is enabled. Setting this to `false` will
|
|
151
|
+
# disable the circuit.
|
|
152
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
153
|
+
attr_reader :primary_enabled
|
|
154
|
+
|
|
155
|
+
sig { params(primary_enabled: T::Boolean).void }
|
|
156
|
+
attr_writer :primary_enabled
|
|
157
|
+
|
|
158
|
+
# Indicates whether the secondary circuit is enabled. Setting this to `false` will
|
|
159
|
+
# disable the circuit.
|
|
160
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
161
|
+
attr_reader :secondary_enabled
|
|
162
|
+
|
|
163
|
+
sig { params(secondary_enabled: T::Boolean).void }
|
|
164
|
+
attr_writer :secondary_enabled
|
|
165
|
+
|
|
166
|
+
sig do
|
|
167
|
+
params(
|
|
168
|
+
region_code: String,
|
|
169
|
+
name: String,
|
|
170
|
+
network_id: String,
|
|
171
|
+
status: Telnyx::InterfaceStatus::OrSymbol,
|
|
172
|
+
bandwidth_mbps: Float,
|
|
173
|
+
bgp_asn: Float,
|
|
174
|
+
cloud_provider:
|
|
175
|
+
Telnyx::VirtualCrossConnectCreate::CloudProvider::OrSymbol,
|
|
176
|
+
cloud_provider_region: String,
|
|
177
|
+
primary_bgp_key: String,
|
|
178
|
+
primary_cloud_account_id: String,
|
|
179
|
+
primary_cloud_ip: String,
|
|
180
|
+
primary_enabled: T::Boolean,
|
|
181
|
+
primary_telnyx_ip: String,
|
|
182
|
+
secondary_bgp_key: String,
|
|
183
|
+
secondary_cloud_account_id: String,
|
|
184
|
+
secondary_cloud_ip: String,
|
|
185
|
+
secondary_enabled: T::Boolean,
|
|
186
|
+
secondary_telnyx_ip: String
|
|
187
|
+
).returns(T.attached_class)
|
|
188
|
+
end
|
|
189
|
+
def self.new(
|
|
190
|
+
# The region the interface should be deployed to.
|
|
191
|
+
region_code:,
|
|
192
|
+
# A user specified name for the interface.
|
|
193
|
+
name: nil,
|
|
194
|
+
# The id of the network associated with the interface.
|
|
195
|
+
network_id: nil,
|
|
196
|
+
# The current status of the interface deployment.
|
|
197
|
+
status: nil,
|
|
198
|
+
# The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
|
|
199
|
+
# Connect.<br /><br />The available bandwidths can be found using the
|
|
200
|
+
# /virtual_cross_connect_regions endpoint.
|
|
201
|
+
bandwidth_mbps: nil,
|
|
202
|
+
# The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
|
|
203
|
+
# will be assigned by Telnyx.
|
|
204
|
+
bgp_asn: nil,
|
|
205
|
+
# The Virtual Private Cloud with which you would like to establish a cross
|
|
206
|
+
# connect.
|
|
207
|
+
cloud_provider: nil,
|
|
208
|
+
# The region where your Virtual Private Cloud hosts are located.<br /><br />The
|
|
209
|
+
# available regions can be found using the /virtual_cross_connect_regions
|
|
210
|
+
# endpoint.
|
|
211
|
+
cloud_provider_region: nil,
|
|
212
|
+
# The authentication key for BGP peer configuration.
|
|
213
|
+
primary_bgp_key: nil,
|
|
214
|
+
# The identifier for your Virtual Private Cloud. The number will be different
|
|
215
|
+
# based upon your Cloud provider.
|
|
216
|
+
primary_cloud_account_id: nil,
|
|
217
|
+
# The IP address assigned for your side of the Virtual Cross
|
|
218
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
|
219
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
|
220
|
+
# of your assigned IP once the connection has been accepted.
|
|
221
|
+
primary_cloud_ip: nil,
|
|
222
|
+
# Indicates whether the primary circuit is enabled. Setting this to `false` will
|
|
223
|
+
# disable the circuit.
|
|
224
|
+
primary_enabled: nil,
|
|
225
|
+
# The IP address assigned to the Telnyx side of the Virtual Cross
|
|
226
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
|
227
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
|
228
|
+
# of your assigned IP once the connection has been accepted.
|
|
229
|
+
primary_telnyx_ip: nil,
|
|
230
|
+
# The authentication key for BGP peer configuration.
|
|
231
|
+
secondary_bgp_key: nil,
|
|
232
|
+
# The identifier for your Virtual Private Cloud. The number will be different
|
|
233
|
+
# based upon your Cloud provider.<br /><br />This attribute is only necessary for
|
|
234
|
+
# GCE.
|
|
235
|
+
secondary_cloud_account_id: nil,
|
|
236
|
+
# The IP address assigned for your side of the Virtual Cross
|
|
237
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
|
238
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
|
239
|
+
# of your assigned IP once the connection has been accepted.
|
|
240
|
+
secondary_cloud_ip: nil,
|
|
241
|
+
# Indicates whether the secondary circuit is enabled. Setting this to `false` will
|
|
242
|
+
# disable the circuit.
|
|
243
|
+
secondary_enabled: nil,
|
|
244
|
+
# The IP address assigned to the Telnyx side of the Virtual Cross
|
|
245
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
|
246
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
|
247
|
+
# of your assigned IP once the connection has been accepted.
|
|
248
|
+
secondary_telnyx_ip: nil
|
|
249
|
+
)
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
sig do
|
|
253
|
+
override.returns(
|
|
254
|
+
{
|
|
255
|
+
name: String,
|
|
256
|
+
network_id: String,
|
|
257
|
+
status: Telnyx::InterfaceStatus::OrSymbol,
|
|
258
|
+
region_code: String,
|
|
259
|
+
bandwidth_mbps: Float,
|
|
260
|
+
bgp_asn: Float,
|
|
261
|
+
cloud_provider:
|
|
262
|
+
Telnyx::VirtualCrossConnectCreate::CloudProvider::OrSymbol,
|
|
263
|
+
cloud_provider_region: String,
|
|
264
|
+
primary_bgp_key: String,
|
|
265
|
+
primary_cloud_account_id: String,
|
|
266
|
+
primary_cloud_ip: String,
|
|
267
|
+
primary_enabled: T::Boolean,
|
|
268
|
+
primary_telnyx_ip: String,
|
|
269
|
+
secondary_bgp_key: String,
|
|
270
|
+
secondary_cloud_account_id: String,
|
|
271
|
+
secondary_cloud_ip: String,
|
|
272
|
+
secondary_enabled: T::Boolean,
|
|
273
|
+
secondary_telnyx_ip: String
|
|
274
|
+
}
|
|
275
|
+
)
|
|
276
|
+
end
|
|
16
277
|
def to_hash
|
|
17
278
|
end
|
|
18
279
|
|
|
@@ -23,10 +284,7 @@ module Telnyx
|
|
|
23
284
|
|
|
24
285
|
TaggedSymbol =
|
|
25
286
|
T.type_alias do
|
|
26
|
-
T.all(
|
|
27
|
-
Symbol,
|
|
28
|
-
Telnyx::VirtualCrossConnectCreate::CloudProvider
|
|
29
|
-
)
|
|
287
|
+
T.all(Symbol, Telnyx::VirtualCrossConnectCreate::CloudProvider)
|
|
30
288
|
end
|
|
31
289
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
32
290
|
|
|
@@ -8,11 +8,56 @@ module Telnyx
|
|
|
8
8
|
T.any(Telnyx::WireguardInterface, Telnyx::Internal::AnyHash)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
# A user specified name for the interface.
|
|
12
|
+
sig { returns(T.nilable(String)) }
|
|
13
|
+
attr_reader :name
|
|
14
|
+
|
|
15
|
+
sig { params(name: String).void }
|
|
16
|
+
attr_writer :name
|
|
17
|
+
|
|
18
|
+
# The id of the network associated with the interface.
|
|
19
|
+
sig { returns(T.nilable(String)) }
|
|
20
|
+
attr_reader :network_id
|
|
21
|
+
|
|
22
|
+
sig { params(network_id: String).void }
|
|
23
|
+
attr_writer :network_id
|
|
24
|
+
|
|
25
|
+
# Enable SIP traffic forwarding over VPN interface.
|
|
26
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
27
|
+
attr_reader :enable_sip_trunking
|
|
28
|
+
|
|
29
|
+
sig { params(enable_sip_trunking: T::Boolean).void }
|
|
30
|
+
attr_writer :enable_sip_trunking
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
name: String,
|
|
35
|
+
network_id: String,
|
|
36
|
+
enable_sip_trunking: T::Boolean
|
|
37
|
+
).returns(T.attached_class)
|
|
38
|
+
end
|
|
39
|
+
def self.new(
|
|
40
|
+
# A user specified name for the interface.
|
|
41
|
+
name: nil,
|
|
42
|
+
# The id of the network associated with the interface.
|
|
43
|
+
network_id: nil,
|
|
44
|
+
# Enable SIP traffic forwarding over VPN interface.
|
|
45
|
+
enable_sip_trunking: nil
|
|
46
|
+
)
|
|
13
47
|
end
|
|
14
48
|
|
|
15
|
-
sig
|
|
49
|
+
sig do
|
|
50
|
+
override.returns(
|
|
51
|
+
{
|
|
52
|
+
name: String,
|
|
53
|
+
network_id: String,
|
|
54
|
+
status: Telnyx::InterfaceStatus::OrSymbol,
|
|
55
|
+
enable_sip_trunking: T::Boolean,
|
|
56
|
+
endpoint: String,
|
|
57
|
+
public_key: String
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
end
|
|
16
61
|
def to_hash
|
|
17
62
|
end
|
|
18
63
|
end
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -613,14 +613,9 @@ module Telnyx
|
|
|
613
613
|
Telnyx::Models::DirListInfringementClaimsParams
|
|
614
614
|
|
|
615
615
|
DirListParams = Telnyx::Models::DirListParams
|
|
616
|
-
DirLoaParams = Telnyx::Models::DirLoaParams
|
|
617
616
|
|
|
618
617
|
DirNewLoaParams = Telnyx::Models::DirNewLoaParams
|
|
619
618
|
|
|
620
|
-
DirRetrieveDocumentTypesParams =
|
|
621
|
-
Telnyx::Models::DirRetrieveDocumentTypesParams
|
|
622
|
-
DirRetrieveInfringementClaimsParams =
|
|
623
|
-
Telnyx::Models::DirRetrieveInfringementClaimsParams
|
|
624
619
|
DirRetrieveParams = Telnyx::Models::DirRetrieveParams
|
|
625
620
|
|
|
626
621
|
DirStatus = Telnyx::Models::DirStatus
|
|
@@ -628,8 +623,6 @@ module Telnyx
|
|
|
628
623
|
DirSubmitParams = Telnyx::Models::DirSubmitParams
|
|
629
624
|
|
|
630
625
|
DirUpdateInfringementParams = Telnyx::Models::DirUpdateInfringementParams
|
|
631
|
-
DirUpdateInfringementUpdateParams =
|
|
632
|
-
Telnyx::Models::DirUpdateInfringementUpdateParams
|
|
633
626
|
|
|
634
627
|
DirUpdateParams = Telnyx::Models::DirUpdateParams
|
|
635
628
|
|