telnyx 4.1.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 (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/calls/action_start_transcription_params.rb +3 -3
  5. data/lib/telnyx/models/calls/transcription_start_request.rb +56 -56
  6. data/lib/telnyx/models/messaging_profile.rb +9 -1
  7. data/lib/telnyx/models/messaging_profile_create_params.rb +9 -1
  8. data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
  9. data/lib/telnyx/models/network_list_interfaces_response.rb +114 -0
  10. data/lib/telnyx/models/public_internet_gateway_create_response.rb +115 -0
  11. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +115 -0
  12. data/lib/telnyx/models/public_internet_gateway_list_response.rb +114 -0
  13. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +115 -0
  14. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +33 -1
  15. data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +33 -1
  16. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +275 -0
  17. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +275 -0
  18. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +274 -0
  19. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +275 -0
  20. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +275 -0
  21. data/lib/telnyx/models/wireguard_interface_create_response.rb +131 -0
  22. data/lib/telnyx/models/wireguard_interface_delete_response.rb +131 -0
  23. data/lib/telnyx/models/wireguard_interface_list_response.rb +130 -0
  24. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +131 -0
  25. data/lib/telnyx/models/wireguard_peer_create_response.rb +78 -0
  26. data/lib/telnyx/models/wireguard_peer_delete_response.rb +78 -0
  27. data/lib/telnyx/models/wireguard_peer_list_response.rb +77 -0
  28. data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +78 -0
  29. data/lib/telnyx/models/wireguard_peer_update_response.rb +78 -0
  30. data/lib/telnyx/resources/calls/actions.rb +1 -1
  31. data/lib/telnyx/resources/messaging_profiles.rb +6 -2
  32. data/lib/telnyx/resources/texml/accounts/calls.rb +3 -1
  33. data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +3 -1
  34. data/lib/telnyx/version.rb +1 -1
  35. data/rbi/telnyx/models/calls/action_start_transcription_params.rbi +6 -6
  36. data/rbi/telnyx/models/calls/transcription_start_request.rbi +266 -263
  37. data/rbi/telnyx/models/messaging_profile.rbi +11 -0
  38. data/rbi/telnyx/models/messaging_profile_create_params.rbi +11 -0
  39. data/rbi/telnyx/models/messaging_profile_update_params.rbi +11 -0
  40. data/rbi/telnyx/models/network_list_interfaces_response.rbi +202 -0
  41. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +202 -0
  42. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +202 -0
  43. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +202 -0
  44. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +202 -0
  45. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +65 -0
  46. data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +67 -0
  47. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +444 -0
  48. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +444 -0
  49. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -0
  50. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +444 -0
  51. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +444 -0
  52. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +224 -0
  53. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +224 -0
  54. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +224 -0
  55. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +224 -0
  56. data/rbi/telnyx/models/wireguard_peer_create_response.rbi +125 -0
  57. data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +125 -0
  58. data/rbi/telnyx/models/wireguard_peer_list_response.rbi +125 -0
  59. data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +125 -0
  60. data/rbi/telnyx/models/wireguard_peer_update_response.rbi +125 -0
  61. data/rbi/telnyx/resources/calls/actions.rbi +5 -5
  62. data/rbi/telnyx/resources/messaging_profiles.rbi +6 -0
  63. data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -0
  64. data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +7 -0
  65. data/sig/telnyx/models/calls/action_start_transcription_params.rbs +5 -5
  66. data/sig/telnyx/models/calls/transcription_start_request.rbs +83 -83
  67. data/sig/telnyx/models/messaging_profile.rbs +7 -0
  68. data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
  69. data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
  70. data/sig/telnyx/models/network_list_interfaces_response.rbs +110 -0
  71. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +110 -0
  72. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +110 -0
  73. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +110 -0
  74. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +110 -0
  75. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +21 -0
  76. data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +21 -0
  77. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +219 -0
  78. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +219 -0
  79. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +219 -0
  80. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +219 -0
  81. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +219 -0
  82. data/sig/telnyx/models/wireguard_interface_create_response.rbs +124 -0
  83. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +124 -0
  84. data/sig/telnyx/models/wireguard_interface_list_response.rbs +124 -0
  85. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +124 -0
  86. data/sig/telnyx/models/wireguard_peer_create_response.rbs +68 -0
  87. data/sig/telnyx/models/wireguard_peer_delete_response.rbs +68 -0
  88. data/sig/telnyx/models/wireguard_peer_list_response.rbs +68 -0
  89. data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +68 -0
  90. data/sig/telnyx/models/wireguard_peer_update_response.rbs +68 -0
  91. data/sig/telnyx/resources/calls/actions.rbs +1 -1
  92. data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
  93. data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -0
  94. data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +1 -0
  95. metadata +2 -2
@@ -11,6 +11,281 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::VirtualCrossConnectUpdateResponse::Data]
14
+
15
+ # @see Telnyx::Models::VirtualCrossConnectUpdateResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute name
18
+ # A user specified name for the interface.
19
+ #
20
+ # @return [String, nil]
21
+ optional :name, String
22
+
23
+ # @!attribute network_id
24
+ # The id of the network associated with the interface.
25
+ #
26
+ # @return [String, nil]
27
+ optional :network_id, String
28
+
29
+ # @!attribute region_code
30
+ # The region the interface should be deployed to.
31
+ #
32
+ # @return [String, nil]
33
+ optional :region_code, String
34
+
35
+ # @!attribute bgp_asn
36
+ # The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
37
+ # will be assigned by Telnyx.
38
+ #
39
+ # @return [Float]
40
+ required :bgp_asn, Float
41
+
42
+ # @!attribute cloud_provider
43
+ # The Virtual Private Cloud with which you would like to establish a cross
44
+ # connect.
45
+ #
46
+ # @return [Symbol, Telnyx::Models::VirtualCrossConnectUpdateResponse::Data::CloudProvider]
47
+ required :cloud_provider,
48
+ enum: -> { Telnyx::Models::VirtualCrossConnectUpdateResponse::Data::CloudProvider }
49
+
50
+ # @!attribute cloud_provider_region
51
+ # The region where your Virtual Private Cloud hosts are located.<br /><br />The
52
+ # available regions can be found using the /virtual_cross_connect_regions
53
+ # endpoint.
54
+ #
55
+ # @return [String]
56
+ required :cloud_provider_region, String
57
+
58
+ # @!attribute primary_cloud_account_id
59
+ # The identifier for your Virtual Private Cloud. The number will be different
60
+ # based upon your Cloud provider.
61
+ #
62
+ # @return [String]
63
+ required :primary_cloud_account_id, String
64
+
65
+ # @!attribute bandwidth_mbps
66
+ # The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
67
+ # Connect.<br /><br />The available bandwidths can be found using the
68
+ # /virtual_cross_connect_regions endpoint.
69
+ #
70
+ # @return [Float, nil]
71
+ optional :bandwidth_mbps, Float
72
+
73
+ # @!attribute primary_bgp_key
74
+ # The authentication key for BGP peer configuration.
75
+ #
76
+ # @return [String, nil]
77
+ optional :primary_bgp_key, String
78
+
79
+ # @!attribute primary_cloud_ip
80
+ # The IP address assigned for your side of the Virtual Cross
81
+ # Connect.<br /><br />If none is provided, one will be generated for
82
+ # you.<br /><br />This value can not be patched once the VXC has bene provisioned.
83
+ #
84
+ # @return [String, nil]
85
+ optional :primary_cloud_ip, String
86
+
87
+ # @!attribute primary_enabled
88
+ # Indicates whether the primary circuit is enabled. Setting this to `false` will
89
+ # disable the circuit.
90
+ #
91
+ # @return [Boolean, nil]
92
+ optional :primary_enabled, Telnyx::Internal::Type::Boolean
93
+
94
+ # @!attribute primary_routing_announcement
95
+ # Whether the primary BGP route is being announced.
96
+ #
97
+ # @return [Boolean, nil]
98
+ optional :primary_routing_announcement, Telnyx::Internal::Type::Boolean
99
+
100
+ # @!attribute primary_telnyx_ip
101
+ # The IP address assigned to the Telnyx side of the Virtual Cross
102
+ # Connect.<br /><br />If none is provided, one will be generated for
103
+ # you.<br /><br />This value should be null for GCE as Google will only inform you
104
+ # of your assigned IP once the connection has been accepted.
105
+ #
106
+ # @return [String, nil]
107
+ optional :primary_telnyx_ip, String
108
+
109
+ # @!attribute region
110
+ #
111
+ # @return [Telnyx::Models::VirtualCrossConnectUpdateResponse::Data::Region, nil]
112
+ optional :region, -> { Telnyx::Models::VirtualCrossConnectUpdateResponse::Data::Region }
113
+
114
+ # @!attribute secondary_bgp_key
115
+ # The authentication key for BGP peer configuration.
116
+ #
117
+ # @return [String, nil]
118
+ optional :secondary_bgp_key, String
119
+
120
+ # @!attribute secondary_cloud_account_id
121
+ # The identifier for your Virtual Private Cloud. The number will be different
122
+ # based upon your Cloud provider.<br /><br />This attribute is only necessary for
123
+ # GCE.
124
+ #
125
+ # @return [String, nil]
126
+ optional :secondary_cloud_account_id, String
127
+
128
+ # @!attribute secondary_cloud_ip
129
+ # The IP address assigned for your side of the Virtual Cross
130
+ # Connect.<br /><br />If none is provided, one will be generated for
131
+ # you.<br /><br />This value can not be patched once the VXC has bene provisioned.
132
+ #
133
+ # @return [String, nil]
134
+ optional :secondary_cloud_ip, String
135
+
136
+ # @!attribute secondary_enabled
137
+ # Indicates whether the secondary circuit is enabled. Setting this to `false` will
138
+ # disable the circuit.
139
+ #
140
+ # @return [Boolean, nil]
141
+ optional :secondary_enabled, Telnyx::Internal::Type::Boolean
142
+
143
+ # @!attribute secondary_routing_announcement
144
+ # Whether the secondary BGP route is being announced.
145
+ #
146
+ # @return [Boolean, nil]
147
+ optional :secondary_routing_announcement, Telnyx::Internal::Type::Boolean
148
+
149
+ # @!attribute secondary_telnyx_ip
150
+ # The IP address assigned to the Telnyx side of the Virtual Cross
151
+ # Connect.<br /><br />If none is provided, one will be generated for
152
+ # you.<br /><br />This value should be null for GCE as Google will only inform you
153
+ # of your assigned IP once the connection has been accepted.
154
+ #
155
+ # @return [String, nil]
156
+ optional :secondary_telnyx_ip, String
157
+
158
+ response_only do
159
+ # @!attribute id
160
+ # Identifies the resource.
161
+ #
162
+ # @return [String, nil]
163
+ optional :id, String
164
+
165
+ # @!attribute created_at
166
+ # ISO 8601 formatted date-time indicating when the resource was created.
167
+ #
168
+ # @return [String, nil]
169
+ optional :created_at, String
170
+
171
+ # @!attribute record_type
172
+ # Identifies the type of the resource.
173
+ #
174
+ # @return [String, nil]
175
+ optional :record_type, String
176
+
177
+ # @!attribute updated_at
178
+ # ISO 8601 formatted date-time indicating when the resource was updated.
179
+ #
180
+ # @return [String, nil]
181
+ optional :updated_at, String
182
+
183
+ # @!attribute status
184
+ # The current status of the interface deployment.
185
+ #
186
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
187
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
188
+ end
189
+
190
+ # @!method initialize(bgp_asn:, cloud_provider:, cloud_provider_region:, primary_cloud_account_id:, id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, region_code: nil, bandwidth_mbps: nil, primary_bgp_key: nil, primary_cloud_ip: nil, primary_enabled: nil, primary_routing_announcement: nil, primary_telnyx_ip: nil, region: nil, secondary_bgp_key: nil, secondary_cloud_account_id: nil, secondary_cloud_ip: nil, secondary_enabled: nil, secondary_routing_announcement: nil, secondary_telnyx_ip: nil)
191
+ # Some parameter documentations has been truncated, see
192
+ # {Telnyx::Models::VirtualCrossConnectUpdateResponse::Data} for more details.
193
+ #
194
+ # @param bgp_asn [Float] The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value
195
+ #
196
+ # @param cloud_provider [Symbol, Telnyx::Models::VirtualCrossConnectUpdateResponse::Data::CloudProvider] The Virtual Private Cloud with which you would like to establish a cross connect
197
+ #
198
+ # @param cloud_provider_region [String] The region where your Virtual Private Cloud hosts are located.<br /><br />The av
199
+ #
200
+ # @param primary_cloud_account_id [String] The identifier for your Virtual Private Cloud. The number will be different base
201
+ #
202
+ # @param id [String] Identifies the resource.
203
+ #
204
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
205
+ #
206
+ # @param record_type [String] Identifies the type of the resource.
207
+ #
208
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
209
+ #
210
+ # @param name [String] A user specified name for the interface.
211
+ #
212
+ # @param network_id [String] The id of the network associated with the interface.
213
+ #
214
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
215
+ #
216
+ # @param region_code [String] The region the interface should be deployed to.
217
+ #
218
+ # @param bandwidth_mbps [Float] The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Conn
219
+ #
220
+ # @param primary_bgp_key [String] The authentication key for BGP peer configuration.
221
+ #
222
+ # @param primary_cloud_ip [String] The IP address assigned for your side of the Virtual Cross Connect.<br /><br />I
223
+ #
224
+ # @param primary_enabled [Boolean] Indicates whether the primary circuit is enabled. Setting this to `false` will d
225
+ #
226
+ # @param primary_routing_announcement [Boolean] Whether the primary BGP route is being announced.
227
+ #
228
+ # @param primary_telnyx_ip [String] The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><b
229
+ #
230
+ # @param region [Telnyx::Models::VirtualCrossConnectUpdateResponse::Data::Region]
231
+ #
232
+ # @param secondary_bgp_key [String] The authentication key for BGP peer configuration.
233
+ #
234
+ # @param secondary_cloud_account_id [String] The identifier for your Virtual Private Cloud. The number will be different base
235
+ #
236
+ # @param secondary_cloud_ip [String] The IP address assigned for your side of the Virtual Cross Connect.<br /><br />I
237
+ #
238
+ # @param secondary_enabled [Boolean] Indicates whether the secondary circuit is enabled. Setting this to `false` will
239
+ #
240
+ # @param secondary_routing_announcement [Boolean] Whether the secondary BGP route is being announced.
241
+ #
242
+ # @param secondary_telnyx_ip [String] The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><b
243
+
244
+ # The Virtual Private Cloud with which you would like to establish a cross
245
+ # connect.
246
+ #
247
+ # @see Telnyx::Models::VirtualCrossConnectUpdateResponse::Data#cloud_provider
248
+ module CloudProvider
249
+ extend Telnyx::Internal::Type::Enum
250
+
251
+ AWS = :aws
252
+ AZURE = :azure
253
+ GCE = :gce
254
+
255
+ # @!method self.values
256
+ # @return [Array<Symbol>]
257
+ end
258
+
259
+ # @see Telnyx::Models::VirtualCrossConnectUpdateResponse::Data#region
260
+ class Region < Telnyx::Internal::Type::BaseModel
261
+ # @!attribute code
262
+ # Region code of the interface.
263
+ #
264
+ # @return [String, nil]
265
+ optional :code, String
266
+
267
+ # @!attribute name
268
+ # Region name of the interface.
269
+ #
270
+ # @return [String, nil]
271
+ optional :name, String
272
+
273
+ response_only do
274
+ # @!attribute record_type
275
+ # Identifies the type of the resource.
276
+ #
277
+ # @return [String, nil]
278
+ optional :record_type, String
279
+ end
280
+
281
+ # @!method initialize(code: nil, name: nil, record_type: nil)
282
+ # @param code [String] Region code of the interface.
283
+ #
284
+ # @param name [String] Region name of the interface.
285
+ #
286
+ # @param record_type [String] Identifies the type of the resource.
287
+ end
288
+ end
14
289
  end
