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.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/transport/pooled_net_requester.rb +7 -10
  5. data/lib/telnyx/models/{advanced_order_update_params.rb → advanced_order_update_requirement_group_params.rb} +9 -8
  6. data/lib/telnyx/models/{advanced_order_update_response.rb → advanced_order_update_requirement_group_response.rb} +1 -1
  7. data/lib/telnyx/models/calls/action_start_transcription_params.rb +3 -3
  8. data/lib/telnyx/models/calls/transcription_start_request.rb +448 -10
  9. data/lib/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rb +156 -0
  10. data/lib/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rb +151 -0
  11. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rb +3 -110
  12. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rb +3 -252
  13. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rb +3 -252
  14. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rb +3 -250
  15. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rb +3 -252
  16. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rb +3 -73
  17. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rb +3 -73
  18. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rb +3 -71
  19. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rb +3 -73
  20. data/lib/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rb +79 -0
  21. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rb +3 -110
  22. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rb +3 -256
  23. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rb +3 -256
  24. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rb +3 -255
  25. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rb +3 -256
  26. data/lib/telnyx/models/legacy/reporting/filter.rb +112 -0
  27. data/lib/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rb +109 -0
  28. data/lib/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rb +104 -0
  29. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rb +3 -97
  30. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rb +3 -97
  31. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rb +3 -96
  32. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rb +3 -97
  33. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rb +3 -102
  34. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rb +3 -102
  35. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rb +3 -101
  36. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rb +3 -102
  37. data/lib/telnyx/models/messaging_profile.rb +9 -1
  38. data/lib/telnyx/models/messaging_profile_create_params.rb +9 -1
  39. data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
  40. data/lib/telnyx/models/network_list_interfaces_response.rb +114 -0
  41. data/lib/telnyx/models/oauth_client.rb +173 -0
  42. data/lib/telnyx/models/oauth_client_create_response.rb +3 -172
  43. data/lib/telnyx/models/oauth_client_list_response.rb +3 -171
  44. data/lib/telnyx/models/oauth_client_retrieve_response.rb +3 -172
  45. data/lib/telnyx/models/oauth_client_update_response.rb +3 -172
  46. data/lib/telnyx/models/oauth_grant.rb +68 -0
  47. data/lib/telnyx/models/oauth_grant_delete_response.rb +3 -67
  48. data/lib/telnyx/models/oauth_grant_list_response.rb +3 -66
  49. data/lib/telnyx/models/oauth_grant_retrieve_response.rb +3 -67
  50. data/lib/telnyx/models/public_internet_gateway_create_response.rb +115 -0
  51. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +115 -0
  52. data/lib/telnyx/models/public_internet_gateway_list_response.rb +114 -0
  53. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +115 -0
  54. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +33 -1
  55. data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +33 -1
  56. data/lib/telnyx/models/verify_profile_create_template_response.rb +3 -20
  57. data/lib/telnyx/models/verify_profile_message_template_response.rb +21 -0
  58. data/lib/telnyx/models/verify_profile_retrieve_templates_response.rb +3 -20
  59. data/lib/telnyx/models/verify_profile_update_template_response.rb +3 -20
  60. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +275 -0
  61. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +275 -0
  62. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +274 -0
  63. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +275 -0
  64. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +275 -0
  65. data/lib/telnyx/models/wireguard_interface_create_response.rb +131 -0
  66. data/lib/telnyx/models/wireguard_interface_delete_response.rb +131 -0
  67. data/lib/telnyx/models/wireguard_interface_list_response.rb +130 -0
  68. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +131 -0
  69. data/lib/telnyx/models/wireguard_peer_create_response.rb +78 -0
  70. data/lib/telnyx/models/wireguard_peer_delete_response.rb +78 -0
  71. data/lib/telnyx/models/wireguard_peer_list_response.rb +77 -0
  72. data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +78 -0
  73. data/lib/telnyx/models/wireguard_peer_update_response.rb +78 -0
  74. data/lib/telnyx/models.rb +7 -1
  75. data/lib/telnyx/resources/advanced_orders.rb +26 -26
  76. data/lib/telnyx/resources/calls/actions.rb +2 -2
  77. data/lib/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rb +1 -1
  78. data/lib/telnyx/resources/legacy/reporting/batch_detail_records/voice.rb +1 -1
  79. data/lib/telnyx/resources/messaging_profiles.rb +6 -2
  80. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -1
  81. data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +3 -1
  82. data/lib/telnyx/version.rb +1 -1
  83. data/lib/telnyx.rb +11 -2
  84. data/rbi/telnyx/models/{advanced_order_update_params.rbi → advanced_order_update_requirement_group_params.rbi} +53 -25
  85. data/rbi/telnyx/models/{advanced_order_update_response.rbi → advanced_order_update_requirement_group_response.rbi} +1 -1
  86. data/rbi/telnyx/models/calls/action_start_transcription_params.rbi +6 -6
  87. data/rbi/telnyx/models/calls/transcription_start_request.rbi +1488 -15
  88. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbi +232 -0
  89. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbi +346 -0
  90. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbi +4 -279
  91. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbi +4 -614
  92. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbi +4 -614
  93. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbi +4 -614
  94. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbi +4 -614
  95. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbi +4 -155
  96. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbi +4 -155
  97. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbi +4 -155
  98. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbi +4 -155
  99. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbi +162 -0
  100. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbi +4 -279
  101. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbi +4 -500
  102. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbi +4 -500
  103. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbi +4 -500
  104. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbi +4 -500
  105. data/rbi/telnyx/models/legacy/reporting/filter.rbi +252 -0
  106. data/rbi/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbi +157 -0
  107. data/rbi/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbi +155 -0
  108. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbi +4 -148
  109. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbi +4 -148
  110. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbi +4 -148
  111. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbi +4 -148
  112. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbi +4 -150
  113. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbi +4 -150
  114. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbi +4 -150
  115. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbi +4 -150
  116. data/rbi/telnyx/models/messaging_profile.rbi +11 -0
  117. data/rbi/telnyx/models/messaging_profile_create_params.rbi +11 -0
  118. data/rbi/telnyx/models/messaging_profile_update_params.rbi +11 -0
  119. data/rbi/telnyx/models/network_list_interfaces_response.rbi +202 -0
  120. data/rbi/telnyx/models/oauth_client.rbi +250 -0
  121. data/rbi/telnyx/models/oauth_client_create_response.rbi +4 -317
  122. data/rbi/telnyx/models/oauth_client_list_response.rbi +4 -313
  123. data/rbi/telnyx/models/oauth_client_retrieve_response.rbi +4 -317
  124. data/rbi/telnyx/models/oauth_client_update_response.rbi +4 -317
  125. data/rbi/telnyx/models/oauth_grant.rbi +95 -0
  126. data/rbi/telnyx/models/oauth_grant_delete_response.rbi +4 -127
  127. data/rbi/telnyx/models/oauth_grant_list_response.rbi +4 -123
  128. data/rbi/telnyx/models/oauth_grant_retrieve_response.rbi +4 -129
  129. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +202 -0
  130. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +202 -0
  131. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +202 -0
  132. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +202 -0
  133. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +65 -0
  134. data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +67 -0
  135. data/rbi/telnyx/models/verify_profile_create_template_response.rbi +4 -44
  136. data/rbi/telnyx/models/verify_profile_message_template_response.rbi +35 -0
  137. data/rbi/telnyx/models/verify_profile_retrieve_templates_response.rbi +3 -45
  138. data/rbi/telnyx/models/verify_profile_update_template_response.rbi +4 -44
  139. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +444 -0
  140. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +444 -0
  141. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -0
  142. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +444 -0
  143. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +444 -0
  144. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +224 -0
  145. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +224 -0
  146. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +224 -0
  147. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +224 -0
  148. data/rbi/telnyx/models/wireguard_peer_create_response.rbi +125 -0
  149. data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +125 -0
  150. data/rbi/telnyx/models/wireguard_peer_list_response.rbi +125 -0
  151. data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +125 -0
  152. data/rbi/telnyx/models/wireguard_peer_update_response.rbi +125 -0
  153. data/rbi/telnyx/models.rbi +9 -1
  154. data/rbi/telnyx/resources/advanced_orders.rbi +16 -14
  155. data/rbi/telnyx/resources/calls/actions.rbi +7 -3
  156. data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbi +1 -4
  157. data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbi +1 -4
  158. data/rbi/telnyx/resources/messaging_profiles.rbi +6 -0
  159. data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -0
  160. data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +7 -0
  161. data/sig/telnyx/models/{advanced_order_update_params.rbs → advanced_order_update_requirement_group_params.rbs} +16 -16
  162. data/sig/telnyx/models/advanced_order_update_requirement_group_response.rbs +5 -0
  163. data/sig/telnyx/models/calls/action_start_transcription_params.rbs +5 -5
  164. data/sig/telnyx/models/calls/transcription_start_request.rbs +594 -11
  165. data/sig/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbs +142 -0
  166. data/sig/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbs +163 -0
  167. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbs +6 -108
  168. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbs +6 -262
  169. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbs +6 -262
  170. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbs +6 -262
  171. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbs +6 -262
  172. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbs +6 -82
  173. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbs +6 -82
  174. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbs +6 -82
  175. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbs +6 -82
  176. data/sig/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbs +85 -0
  177. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbs +6 -108
  178. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbs +6 -241
  179. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbs +6 -241
  180. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbs +6 -241
  181. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbs +6 -241
  182. data/sig/telnyx/models/legacy/reporting/filter.rbs +109 -0
  183. data/sig/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbs +105 -0
  184. data/sig/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbs +105 -0
  185. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbs +6 -102
  186. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbs +6 -102
  187. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbs +6 -102
  188. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbs +6 -102
  189. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbs +6 -102
  190. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbs +6 -102
  191. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbs +6 -102
  192. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbs +6 -102
  193. data/sig/telnyx/models/messaging_profile.rbs +7 -0
  194. data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
  195. data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
  196. data/sig/telnyx/models/network_list_interfaces_response.rbs +110 -0
  197. data/sig/telnyx/models/oauth_client.rbs +137 -0
  198. data/sig/telnyx/models/oauth_client_create_response.rbs +5 -144
  199. data/sig/telnyx/models/oauth_client_list_response.rbs +5 -141
  200. data/sig/telnyx/models/oauth_client_retrieve_response.rbs +5 -146
  201. data/sig/telnyx/models/oauth_client_update_response.rbs +5 -144
  202. data/sig/telnyx/models/oauth_grant.rbs +55 -0
  203. data/sig/telnyx/models/oauth_grant_delete_response.rbs +5 -62
  204. data/sig/telnyx/models/oauth_grant_list_response.rbs +5 -59
  205. data/sig/telnyx/models/oauth_grant_retrieve_response.rbs +5 -62
  206. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +110 -0
  207. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +110 -0
  208. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +110 -0
  209. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +110 -0
  210. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +21 -0
  211. data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +21 -0
  212. data/sig/telnyx/models/verify_profile_create_template_response.rbs +6 -24
  213. data/sig/telnyx/models/verify_profile_message_template_response.rbs +19 -0
  214. data/sig/telnyx/models/verify_profile_retrieve_templates_response.rbs +4 -22
  215. data/sig/telnyx/models/verify_profile_update_template_response.rbs +6 -24
  216. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +219 -0
  217. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +219 -0
  218. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +219 -0
  219. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +219 -0
  220. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +219 -0
  221. data/sig/telnyx/models/wireguard_interface_create_response.rbs +124 -0
  222. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +124 -0
  223. data/sig/telnyx/models/wireguard_interface_list_response.rbs +124 -0
  224. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +124 -0
  225. data/sig/telnyx/models/wireguard_peer_create_response.rbs +68 -0
  226. data/sig/telnyx/models/wireguard_peer_delete_response.rbs +68 -0
  227. data/sig/telnyx/models/wireguard_peer_list_response.rbs +68 -0
  228. data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +68 -0
  229. data/sig/telnyx/models/wireguard_peer_update_response.rbs +68 -0
  230. data/sig/telnyx/models.rbs +7 -1
  231. data/sig/telnyx/resources/advanced_orders.rbs +6 -6
  232. data/sig/telnyx/resources/calls/actions.rbs +1 -1
  233. data/sig/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbs +1 -1
  234. data/sig/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbs +1 -1
  235. data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
  236. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -0
  237. data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +1 -0
  238. metadata +35 -8
  239. data/sig/telnyx/models/advanced_order_update_response.rbs +0 -5
