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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistants/scheduled_event_create_params.rb +17 -1
  5. data/lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb +91 -1
  6. data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
  7. data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
  8. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
  9. data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
  10. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
  11. data/lib/telnyx/models/uac_internal_settings.rb +2 -2
  12. data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
  13. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
  14. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
  15. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
  16. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
  17. data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
  18. data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
  19. data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
  20. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
  21. data/lib/telnyx/models.rb +6 -0
  22. data/lib/telnyx/resources/ai/assistants/scheduled_events.rb +5 -1
  23. data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
  24. data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
  25. data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
  26. data/lib/telnyx/version.rb +1 -1
  27. data/lib/telnyx.rb +3 -3
  28. data/rbi/telnyx/models/ai/assistants/scheduled_event_create_params.rbi +22 -0
  29. data/rbi/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbi +153 -0
  30. data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
  31. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
  32. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
  33. data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
  34. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
  35. data/rbi/telnyx/models/uac_internal_settings.rbi +4 -4
  36. data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
  37. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
  38. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
  39. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
  40. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
  41. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
  42. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
  43. data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
  44. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
  45. data/rbi/telnyx/models.rbi +6 -0
  46. data/rbi/telnyx/resources/ai/assistants/scheduled_events.rbi +6 -0
  47. data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
  48. data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
  49. data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
  50. data/sig/telnyx/models/ai/assistants/scheduled_event_create_params.rbs +14 -0
  51. data/sig/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbs +85 -0
  52. data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
  53. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
  54. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
  55. data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
  56. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
  57. data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
  58. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
  59. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
  60. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
  61. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
  62. data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
  63. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
  64. data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
  65. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
  66. data/sig/telnyx/models.rbs +6 -0
  67. data/sig/telnyx/resources/ai/assistants/scheduled_events.rbs +2 -0
  68. data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
  69. data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
  70. data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
  71. metadata +10 -10
  72. data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
  73. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
  74. data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
  75. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
  76. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
  77. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
  78. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
  79. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
  80. data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
@@ -0,0 +1,128 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ class PublicInternetGatewayRead < Telnyx::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Telnyx::PublicInternetGatewayRead, Telnyx::Internal::AnyHash)
9
+ end
10
+
11
+ # A user specified name for the interface.
12
+ sig { returns(T.nilable(String)) }
13
+ attr_reader :name
14
+
15
+ sig { params(name: String).void }
16
+ attr_writer :name
17
+
18
+ # The id of the network associated with the interface.
19
+ sig { returns(T.nilable(String)) }
20
+ attr_reader :network_id
21
+
22
+ sig { params(network_id: String).void }
23
+ attr_writer :network_id
24
+
25
+ # The region interface is deployed to.
26
+ sig { returns(T.nilable(String)) }
27
+ attr_reader :region_code
28
+
29
+ sig { params(region_code: String).void }
30
+ attr_writer :region_code
31
+
32
+ # Identifies the resource.
33
+ sig { returns(T.nilable(String)) }
34
+ attr_reader :id
35
+
36
+ sig { params(id: String).void }
37
+ attr_writer :id
38
+
39
+ # ISO 8601 formatted date-time indicating when the resource was created.
40
+ sig { returns(T.nilable(String)) }
41
+ attr_reader :created_at
42
+
43
+ sig { params(created_at: String).void }
44
+ attr_writer :created_at
45
+
46
+ # The publically accessible ip for this interface.
47
+ sig { returns(T.nilable(String)) }
48
+ attr_reader :public_ip
49
+
50
+ sig { params(public_ip: String).void }
51
+ attr_writer :public_ip
52
+
53
+ # Identifies the type of the resource.
54
+ sig { returns(T.nilable(String)) }
55
+ attr_reader :record_type
56
+
57
+ sig { params(record_type: String).void }
58
+ attr_writer :record_type
59
+
60
+ # The current status of the interface deployment.
61
+ sig { returns(T.nilable(Telnyx::InterfaceStatus::TaggedSymbol)) }
62
+ attr_reader :status
63
+
64
+ sig { params(status: Telnyx::InterfaceStatus::OrSymbol).void }
65
+ attr_writer :status
66
+
67
+ # ISO 8601 formatted date-time indicating when the resource was updated.
68
+ sig { returns(T.nilable(String)) }
69
+ attr_reader :updated_at
70
+
71
+ sig { params(updated_at: String).void }
72
+ attr_writer :updated_at
73
+
74
+ sig do
75
+ params(
76
+ id: String,
77
+ created_at: String,
78
+ name: String,
79
+ network_id: String,
80
+ public_ip: String,
81
+ record_type: String,
82
+ region_code: String,
83
+ status: Telnyx::InterfaceStatus::OrSymbol,
84
+ updated_at: String
85
+ ).returns(T.attached_class)
86
+ end
87
+ def self.new(
88
+ # Identifies the resource.
89
+ id: nil,
90
+ # ISO 8601 formatted date-time indicating when the resource was created.
91
+ created_at: nil,
92
+ # A user specified name for the interface.
93
+ name: nil,
94
+ # The id of the network associated with the interface.
95
+ network_id: nil,
96
+ # The publically accessible ip for this interface.
97
+ public_ip: nil,
98
+ # Identifies the type of the resource.
99
+ record_type: nil,
100
+ # The region interface is deployed to.
101
+ region_code: nil,
102
+ # The current status of the interface deployment.
103
+ status: nil,
104
+ # ISO 8601 formatted date-time indicating when the resource was updated.
105
+ updated_at: nil
106
+ )
107
+ end
108
+
109
+ sig do
110
+ override.returns(
111
+ {
112
+ id: String,
113
+ created_at: String,
114
+ name: String,
115
+ network_id: String,
116
+ public_ip: String,
117
+ record_type: String,
118
+ region_code: String,
119
+ status: Telnyx::InterfaceStatus::TaggedSymbol,
120
+ updated_at: String
121
+ }
122
+ )
123
+ end
124
+ def to_hash
125
+ end
126
+ end
127
+ end
128
+ end
@@ -11,55 +11,23 @@ module Telnyx
11
11
  )