15
290
  end
16
291
  end
@@ -11,6 +11,137 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardInterfaceCreateResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardInterfaceCreateResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute name
18
+ # A user specified name for the interface.
19
+ #
20
+ # @return [String, nil]
21
+ optional :name, String
22
+
23
+ # @!attribute network_id
24
+ # The id of the network associated with the interface.
25
+ #
26
+ # @return [String, nil]
27
+ optional :network_id, String
28
+
29
+ # @!attribute enable_sip_trunking
30
+ # Enable SIP traffic forwarding over VPN interface.
31
+ #
32
+ # @return [Boolean, nil]
33
+ optional :enable_sip_trunking, Telnyx::Internal::Type::Boolean
34
+
35
+ # @!attribute region
36
+ #
37
+ # @return [Telnyx::Models::WireguardInterfaceCreateResponse::Data::Region, nil]
38
+ optional :region, -> { Telnyx::Models::WireguardInterfaceCreateResponse::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 endpoint
78
+ # The Telnyx WireGuard peers `Peer.endpoint` value.
79
+ #
80
+ # @return [String, nil]
81
+ optional :endpoint, String
82
+
83
+ # @!attribute public_key
84
+ # The Telnyx WireGuard peers `Peer.PublicKey`.
85
+ #
86
+ # @return [String, nil]
87
+ optional :public_key, String
88
+ end
89
+
90
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, enable_sip_trunking: nil, endpoint: nil, public_key: nil, region: nil, region_code: nil)
91
+ # @param id [String] Identifies the resource.
92
+ #
93
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
94
+ #
95
+ # @param record_type [String] Identifies the type of the resource.
96
+ #
97
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
98
+ #
99
+ # @param name [String] A user specified name for the interface.
100
+ #
101
+ # @param network_id [String] The id of the network associated with the interface.
102
+ #
103
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
104
+ #
105
+ # @param enable_sip_trunking [Boolean] Enable SIP traffic forwarding over VPN interface.
106
+ #
107
+ # @param endpoint [String] The Telnyx WireGuard peers `Peer.endpoint` value.
108
+ #
109
+ # @param public_key [String] The Telnyx WireGuard peers `Peer.PublicKey`.
110
+ #
111
+ # @param region [Telnyx::Models::WireguardInterfaceCreateResponse::Data::Region]
112
+ #
113
+ # @param region_code [String] The region interface is deployed to.
114
+
115
+ # @see Telnyx::Models::WireguardInterfaceCreateResponse::Data#region
116
+ class Region < Telnyx::Internal::Type::BaseModel
117
+ # @!attribute code
118
+ # Region code of the interface.
119
+ #
120
+ # @return [String, nil]
121
+ optional :code, String
122
+
123
+ # @!attribute name
124
+ # Region name of the interface.
125
+ #
126
+ # @return [String, nil]
127
+ optional :name, String
128
+
129
+ response_only do
130
+ # @!attribute record_type
131
+ # Identifies the type of the resource.
132
+ #
133
+ # @return [String, nil]
134
+ optional :record_type, String
135
+ end
136
+
137
+ # @!method initialize(code: nil, name: nil, record_type: nil)
138
+ # @param code [String] Region code of the interface.
139
+ #
140
+ # @param name [String] Region name of the interface.
141
+ #
142
+ # @param record_type [String] Identifies the type of the resource.
143
+ end
144
+ end
14
145
  end