@@ -10,110 +10,11 @@ module Telnyx
10
10
  # @!attribute data
11
11
  # Legacy V2 CDR usage report response
12
12
  #
13
- # @return [Telnyx::Models::Legacy::Reporting::UsageReports::VoiceCreateResponse::Data, nil]
14
- optional :data, -> { Telnyx::Models::Legacy::Reporting::UsageReports::VoiceCreateResponse::Data }
13
+ # @return [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy, nil]
14
+ optional :data, -> { Telnyx::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy }
15
15
 
16
16
  # @!method initialize(data: nil)
17
- # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::VoiceCreateResponse::Data] Legacy V2 CDR usage report response
18
-
19
- # @see Telnyx::Models::Legacy::Reporting::UsageReports::VoiceCreateResponse#data
20
- class Data < Telnyx::Internal::Type::BaseModel
21
- # @!attribute id
22
- # Identifies the resource
23
- #
24
- # @return [String, nil]
25
- optional :id, String
26
-
27
- # @!attribute aggregation_type
28
- # Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
29
- #
30
- # @return [Integer, nil]
31
- optional :aggregation_type, Integer
32
-
33
- # @!attribute connections
34
- #
35
- # @return [Array<Integer>, nil]
36
- optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
37
-
38
- # @!attribute created_at
39
- #
40
- # @return [Time, nil]
41
- optional :created_at, Time
42
-
43
- # @!attribute end_time
44
- #
45
- # @return [Time, nil]
46
- optional :end_time, Time
47
-
48
- # @!attribute product_breakdown
49
- # Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
50
- # vs Toll-free per Country = 3
51
- #
52
- # @return [Integer, nil]
53
- optional :product_breakdown, Integer
54
-
55
- # @!attribute record_type
56
- #
57
- # @return [String, nil]
58
- optional :record_type, String
59
-
60
- # @!attribute report_url
61
- #
62
- # @return [String, nil]
63
- optional :report_url, String
64
-
65
- # @!attribute result
66
- #
67
- # @return [Object, nil]
68
- optional :result, Telnyx::Internal::Type::Unknown
69
-
70
- # @!attribute start_time
71
- #
72
- # @return [Time, nil]
73
- optional :start_time, Time
74
-
75
- # @!attribute status
76
- # Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
77
- #
78
- # @return [Integer, nil]
79
- optional :status, Integer
80
-
81
- # @!attribute updated_at
82
- #
83
- # @return [Time, nil]
84
- optional :updated_at, Time
85
-
86
- # @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, product_breakdown: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
87
- # Some parameter documentations has been truncated, see
88
- # {Telnyx::Models::Legacy::Reporting::UsageReports::VoiceCreateResponse::Data} for
89
- # more details.
90
- #
91
- # Legacy V2 CDR usage report response
92
- #
93
- # @param id [String] Identifies the resource
94
- #
95
- # @param aggregation_type [Integer] Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
96
- #
97
- # @param connections [Array<Integer>]
98
- #
99
- # @param created_at [Time]
100
- #
101
- # @param end_time [Time]
102
- #
103
- # @param product_breakdown [Integer] Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
104
- #
105
- # @param record_type [String]
106
- #
107
- # @param report_url [String]
108
- #
109
- # @param result [Object]
110
- #
111
- # @param start_time [Time]
112
- #
113
- # @param status [Integer] Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
114
- #
115
- # @param updated_at [Time]
116
- end
17
+ # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy] Legacy V2 CDR usage report response
117
18
  end
