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
@@ -42,6 +42,208 @@ module Telnyx
42
42
  end
43
43
  def to_hash
44
44
  end
45
+
46
+ class Data < Telnyx::Internal::Type::BaseModel
47
+ OrHash =
48
+ T.type_alias do
49
+ T.any(
50
+ Telnyx::Models::PublicInternetGatewayDeleteResponse::Data,
51
+ Telnyx::Internal::AnyHash
52
+ )
53
+ end
54
+
55
+ # A user specified name for the interface.
56
+ sig { returns(T.nilable(String)) }
57
+ attr_reader :name
58
+
59
+ sig { params(name: String).void }
60
+ attr_writer :name
61
+
62
+ # The id of the network associated with the interface.
63
+ sig { returns(T.nilable(String)) }
64
+ attr_reader :network_id
65
+
66
+ sig { params(network_id: String).void }
67
+ attr_writer :network_id
68
+
69
+ sig do
70
+ returns(
71
+ T.nilable(
72
+ Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::Region
73
+ )
74
+ )
75
+ end
76
+ attr_reader :region
77
+
78
+ sig do
79
+ params(
80
+ region:
81
+ Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::Region::OrHash
82
+ ).void
83
+ end
84
+ attr_writer :region
85
+
86
+ # The region interface is deployed to.
87
+ sig { returns(T.nilable(String)) }
88
+ attr_reader :region_code
89
+
90
+ sig { params(region_code: String).void }
91
+ attr_writer :region_code
92
+
93
+ # Identifies the resource.
94
+ sig { returns(T.nilable(String)) }
95
+ attr_reader :id
96
+
97
+ sig { params(id: String).void }
98
+ attr_writer :id
99
+
100
+ # ISO 8601 formatted date-time indicating when the resource was created.
101
+ sig { returns(T.nilable(String)) }
102
+ attr_reader :created_at
103
+
104
+ sig { params(created_at: String).void }
105
+ attr_writer :created_at
106
+
107
+ # Identifies the type of the resource.
108
+ sig { returns(T.nilable(String)) }
109
+ attr_reader :record_type
110
+
111
+ sig { params(record_type: String).void }
112
+ attr_writer :record_type
113
+
114
+ # ISO 8601 formatted date-time indicating when the resource was updated.
115
+ sig { returns(T.nilable(String)) }
116
+ attr_reader :updated_at
117
+
118
+ sig { params(updated_at: String).void }
119
+ attr_writer :updated_at
120
+
121
+ # The current status of the interface deployment.
122
+ sig { returns(T.nilable(Telnyx::InterfaceStatus::TaggedSymbol)) }
123
+ attr_reader :status
124
+
125
+ sig { params(status: Telnyx::InterfaceStatus::OrSymbol).void }
126
+ attr_writer :status
127
+
128
+ # The publically accessible ip for this interface.
129
+ sig { returns(T.nilable(String)) }
130
+ attr_reader :public_ip
131
+
132
+ sig { params(public_ip: String).void }
133
+ attr_writer :public_ip
134
+
135
+ sig do
136
+ params(
137
+ id: String,
138
+ created_at: String,
139
+ record_type: String,
140
+ updated_at: String,
141
+ name: String,
142
+ network_id: String,
143
+ status: Telnyx::InterfaceStatus::OrSymbol,
144
+ public_ip: String,
145
+ region:
146
+ Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::Region::OrHash,
147
+ region_code: String
148
+ ).returns(T.attached_class)
149
+ end
150
+ def self.new(
151
+ # Identifies the resource.
152
+ id: nil,
153
+ # ISO 8601 formatted date-time indicating when the resource was created.
154
+ created_at: nil,
155
+ # Identifies the type of the resource.
156
+ record_type: nil,
157
+ # ISO 8601 formatted date-time indicating when the resource was updated.
158
+ updated_at: nil,
159
+ # A user specified name for the interface.
160
+ name: nil,
161
+ # The id of the network associated with the interface.
162
+ network_id: nil,
163
+ # The current status of the interface deployment.
164
+ status: nil,
165
+ # The publically accessible ip for this interface.
166
+ public_ip: nil,
167
+ region: nil,
168
+ # The region interface is deployed to.
169
+ region_code: nil
170
+ )
171
+ end
172
+
173
+ sig do
174
+ override.returns(
175
+ {
176
+ id: String,
177
+ created_at: String,
178
+ record_type: String,
179
+ updated_at: String,
180
+ name: String,
181
+ network_id: String,
182
+ status: Telnyx::InterfaceStatus::TaggedSymbol,
183
+ public_ip: String,
184
+ region:
185
+ Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::Region,
186
+ region_code: String
187
+ }
188
+ )
189
+ end
190
+ def to_hash
191
+ end
192
+
193
+ class Region < Telnyx::Internal::Type::BaseModel
194
+ OrHash =
195
+ T.type_alias do
196
+ T.any(
197
+ Telnyx::Models::PublicInternetGatewayDeleteResponse::Data::Region,
198
+ Telnyx::Internal::AnyHash
199
+ )
200
+ end
201
+
202
+ # Region code of the interface.
203
+ sig { returns(T.nilable(String)) }
204
+ attr_reader :code
205
+
206
+ sig { params(code: String).void }
207
+ attr_writer :code
208
+
209
+ # Region name of the interface.
210
+ sig { returns(T.nilable(String)) }
211
+ attr_reader :name
212
+
213
+ sig { params(name: String).void }
214
+ attr_writer :name
215
+
216
+ # Identifies the type of the resource.
217
+ sig { returns(T.nilable(String)) }
218
+ attr_reader :record_type
219
+
220
+ sig { params(record_type: String).void }
221
+ attr_writer :record_type
222
+
223
+ sig do
224
+ params(code: String, name: String, record_type: String).returns(
225
+ T.attached_class
226
+ )
227
+ end
228
+ def self.new(
229
+ # Region code of the interface.
230
+ code: nil,
231
+ # Region name of the interface.
232
+ name: nil,
233
+ # Identifies the type of the resource.
234
+ record_type: nil
235
+ )
236
+ end
237
+
238
+ sig do
239
+ override.returns(
240
+ { code: String, name: String, record_type: String }
241
+ )
242
+ end
243
+ def to_hash
244
+ end
245
+ end
246
+ end
45
247
  end