15
146
  end
16
147
  end
@@ -11,6 +11,137 @@ module Telnyx
11
11
 
12
12
  # @!method initialize(data: nil)
13
13
  # @param data [Telnyx::Models::WireguardInterfaceDeleteResponse::Data]
14
+
15
+ # @see Telnyx::Models::WireguardInterfaceDeleteResponse#data
16
+ class Data < Telnyx::Internal::Type::BaseModel
17
+ # @!attribute name
18
+ # A user specified name for the interface.
19
+ #
20
+ # @return [String, nil]
21
+ optional :name, String
22
+
23
+ # @!attribute network_id
24
+ # The id of the network associated with the interface.
25
+ #
26
+ # @return [String, nil]
27
+ optional :network_id, String
28
+
29
+ # @!attribute enable_sip_trunking
30
+ # Enable SIP traffic forwarding over VPN interface.
31
+ #
32
+ # @return [Boolean, nil]
33
+ optional :enable_sip_trunking, Telnyx::Internal::Type::Boolean
34
+
35
+ # @!attribute region
36
+ #
37
+ # @return [Telnyx::Models::WireguardInterfaceDeleteResponse::Data::Region, nil]
38
+ optional :region, -> { Telnyx::Models::WireguardInterfaceDeleteResponse::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 endpoint
78
+ # The Telnyx WireGuard peers `Peer.endpoint` value.
79
+ #
80
+ # @return [String, nil]
81
+ optional :endpoint, String
82
+
83
+ # @!attribute public_key
84
+ # The Telnyx WireGuard peers `Peer.PublicKey`.
85
+ #
86
+ # @return [String, nil]
87
+ optional :public_key, String
88
+ end
89
+
90
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, enable_sip_trunking: nil, endpoint: nil, public_key: nil, region: nil, region_code: nil)
91
+ # @param id [String] Identifies the resource.
92
+ #
93
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
94
+ #
95
+ # @param record_type [String] Identifies the type of the resource.
96
+ #
97
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
98
+ #
99
+ # @param name [String] A user specified name for the interface.
100
+ #
101
+ # @param network_id [String] The id of the network associated with the interface.
102
+ #
103
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
104
+ #
105
+ # @param enable_sip_trunking [Boolean] Enable SIP traffic forwarding over VPN interface.
106
+ #
107
+ # @param endpoint [String] The Telnyx WireGuard peers `Peer.endpoint` value.
108
+ #
109
+ # @param public_key [String] The Telnyx WireGuard peers `Peer.PublicKey`.
110
+ #
111
+ # @param region [Telnyx::Models::WireguardInterfaceDeleteResponse::Data::Region]
112
+ #
113
+ # @param region_code [String] The region interface is deployed to.
114
+
115
+ # @see Telnyx::Models::WireguardInterfaceDeleteResponse::Data#region
116
+ class Region < Telnyx::Internal::Type::BaseModel
117
+ # @!attribute code
118
+ # Region code of the interface.
119
+ #
120
+ # @return [String, nil]
121
+ optional :code, String
122
+
123
+ # @!attribute name
124
+ # Region name of the interface.
125
+ #
126
+ # @return [String, nil]
127
+ optional :name, String
128
+
129
+ response_only do
130
+ # @!attribute record_type
131
+ # Identifies the type of the resource.
132
+ #
133
+ # @return [String, nil]
134
+ optional :record_type, String
135
+ end
136
+
137
+ # @!method initialize(code: nil, name: nil, record_type: nil)
138
+ # @param code [String] Region code of the interface.
139
+ #
140
+ # @param name [String] Region name of the interface.
141
+ #
142
+ # @param record_type [String] Identifies the type of the resource.
143
+ end
144
+ end
14
145
  end