118
19
  end
119
20
  end
@@ -10,110 +10,11 @@ module Telnyx
10
10
  # @!attribute data
11
11
  # Legacy V2 CDR usage report response
12
12
  #
13
- # @return [Telnyx::Models::Legacy::Reporting::UsageReports::VoiceDeleteResponse::Data, nil]
14
- optional :data, -> { Telnyx::Models::Legacy::Reporting::UsageReports::VoiceDeleteResponse::Data }
13
+ # @return [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy, nil]
14
+ optional :data, -> { Telnyx::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy }
15
15
 
16
16
  # @!method initialize(data: nil)
17
- # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::VoiceDeleteResponse::Data] Legacy V2 CDR usage report response
18
-
19
- # @see Telnyx::Models::Legacy::Reporting::UsageReports::VoiceDeleteResponse#data
20
- class Data < Telnyx::Internal::Type::BaseModel
21
- # @!attribute id
22
- # Identifies the resource
23
- #
24
- # @return [String, nil]
25
- optional :id, String
26
-
27
- # @!attribute aggregation_type
28
- # Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
29
- #
30
- # @return [Integer, nil]
31
- optional :aggregation_type, Integer
32
-
33
- # @!attribute connections
34
- #
35
- # @return [Array<Integer>, nil]
36
- optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
37
-
38
- # @!attribute created_at
39
- #
40
- # @return [Time, nil]
41
- optional :created_at, Time
42
-
43
- # @!attribute end_time
44
- #
45
- # @return [Time, nil]
46
- optional :end_time, Time
47
-
48
- # @!attribute product_breakdown
49
- # Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
50
- # vs Toll-free per Country = 3
51
- #
52
- # @return [Integer, nil]
53
- optional :product_breakdown, Integer
54
-
55
- # @!attribute record_type
56
- #
57
- # @return [String, nil]
58
- optional :record_type, String
59
-
60
- # @!attribute report_url
61
- #
62
- # @return [String, nil]
63
- optional :report_url, String
64
-
65
- # @!attribute result
66
- #
67
- # @return [Object, nil]
68
- optional :result, Telnyx::Internal::Type::Unknown
69
-
70
- # @!attribute start_time
71
- #
72
- # @return [Time, nil]
73
- optional :start_time, Time
74
-
75
- # @!attribute status
76
- # Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
77
- #
78
- # @return [Integer, nil]
79
- optional :status, Integer
80
-
81
- # @!attribute updated_at
82
- #
83
- # @return [Time, nil]
84
- optional :updated_at, Time
85
-
86
- # @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, product_breakdown: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
87
- # Some parameter documentations has been truncated, see
88
- # {Telnyx::Models::Legacy::Reporting::UsageReports::VoiceDeleteResponse::Data} for
89
- # more details.
90
- #
91
- # Legacy V2 CDR usage report response
92
- #
93
- # @param id [String] Identifies the resource
94
- #
95
- # @param aggregation_type [Integer] Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
96
- #
97
- # @param connections [Array<Integer>]
98
- #
99
- # @param created_at [Time]
100
- #
101
- # @param end_time [Time]
102
- #
103
- # @param product_breakdown [Integer] Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
104
- #
105
- # @param record_type [String]
106
- #
107
- # @param report_url [String]
108
- #
109
- # @param result [Object]
110
- #
111
- # @param start_time [Time]
112
- #
113
- # @param status [Integer] Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
114
- #
115
- # @param updated_at [Time]
116
- end
17
+ # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy] Legacy V2 CDR usage report response
117
18
  end
