telnyx 4.0.0 → 4.2.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 +30 -0
- data/README.md +1 -1
- data/lib/telnyx/internal/transport/pooled_net_requester.rb +7 -10
- data/lib/telnyx/models/{advanced_order_update_params.rb → advanced_order_update_requirement_group_params.rb} +9 -8
- data/lib/telnyx/models/{advanced_order_update_response.rb → advanced_order_update_requirement_group_response.rb} +1 -1
- data/lib/telnyx/models/calls/action_start_transcription_params.rb +3 -3
- data/lib/telnyx/models/calls/transcription_start_request.rb +448 -10
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rb +156 -0
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rb +151 -0
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rb +3 -110
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rb +3 -252
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rb +3 -252
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rb +3 -250
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rb +3 -252
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rb +3 -73
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rb +3 -73
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rb +3 -71
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rb +3 -73
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rb +79 -0
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rb +3 -110
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rb +3 -256
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rb +3 -256
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rb +3 -255
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rb +3 -256
- data/lib/telnyx/models/legacy/reporting/filter.rb +112 -0
- data/lib/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rb +109 -0
- data/lib/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rb +104 -0
- data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rb +3 -97
- data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rb +3 -97
- data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rb +3 -96
- data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rb +3 -97
- data/lib/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rb +3 -102
- data/lib/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rb +3 -102
- data/lib/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rb +3 -101
- data/lib/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rb +3 -102
- data/lib/telnyx/models/messaging_profile.rb +9 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +9 -1
- data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
- data/lib/telnyx/models/network_list_interfaces_response.rb +114 -0
- data/lib/telnyx/models/oauth_client.rb +173 -0
- data/lib/telnyx/models/oauth_client_create_response.rb +3 -172
- data/lib/telnyx/models/oauth_client_list_response.rb +3 -171
- data/lib/telnyx/models/oauth_client_retrieve_response.rb +3 -172
- data/lib/telnyx/models/oauth_client_update_response.rb +3 -172
- data/lib/telnyx/models/oauth_grant.rb +68 -0
- data/lib/telnyx/models/oauth_grant_delete_response.rb +3 -67
- data/lib/telnyx/models/oauth_grant_list_response.rb +3 -66
- data/lib/telnyx/models/oauth_grant_retrieve_response.rb +3 -67
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +115 -0
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +115 -0
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +114 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +115 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +33 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +33 -1
- data/lib/telnyx/models/verify_profile_create_template_response.rb +3 -20
- data/lib/telnyx/models/verify_profile_message_template_response.rb +21 -0
- data/lib/telnyx/models/verify_profile_retrieve_templates_response.rb +3 -20
- data/lib/telnyx/models/verify_profile_update_template_response.rb +3 -20
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +275 -0
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +275 -0
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +274 -0
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +275 -0
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +275 -0
- data/lib/telnyx/models/wireguard_interface_create_response.rb +131 -0
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +131 -0
- data/lib/telnyx/models/wireguard_interface_list_response.rb +130 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +131 -0
- data/lib/telnyx/models/wireguard_peer_create_response.rb +78 -0
- data/lib/telnyx/models/wireguard_peer_delete_response.rb +78 -0
- data/lib/telnyx/models/wireguard_peer_list_response.rb +77 -0
- data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +78 -0
- data/lib/telnyx/models/wireguard_peer_update_response.rb +78 -0
- data/lib/telnyx/models.rb +7 -1
- data/lib/telnyx/resources/advanced_orders.rb +26 -26
- data/lib/telnyx/resources/calls/actions.rb +2 -2
- data/lib/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rb +1 -1
- data/lib/telnyx/resources/legacy/reporting/batch_detail_records/voice.rb +1 -1
- data/lib/telnyx/resources/messaging_profiles.rb +6 -2
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -1
- data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +3 -1
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +11 -2
- data/rbi/telnyx/models/{advanced_order_update_params.rbi → advanced_order_update_requirement_group_params.rbi} +53 -25
- data/rbi/telnyx/models/{advanced_order_update_response.rbi → advanced_order_update_requirement_group_response.rbi} +1 -1
- data/rbi/telnyx/models/calls/action_start_transcription_params.rbi +6 -6
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +1488 -15
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbi +232 -0
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbi +346 -0
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbi +4 -279
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbi +4 -614
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbi +4 -614
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbi +4 -614
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbi +4 -614
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbi +4 -155
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbi +4 -155
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbi +4 -155
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbi +4 -155
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbi +162 -0
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbi +4 -279
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbi +4 -500
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbi +4 -500
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbi +4 -500
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbi +4 -500
- data/rbi/telnyx/models/legacy/reporting/filter.rbi +252 -0
- data/rbi/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbi +157 -0
- data/rbi/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbi +155 -0
- data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbi +4 -148
- data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbi +4 -148
- data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbi +4 -148
- data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbi +4 -148
- data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbi +4 -150
- data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbi +4 -150
- data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbi +4 -150
- data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbi +4 -150
- data/rbi/telnyx/models/messaging_profile.rbi +11 -0
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +11 -0
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +11 -0
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +202 -0
- data/rbi/telnyx/models/oauth_client.rbi +250 -0
- data/rbi/telnyx/models/oauth_client_create_response.rbi +4 -317
- data/rbi/telnyx/models/oauth_client_list_response.rbi +4 -313
- data/rbi/telnyx/models/oauth_client_retrieve_response.rbi +4 -317
- data/rbi/telnyx/models/oauth_client_update_response.rbi +4 -317
- data/rbi/telnyx/models/oauth_grant.rbi +95 -0
- data/rbi/telnyx/models/oauth_grant_delete_response.rbi +4 -127
- data/rbi/telnyx/models/oauth_grant_list_response.rbi +4 -123
- data/rbi/telnyx/models/oauth_grant_retrieve_response.rbi +4 -129
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +202 -0
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +202 -0
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +202 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +202 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +65 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +67 -0
- data/rbi/telnyx/models/verify_profile_create_template_response.rbi +4 -44
- data/rbi/telnyx/models/verify_profile_message_template_response.rbi +35 -0
- data/rbi/telnyx/models/verify_profile_retrieve_templates_response.rbi +3 -45
- data/rbi/telnyx/models/verify_profile_update_template_response.rbi +4 -44
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +444 -0
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_peer_create_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_list_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_update_response.rbi +125 -0
- data/rbi/telnyx/models.rbi +9 -1
- data/rbi/telnyx/resources/advanced_orders.rbi +16 -14
- data/rbi/telnyx/resources/calls/actions.rbi +7 -3
- data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbi +1 -4
- data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbi +1 -4
- data/rbi/telnyx/resources/messaging_profiles.rbi +6 -0
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -0
- data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +7 -0
- data/sig/telnyx/models/{advanced_order_update_params.rbs → advanced_order_update_requirement_group_params.rbs} +16 -16
- data/sig/telnyx/models/advanced_order_update_requirement_group_response.rbs +5 -0
- data/sig/telnyx/models/calls/action_start_transcription_params.rbs +5 -5
- data/sig/telnyx/models/calls/transcription_start_request.rbs +594 -11
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbs +142 -0
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbs +163 -0
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbs +6 -108
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbs +6 -262
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbs +6 -262
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbs +6 -262
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbs +6 -262
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbs +6 -82
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbs +6 -82
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbs +6 -82
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbs +6 -82
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbs +85 -0
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbs +6 -108
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbs +6 -241
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbs +6 -241
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbs +6 -241
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbs +6 -241
- data/sig/telnyx/models/legacy/reporting/filter.rbs +109 -0
- data/sig/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbs +105 -0
- data/sig/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbs +105 -0
- data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbs +6 -102
- data/sig/telnyx/models/messaging_profile.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
- data/sig/telnyx/models/network_list_interfaces_response.rbs +110 -0
- data/sig/telnyx/models/oauth_client.rbs +137 -0
- data/sig/telnyx/models/oauth_client_create_response.rbs +5 -144
- data/sig/telnyx/models/oauth_client_list_response.rbs +5 -141
- data/sig/telnyx/models/oauth_client_retrieve_response.rbs +5 -146
- data/sig/telnyx/models/oauth_client_update_response.rbs +5 -144
- data/sig/telnyx/models/oauth_grant.rbs +55 -0
- data/sig/telnyx/models/oauth_grant_delete_response.rbs +5 -62
- data/sig/telnyx/models/oauth_grant_list_response.rbs +5 -59
- data/sig/telnyx/models/oauth_grant_retrieve_response.rbs +5 -62
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +110 -0
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +110 -0
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +110 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +110 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +21 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +21 -0
- data/sig/telnyx/models/verify_profile_create_template_response.rbs +6 -24
- data/sig/telnyx/models/verify_profile_message_template_response.rbs +19 -0
- data/sig/telnyx/models/verify_profile_retrieve_templates_response.rbs +4 -22
- data/sig/telnyx/models/verify_profile_update_template_response.rbs +6 -24
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +219 -0
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_peer_create_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_delete_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_list_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_update_response.rbs +68 -0
- data/sig/telnyx/models.rbs +7 -1
- data/sig/telnyx/resources/advanced_orders.rbs +6 -6
- data/sig/telnyx/resources/calls/actions.rbs +1 -1
- data/sig/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbs +1 -1
- data/sig/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbs +1 -1
- data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -0
- data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +1 -0
- metadata +35 -8
- data/sig/telnyx/models/advanced_order_update_response.rbs +0 -5
@@ -40,6 +40,450 @@ module Telnyx
|
|
40
40
|
end
|
41
41
|
def to_hash
|
42
42
|
end
|
43
|
+
|
44
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
45
|
+
OrHash =
|
46
|
+
T.type_alias do
|
47
|
+
T.any(
|
48
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data,
|
49
|
+
Telnyx::Internal::AnyHash
|
50
|
+
)
|
51
|
+
end
|
52
|
+
|
53
|
+
# A user specified name for the interface.
|
54
|
+
sig { returns(T.nilable(String)) }
|
55
|
+
attr_reader :name
|
56
|
+
|
57
|
+
sig { params(name: String).void }
|
58
|
+
attr_writer :name
|
59
|
+
|
60
|
+
# The id of the network associated with the interface.
|
61
|
+
sig { returns(T.nilable(String)) }
|
62
|
+
attr_reader :network_id
|
63
|
+
|
64
|
+
sig { params(network_id: String).void }
|
65
|
+
attr_writer :network_id
|
66
|
+
|
67
|
+
# The region the interface should be deployed to.
|
68
|
+
sig { returns(T.nilable(String)) }
|
69
|
+
attr_reader :region_code
|
70
|
+
|
71
|
+
sig { params(region_code: String).void }
|
72
|
+
attr_writer :region_code
|
73
|
+
|
74
|
+
# The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
|
75
|
+
# will be assigned by Telnyx.
|
76
|
+
sig { returns(Float) }
|
77
|
+
attr_accessor :bgp_asn
|
78
|
+
|
79
|
+
# The Virtual Private Cloud with which you would like to establish a cross
|
80
|
+
# connect.
|
81
|
+
sig do
|
82
|
+
returns(
|
83
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::CloudProvider::TaggedSymbol
|
84
|
+
)
|
85
|
+
end
|
86
|
+
attr_accessor :cloud_provider
|
87
|
+
|
88
|
+
# The region where your Virtual Private Cloud hosts are located.<br /><br />The
|
89
|
+
# available regions can be found using the /virtual_cross_connect_regions
|
90
|
+
# endpoint.
|
91
|
+
sig { returns(String) }
|
92
|
+
attr_accessor :cloud_provider_region
|
93
|
+
|
94
|
+
# The identifier for your Virtual Private Cloud. The number will be different
|
95
|
+
# based upon your Cloud provider.
|
96
|
+
sig { returns(String) }
|
97
|
+
attr_accessor :primary_cloud_account_id
|
98
|
+
|
99
|
+
# The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
|
100
|
+
# Connect.<br /><br />The available bandwidths can be found using the
|
101
|
+
# /virtual_cross_connect_regions endpoint.
|
102
|
+
sig { returns(T.nilable(Float)) }
|
103
|
+
attr_reader :bandwidth_mbps
|
104
|
+
|
105
|
+
sig { params(bandwidth_mbps: Float).void }
|
106
|
+
attr_writer :bandwidth_mbps
|
107
|
+
|
108
|
+
# The authentication key for BGP peer configuration.
|
109
|
+
sig { returns(T.nilable(String)) }
|
110
|
+
attr_reader :primary_bgp_key
|
111
|
+
|
112
|
+
sig { params(primary_bgp_key: String).void }
|
113
|
+
attr_writer :primary_bgp_key
|
114
|
+
|
115
|
+
# The IP address assigned for your side of the Virtual Cross
|
116
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
117
|
+
# you.<br /><br />This value can not be patched once the VXC has bene provisioned.
|
118
|
+
sig { returns(T.nilable(String)) }
|
119
|
+
attr_reader :primary_cloud_ip
|
120
|
+
|
121
|
+
sig { params(primary_cloud_ip: String).void }
|
122
|
+
attr_writer :primary_cloud_ip
|
123
|
+
|
124
|
+
# Indicates whether the primary circuit is enabled. Setting this to `false` will
|
125
|
+
# disable the circuit.
|
126
|
+
sig { returns(T.nilable(T::Boolean)) }
|
127
|
+
attr_reader :primary_enabled
|
128
|
+
|
129
|
+
sig { params(primary_enabled: T::Boolean).void }
|
130
|
+
attr_writer :primary_enabled
|
131
|
+
|
132
|
+
# Whether the primary BGP route is being announced.
|
133
|
+
sig { returns(T.nilable(T::Boolean)) }
|
134
|
+
attr_reader :primary_routing_announcement
|
135
|
+
|
136
|
+
sig { params(primary_routing_announcement: T::Boolean).void }
|
137
|
+
attr_writer :primary_routing_announcement
|
138
|
+
|
139
|
+
# The IP address assigned to the Telnyx side of the Virtual Cross
|
140
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
141
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
142
|
+
# of your assigned IP once the connection has been accepted.
|
143
|
+
sig { returns(T.nilable(String)) }
|
144
|
+
attr_reader :primary_telnyx_ip
|
145
|
+
|
146
|
+
sig { params(primary_telnyx_ip: String).void }
|
147
|
+
attr_writer :primary_telnyx_ip
|
148
|
+
|
149
|
+
sig do
|
150
|
+
returns(
|
151
|
+
T.nilable(
|
152
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::Region
|
153
|
+
)
|
154
|
+
)
|
155
|
+
end
|
156
|
+
attr_reader :region
|
157
|
+
|
158
|
+
sig do
|
159
|
+
params(
|
160
|
+
region:
|
161
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::Region::OrHash
|
162
|
+
).void
|
163
|
+
end
|
164
|
+
attr_writer :region
|
165
|
+
|
166
|
+
# The authentication key for BGP peer configuration.
|
167
|
+
sig { returns(T.nilable(String)) }
|
168
|
+
attr_reader :secondary_bgp_key
|
169
|
+
|
170
|
+
sig { params(secondary_bgp_key: String).void }
|
171
|
+
attr_writer :secondary_bgp_key
|
172
|
+
|
173
|
+
# The identifier for your Virtual Private Cloud. The number will be different
|
174
|
+
# based upon your Cloud provider.<br /><br />This attribute is only necessary for
|
175
|
+
# GCE.
|
176
|
+
sig { returns(T.nilable(String)) }
|
177
|
+
attr_reader :secondary_cloud_account_id
|
178
|
+
|
179
|
+
sig { params(secondary_cloud_account_id: String).void }
|
180
|
+
attr_writer :secondary_cloud_account_id
|
181
|
+
|
182
|
+
# The IP address assigned for your side of the Virtual Cross
|
183
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
184
|
+
# you.<br /><br />This value can not be patched once the VXC has bene provisioned.
|
185
|
+
sig { returns(T.nilable(String)) }
|
186
|
+
attr_reader :secondary_cloud_ip
|
187
|
+
|
188
|
+
sig { params(secondary_cloud_ip: String).void }
|
189
|
+
attr_writer :secondary_cloud_ip
|
190
|
+
|
191
|
+
# Indicates whether the secondary circuit is enabled. Setting this to `false` will
|
192
|
+
# disable the circuit.
|
193
|
+
sig { returns(T.nilable(T::Boolean)) }
|
194
|
+
attr_reader :secondary_enabled
|
195
|
+
|
196
|
+
sig { params(secondary_enabled: T::Boolean).void }
|
197
|
+
attr_writer :secondary_enabled
|
198
|
+
|
199
|
+
# Whether the secondary BGP route is being announced.
|
200
|
+
sig { returns(T.nilable(T::Boolean)) }
|
201
|
+
attr_reader :secondary_routing_announcement
|
202
|
+
|
203
|
+
sig { params(secondary_routing_announcement: T::Boolean).void }
|
204
|
+
attr_writer :secondary_routing_announcement
|
205
|
+
|
206
|
+
# The IP address assigned to the Telnyx side of the Virtual Cross
|
207
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
208
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
209
|
+
# of your assigned IP once the connection has been accepted.
|
210
|
+
sig { returns(T.nilable(String)) }
|
211
|
+
attr_reader :secondary_telnyx_ip
|
212
|
+
|
213
|
+
sig { params(secondary_telnyx_ip: String).void }
|
214
|
+
attr_writer :secondary_telnyx_ip
|
215
|
+
|
216
|
+
# Identifies the resource.
|
217
|
+
sig { returns(T.nilable(String)) }
|
218
|
+
attr_reader :id
|
219
|
+
|
220
|
+
sig { params(id: String).void }
|
221
|
+
attr_writer :id
|
222
|
+
|
223
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
224
|
+
sig { returns(T.nilable(String)) }
|
225
|
+
attr_reader :created_at
|
226
|
+
|
227
|
+
sig { params(created_at: String).void }
|
228
|
+
attr_writer :created_at
|
229
|
+
|
230
|
+
# Identifies the type of the resource.
|
231
|
+
sig { returns(T.nilable(String)) }
|
232
|
+
attr_reader :record_type
|
233
|
+
|
234
|
+
sig { params(record_type: String).void }
|
235
|
+
attr_writer :record_type
|
236
|
+
|
237
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
238
|
+
sig { returns(T.nilable(String)) }
|
239
|
+
attr_reader :updated_at
|
240
|
+
|
241
|
+
sig { params(updated_at: String).void }
|
242
|
+
attr_writer :updated_at
|
243
|
+
|
244
|
+
# The current status of the interface deployment.
|
245
|
+
sig { returns(T.nilable(Telnyx::InterfaceStatus::TaggedSymbol)) }
|
246
|
+
attr_reader :status
|
247
|
+
|
248
|
+
sig { params(status: Telnyx::InterfaceStatus::OrSymbol).void }
|
249
|
+
attr_writer :status
|
250
|
+
|
251
|
+
sig do
|
252
|
+
params(
|
253
|
+
bgp_asn: Float,
|
254
|
+
cloud_provider:
|
255
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::CloudProvider::OrSymbol,
|
256
|
+
cloud_provider_region: String,
|
257
|
+
primary_cloud_account_id: String,
|
258
|
+
id: String,
|
259
|
+
created_at: String,
|
260
|
+
record_type: String,
|
261
|
+
updated_at: String,
|
262
|
+
name: String,
|
263
|
+
network_id: String,
|
264
|
+
status: Telnyx::InterfaceStatus::OrSymbol,
|
265
|
+
region_code: String,
|
266
|
+
bandwidth_mbps: Float,
|
267
|
+
primary_bgp_key: String,
|
268
|
+
primary_cloud_ip: String,
|
269
|
+
primary_enabled: T::Boolean,
|
270
|
+
primary_routing_announcement: T::Boolean,
|
271
|
+
primary_telnyx_ip: String,
|
272
|
+
region:
|
273
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::Region::OrHash,
|
274
|
+
secondary_bgp_key: String,
|
275
|
+
secondary_cloud_account_id: String,
|
276
|
+
secondary_cloud_ip: String,
|
277
|
+
secondary_enabled: T::Boolean,
|
278
|
+
secondary_routing_announcement: T::Boolean,
|
279
|
+
secondary_telnyx_ip: String
|
280
|
+
).returns(T.attached_class)
|
281
|
+
end
|
282
|
+
def self.new(
|
283
|
+
# The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
|
284
|
+
# will be assigned by Telnyx.
|
285
|
+
bgp_asn:,
|
286
|
+
# The Virtual Private Cloud with which you would like to establish a cross
|
287
|
+
# connect.
|
288
|
+
cloud_provider:,
|
289
|
+
# The region where your Virtual Private Cloud hosts are located.<br /><br />The
|
290
|
+
# available regions can be found using the /virtual_cross_connect_regions
|
291
|
+
# endpoint.
|
292
|
+
cloud_provider_region:,
|
293
|
+
# The identifier for your Virtual Private Cloud. The number will be different
|
294
|
+
# based upon your Cloud provider.
|
295
|
+
primary_cloud_account_id:,
|
296
|
+
# Identifies the resource.
|
297
|
+
id: nil,
|
298
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
299
|
+
created_at: nil,
|
300
|
+
# Identifies the type of the resource.
|
301
|
+
record_type: nil,
|
302
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
303
|
+
updated_at: nil,
|
304
|
+
# A user specified name for the interface.
|
305
|
+
name: nil,
|
306
|
+
# The id of the network associated with the interface.
|
307
|
+
network_id: nil,
|
308
|
+
# The current status of the interface deployment.
|
309
|
+
status: nil,
|
310
|
+
# The region the interface should be deployed to.
|
311
|
+
region_code: nil,
|
312
|
+
# The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
|
313
|
+
# Connect.<br /><br />The available bandwidths can be found using the
|
314
|
+
# /virtual_cross_connect_regions endpoint.
|
315
|
+
bandwidth_mbps: nil,
|
316
|
+
# The authentication key for BGP peer configuration.
|
317
|
+
primary_bgp_key: nil,
|
318
|
+
# The IP address assigned for your side of the Virtual Cross
|
319
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
320
|
+
# you.<br /><br />This value can not be patched once the VXC has bene provisioned.
|
321
|
+
primary_cloud_ip: nil,
|
322
|
+
# Indicates whether the primary circuit is enabled. Setting this to `false` will
|
323
|
+
# disable the circuit.
|
324
|
+
primary_enabled: nil,
|
325
|
+
# Whether the primary BGP route is being announced.
|
326
|
+
primary_routing_announcement: nil,
|
327
|
+
# The IP address assigned to the Telnyx side of the Virtual Cross
|
328
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
329
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
330
|
+
# of your assigned IP once the connection has been accepted.
|
331
|
+
primary_telnyx_ip: nil,
|
332
|
+
region: nil,
|
333
|
+
# The authentication key for BGP peer configuration.
|
334
|
+
secondary_bgp_key: nil,
|
335
|
+
# The identifier for your Virtual Private Cloud. The number will be different
|
336
|
+
# based upon your Cloud provider.<br /><br />This attribute is only necessary for
|
337
|
+
# GCE.
|
338
|
+
secondary_cloud_account_id: nil,
|
339
|
+
# The IP address assigned for your side of the Virtual Cross
|
340
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
341
|
+
# you.<br /><br />This value can not be patched once the VXC has bene provisioned.
|
342
|
+
secondary_cloud_ip: nil,
|
343
|
+
# Indicates whether the secondary circuit is enabled. Setting this to `false` will
|
344
|
+
# disable the circuit.
|
345
|
+
secondary_enabled: nil,
|
346
|
+
# Whether the secondary BGP route is being announced.
|
347
|
+
secondary_routing_announcement: nil,
|
348
|
+
# The IP address assigned to the Telnyx side of the Virtual Cross
|
349
|
+
# Connect.<br /><br />If none is provided, one will be generated for
|
350
|
+
# you.<br /><br />This value should be null for GCE as Google will only inform you
|
351
|
+
# of your assigned IP once the connection has been accepted.
|
352
|
+
secondary_telnyx_ip: nil
|
353
|
+
)
|
354
|
+
end
|
355
|
+
|
356
|
+
sig do
|
357
|
+
override.returns(
|
358
|
+
{
|
359
|
+
id: String,
|
360
|
+
created_at: String,
|
361
|
+
record_type: String,
|
362
|
+
updated_at: String,
|
363
|
+
name: String,
|
364
|
+
network_id: String,
|
365
|
+
status: Telnyx::InterfaceStatus::TaggedSymbol,
|
366
|
+
region_code: String,
|
367
|
+
bgp_asn: Float,
|
368
|
+
cloud_provider:
|
369
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::CloudProvider::TaggedSymbol,
|
370
|
+
cloud_provider_region: String,
|
371
|
+
primary_cloud_account_id: String,
|
372
|
+
bandwidth_mbps: Float,
|
373
|
+
primary_bgp_key: String,
|
374
|
+
primary_cloud_ip: String,
|
375
|
+
primary_enabled: T::Boolean,
|
376
|
+
primary_routing_announcement: T::Boolean,
|
377
|
+
primary_telnyx_ip: String,
|
378
|
+
region:
|
379
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::Region,
|
380
|
+
secondary_bgp_key: String,
|
381
|
+
secondary_cloud_account_id: String,
|
382
|
+
secondary_cloud_ip: String,
|
383
|
+
secondary_enabled: T::Boolean,
|
384
|
+
secondary_routing_announcement: T::Boolean,
|
385
|
+
secondary_telnyx_ip: String
|
386
|
+
}
|
387
|
+
)
|
388
|
+
end
|
389
|
+
def to_hash
|
390
|
+
end
|
391
|
+
|
392
|
+
# The Virtual Private Cloud with which you would like to establish a cross
|
393
|
+
# connect.
|
394
|
+
module CloudProvider
|
395
|
+
extend Telnyx::Internal::Type::Enum
|
396
|
+
|
397
|
+
TaggedSymbol =
|
398
|
+
T.type_alias do
|
399
|
+
T.all(
|
400
|
+
Symbol,
|
401
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::CloudProvider
|
402
|
+
)
|
403
|
+
end
|
404
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
405
|
+
|
406
|
+
AWS =
|
407
|
+
T.let(
|
408
|
+
:aws,
|
409
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::CloudProvider::TaggedSymbol
|
410
|
+
)
|
411
|
+
AZURE =
|
412
|
+
T.let(
|
413
|
+
:azure,
|
414
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::CloudProvider::TaggedSymbol
|
415
|
+
)
|
416
|
+
GCE =
|
417
|
+
T.let(
|
418
|
+
:gce,
|
419
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::CloudProvider::TaggedSymbol
|
420
|
+
)
|
421
|
+
|
422
|
+
sig do
|
423
|
+
override.returns(
|
424
|
+
T::Array[
|
425
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::CloudProvider::TaggedSymbol
|
426
|
+
]
|
427
|
+
)
|
428
|
+
end
|
429
|
+
def self.values
|
430
|
+
end
|
431
|
+
end
|
432
|
+
|
433
|
+
class Region < Telnyx::Internal::Type::BaseModel
|
434
|
+
OrHash =
|
435
|
+
T.type_alias do
|
436
|
+
T.any(
|
437
|
+
Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::Region,
|
438
|
+
Telnyx::Internal::AnyHash
|
439
|
+
)
|
440
|
+
end
|
441
|
+
|
442
|
+
# Region code of the interface.
|
443
|
+
sig { returns(T.nilable(String)) }
|
444
|
+
attr_reader :code
|
445
|
+
|
446
|
+
sig { params(code: String).void }
|
447
|
+
attr_writer :code
|
448
|
+
|
449
|
+
# Region name of the interface.
|
450
|
+
sig { returns(T.nilable(String)) }
|
451
|
+
attr_reader :name
|
452
|
+
|
453
|
+
sig { params(name: String).void }
|
454
|
+
attr_writer :name
|
455
|
+
|
456
|
+
# Identifies the type of the resource.
|
457
|
+
sig { returns(T.nilable(String)) }
|
458
|
+
attr_reader :record_type
|
459
|
+
|
460
|
+
sig { params(record_type: String).void }
|
461
|
+
attr_writer :record_type
|
462
|
+
|
463
|
+
sig do
|
464
|
+
params(code: String, name: String, record_type: String).returns(
|
465
|
+
T.attached_class
|
466
|
+
)
|
467
|
+
end
|
468
|
+
def self.new(
|
469
|
+
# Region code of the interface.
|
470
|
+
code: nil,
|
471
|
+
# Region name of the interface.
|
472
|
+
name: nil,
|
473
|
+
# Identifies the type of the resource.
|
474
|
+
record_type: nil
|
475
|
+
)
|
476
|
+
end
|
477
|
+
|
478
|
+
sig do
|
479
|
+
override.returns(
|
480
|
+
{ code: String, name: String, record_type: String }
|
481
|
+
)
|
482
|
+
end
|
483
|
+
def to_hash
|
484
|
+
end
|
485
|
+
end
|
486
|
+
end
|
43
487
|
end
|
44
488
|
end
|
45
489
|
end
|