15
146
  end
16
147
  end
@@ -18,6 +18,136 @@ module Telnyx
18
18
  # @!method initialize(data: nil, meta: nil)
19
19
  # @param data [Array<Telnyx::Models::WireguardInterfaceListResponse::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 enable_sip_trunking
36
+ # Enable SIP traffic forwarding over VPN interface.
37
+ #
38
+ # @return [Boolean, nil]
39
+ optional :enable_sip_trunking, Telnyx::Internal::Type::Boolean
40
+
41
+ # @!attribute region
42
+ #
43
+ # @return [Telnyx::Models::WireguardInterfaceListResponse::Data::Region, nil]
44
+ optional :region, -> { Telnyx::Models::WireguardInterfaceListResponse::Data::Region }
45
+
46
+ # @!attribute region_code
47
+ # The region interface is deployed to.
48
+ #
49
+ # @return [String, nil]
50
+ optional :region_code, String
51
+
52
+ response_only do
53
+ # @!attribute id
54
+ # Identifies the resource.
55
+ #
56
+ # @return [String, nil]
57
+ optional :id, String
58
+
59
+ # @!attribute created_at
60
+ # ISO 8601 formatted date-time indicating when the resource was created.
61
+ #
62
+ # @return [String, nil]
63
+ optional :created_at, String
64
+
65
+ # @!attribute record_type
66
+ # Identifies the type of the resource.
67
+ #
68
+ # @return [String, nil]
69
+ optional :record_type, String
70
+
71
+ # @!attribute updated_at
72
+ # ISO 8601 formatted date-time indicating when the resource was updated.
73
+ #
74
+ # @return [String, nil]
75
+ optional :updated_at, String
76
+
77
+ # @!attribute status
78
+ # The current status of the interface deployment.
79
+ #
80
+ # @return [Symbol, Telnyx::Models::InterfaceStatus, nil]
81
+ optional :status, enum: -> { Telnyx::InterfaceStatus }
82
+
83
+ # @!attribute endpoint
84
+ # The Telnyx WireGuard peers `Peer.endpoint` value.
85
+ #
86
+ # @return [String, nil]
87
+ optional :endpoint, String
88
+
89
+ # @!attribute public_key
90
+ # The Telnyx WireGuard peers `Peer.PublicKey`.
91
+ #
92
+ # @return [String, nil]
93
+ optional :public_key, String
94
+ end
95
+
96
+ # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil, network_id: nil, status: nil, enable_sip_trunking: nil, endpoint: nil, public_key: nil, region: nil, region_code: nil)
97
+ # @param id [String] Identifies the resource.
98
+ #
99
+ # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
100
+ #
101
+ # @param record_type [String] Identifies the type of the resource.
102
+ #
103
+ # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
104
+ #
105
+ # @param name [String] A user specified name for the interface.
106
+ #
107
+ # @param network_id [String] The id of the network associated with the interface.
108
+ #
109
+ # @param status [Symbol, Telnyx::Models::InterfaceStatus] The current status of the interface deployment.
110
+ #
111
+ # @param enable_sip_trunking [Boolean] Enable SIP traffic forwarding over VPN interface.
112
+ #
113
+ # @param endpoint [String] The Telnyx WireGuard peers `Peer.endpoint` value.
114
+ #
115
+ # @param public_key [String] The Telnyx WireGuard peers `Peer.PublicKey`.
116
+ #
117
+ # @param region [Telnyx::Models::WireguardInterfaceListResponse::Data::Region]
118
+ #
119
+ # @param region_code [String] The region interface is deployed to.
120
+
121
+ # @see Telnyx::Models::WireguardInterfaceListResponse::Data#region
122
+ class Region < Telnyx::Internal::Type::BaseModel
123
+ # @!attribute code
124
+ # Region code of the interface.
125
+ #
126
+ # @return [String, nil]
127
+ optional :code, String
128
+
129
+ # @!attribute name
130
+ # Region name of the interface.
131
+ #
132
+ # @return [String, nil]
133
+ optional :name, String
134
+
135
+ response_only do
136
+ # @!attribute record_type
137
+ # Identifies the type of the resource.
138
+ #
139
+ # @return [String, nil]
140
+ optional :record_type, String
141
+ end
142
+
143
+ # @!method initialize(code: nil, name: nil, record_type: nil)
144
+ # @param code [String] Region code of the interface.
145
+ #
146
+ # @param name [String] Region name of the interface.
147
+ #
148
+ # @param record_type [String] Identifies the type of the resource.
149
+ end
150
+ end
21
151
  end
22
152
  end
23
153
  end