12
12
  end
13
13
 
14
- sig do
15
- returns(
16
- T.nilable(Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data)
17
- )
18
- end
14
+ sig { returns(T.nilable(Telnyx::PublicInternetGatewayRead)) }
19
15
  attr_reader :data
20
16
 
21
- sig do
22
- params(
23
- data:
24
- Telnyx::Models::PublicInternetGatewayRetrieveResponse::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
- data:
32
- Telnyx::Models::PublicInternetGatewayRetrieveResponse::Data::OrHash
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 do
39
- override.returns(
40
- { data: Telnyx::Models::PublicInternetGatewayRetrieveResponse::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::PublicInternetGatewayRetrieveResponse::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
@@ -10,8 +10,8 @@ module Telnyx
10
10
 
11
11
  # The SIP URI that Telnyx will call when handling an inbound request from the
12
12
  # external peer. Do not include a `sip:` prefix. The value must be in the format
13
- # `userinfo@[subdomain.]sip.telnyx.com` or
14
- # `userinfo@[subdomain.]sipdev.telnyx.com`; the userinfo portion may contain only
13
+ # `userinfo@<subdomain.>sip.telnyx.com` or
14
+ # `userinfo@<subdomain.>sipdev.telnyx.com`; the userinfo portion may contain only
15
15
  # letters, digits, hyphens, and underscores.
16
16
  sig { returns(T.nilable(String)) }
17
17
  attr_reader :destination_uri
@@ -24,8 +24,8 @@ module Telnyx
24
24
  def self.new(
25
25
  # The SIP URI that Telnyx will call when handling an inbound request from the
26
26
  # external peer. Do not include a `sip:` prefix. The value must be in the format
27
- # `userinfo@[subdomain.]sip.telnyx.com` or
28
- # `userinfo@[subdomain.]sipdev.telnyx.com`; the userinfo portion may contain only
27
+ # `userinfo@<subdomain.>sip.telnyx.com` or
28
+ # `userinfo@<subdomain.>sipdev.telnyx.com`; the userinfo portion may contain only
29
29
  # letters, digits, hyphens, and underscores.
30
30
  destination_uri: nil
31
31
  )
@@ -0,0 +1,345 @@
1
+ # typed: strong
2
+
3
+ module Telnyx
4
+ module Models
5
+ class VirtualCrossConnectCombined < Telnyx::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Telnyx::VirtualCrossConnectCombined, Telnyx::Internal::AnyHash)
9
+ end
10
+
11
+ # The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
12
+ # Connect.
13
+ sig { returns(T.nilable(Float)) }
14
+ attr_reader :bandwidth_mbps
15
+
16
+ sig { params(bandwidth_mbps: Float).void }
17
+ attr_writer :bandwidth_mbps
18
+
19
+ # The Border Gateway Protocol (BGP) Autonomous System Number (ASN).
20
+ sig { returns(T.nilable(Float)) }
21
+ attr_reader :bgp_asn
22
+
23
+ sig { params(bgp_asn: Float).void }
24
+ attr_writer :bgp_asn
25
+
26
+ # The Virtual Private Cloud with which you would like to establish a cross
27
+ # connect.
28
+ sig do
29
+ returns(
30
+ T.nilable(
31
+ Telnyx::VirtualCrossConnectCombined::CloudProvider::TaggedSymbol
32
+ )
33
+ )
34
+ end
35
+ attr_reader :cloud_provider
36
+
37
+ sig do
38
+ params(
39
+ cloud_provider:
40
+ Telnyx::VirtualCrossConnectCombined::CloudProvider::OrSymbol
41
+ ).void
42
+ end
43
+ attr_writer :cloud_provider
44
+
45
+ # The region where your Virtual Private Cloud hosts are located.
46
+ sig { returns(T.nilable(String)) }
47
+ attr_reader :cloud_provider_region
48
+
49
+ sig { params(cloud_provider_region: String).void }
50
+ attr_writer :cloud_provider_region
51
+
52
+ # A user specified name for the interface.
53
+ sig { returns(T.nilable(String)) }
54
+ attr_reader :name
55
+
56
+ sig { params(name: String).void }
57
+ attr_writer :name
58
+
59
+ # The id of the network associated with the interface.
60
+ sig { returns(T.nilable(String)) }
61
+ attr_reader :network_id
62
+
63
+ sig { params(network_id: String).void }
64
+ attr_writer :network_id
65
+
66
+ # The authentication key for BGP peer configuration.
67
+ sig { returns(T.nilable(String)) }
68
+ attr_reader :primary_bgp_key
69
+
70
+ sig { params(primary_bgp_key: String).void }
71
+ attr_writer :primary_bgp_key
72
+
73
+ # The identifier for your Virtual Private Cloud.
74
+ sig { returns(T.nilable(String)) }
75
+ attr_reader :primary_cloud_account_id
76
+
77
+ sig { params(primary_cloud_account_id: String).void }
78
+ attr_writer :primary_cloud_account_id
79
+
80
+ # The IP address assigned for your side of the Virtual Cross Connect.
81
+ sig { returns(T.nilable(String)) }
82
+ attr_reader :primary_cloud_ip
83
+
84
+ sig { params(primary_cloud_ip: String).void }
85
+ attr_writer :primary_cloud_ip
86
+
87
+ # Indicates whether the primary circuit is enabled.
88
+ sig { returns(T.nilable(T::Boolean)) }
89
+ attr_reader :primary_enabled
90
+
91
+ sig { params(primary_enabled: T::Boolean).void }
92
+ attr_writer :primary_enabled
93
+
94
+ # Whether
95
+ sig { returns(T.nilable(T::Boolean)) }
96
+ attr_reader :primary_routing_announcement
97
+
98
+ sig { params(primary_routing_announcement: T::Boolean).void }
99
+ attr_writer :primary_routing_announcement
100
+
101
+ # The IP address assigned to the Telnyx side of the Virtual Cross Connect.
102
+ sig { returns(T.nilable(String)) }
103
+ attr_reader :primary_telnyx_ip
104
+
105
+ sig { params(primary_telnyx_ip: String).void }
106
+ attr_writer :primary_telnyx_ip
107
+
108
+ sig { returns(T.nilable(Telnyx::VirtualCrossConnectCombined::Region)) }
109
+ attr_reader :region
110
+
111
+ sig do
112
+ params(region: Telnyx::VirtualCrossConnectCombined::Region::OrHash).void
113
+ end
114
+ attr_writer :region
115
+
116
+ # The region interface is deployed to.
117
+ sig { returns(T.nilable(String)) }
118
+ attr_reader :region_code
119
+
120
+ sig { params(region_code: String).void }
121
+ attr_writer :region_code
122
+
123
+ # Identifies the resource.
124
+ sig { returns(T.nilable(String)) }
125
+ attr_reader :id
126
+
127
+ sig { params(id: String).void }
128
+ attr_writer :id
129
+
130
+ # ISO 8601 formatted date-time indicating when the resource was created.
131
+ sig { returns(T.nilable(String)) }
132
+ attr_reader :created_at
133
+
134
+ sig { params(created_at: String).void }
135
+ attr_writer :created_at
136
+
137
+ # Identifies the type of the resource.
138
+ sig { returns(T.nilable(String)) }
139
+ attr_reader :record_type
140
+
141
+ sig { params(record_type: String).void }
142
+ attr_writer :record_type
143
+
144
+ # The current status of the interface deployment.
145
+ sig { returns(T.nilable(Telnyx::InterfaceStatus::TaggedSymbol)) }
146
+ attr_reader :status
147
+
148
+ sig { params(status: Telnyx::InterfaceStatus::OrSymbol).void }
149
+ attr_writer :status
150
+
151
+ # ISO 8601 formatted date-time indicating when the resource was updated.
152
+ sig { returns(T.nilable(String)) }
153
+ attr_reader :updated_at
154
+
155
+ sig { params(updated_at: String).void }
156
+ attr_writer :updated_at
157
+
158
+ sig do
159
+ params(
160
+ id: String,
161
+ bandwidth_mbps: Float,
162
+ bgp_asn: Float,
163
+ cloud_provider:
164
+ Telnyx::VirtualCrossConnectCombined::CloudProvider::OrSymbol,
165
+ cloud_provider_region: String,
166
+ created_at: String,
167
+ name: String,
168
+ network_id: String,
169
+ primary_bgp_key: String,
170
+ primary_cloud_account_id: String,
171
+ primary_cloud_ip: String,
172
+ primary_enabled: T::Boolean,
173
+ primary_routing_announcement: T::Boolean,
174
+ primary_telnyx_ip: String,
175
+ record_type: String,
176
+ region: Telnyx::VirtualCrossConnectCombined::Region::OrHash,
177
+ region_code: String,
178
+ status: Telnyx::InterfaceStatus::OrSymbol,
179
+ updated_at: String
180
+ ).returns(T.attached_class)
181
+ end
182
+ def self.new(
183
+ # Identifies the resource.
184
+ id: nil,
185
+ # The desired throughput in Megabits per Second (Mbps) for your Virtual Cross
186
+ # Connect.
187
+ bandwidth_mbps: nil,
188
+ # The Border Gateway Protocol (BGP) Autonomous System Number (ASN).
189
+ bgp_asn: nil,
190
+ # The Virtual Private Cloud with which you would like to establish a cross
191
+ # connect.
192
+ cloud_provider: nil,
193
+ # The region where your Virtual Private Cloud hosts are located.
194
+ cloud_provider_region: nil,
195
+ # ISO 8601 formatted date-time indicating when the resource was created.
196
+ created_at: nil,
197
+ # A user specified name for the interface.
198
+ name: nil,
199
+ # The id of the network associated with the interface.
200
+ network_id: nil,
201
+ # The authentication key for BGP peer configuration.
202
+ primary_bgp_key: nil,
203
+ # The identifier for your Virtual Private Cloud.
204
+ primary_cloud_account_id: nil,
205
+ # The IP address assigned for your side of the Virtual Cross Connect.
206
+ primary_cloud_ip: nil,
207
+ # Indicates whether the primary circuit is enabled.
208
+ primary_enabled: nil,
209
+ # Whether
210
+ primary_routing_announcement: nil,
211
+ # The IP address assigned to the Telnyx side of the Virtual Cross Connect.
212
+ primary_telnyx_ip: nil,
213
+ # Identifies the type of the resource.
214
+ record_type: nil,
215
+ region: nil,
216
+ # The region interface is deployed to.
217
+ region_code: nil,
218
+ # The current status of the interface deployment.
219
+ status: nil,
220
+ # ISO 8601 formatted date-time indicating when the resource was updated.
221
+ updated_at: nil
222
+ )
223
+ end
224
+
225
+ sig do
226
+ override.returns(
227
+ {
228
+ id: String,
229
+ bandwidth_mbps: Float,
230
+ bgp_asn: Float,
231
+ cloud_provider:
232
+ Telnyx::VirtualCrossConnectCombined::CloudProvider::TaggedSymbol,
233
+ cloud_provider_region: String,
234
+ created_at: String,
235
+ name: String,
236
+ network_id: String,
237
+ primary_bgp_key: String,
238
+ primary_cloud_account_id: String,
239
+ primary_cloud_ip: String,
240
+ primary_enabled: T::Boolean,
241
+ primary_routing_announcement: T::Boolean,
242
+ primary_telnyx_ip: String,
243
+ record_type: String,
244
+ region: Telnyx::VirtualCrossConnectCombined::Region,
245
+ region_code: String,
246
+ status: Telnyx::InterfaceStatus::TaggedSymbol,
247
+ updated_at: String
248
+ }
249
+ )
250
+ end
251
+ def to_hash
252
+ end
253
+
254
+ # The Virtual Private Cloud with which you would like to establish a cross
255
+ # connect.
256
+ module CloudProvider
257
+ extend Telnyx::Internal::Type::Enum
258
+
259
+ TaggedSymbol =
260
+ T.type_alias do
261
+ T.all(Symbol, Telnyx::VirtualCrossConnectCombined::CloudProvider)
262
+ end
263
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
264
+
265
+ AWS =
266
+ T.let(
267
+ :aws,
268
+ Telnyx::VirtualCrossConnectCombined::CloudProvider::TaggedSymbol
269
+ )
270
+ AZURE =
271
+ T.let(
272
+ :azure,
273
+ Telnyx::VirtualCrossConnectCombined::CloudProvider::TaggedSymbol
274
+ )
275
+ GCE =
276
+ T.let(
277
+ :gce,
278
+ Telnyx::VirtualCrossConnectCombined::CloudProvider::TaggedSymbol
279
+ )
280
+
281
+ sig do
282
+ override.returns(
283
+ T::Array[
284
+ Telnyx::VirtualCrossConnectCombined::CloudProvider::TaggedSymbol
285
+ ]
286
+ )
287
+ end
288
+ def self.values
289
+ end
290
+ end
291
+
292
+ class Region < Telnyx::Internal::Type::BaseModel
293
+ OrHash =
294
+ T.type_alias do
295
+ T.any(
296
+ Telnyx::VirtualCrossConnectCombined::Region,
297
+ Telnyx::Internal::AnyHash
298
+ )
299
+ end
300
+
301
+ # Region code of the interface.
302
+ sig { returns(T.nilable(String)) }
303
+ attr_reader :code
304
+
305
+ sig { params(code: String).void }
306
+ attr_writer :code
307
+
308
+ # Region name of the interface.
309
+ sig { returns(T.nilable(String)) }
310
+ attr_reader :name
311
+
312
+ sig { params(name: String).void }
313
+ attr_writer :name
314
+
315
+ # Identifies the type of the resource.
316
+ sig { returns(T.nilable(String)) }
317
+ attr_reader :record_type
318
+
319
+ sig { params(record_type: String).void }
320
+ attr_writer :record_type
321
+
322
+ sig do
323
+ params(code: String, name: String, record_type: String).returns(
324
+ T.attached_class
325
+ )
326
+ end
327
+ def self.new(
328
+ # Region code of the interface.
329
+ code: nil,
330
+ # Region name of the interface.
331
+ name: nil,
332
+ # Identifies the type of the resource.
333
+ record_type: nil
334
+ )
335
+ end
336
+
337
+ sig do
338
+ override.returns({ code: String, name: String, record_type: String })
339
+ end
340
+ def to_hash
341
+ end
342
+ end
343
+ end
344
+ end
345
+ end
@@ -11,53 +11,23 @@ module Telnyx
11
11
  )
12
12
  end
13
13
 
14
- sig do
15
- returns(
16
- T.nilable(Telnyx::Models::VirtualCrossConnectCreateResponse::Data)
17
- )
18
- end
14
+ sig { returns(T.nilable(Telnyx::VirtualCrossConnectCombined)) }
19
15
  attr_reader :data
20
16
 
21
- sig do
22
- params(
23
- data: Telnyx::Models::VirtualCrossConnectCreateResponse::Data::OrHash
24
- ).void
25
- end
17
+ sig { params(data: Telnyx::VirtualCrossConnectCombined::OrHash).void }
26
18
  attr_writer :data
27
19
 
28
20
  sig do
29
- params(
30
- data: Telnyx::Models::VirtualCrossConnectCreateResponse::Data::OrHash
31
- ).returns(T.attached_class)
21
+ params(data: Telnyx::VirtualCrossConnectCombined::OrHash).returns(
22
+ T.attached_class
23
+ )
32
24
  end
33
25
  def self.new(data: nil)
34
26
  end
35
27
 
36
- sig do
37
- override.returns(
38
- { data: Telnyx::Models::VirtualCrossConnectCreateResponse::Data }
39
- )
40
- end
28
+ sig { override.returns({ data: Telnyx::VirtualCrossConnectCombined }) }
41
29
  def to_hash
42
30
  end
43
-
44
- class Data < Telnyx::Models::Record
45
- OrHash =
46
- T.type_alias do
47
- T.any(
48
- Telnyx::Models::VirtualCrossConnectCreateResponse::Data,
49
- Telnyx::Internal::AnyHash
50
- )
51
- end
52
-
53
- sig { returns(T.attached_class) }
54
- def self.new
55
- end
56
-
57
- sig { override.returns({}) }
58
- def to_hash
59
- end
60
- end
61
31
  end
62
32
  end
63
33
  end
@@ -11,53 +11,23 @@ module Telnyx
11
11
  )
