telnyx 5.102.1 → 5.103.1
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 +29 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistants/scheduled_event_create_params.rb +17 -1
- data/lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb +91 -1
- data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
- data/lib/telnyx/models/uac_internal_settings.rb +2 -2
- data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
- data/lib/telnyx/models.rb +6 -0
- data/lib/telnyx/resources/ai/assistants/scheduled_events.rb +5 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
- data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +3 -3
- data/rbi/telnyx/models/ai/assistants/scheduled_event_create_params.rbi +22 -0
- data/rbi/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbi +153 -0
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/uac_internal_settings.rbi +4 -4
- data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
- data/rbi/telnyx/models.rbi +6 -0
- data/rbi/telnyx/resources/ai/assistants/scheduled_events.rbi +6 -0
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
- data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
- data/sig/telnyx/models/ai/assistants/scheduled_event_create_params.rbs +14 -0
- data/sig/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbs +85 -0
- data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
- data/sig/telnyx/models.rbs +6 -0
- data/sig/telnyx/resources/ai/assistants/scheduled_events.rbs +2 -0
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
- data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
- metadata +10 -10
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
- data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
|
@@ -69,6 +69,20 @@ module Telnyx
|
|
|
69
69
|
sig { params(dynamic_variables: T::Hash[Symbol, String]).void }
|
|
70
70
|
attr_writer :dynamic_variables
|
|
71
71
|
|
|
72
|
+
# Configure number of retries on client errors: busy, no-answer, failed, canceled
|
|
73
|
+
# (caller hung up before the callee answered)
|
|
74
|
+
sig { returns(T.nilable(Integer)) }
|
|
75
|
+
attr_reader :max_retries_client_errors
|
|
76
|
+
|
|
77
|
+
sig { params(max_retries_client_errors: Integer).void }
|
|
78
|
+
attr_writer :max_retries_client_errors
|
|
79
|
+
|
|
80
|
+
sig { returns(T.nilable(Integer)) }
|
|
81
|
+
attr_reader :retry_interval_secs
|
|
82
|
+
|
|
83
|
+
sig { params(retry_interval_secs: Integer).void }
|
|
84
|
+
attr_writer :retry_interval_secs
|
|
85
|
+
|
|
72
86
|
# Required for sms scheduled events. The text to be sent to the end user.
|
|
73
87
|
sig { returns(T.nilable(String)) }
|
|
74
88
|
attr_reader :text
|
|
@@ -90,6 +104,8 @@ module Telnyx
|
|
|
90
104
|
Telnyx::AI::Assistants::ScheduledEventCreateParams::ConversationMetadata::Variants
|
|
91
105
|
],
|
|
92
106
|
dynamic_variables: T::Hash[Symbol, String],
|
|
107
|
+
max_retries_client_errors: Integer,
|
|
108
|
+
retry_interval_secs: Integer,
|
|
93
109
|
text: String,
|
|
94
110
|
request_options: Telnyx::RequestOptions::OrHash
|
|
95
111
|
).returns(T.attached_class)
|
|
@@ -109,6 +125,10 @@ module Telnyx
|
|
|
109
125
|
# A map of dynamic variable names to values. These variables can be referenced in
|
|
110
126
|
# the assistant's instructions and messages using {{variable_name}} syntax.
|
|
111
127
|
dynamic_variables: nil,
|
|
128
|
+
# Configure number of retries on client errors: busy, no-answer, failed, canceled
|
|
129
|
+
# (caller hung up before the callee answered)
|
|
130
|
+
max_retries_client_errors: nil,
|
|
131
|
+
retry_interval_secs: nil,
|
|
112
132
|
# Required for sms scheduled events. The text to be sent to the end user.
|
|
113
133
|
text: nil,
|
|
114
134
|
request_options: {}
|
|
@@ -130,6 +150,8 @@ module Telnyx
|
|
|
130
150
|
Telnyx::AI::Assistants::ScheduledEventCreateParams::ConversationMetadata::Variants
|
|
131
151
|
],
|
|
132
152
|
dynamic_variables: T::Hash[Symbol, String],
|
|
153
|
+
max_retries_client_errors: Integer,
|
|
154
|
+
retry_interval_secs: Integer,
|
|
133
155
|
text: String,
|
|
134
156
|
request_options: Telnyx::RequestOptions
|
|
135
157
|
}
|
|
@@ -32,6 +32,41 @@ module Telnyx
|
|
|
32
32
|
sig { returns(String) }
|
|
33
33
|
attr_accessor :telnyx_end_user_target
|
|
34
34
|
|
|
35
|
+
sig do
|
|
36
|
+
returns(
|
|
37
|
+
T.nilable(
|
|
38
|
+
T::Array[
|
|
39
|
+
Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt
|
|
40
|
+
]
|
|
41
|
+
)
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
attr_reader :call_attempts
|
|
45
|
+
|
|
46
|
+
sig do
|
|
47
|
+
params(
|
|
48
|
+
call_attempts:
|
|
49
|
+
T::Array[
|
|
50
|
+
Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt::OrHash
|
|
51
|
+
]
|
|
52
|
+
).void
|
|
53
|
+
end
|
|
54
|
+
attr_writer :call_attempts
|
|
55
|
+
|
|
56
|
+
# Duration of the call in seconds
|
|
57
|
+
sig { returns(T.nilable(Integer)) }
|
|
58
|
+
attr_reader :call_duration
|
|
59
|
+
|
|
60
|
+
sig { params(call_duration: Integer).void }
|
|
61
|
+
attr_writer :call_duration
|
|
62
|
+
|
|
63
|
+
# Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
|
|
64
|
+
sig { returns(T.nilable(String)) }
|
|
65
|
+
attr_reader :call_status
|
|
66
|
+
|
|
67
|
+
sig { params(call_status: String).void }
|
|
68
|
+
attr_writer :call_status
|
|
69
|
+
|
|
35
70
|
sig { returns(T.nilable(String)) }
|
|
36
71
|
attr_reader :conversation_id
|
|
37
72
|
|
|
@@ -67,6 +102,13 @@ module Telnyx
|
|
|
67
102
|
sig { params(created_at: Time).void }
|
|
68
103
|
attr_writer :created_at
|
|
69
104
|
|
|
105
|
+
# Date time at which call was sent
|
|
106
|
+
sig { returns(T.nilable(Time)) }
|
|
107
|
+
attr_reader :dispatched_at
|
|
108
|
+
|
|
109
|
+
sig { params(dispatched_at: Time).void }
|
|
110
|
+
attr_writer :dispatched_at
|
|
111
|
+
|
|
70
112
|
# A map of dynamic variable names to values. These variables can be referenced in
|
|
71
113
|
# the assistant's instructions and messages using {{variable_name}} syntax.
|
|
72
114
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
@@ -81,6 +123,14 @@ module Telnyx
|
|
|
81
123
|
sig { params(errors: T::Array[String]).void }
|
|
82
124
|
attr_writer :errors
|
|
83
125
|
|
|
126
|
+
# Configure number of retries on client errors: busy, no-answer, failed, canceled
|
|
127
|
+
# (caller hung up before the callee answered)
|
|
128
|
+
sig { returns(T.nilable(Integer)) }
|
|
129
|
+
attr_reader :max_retries_client_errors
|
|
130
|
+
|
|
131
|
+
sig { params(max_retries_client_errors: Integer).void }
|
|
132
|
+
attr_writer :max_retries_client_errors
|
|
133
|
+
|
|
84
134
|
sig { returns(T.nilable(Integer)) }
|
|
85
135
|
attr_reader :retry_attempts
|
|
86
136
|
|
|
@@ -93,6 +143,12 @@ module Telnyx
|
|
|
93
143
|
sig { params(retry_count: Integer).void }
|
|
94
144
|
attr_writer :retry_count
|
|
95
145
|
|
|
146
|
+
sig { returns(T.nilable(Integer)) }
|
|
147
|
+
attr_reader :retry_interval_secs
|
|
148
|
+
|
|
149
|
+
sig { params(retry_interval_secs: Integer).void }
|
|
150
|
+
attr_writer :retry_interval_secs
|
|
151
|
+
|
|
96
152
|
sig { returns(T.nilable(String)) }
|
|
97
153
|
attr_reader :scheduled_event_id
|
|
98
154
|
|
|
@@ -119,6 +175,12 @@ module Telnyx
|
|
|
119
175
|
telnyx_conversation_channel:
|
|
120
176
|
Telnyx::AI::Assistants::ConversationChannelType::OrSymbol,
|
|
121
177
|
telnyx_end_user_target: String,
|
|
178
|
+
call_attempts:
|
|
179
|
+
T::Array[
|
|
180
|
+
Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt::OrHash
|
|
181
|
+
],
|
|
182
|
+
call_duration: Integer,
|
|
183
|
+
call_status: String,
|
|
122
184
|
conversation_id: String,
|
|
123
185
|
conversation_metadata:
|
|
124
186
|
T::Hash[
|
|
@@ -126,10 +188,13 @@ module Telnyx
|
|
|
126
188
|
Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::ConversationMetadata::Variants
|
|
127
189
|
],
|
|
128
190
|
created_at: Time,
|
|
191
|
+
dispatched_at: Time,
|
|
129
192
|
dynamic_variables: T::Hash[Symbol, String],
|
|
130
193
|
errors: T::Array[String],
|
|
194
|
+
max_retries_client_errors: Integer,
|
|
131
195
|
retry_attempts: Integer,
|
|
132
196
|
retry_count: Integer,
|
|
197
|
+
retry_interval_secs: Integer,
|
|
133
198
|
scheduled_event_id: String,
|
|
134
199
|
status: Telnyx::AI::Assistants::EventStatus::OrSymbol
|
|
135
200
|
).returns(T.attached_class)
|
|
@@ -140,15 +205,26 @@ module Telnyx
|
|
|
140
205
|
telnyx_agent_target:,
|
|
141
206
|
telnyx_conversation_channel:,
|
|
142
207
|
telnyx_end_user_target:,
|
|
208
|
+
call_attempts: nil,
|
|
209
|
+
# Duration of the call in seconds
|
|
210
|
+
call_duration: nil,
|
|
211
|
+
# Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
|
|
212
|
+
call_status: nil,
|
|
143
213
|
conversation_id: nil,
|
|
144
214
|
conversation_metadata: nil,
|
|
145
215
|
created_at: nil,
|
|
216
|
+
# Date time at which call was sent
|
|
217
|
+
dispatched_at: nil,
|
|
146
218
|
# A map of dynamic variable names to values. These variables can be referenced in
|
|
147
219
|
# the assistant's instructions and messages using {{variable_name}} syntax.
|
|
148
220
|
dynamic_variables: nil,
|
|
149
221
|
errors: nil,
|
|
222
|
+
# Configure number of retries on client errors: busy, no-answer, failed, canceled
|
|
223
|
+
# (caller hung up before the callee answered)
|
|
224
|
+
max_retries_client_errors: nil,
|
|
150
225
|
retry_attempts: nil,
|
|
151
226
|
retry_count: nil,
|
|
227
|
+
retry_interval_secs: nil,
|
|
152
228
|
scheduled_event_id: nil,
|
|
153
229
|
status: nil
|
|
154
230
|
)
|
|
@@ -163,6 +239,12 @@ module Telnyx
|
|
|
163
239
|
telnyx_conversation_channel:
|
|
164
240
|
Telnyx::AI::Assistants::ConversationChannelType::TaggedSymbol,
|
|
165
241
|
telnyx_end_user_target: String,
|
|
242
|
+
call_attempts:
|
|
243
|
+
T::Array[
|
|
244
|
+
Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt
|
|
245
|
+
],
|
|
246
|
+
call_duration: Integer,
|
|
247
|
+
call_status: String,
|
|
166
248
|
conversation_id: String,
|
|
167
249
|
conversation_metadata:
|
|
168
250
|
T::Hash[
|
|
@@ -170,10 +252,13 @@ module Telnyx
|
|
|
170
252
|
Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::ConversationMetadata::Variants
|
|
171
253
|
],
|
|
172
254
|
created_at: Time,
|
|
255
|
+
dispatched_at: Time,
|
|
173
256
|
dynamic_variables: T::Hash[Symbol, String],
|
|
174
257
|
errors: T::Array[String],
|
|
258
|
+
max_retries_client_errors: Integer,
|
|
175
259
|
retry_attempts: Integer,
|
|
176
260
|
retry_count: Integer,
|
|
261
|
+
retry_interval_secs: Integer,
|
|
177
262
|
scheduled_event_id: String,
|
|
178
263
|
status: Telnyx::AI::Assistants::EventStatus::TaggedSymbol
|
|
179
264
|
}
|
|
@@ -182,6 +267,74 @@ module Telnyx
|
|
|
182
267
|
def to_hash
|
|
183
268
|
end
|
|
184
269
|
|
|
270
|
+
class CallAttempt < Telnyx::Internal::Type::BaseModel
|
|
271
|
+
OrHash =
|
|
272
|
+
T.type_alias do
|
|
273
|
+
T.any(
|
|
274
|
+
Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt,
|
|
275
|
+
Telnyx::Internal::AnyHash
|
|
276
|
+
)
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
sig { returns(Integer) }
|
|
280
|
+
attr_accessor :attempt_number
|
|
281
|
+
|
|
282
|
+
sig { returns(Time) }
|
|
283
|
+
attr_accessor :attempted_at
|
|
284
|
+
|
|
285
|
+
# Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
|
|
286
|
+
sig { returns(String) }
|
|
287
|
+
attr_accessor :call_status
|
|
288
|
+
|
|
289
|
+
# Duration of the call in seconds
|
|
290
|
+
sig { returns(T.nilable(Integer)) }
|
|
291
|
+
attr_reader :call_duration
|
|
292
|
+
|
|
293
|
+
sig { params(call_duration: Integer).void }
|
|
294
|
+
attr_writer :call_duration
|
|
295
|
+
|
|
296
|
+
sig { returns(T.nilable(String)) }
|
|
297
|
+
attr_reader :telnyx_call_control_id
|
|
298
|
+
|
|
299
|
+
sig { params(telnyx_call_control_id: String).void }
|
|
300
|
+
attr_writer :telnyx_call_control_id
|
|
301
|
+
|
|
302
|
+
# One row in `call_attempts` — captures the terminal outcome of a single dispatch.
|
|
303
|
+
sig do
|
|
304
|
+
params(
|
|
305
|
+
attempt_number: Integer,
|
|
306
|
+
attempted_at: Time,
|
|
307
|
+
call_status: String,
|
|
308
|
+
call_duration: Integer,
|
|
309
|
+
telnyx_call_control_id: String
|
|
310
|
+
).returns(T.attached_class)
|
|
311
|
+
end
|
|
312
|
+
def self.new(
|
|
313
|
+
attempt_number:,
|
|
314
|
+
attempted_at:,
|
|
315
|
+
# Values: busy, canceled, no-answer, ringing, completed, failed, in-progress
|
|
316
|
+
call_status:,
|
|
317
|
+
# Duration of the call in seconds
|
|
318
|
+
call_duration: nil,
|
|
319
|
+
telnyx_call_control_id: nil
|
|
320
|
+
)
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
sig do
|
|
324
|
+
override.returns(
|
|
325
|
+
{
|
|
326
|
+
attempt_number: Integer,
|
|
327
|
+
attempted_at: Time,
|
|
328
|
+
call_status: String,
|
|
329
|
+
call_duration: Integer,
|
|
330
|
+
telnyx_call_control_id: String
|
|
331
|
+
}
|
|
332
|
+
)
|
|
333
|
+
end
|
|
334
|
+
def to_hash
|
|
335
|
+
end
|
|
336
|
+
end
|
|
337
|
+
|
|
185
338
|
module ConversationMetadata
|
|
186
339
|
extend Telnyx::Internal::Type::Union
|
|
187
340
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
|
-
class NetworkListInterfacesResponse < Telnyx::
|
|
5
|
+
class NetworkListInterfacesResponse < Telnyx::Internal::Type::BaseModel
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias do
|
|
8
8
|
T.any(
|
|
@@ -11,13 +11,190 @@ module Telnyx
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
# A user specified name for the interface.
|
|
15
|
+
sig { returns(T.nilable(String)) }
|
|
16
|
+
attr_reader :name
|
|
17
|
+
|
|
18
|
+
sig { params(name: String).void }
|
|
19
|
+
attr_writer :name
|
|
20
|
+
|
|
21
|
+
# The id of the network associated with the interface.
|
|
22
|
+
sig { returns(T.nilable(String)) }
|
|
23
|
+
attr_reader :network_id
|
|
24
|
+
|
|
25
|
+
sig { params(network_id: String).void }
|
|
26
|
+
attr_writer :network_id
|
|
27
|
+
|
|
28
|
+
sig do
|
|
29
|
+
returns(
|
|
30
|
+
T.nilable(Telnyx::Models::NetworkListInterfacesResponse::Region)
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
attr_reader :region
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
region: Telnyx::Models::NetworkListInterfacesResponse::Region::OrHash
|
|
38
|
+
).void
|
|
16
39
|
end
|
|
40
|
+
attr_writer :region
|
|
41
|
+
|
|
42
|
+
# The region interface is deployed to.
|
|
43
|
+
sig { returns(T.nilable(String)) }
|
|
44
|
+
attr_reader :region_code
|
|
45
|
+
|
|
46
|
+
sig { params(region_code: String).void }
|
|
47
|
+
attr_writer :region_code
|
|
48
|
+
|
|
49
|
+
# Identifies the resource.
|
|
50
|
+
sig { returns(T.nilable(String)) }
|
|
51
|
+
attr_reader :id
|
|
52
|
+
|
|
53
|
+
sig { params(id: String).void }
|
|
54
|
+
attr_writer :id
|
|
55
|
+
|
|
56
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
57
|
+
sig { returns(T.nilable(String)) }
|
|
58
|
+
attr_reader :created_at
|
|
59
|
+
|
|
60
|
+
sig { params(created_at: String).void }
|
|
61
|
+
attr_writer :created_at
|
|
62
|
+
|
|
63
|
+
# Identifies the type of the resource.
|
|
64
|
+
sig { returns(T.nilable(String)) }
|
|
65
|
+
attr_reader :record_type
|
|
66
|
+
|
|
67
|
+
sig { params(record_type: String).void }
|
|
68
|
+
attr_writer :record_type
|
|
69
|
+
|
|
70
|
+
# The current status of the interface deployment.
|
|
71
|
+
sig { returns(T.nilable(Telnyx::InterfaceStatus::TaggedSymbol)) }
|
|
72
|
+
attr_reader :status
|
|
73
|
+
|
|
74
|
+
sig { params(status: Telnyx::InterfaceStatus::OrSymbol).void }
|
|
75
|
+
attr_writer :status
|
|
76
|
+
|
|
77
|
+
# Identifies the type of the interface.
|
|
78
|
+
sig { returns(T.nilable(String)) }
|
|
79
|
+
attr_reader :type
|
|
80
|
+
|
|
81
|
+
sig { params(type: String).void }
|
|
82
|
+
attr_writer :type
|
|
83
|
+
|
|
84
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
85
|
+
sig { returns(T.nilable(String)) }
|
|
86
|
+
attr_reader :updated_at
|
|
87
|
+
|
|
88
|
+
sig { params(updated_at: String).void }
|
|
89
|
+
attr_writer :updated_at
|
|
17
90
|
|
|
18
|
-
sig
|
|
91
|
+
sig do
|
|
92
|
+
params(
|
|
93
|
+
id: String,
|
|
94
|
+
created_at: String,
|
|
95
|
+
name: String,
|
|
96
|
+
network_id: String,
|
|
97
|
+
record_type: String,
|
|
98
|
+
region: Telnyx::Models::NetworkListInterfacesResponse::Region::OrHash,
|
|
99
|
+
region_code: String,
|
|
100
|
+
status: Telnyx::InterfaceStatus::OrSymbol,
|
|
101
|
+
type: String,
|
|
102
|
+
updated_at: String
|
|
103
|
+
).returns(T.attached_class)
|
|
104
|
+
end
|
|
105
|
+
def self.new(
|
|
106
|
+
# Identifies the resource.
|
|
107
|
+
id: nil,
|
|
108
|
+
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
109
|
+
created_at: nil,
|
|
110
|
+
# A user specified name for the interface.
|
|
111
|
+
name: nil,
|
|
112
|
+
# The id of the network associated with the interface.
|
|
113
|
+
network_id: nil,
|
|
114
|
+
# Identifies the type of the resource.
|
|
115
|
+
record_type: nil,
|
|
116
|
+
region: nil,
|
|
117
|
+
# The region interface is deployed to.
|
|
118
|
+
region_code: nil,
|
|
119
|
+
# The current status of the interface deployment.
|
|
120
|
+
status: nil,
|
|
121
|
+
# Identifies the type of the interface.
|
|
122
|
+
type: nil,
|
|
123
|
+
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
124
|
+
updated_at: nil
|
|
125
|
+
)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
sig do
|
|
129
|
+
override.returns(
|
|
130
|
+
{
|
|
131
|
+
id: String,
|
|
132
|
+
created_at: String,
|
|
133
|
+
name: String,
|
|
134
|
+
network_id: String,
|
|
135
|
+
record_type: String,
|
|
136
|
+
region: Telnyx::Models::NetworkListInterfacesResponse::Region,
|
|
137
|
+
region_code: String,
|
|
138
|
+
status: Telnyx::InterfaceStatus::TaggedSymbol,
|
|
139
|
+
type: String,
|
|
140
|
+
updated_at: String
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
end
|
|
19
144
|
def to_hash
|
|
20
145
|
end
|
|
146
|
+
|
|
147
|
+
class Region < Telnyx::Internal::Type::BaseModel
|
|
148
|
+
OrHash =
|
|
149
|
+
T.type_alias do
|
|
150
|
+
T.any(
|
|
151
|
+
Telnyx::Models::NetworkListInterfacesResponse::Region,
|
|
152
|
+
Telnyx::Internal::AnyHash
|
|
153
|
+
)
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Region code of the interface.
|
|
157
|
+
sig { returns(T.nilable(String)) }
|
|
158
|
+
attr_reader :code
|
|
159
|
+
|
|
160
|
+
sig { params(code: String).void }
|
|
161
|
+
attr_writer :code
|
|
162
|
+
|
|
163
|
+
# Region name of the interface.
|
|
164
|
+
sig { returns(T.nilable(String)) }
|
|
165
|
+
attr_reader :name
|
|
166
|
+
|
|
167
|
+
sig { params(name: String).void }
|
|
168
|
+
attr_writer :name
|
|
169
|
+
|
|
170
|
+
# Identifies the type of the resource.
|
|
171
|
+
sig { returns(T.nilable(String)) }
|
|
172
|
+
attr_reader :record_type
|
|
173
|
+
|
|
174
|
+
sig { params(record_type: String).void }
|
|
175
|
+
attr_writer :record_type
|
|
176
|
+
|
|
177
|
+
sig do
|
|
178
|
+
params(code: String, name: String, record_type: String).returns(
|
|
179
|
+
T.attached_class
|
|
180
|
+
)
|
|
181
|
+
end
|
|
182
|
+
def self.new(
|
|
183
|
+
# Region code of the interface.
|
|
184
|
+
code: nil,
|
|
185
|
+
# Region name of the interface.
|
|
186
|
+
name: nil,
|
|
187
|
+
# Identifies the type of the resource.
|
|
188
|
+
record_type: nil
|
|
189
|
+
)
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
sig do
|
|
193
|
+
override.returns({ code: String, name: String, record_type: String })
|
|
194
|
+
end
|
|
195
|
+
def to_hash
|
|
196
|
+
end
|
|
197
|
+
end
|
|
21
198
|
end
|
|
22
199
|
end
|
|
23
200
|
end
|
|
@@ -11,55 +11,23 @@ module Telnyx
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig
|
|
15
|
-
returns(
|
|
16
|
-
T.nilable(Telnyx::Models::PublicInternetGatewayCreateResponse::Data)
|
|
17
|
-
)
|
|
18
|
-
end
|
|
14
|
+
sig { returns(T.nilable(Telnyx::PublicInternetGatewayRead)) }
|
|
19
15
|
attr_reader :data
|
|
20
16
|
|
|
21
|
-
sig
|
|
22
|
-
params(
|
|
23
|
-
data:
|
|
24
|
-
Telnyx::Models::PublicInternetGatewayCreateResponse::Data::OrHash
|
|
25
|
-
).void
|
|
26
|
-
end
|
|
17
|
+
sig { params(data: Telnyx::PublicInternetGatewayRead::OrHash).void }
|
|
27
18
|
attr_writer :data
|
|
28
19
|
|
|
29
20
|
sig do
|
|
30
|
-
params(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
).returns(T.attached_class)
|
|
21
|
+
params(data: Telnyx::PublicInternetGatewayRead::OrHash).returns(
|
|
22
|
+
T.attached_class
|
|
23
|
+
)
|
|
34
24
|
end
|
|
35
25
|
def self.new(data: nil)
|
|
36
26
|
end
|
|
37
27
|
|
|
38
|
-
sig
|
|
39
|
-
override.returns(
|
|
40
|
-
{ data: Telnyx::Models::PublicInternetGatewayCreateResponse::Data }
|
|
41
|
-
)
|
|
42
|
-
end
|
|
28
|
+
sig { override.returns({ data: Telnyx::PublicInternetGatewayRead }) }
|
|
43
29
|
def to_hash
|
|
44
30
|
end
|
|
45
|
-
|
|
46
|
-
class Data < Telnyx::Models::Record
|
|
47
|
-
OrHash =
|
|
48
|
-
T.type_alias do
|
|
49
|
-
T.any(
|
|
50
|
-
Telnyx::Models::PublicInternetGatewayCreateResponse::Data,
|
|
51
|
-
Telnyx::Internal::AnyHash
|
|
52
|
-
)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
sig { returns(T.attached_class) }
|
|
56
|
-
def self.new
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
sig { override.returns({}) }
|
|
60
|
-
def to_hash
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
31
|
end
|
|
64
32
|
end
|
|
65
33
|
end
|
|
@@ -11,55 +11,23 @@ module Telnyx
|
|
|
11
11
|
)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
sig
|
|
15
|
-
returns(
|
|
16
|
-
T.nilable(Telnyx::Models::PublicInternetGatewayDeleteResponse::Data)
|
|
17
|
-
)
|
|
18
|
-
end
|
|
14
|
+
sig { returns(T.nilable(Telnyx::PublicInternetGatewayRead)) }
|
|
19
15
|
attr_reader :data
|
|
20
16
|
|
|
21
|
-
sig
|
|
22
|
-
params(
|
|
23
|
-
data:
|
|
24
|
-
Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::OrHash
|
|
25
|
-
).void
|
|
26
|
-
end
|
|
17
|
+
sig { params(data: Telnyx::PublicInternetGatewayRead::OrHash).void }
|
|
27
18
|
attr_writer :data
|
|
28
19
|
|
|
29
20
|
sig do
|
|
30
|
-
params(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
).returns(T.attached_class)
|
|
21
|
+
params(data: Telnyx::PublicInternetGatewayRead::OrHash).returns(
|
|
22
|
+
T.attached_class
|
|
23
|
+
)
|
|
34
24
|
end
|
|
35
25
|
def self.new(data: nil)
|
|
36
26
|
end
|
|
37
27
|
|
|
38
|
-
sig
|
|
39
|
-
override.returns(
|
|
40
|
-
{ data: Telnyx::Models::PublicInternetGatewayDeleteResponse::Data }
|
|
41
|
-
)
|
|
42
|
-
end
|
|
28
|
+
sig { override.returns({ data: Telnyx::PublicInternetGatewayRead }) }
|
|
43
29
|
def to_hash
|
|
44
30
|
end
|
|
45
|
-
|
|
46
|
-
class Data < Telnyx::Models::Record
|
|
47
|
-
OrHash =
|
|
48
|
-
T.type_alias do
|
|
49
|
-
T.any(
|
|
50
|
-
Telnyx::Models::PublicInternetGatewayDeleteResponse::Data,
|
|
51
|
-
Telnyx::Internal::AnyHash
|
|
52
|
-
)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
sig { returns(T.attached_class) }
|
|
56
|
-
def self.new
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
sig { override.returns({}) }
|
|
60
|
-
def to_hash
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
31
|
end
|
|
64
32
|
end
|
|
65
33
|
end
|