46
248
  end
47
249
  end
@@ -59,6 +59,208 @@ module Telnyx
59
59
  end
60
60
  def to_hash
61
61
  end
62
+
63
+ class Data < Telnyx::Internal::Type::BaseModel
64
+ OrHash =
65
+ T.type_alias do
66
+ T.any(
67
+ Telnyx::Models::PublicInternetGatewayListResponse::Data,
68
+ Telnyx::Internal::AnyHash
69
+ )
70
+ end
71
+
72
+ # A user specified name for the interface.
73
+ sig { returns(T.nilable(String)) }
74
+ attr_reader :name
75
+
76
+ sig { params(name: String).void }
77
+ attr_writer :name
78
+
79
+ # The id of the network associated with the interface.
80
+ sig { returns(T.nilable(String)) }
81
+ attr_reader :network_id
82
+
83
+ sig { params(network_id: String).void }
84
+ attr_writer :network_id
85
+
86
+ sig do
87
+ returns(
88
+ T.nilable(
89
+ Telnyx::Models::PublicInternetGatewayListResponse::Data::Region
90
+ )
91
+ )
92
+ end
93
+ attr_reader :region
94
+
95
+ sig do
96
+ params(
97
+ region:
98
+ Telnyx::Models::PublicInternetGatewayListResponse::Data::Region::OrHash
99
+ ).void
100
+ end
101
+ attr_writer :region
102
+
103
+ # The region interface is deployed to.
104
+ sig { returns(T.nilable(String)) }
105
+ attr_reader :region_code
106
+
107
+ sig { params(region_code: String).void }
108
+ attr_writer :region_code
109
+
110
+ # Identifies the resource.
111
+ sig { returns(T.nilable(String)) }
112
+ attr_reader :id
113
+
114
+ sig { params(id: String).void }
115
+ attr_writer :id
116
+
117
+ # ISO 8601 formatted date-time indicating when the resource was created.
118
+ sig { returns(T.nilable(String)) }
119
+ attr_reader :created_at
120
+
121
+ sig { params(created_at: String).void }
122
+ attr_writer :created_at
123
+
124
+ # Identifies the type of the resource.
125
+ sig { returns(T.nilable(String)) }
126
+ attr_reader :record_type
127
+
128
+ sig { params(record_type: String).void }
129
+ attr_writer :record_type
130
+
131
+ # ISO 8601 formatted date-time indicating when the resource was updated.
132
+ sig { returns(T.nilable(String)) }
133
+ attr_reader :updated_at
134
+
135
+ sig { params(updated_at: String).void }
136
+ attr_writer :updated_at
137
+
138
+ # The current status of the interface deployment.
139
+ sig { returns(T.nilable(Telnyx::InterfaceStatus::TaggedSymbol)) }
140
+ attr_reader :status
141
+
142
+ sig { params(status: Telnyx::InterfaceStatus::OrSymbol).void }
143
+ attr_writer :status
144
+
145
+ # The publically accessible ip for this interface.
146
+ sig { returns(T.nilable(String)) }
147
+ attr_reader :public_ip
148
+
149
+ sig { params(public_ip: String).void }
150
+ attr_writer :public_ip
151
+
152
+ sig do
153
+ params(
154
+ id: String,
155
+ created_at: String,
156
+ record_type: String,
157
+ updated_at: String,
158
+ name: String,
159
+ network_id: String,
160
+ status: Telnyx::InterfaceStatus::OrSymbol,
161
+ public_ip: String,
162
+ region:
163
+ Telnyx::Models::PublicInternetGatewayListResponse::Data::Region::OrHash,
164
+ region_code: String
165
+ ).returns(T.attached_class)
166
+ end
167
+ def self.new(
168
+ # Identifies the resource.
169
+ id: nil,
170
+ # ISO 8601 formatted date-time indicating when the resource was created.
171
+ created_at: nil,
172
+ # Identifies the type of the resource.
173
+ record_type: nil,
174
+ # ISO 8601 formatted date-time indicating when the resource was updated.
175
+ updated_at: nil,
176
+ # A user specified name for the interface.
177
+ name: nil,
178
+ # The id of the network associated with the interface.
179
+ network_id: nil,
180
+ # The current status of the interface deployment.
181
+ status: nil,
182
+ # The publically accessible ip for this interface.
183
+ public_ip: nil,
184
+ region: nil,
185
+ # The region interface is deployed to.
186
+ region_code: nil
187
+ )
188
+ end
189
+
190
+ sig do
191
+ override.returns(
192
+ {
193
+ id: String,
194
+ created_at: String,
195
+ record_type: String,
196
+ updated_at: String,
197
+ name: String,
198
+ network_id: String,
199
+ status: Telnyx::InterfaceStatus::TaggedSymbol,
200
+ public_ip: String,
201
+ region:
202
+ Telnyx::Models::PublicInternetGatewayListResponse::Data::Region,
203
+ region_code: String
204
+ }
205
+ )
206
+ end
207
+ def to_hash
208
+ end
209
+
210
+ class Region < Telnyx::Internal::Type::BaseModel
211
+ OrHash =
212
+ T.type_alias do
213
+ T.any(
214
+ Telnyx::Models::PublicInternetGatewayListResponse::Data::Region,
215
+ Telnyx::Internal::AnyHash
216
+ )
217
+ end
218
+
219
+ # Region code of the interface.
220
+ sig { returns(T.nilable(String)) }
221
+ attr_reader :code
222
+
223
+ sig { params(code: String).void }
224
+ attr_writer :code
225
+
226
+ # Region name of the interface.
227
+ sig { returns(T.nilable(String)) }
228
+ attr_reader :name
229
+
230
+ sig { params(name: String).void }
231
+ attr_writer :name
232
+
233
+ # Identifies the type of the resource.
234
+ sig { returns(T.nilable(String)) }
235
+ attr_reader :record_type
236
+
237
+ sig { params(record_type: String).void }
238
+ attr_writer :record_type
239
+
240
+ sig do
241
+ params(code: String, name: String, record_type: String).returns(
242
+ T.attached_class
243
+ )
244
+ end
245
+ def self.new(
246
+ # Region code of the interface.
247
+ code: nil,
248
+ # Region name of the interface.
249
+ name: nil,
250
+ # Identifies the type of the resource.
251
+ record_type: nil
252
+ )
253
+ end
254
+
255
+ sig do
256
+ override.returns(
257
+ { code: String, name: String, record_type: String }
258
+ )
259
+ end
260
+ def to_hash
261
+ end
262
+ end
263
+ end
62
264
  end