12
12
  end
13
13
 
14
- sig do
15
- returns(
16
- T.nilable(Telnyx::Models::VirtualCrossConnectDeleteResponse::Data)
17
- )
18
- end
14
+ sig { returns(T.nilable(Telnyx::VirtualCrossConnectCombined)) }
19
15
  attr_reader :data
20
16
 
21
- sig do
22
- params(
23
- data: Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::OrHash
24
- ).void
25
- end
17
+ sig { params(data: Telnyx::VirtualCrossConnectCombined::OrHash).void }
26
18
  attr_writer :data
27
19
 
28
20
  sig do
29
- params(
30
- data: Telnyx::Models::VirtualCrossConnectDeleteResponse::Data::OrHash
31
- ).returns(T.attached_class)
21
+ params(data: Telnyx::VirtualCrossConnectCombined::OrHash).returns(
22
+ T.attached_class
23
+ )
32
24
  end
33
25
  def self.new(data: nil)
34
26
  end
35
27
 
36
- sig do
37
- override.returns(
38
- { data: Telnyx::Models::VirtualCrossConnectDeleteResponse::Data }
39
- )
40
- end
28
+ sig { override.returns({ data: Telnyx::VirtualCrossConnectCombined }) }
41
29
  def to_hash
42
30
  end
43
-
44
- class Data < Telnyx::Models::Record
45
- OrHash =
46
- T.type_alias do
47
- T.any(
48
- Telnyx::Models::VirtualCrossConnectDeleteResponse::Data,
49
- Telnyx::Internal::AnyHash
50
- )
51
- end
52
-
53
- sig { returns(T.attached_class) }
54
- def self.new
55
- end
56
-
57
- sig { override.returns({}) }
58
- def to_hash
59
- end
60
- end
61
31
  end
62
32
  end
63
33
  end