118
19
  end
119
20
  end
@@ -9,9 +9,9 @@ module Telnyx
9
9
  class VoiceListResponse < Telnyx::Internal::Type::BaseModel
10
10
  # @!attribute data
11
11
  #
12
- # @return [Array<Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse::Data>, nil]
12
+ # @return [Array<Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy>, nil]
13
13
  optional :data,
14
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse::Data] }
14
+ -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy] }
15
15
 
16
16
  # @!attribute meta
17
17
  #
@@ -19,107 +19,9 @@ module Telnyx
19
19
  optional :meta, -> { Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse::Meta }
20
20
 
21
21
  # @!method initialize(data: nil, meta: nil)
22
- # @param data [Array<Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse::Data>]
22
+ # @param data [Array<Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy>]
23
23
  # @param meta [Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse::Meta]
24
24
 
25
- class Data < Telnyx::Internal::Type::BaseModel
26
- # @!attribute id
27
- # Identifies the resource
28
- #
29
- # @return [String, nil]
30
- optional :id, String
31
-
32
- # @!attribute aggregation_type
33
- # Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
34
- #
35
- # @return [Integer, nil]
36
- optional :aggregation_type, Integer
37
-
38
- # @!attribute connections
39
- #
40
- # @return [Array<Integer>, nil]
41
- optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
42
-
43
- # @!attribute created_at
44
- #
45
- # @return [Time, nil]
46
- optional :created_at, Time
47
-
48
- # @!attribute end_time
49
- #
50
- # @return [Time, nil]
51
- optional :end_time, Time
52
-
53
- # @!attribute product_breakdown
54
- # Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
55
- # vs Toll-free per Country = 3
56
- #
57
- # @return [Integer, nil]
58
- optional :product_breakdown, Integer
59
-
60
- # @!attribute record_type
61
- #
62
- # @return [String, nil]
63
- optional :record_type, String
64
-
65
- # @!attribute report_url
66
- #
67
- # @return [String, nil]
68
- optional :report_url, String
69
-
70
- # @!attribute result
71
- #
72
- # @return [Object, nil]
73
- optional :result, Telnyx::Internal::Type::Unknown
74
-
75
- # @!attribute start_time
76
- #
77
- # @return [Time, nil]
78
- optional :start_time, Time
79
-
80
- # @!attribute status
81
- # Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
82
- #
83
- # @return [Integer, nil]
84
- optional :status, Integer
85
-
86
- # @!attribute updated_at
87
- #
88
- # @return [Time, nil]
89
- optional :updated_at, Time
90
-
91
- # @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, product_breakdown: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
92
- # Some parameter documentations has been truncated, see
93
- # {Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse::Data} for
94
- # more details.
95
- #
96
- # Legacy V2 CDR usage report response
97
- #
98
- # @param id [String] Identifies the resource
99
- #
100
- # @param aggregation_type [Integer] Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
101
- #
102
- # @param connections [Array<Integer>]
103
- #
104
- # @param created_at [Time]
105
- #
106
- # @param end_time [Time]
107
- #
108
- # @param product_breakdown [Integer] Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
109
- #
110
- # @param record_type [String]
111
- #
112
- # @param report_url [String]
113
- #
114
- # @param result [Object]
115
- #
116
- # @param start_time [Time]
117
- #
118
- # @param status [Integer] Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
119
- #
120
- # @param updated_at [Time]
121
- end
122
-
123
25
  # @see Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse#meta