63
265
  end
64
266
  end
@@ -42,6 +42,208 @@ module Telnyx
42
42
  end
43
43
  def to_hash
44
44
  end
45
+
46
+ class Data < Telnyx::Internal::Type::BaseModel
47
+ OrHash =
48
+ T.type_alias do
49
+ T.any(
50
+ Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data,
51
+ Telnyx::Internal::AnyHash
52
+ )
53
+ end
54
+
55
+ # A user specified name for the interface.
56
+ sig { returns(T.nilable(String)) }
57
+ attr_reader :name
58
+
59
+ sig { params(name: String).void }
60
+ attr_writer :name
61
+
62
+ # The id of the network associated with the interface.
63
+ sig { returns(T.nilable(String)) }
64
+ attr_reader :network_id
65
+
66
+ sig { params(network_id: String).void }
67
+ attr_writer :network_id
68
+
69
+ sig do
70
+ returns(
71
+ T.nilable(
72
+ Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::Region
73
+ )
74
+ )
75
+ end
76
+ attr_reader :region
77
+
78
+ sig do
79
+ params(
80
+ region:
81
+ Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::Region::OrHash
82
+ ).void
83
+ end
84
+ attr_writer :region
85
+
86
+ # The region interface is deployed to.
87
+ sig { returns(T.nilable(String)) }
88
+ attr_reader :region_code
89
+
90
+ sig { params(region_code: String).void }
91
+ attr_writer :region_code
92
+
93
+ # Identifies the resource.
94
+ sig { returns(T.nilable(String)) }
95
+ attr_reader :id
96
+
97
+ sig { params(id: String).void }
98
+ attr_writer :id
99
+
100
+ # ISO 8601 formatted date-time indicating when the resource was created.
101
+ sig { returns(T.nilable(String)) }
102
+ attr_reader :created_at
103
+
104
+ sig { params(created_at: String).void }
105
+ attr_writer :created_at
106
+
107
+ # Identifies the type of the resource.
108
+ sig { returns(T.nilable(String)) }
109
+ attr_reader :record_type
110
+
111
+ sig { params(record_type: String).void }
112
+ attr_writer :record_type
113
+
114
+ # ISO 8601 formatted date-time indicating when the resource was updated.
115
+ sig { returns(T.nilable(String)) }
116
+ attr_reader :updated_at
117
+
118
+ sig { params(updated_at: String).void }
119
+ attr_writer :updated_at
120
+
121
+ # The current status of the interface deployment.
122
+ sig { returns(T.nilable(Telnyx::InterfaceStatus::TaggedSymbol)) }
123
+ attr_reader :status
124
+
125
+ sig { params(status: Telnyx::InterfaceStatus::OrSymbol).void }
126
+ attr_writer :status
127
+
128
+ # The publically accessible ip for this interface.
129
+ sig { returns(T.nilable(String)) }
130
+ attr_reader :public_ip
131
+
132
+ sig { params(public_ip: String).void }
133
+ attr_writer :public_ip
134
+
135
+ sig do
136
+ params(
137
+ id: String,
138
+ created_at: String,
139
+ record_type: String,
140
+ updated_at: String,
141
+ name: String,
142
+ network_id: String,
143
+ status: Telnyx::InterfaceStatus::OrSymbol,
144
+ public_ip: String,
145
+ region:
146
+ Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::Region::OrHash,
147
+ region_code: String
148
+ ).returns(T.attached_class)
149
+ end
150
+ def self.new(
151
+ # Identifies the resource.
152
+ id: nil,
153
+ # ISO 8601 formatted date-time indicating when the resource was created.
154
+ created_at: nil,
155
+ # Identifies the type of the resource.
156
+ record_type: nil,
157
+ # ISO 8601 formatted date-time indicating when the resource was updated.
158
+ updated_at: nil,
159
+ # A user specified name for the interface.
160
+ name: nil,
161
+ # The id of the network associated with the interface.
162
+ network_id: nil,
163
+ # The current status of the interface deployment.
164
+ status: nil,
165
+ # The publically accessible ip for this interface.
166
+ public_ip: nil,
167
+ region: nil,
168
+ # The region interface is deployed to.
169
+ region_code: nil
170
+ )
171
+ end
172
+
173
+ sig do
174
+ override.returns(
175
+ {
176
+ id: String,
177
+ created_at: String,
178
+ record_type: String,
179
+ updated_at: String,
180
+ name: String,
181
+ network_id: String,
182
+ status: Telnyx::InterfaceStatus::TaggedSymbol,
183
+ public_ip: String,
184
+ region:
185
+ Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::Region,
186
+ region_code: String
187
+ }
188
+ )
189
+ end
190
+ def to_hash
191
+ end
192
+
193
+ class Region < Telnyx::Internal::Type::BaseModel
194
+ OrHash =
195
+ T.type_alias do
196
+ T.any(
197
+ Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::Region,
198
+ Telnyx::Internal::AnyHash
199
+ )
200
+ end
201
+
202
+ # Region code of the interface.
203
+ sig { returns(T.nilable(String)) }
204
+ attr_reader :code
205
+
206
+ sig { params(code: String).void }
207
+ attr_writer :code
208
+
209
+ # Region name of the interface.
210
+ sig { returns(T.nilable(String)) }
211
+ attr_reader :name
212
+
213
+ sig { params(name: String).void }
214
+ attr_writer :name
215
+
216
+ # Identifies the type of the resource.
217
+ sig { returns(T.nilable(String)) }
218
+ attr_reader :record_type
219
+
220
+ sig { params(record_type: String).void }
221
+ attr_writer :record_type
222
+
223
+ sig do
224
+ params(code: String, name: String, record_type: String).returns(
225
+ T.attached_class
226
+ )
227
+ end
228
+ def self.new(
229
+ # Region code of the interface.
230
+ code: nil,
231
+ # Region name of the interface.
232
+ name: nil,
233
+ # Identifies the type of the resource.
234
+ record_type: nil
235
+ )
236
+ end
237
+
238
+ sig do
239
+ override.returns(
240
+ { code: String, name: String, record_type: String }
241
+ )
242
+ end
243
+ def to_hash
244
+ end
245
+ end
246
+ end
45
247
  end
46
248
  end
47
249
  end