124
26
  class Meta < Telnyx::Internal::Type::BaseModel
125
27
  # @!attribute page_number
@@ -10,110 +10,11 @@ module Telnyx
10
10
  # @!attribute data
11
11
  # Legacy V2 CDR usage report response
12
12
  #
13
- # @return [Telnyx::Models::Legacy::Reporting::UsageReports::VoiceRetrieveResponse::Data, nil]
14
- optional :data, -> { Telnyx::Models::Legacy::Reporting::UsageReports::VoiceRetrieveResponse::Data }
13
+ # @return [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy, nil]
14
+ optional :data, -> { Telnyx::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy }
15
15
 
16
16
  # @!method initialize(data: nil)
17
- # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::VoiceRetrieveResponse::Data] Legacy V2 CDR usage report response
18
-
19
- # @see Telnyx::Models::Legacy::Reporting::UsageReports::VoiceRetrieveResponse#data
20
- class Data < Telnyx::Internal::Type::BaseModel
21
- # @!attribute id
22
- # Identifies the resource
23
- #
24
- # @return [String, nil]
25
- optional :id, String
26
-
27
- # @!attribute aggregation_type
28
- # Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
29
- #
30
- # @return [Integer, nil]
31
- optional :aggregation_type, Integer
32
-
33
- # @!attribute connections
34
- #
35
- # @return [Array<Integer>, nil]
36
- optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
37
-
38
- # @!attribute created_at
39
- #
40
- # @return [Time, nil]
41
- optional :created_at, Time
42
-
43
- # @!attribute end_time
44
- #
45
- # @return [Time, nil]
46
- optional :end_time, Time
47
-
48
- # @!attribute product_breakdown
49
- # Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
50
- # vs Toll-free per Country = 3
51
- #
52
- # @return [Integer, nil]
53
- optional :product_breakdown, Integer
54
-
55
- # @!attribute record_type
56
- #
57
- # @return [String, nil]
58
- optional :record_type, String
59
-
60
- # @!attribute report_url
61
- #
62
- # @return [String, nil]
63
- optional :report_url, String
64
-
65
- # @!attribute result
66
- #
67
- # @return [Object, nil]
68
- optional :result, Telnyx::Internal::Type::Unknown
69
-
70
- # @!attribute start_time
71
- #
72
- # @return [Time, nil]
73
- optional :start_time, Time
74
-
75
- # @!attribute status
76
- # Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
77
- #
78
- # @return [Integer, nil]
79
- optional :status, Integer
80
-
81
- # @!attribute updated_at
82
- #
83
- # @return [Time, nil]
84
- optional :updated_at, Time
85
-
86
- # @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, product_breakdown: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
87
- # Some parameter documentations has been truncated, see
88
- # {Telnyx::Models::Legacy::Reporting::UsageReports::VoiceRetrieveResponse::Data}
89
- # for more details.
90
- #
91
- # Legacy V2 CDR usage report response
92
- #
93
- # @param id [String] Identifies the resource
94
- #
95
- # @param aggregation_type [Integer] Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
96
- #
97
- # @param connections [Array<Integer>]
98
- #
99
- # @param created_at [Time]
100
- #
101
- # @param end_time [Time]
102
- #
103
- # @param product_breakdown [Integer] Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
104
- #
105
- # @param record_type [String]
106
- #
107
- # @param report_url [String]
108
- #
109
- # @param result [Object]
110
- #
111
- # @param start_time [Time]
112
- #
113
- # @param status [Integer] Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
114
- #
115
- # @param updated_at [Time]
116
- end
17
+ # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy] Legacy V2 CDR usage report response
117
18
  end
118
19
  end
119
20
  end
@@ -41,6 +41,12 @@ module Telnyx
41
41
  # @return [Boolean, nil]
42
42
  optional :mms_transcoding, Telnyx::Internal::Type::Boolean
43
43
 
44
+ # @!attribute mobile_only
45
+ # Send messages only to mobile phone numbers.
46
+ #
47
+ # @return [Boolean, nil]
48
+ optional :mobile_only, Telnyx::Internal::Type::Boolean
49
+
44
50
  # @!attribute name
45
51
  # A user friendly name for the messaging profile.
46
52
  #
@@ -129,7 +135,7 @@ module Telnyx
129
135
  optional :updated_at, Time
130
136
  end
131
137
 
132
- # @!method initialize(id: nil, alpha_sender: nil, created_at: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, name: nil, number_pool_settings: nil, record_type: nil, updated_at: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil)
138
+ # @!method initialize(id: nil, alpha_sender: nil, created_at: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, name: nil, number_pool_settings: nil, record_type: nil, updated_at: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil)
133
139
  # Some parameter documentations has been truncated, see
134
140
  # {Telnyx::Models::MessagingProfile} for more details.
135
141
  #
@@ -149,6 +155,8 @@ module Telnyx
149
155
  #
150
156
  # @param mms_transcoding [Boolean] enables automated resizing of MMS media.
151
157
  #
158
+ # @param mobile_only [Boolean] Send messages only to mobile phone numbers.
159
+ #
152
160
  # @param name [String] A user friendly name for the messaging profile.
153
161
  #
154
162
  # @param number_pool_settings [Telnyx::Models::NumberPoolSettings, nil] Number Pool allows you to send messages from a pool of numbers of different type
@@ -59,6 +59,12 @@ module Telnyx
59
59
  # @return [Boolean, nil]
60
60
  optional :mms_transcoding, Telnyx::Internal::Type::Boolean
61
61
 
62
+ # @!attribute mobile_only
63
+ # Send messages only to mobile phone numbers.
64
+ #
65
+ # @return [Boolean, nil]
66
+ optional :mobile_only, Telnyx::Internal::Type::Boolean
67
+
62
68
  # @!attribute number_pool_settings
63
69
  # Number Pool allows you to send messages from a pool of numbers of different
64
70
  # types, assigning weights to each type. The pool consists of all the long code
@@ -101,7 +107,7 @@ module Telnyx
101
107
  # @return [String, nil]
102
108
  optional :webhook_url, String, nil?: true
103
109
 
104
- # @!method initialize(name:, whitelisted_destinations:, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, number_pool_settings: nil, url_shortener_settings: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
110
+ # @!method initialize(name:, whitelisted_destinations:, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, number_pool_settings: nil, url_shortener_settings: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
105
111
  # Some parameter documentations has been truncated, see
106
112
  # {Telnyx::Models::MessagingProfileCreateParams} for more details.
107
113
  #
@@ -121,6 +127,8 @@ module Telnyx
121
127
  #
122
128
  # @param mms_transcoding [Boolean] enables automated resizing of MMS media.
123
129
  #
130
+ # @param mobile_only [Boolean] Send messages only to mobile phone numbers.
131
+ #
124
132
  # @param number_pool_settings [Telnyx::Models::NumberPoolSettings, nil] Number Pool allows you to send messages from a pool of numbers of different type
125
133
  #
126
134
  # @param url_shortener_settings [Telnyx::Models::URLShortenerSettings, nil] The URL shortener feature allows automatic replacement of URLs that were generat
@@ -45,6 +45,12 @@ module Telnyx
45
45
  # @return [Boolean, nil]
46
46
  optional :mms_transcoding, Telnyx::Internal::Type::Boolean
47
47
 
48
+ # @!attribute mobile_only
49
+ # Send messages only to mobile phone numbers.
50
+ #
51
+ # @return [Boolean, nil]
52
+ optional :mobile_only, Telnyx::Internal::Type::Boolean
53
+
48
54
  # @!attribute name
49
55
  # A user friendly name for the messaging profile.
50
56
  #
@@ -109,7 +115,7 @@ module Telnyx
109
115
  # @return [Array<String>, nil]
110
116
  optional :whitelisted_destinations, Telnyx::Internal::Type::ArrayOf[String]
111
117
 
112
- # @!method initialize(alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, name: nil, number_pool_settings: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil, request_options: {})
118
+ # @!method initialize(alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, name: nil, number_pool_settings: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil, request_options: {})
113
119
  # Some parameter documentations has been truncated, see
114
120
  # {Telnyx::Models::MessagingProfileUpdateParams} for more details.
115
121
  #
@@ -125,6 +131,8 @@ module Telnyx
125
131
  #
126
132
  # @param mms_transcoding [Boolean] enables automated resizing of MMS media.
127
133
  #
134
+ # @param mobile_only [Boolean] Send messages only to mobile phone numbers.
135
+ #
128
136
  # @param name [String] A user friendly name for the messaging profile.
129
137
  #
130
138
  # @param number_pool_settings [Telnyx::Models::NumberPoolSettings, nil] Number Pool allows you to send messages from a pool of numbers of different type
@@ -18,6 +18,120 @@ module Telnyx
18
18
  # @!method initialize(data: nil, meta: nil)
19
19
  # @param data [Array<Telnyx::Models::NetworkListInterfacesResponse::Data>]
20
20
  # @param meta [Telnyx::Models::PaginationMeta]
21
+
22
+ class Data < Telnyx::Internal::Type::BaseModel
23
+ # @!attribute name
24
+ # A user specified name for the interface.
25
+ #
26
+ # @return [String, nil]
27
+ optional :name, String
28
+
29
+ # @!attribute network_id
30
+ # The id of the network associated with the interface.
31
+ #
32
+ # @return [String, nil]
33
+ optional :network_id, String
34
+
35
+ # @!attribute region
36
+ #
37
+ # @return [Telnyx::Models::NetworkListInterfacesResponse::Data::Region, nil]
38
+ optional :region, -> { Telnyx::Models::NetworkListInterfacesResponse::Data::Region }
39
+
40
+ # @!attribute region_code
41
+ # The region interface is deployed to.
42
+ #
43
+ # @return [String, nil]
44
+ optional :region_code, String
45
+
46
+ response_only do
47
+ # @!attribute id
48
+ # Identifies the resource.
49
+ #
50
+ # @return [String, nil]
51
+ optional :id, String
52
+
53
+ # @!attribute created_at
54
+ # ISO 8601 formatted date-time indicating when the resource was created.
55
+ #
56
+ # @return [String, nil]
57
+ optional :created_at, String
58
+
59
+ # @!attribute record_type
60
+ # Identifies the type of the resource.
61
+ #
62
+ # @return [String, nil]
63
+ optional :record_type, String
64
+
65
+ # @!attribute updated_at
66
+ # ISO 8601 formatted date-time indicating when the resource was updated.
67
+ #
68
+ # @return [String, nil]
69
+ optional :updated_at, String
70
+
71
+ # @!attribute status
72
+ # The current status of the interface deployment.
73
+ #
74
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
75
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
76
+
77
+ # @!attribute type
78
+ # Identifies the type of the interface.
79
+ #
80
+ # @return [String, nil]
81
+ optional :type, String
82
+ end
83
+
84
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, region: nil, region_code: nil, type: nil)
85
+ # @param id [String] Identifies the resource.
86
+ #
87
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
88
+ #
89
+ # @param record_type [String] Identifies the type of the resource.
90
+ #
91
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
92
+ #
93
+ # @param name [String] A user specified name for the interface.
94
+ #
95
+ # @param network_id [String] The id of the network associated with the interface.
96
+ #
97
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
98
+ #
99
+ # @param region [Telnyx::Models::NetworkListInterfacesResponse::Data::Region]
100
+ #
101
+ # @param region_code [String] The region interface is deployed to.
102
+ #
103
+ # @param type [String] Identifies the type of the interface.
104
+
105
+ # @see Telnyx::Models::NetworkListInterfacesResponse::Data#region
106
+ class Region < Telnyx::Internal::Type::BaseModel
107
+ # @!attribute code
108
+ # Region code of the interface.
109
+ #
110
+ # @return [String, nil]
111
+ optional :code, String
112
+
113
+ # @!attribute name
114
+ # Region name of the interface.
115
+ #
116
+ # @return [String, nil]
117
+ optional :name, String
118
+
119
+ response_only do
120
+ # @!attribute record_type
121
+ # Identifies the type of the resource.
122
+ #
123
+ # @return [String, nil]
124
+ optional :record_type, String
125
+ end
126
+
127
+ # @!method initialize(code: nil, name: nil, record_type: nil)
128
+ # @param code [String] Region code of the interface.
129
+ #
130
+ # @param name [String] Region name of the interface.
131
+ #
132
+ # @param record_type [String] Identifies the type of the resource.
133
+ end
134
+ end
21
135
  end
22
136
  end
23
137
  end