telnyx 5.37.0 → 5.38.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 (131) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/errors.rb +10 -0
  5. data/lib/telnyx/models/global_ip_assignment.rb +1 -0
  6. data/lib/telnyx/models/global_ip_assignment_create_response.rb +2 -2
  7. data/lib/telnyx/models/global_ip_assignment_delete_response.rb +2 -2
  8. data/lib/telnyx/models/global_ip_assignment_retrieve_response.rb +2 -2
  9. data/lib/telnyx/models/global_ip_assignment_update_params.rb +1 -1
  10. data/lib/telnyx/models/global_ip_assignment_update_response.rb +2 -2
  11. data/lib/telnyx/models/global_ip_create_response.rb +2 -34
  12. data/lib/telnyx/models/global_ip_delete_response.rb +2 -34
  13. data/lib/telnyx/models/global_ip_health_check_create_response.rb +2 -36
  14. data/lib/telnyx/models/global_ip_health_check_delete_response.rb +2 -36
  15. data/lib/telnyx/models/global_ip_health_check_list_response.rb +2 -36
  16. data/lib/telnyx/models/global_ip_health_check_retrieve_response.rb +2 -36
  17. data/lib/telnyx/models/global_ip_list_response.rb +2 -34
  18. data/lib/telnyx/models/global_ip_retrieve_response.rb +2 -34
  19. data/lib/telnyx/models/network_create.rb +2 -36
  20. data/lib/telnyx/models/network_create_response.rb +2 -36
  21. data/lib/telnyx/models/network_delete_response.rb +2 -36
  22. data/lib/telnyx/models/network_list_interfaces_response.rb +2 -112
  23. data/lib/telnyx/models/network_list_response.rb +2 -36
  24. data/lib/telnyx/models/network_retrieve_response.rb +2 -36
  25. data/lib/telnyx/models/network_update_response.rb +2 -36
  26. data/lib/telnyx/models/networks/default_gateway_create_response.rb +2 -34
  27. data/lib/telnyx/models/networks/default_gateway_delete_response.rb +2 -34
  28. data/lib/telnyx/models/networks/default_gateway_retrieve_response.rb +2 -34
  29. data/lib/telnyx/models/public_internet_gateway_create_response.rb +2 -75
  30. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +2 -75
  31. data/lib/telnyx/models/public_internet_gateway_list_response.rb +2 -75
  32. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +2 -75
  33. data/lib/telnyx/models/record.rb +42 -0
  34. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +272 -2
  35. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +272 -2
  36. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +271 -2
  37. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +272 -2
  38. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +272 -2
  39. data/lib/telnyx/models/wireguard_interface_create_response.rb +2 -128
  40. data/lib/telnyx/models/wireguard_interface_delete_response.rb +2 -128
  41. data/lib/telnyx/models/wireguard_interface_list_response.rb +2 -128
  42. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +2 -128
  43. data/lib/telnyx/models/wireguard_peer_create_response.rb +75 -2
  44. data/lib/telnyx/models/wireguard_peer_delete_response.rb +75 -2
  45. data/lib/telnyx/models/wireguard_peer_list_response.rb +75 -2
  46. data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +75 -2
  47. data/lib/telnyx/models/wireguard_peer_update_response.rb +75 -2
  48. data/lib/telnyx/models.rb +2 -0
  49. data/lib/telnyx/resources/global_ip_assignments.rb +1 -1
  50. data/lib/telnyx/resources/webhooks.rb +186 -3
  51. data/lib/telnyx/version.rb +1 -1
  52. data/lib/telnyx.rb +2 -1
  53. data/rbi/telnyx/models/global_ip_assignment_update_params.rbi +2 -11
  54. data/rbi/telnyx/models/global_ip_create_response.rbi +1 -45
  55. data/rbi/telnyx/models/global_ip_delete_response.rbi +1 -45
  56. data/rbi/telnyx/models/global_ip_health_check_create_response.rbi +1 -45
  57. data/rbi/telnyx/models/global_ip_health_check_delete_response.rbi +1 -45
  58. data/rbi/telnyx/models/global_ip_health_check_list_response.rbi +1 -45
  59. data/rbi/telnyx/models/global_ip_health_check_retrieve_response.rbi +1 -45
  60. data/rbi/telnyx/models/global_ip_list_response.rbi +1 -45
  61. data/rbi/telnyx/models/global_ip_retrieve_response.rbi +1 -45
  62. data/rbi/telnyx/models/network_create.rbi +4 -58
  63. data/rbi/telnyx/models/network_create_response.rbi +3 -57
  64. data/rbi/telnyx/models/network_delete_response.rbi +3 -57
  65. data/rbi/telnyx/models/network_list_interfaces_response.rbi +4 -181
  66. data/rbi/telnyx/models/network_list_response.rbi +3 -57
  67. data/rbi/telnyx/models/network_retrieve_response.rbi +3 -57
  68. data/rbi/telnyx/models/network_update_response.rbi +3 -57
  69. data/rbi/telnyx/models/networks/default_gateway_create_response.rbi +1 -45
  70. data/rbi/telnyx/models/networks/default_gateway_delete_response.rbi +1 -45
  71. data/rbi/telnyx/models/networks/default_gateway_retrieve_response.rbi +1 -45
  72. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +4 -112
  73. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +4 -112
  74. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +4 -112
  75. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +4 -112
  76. data/rbi/telnyx/models/record.rbi +70 -0
  77. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +449 -4
  78. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +449 -4
  79. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -4
  80. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +449 -4
  81. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +449 -4
  82. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +4 -210
  83. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +4 -210
  84. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +4 -204
  85. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +4 -210
  86. data/rbi/telnyx/models/wireguard_peer_create_response.rbi +111 -4
  87. data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +111 -4
  88. data/rbi/telnyx/models/wireguard_peer_list_response.rbi +111 -4
  89. data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +111 -4
  90. data/rbi/telnyx/models/wireguard_peer_update_response.rbi +111 -4
  91. data/rbi/telnyx/models.rbi +2 -0
  92. data/sig/telnyx/models/global_ip_assignment_update_params.rbs +3 -17
  93. data/sig/telnyx/models/global_ip_create_response.rbs +9 -37
  94. data/sig/telnyx/models/global_ip_delete_response.rbs +9 -37
  95. data/sig/telnyx/models/global_ip_health_check_create_response.rbs +7 -35
  96. data/sig/telnyx/models/global_ip_health_check_delete_response.rbs +7 -35
  97. data/sig/telnyx/models/global_ip_health_check_list_response.rbs +7 -35
  98. data/sig/telnyx/models/global_ip_health_check_retrieve_response.rbs +7 -35
  99. data/sig/telnyx/models/global_ip_list_response.rbs +9 -37
  100. data/sig/telnyx/models/global_ip_retrieve_response.rbs +9 -37
  101. data/sig/telnyx/models/network_create.rbs +6 -39
  102. data/sig/telnyx/models/network_create_response.rbs +6 -41
  103. data/sig/telnyx/models/network_delete_response.rbs +6 -41
  104. data/sig/telnyx/models/network_list_interfaces_response.rbs +4 -106
  105. data/sig/telnyx/models/network_list_response.rbs +6 -41
  106. data/sig/telnyx/models/network_retrieve_response.rbs +6 -41
  107. data/sig/telnyx/models/network_update_response.rbs +6 -41
  108. data/sig/telnyx/models/networks/default_gateway_create_response.rbs +7 -35
  109. data/sig/telnyx/models/networks/default_gateway_delete_response.rbs +7 -35
  110. data/sig/telnyx/models/networks/default_gateway_retrieve_response.rbs +7 -35
  111. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +4 -73
  112. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +4 -73
  113. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +4 -73
  114. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +4 -73
  115. data/sig/telnyx/models/record.rbs +43 -0
  116. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +225 -4
  117. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +225 -4
  118. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +225 -4
  119. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +225 -4
  120. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +225 -4
  121. data/sig/telnyx/models/wireguard_interface_create_response.rbs +4 -120
  122. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +4 -120
  123. data/sig/telnyx/models/wireguard_interface_list_response.rbs +4 -120
  124. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +4 -120
  125. data/sig/telnyx/models/wireguard_peer_create_response.rbs +64 -4
  126. data/sig/telnyx/models/wireguard_peer_delete_response.rbs +64 -4
  127. data/sig/telnyx/models/wireguard_peer_list_response.rbs +64 -4
  128. data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +64 -4
  129. data/sig/telnyx/models/wireguard_peer_update_response.rbs +64 -4
  130. data/sig/telnyx/models.rbs +2 -0
  131. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f552a33634ae5d4f71b3f68e91154ed133b90aad4874fab02f51f5e5bad1e8f2
4
- data.tar.gz: 2175a622e1165711aa6fefdbe41178048681f551f12971d8a0d776342d994002
3
+ metadata.gz: 18f02735965f6afbffaec63905bdc5d5b951c5cac8a5eb4ec550c1777933d485
4
+ data.tar.gz: 23493c86e9635ca193f9b0b6aac0b97c5003907bcc559108bdc0f544529516e7
5
5
  SHA512:
6
- metadata.gz: 747534aeae5548c533a108186371796aa239449fe155e24b8b1805835004e0f61e2de0f9d32bf42b97062e95ba48d22dc002d287905d62b119f98808ebd066d1
7
- data.tar.gz: a0ba9f3f4aeb5dfca2699ded848e8234dce4cccc2a53f7321804414d1a2841e4ae2ed7a0a82dcd2d964eb0b2839f687a4fda761422c09c19144eb2d0c3faa5ac
6
+ metadata.gz: 7d456f5bc0c2a1cbc4a15cb6b434234894539c6e3327d15b35159decc0797d752b4381147521714d9031dd4b2941618fc03c7b079eb8ad4270b05381747c5721
7
+ data.tar.gz: 9a85318ee403c82111ced92fdcc0dee90a4ee266c9b657b52ed7b7270405408d06b5f74438861bedd29c47c76d0c099efb277434c02ebeb369ba52ad8d77fc73
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.38.1 (2026-02-24)
4
+
5
+ Full Changelog: [v5.38.0...v5.38.1](https://github.com/team-telnyx/telnyx-ruby/compare/v5.38.0...v5.38.1)
6
+
7
+ ## 5.38.0 (2026-02-24)
8
+
9
+ Full Changelog: [v5.37.0...v5.38.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.37.0...v5.38.0)
10
+
11
+ ### Features
12
+
13
+ * **api:** manual updates ([bc179c8](https://github.com/team-telnyx/telnyx-ruby/commit/bc179c8778347eea49997a82698db8277e9c5254))
14
+
3
15
  ## 5.37.0 (2026-02-22)
4
16
 
5
17
  Full Changelog: [v5.36.2...v5.37.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.36.2...v5.37.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "telnyx", "~> 5.37.0"
27
+ gem "telnyx", "~> 5.38.1"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
data/lib/telnyx/errors.rb CHANGED
@@ -224,5 +224,15 @@ module Telnyx
224
224
  class InternalServerError < Telnyx::Errors::APIStatusError
225
225
  HTTP_STATUS = (500..)
226
226
  end
227
+
228
+ # Raised when webhook signature verification fails.
229
+ class WebhookVerificationError < Telnyx::Errors::Error
230
+ # @api private
231
+ #
232
+ # @param message [String]
233
+ def initialize(message:)
234
+ super(message)
235
+ end
236
+ end
227
237
  end
228
238
  end
@@ -2,6 +2,7 @@
2
2
 
3
3
  module Telnyx
4
4
  module Models
5
+ # @see Telnyx::Resources::GlobalIPAssignments#list
5
6
  class GlobalIPAssignment < Telnyx::Internal::Type::BaseModel
6
7
  response_only do
7
8
  # @!attribute id
@@ -6,11 +6,11 @@ module Telnyx
6
6
  class GlobalIPAssignmentCreateResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [GlobalIPAssignment, nil]
9
+ # @return [Telnyx::Models::GlobalIPAssignment, nil]
10
10
  optional :data, -> { Telnyx::GlobalIPAssignment }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [GlobalIPAssignment]
13
+ # @param data [Telnyx::Models::GlobalIPAssignment]
14
14
  end
15
15
  end
16
16
  end
@@ -6,11 +6,11 @@ module Telnyx
6
6
  class GlobalIPAssignmentDeleteResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [GlobalIPAssignment, nil]
9
+ # @return [Telnyx::Models::GlobalIPAssignment, nil]
10
10
  optional :data, -> { Telnyx::GlobalIPAssignment }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [GlobalIPAssignment]
13
+ # @param data [Telnyx::Models::GlobalIPAssignment]
14
14
  end
15
15
  end
16
16
  end
@@ -6,11 +6,11 @@ module Telnyx
6
6
  class GlobalIPAssignmentRetrieveResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [GlobalIPAssignment, nil]
9
+ # @return [Telnyx::Models::GlobalIPAssignment, nil]
10
10
  optional :data, -> { Telnyx::GlobalIPAssignment }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [GlobalIPAssignment]
13
+ # @param data [Telnyx::Models::GlobalIPAssignment]
14
14
  end
15
15
  end
16
16
  end
@@ -18,7 +18,7 @@ module Telnyx
18
18
  # @param global_ip_assignment_update_request [Telnyx::Models::GlobalIPAssignmentUpdateParams::GlobalIPAssignmentUpdateRequest]
19
19
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
20
20
 
21
- class GlobalIPAssignmentUpdateRequest < Telnyx::Internal::Type::BaseModel
21
+ class GlobalIPAssignmentUpdateRequest < Telnyx::Models::GlobalIPAssignment
22
22
  # @!method initialize
23
23
  end
24
24
  end
@@ -6,11 +6,11 @@ module Telnyx
6
6
  class GlobalIPAssignmentUpdateResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [GlobalIPAssignment, nil]
9
+ # @return [Telnyx::Models::GlobalIPAssignment, nil]
10
10
  optional :data, -> { Telnyx::GlobalIPAssignment }
11
11
 
12
12
  # @!method initialize(data: nil)
13
- # @param data [GlobalIPAssignment]
13
+ # @param data [Telnyx::Models::GlobalIPAssignment]
14
14
  end
15
15
  end
16
16
  end
@@ -13,7 +13,7 @@ module Telnyx
13
13
  # @param data [Telnyx::Models::GlobalIPCreateResponse::Data]
14
14
 
15
15
  # @see Telnyx::Models::GlobalIPCreateResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
16
+ class Data < Telnyx::Models::Record
17
17
  # @!attribute description
18
18
  # A user specified description for the address.
19
19
  #
@@ -33,30 +33,6 @@ module Telnyx
33
33
  optional :ports, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
34
34
 
35
35
  response_only do
36
- # @!attribute id
37
- # Identifies the resource.
38
- #
39
- # @return [String, nil]
40
- optional :id, String
41
-
42
- # @!attribute created_at
43
- # ISO 8601 formatted date-time indicating when the resource was created.
44
- #
45
- # @return [String, nil]
46
- optional :created_at, String
47
-
48
- # @!attribute record_type
49
- # Identifies the type of the resource.
50
- #
51
- # @return [String, nil]
52
- optional :record_type, String
53
-
54
- # @!attribute updated_at
55
- # ISO 8601 formatted date-time indicating when the resource was updated.
56
- #
57
- # @return [String, nil]
58
- optional :updated_at, String
59
-
60
36
  # @!attribute ip_address
61
37
  # The Global IP address.
62
38
  #
@@ -64,15 +40,7 @@ module Telnyx
64
40
  optional :ip_address, String
65
41
  end
66
42
 
67
- # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, description: nil, ip_address: nil, name: nil, ports: nil)
68
- # @param id [String] Identifies the resource.
69
- #
70
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
71
- #
72
- # @param record_type [String] Identifies the type of the resource.
73
- #
74
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
75
- #
43
+ # @!method initialize(description: nil, ip_address: nil, name: nil, ports: nil)
76
44
  # @param description [String] A user specified description for the address.
77
45
  #
78
46
  # @param ip_address [String] The Global IP address.
@@ -13,7 +13,7 @@ module Telnyx
13
13
  # @param data [Telnyx::Models::GlobalIPDeleteResponse::Data]
14
14
 
15
15
  # @see Telnyx::Models::GlobalIPDeleteResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
16
+ class Data < Telnyx::Models::Record
17
17
  # @!attribute description
18
18
  # A user specified description for the address.
19
19
  #
@@ -33,30 +33,6 @@ module Telnyx
33
33
  optional :ports, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
34
34
 
35
35
  response_only do
36
- # @!attribute id
37
- # Identifies the resource.
38
- #
39
- # @return [String, nil]
40
- optional :id, String
41
-
42
- # @!attribute created_at
43
- # ISO 8601 formatted date-time indicating when the resource was created.
44
- #
45
- # @return [String, nil]
46
- optional :created_at, String
47
-
48
- # @!attribute record_type
49
- # Identifies the type of the resource.
50
- #
51
- # @return [String, nil]
52
- optional :record_type, String
53
-
54
- # @!attribute updated_at
55
- # ISO 8601 formatted date-time indicating when the resource was updated.
56
- #
57
- # @return [String, nil]
58
- optional :updated_at, String
59
-
60
36
  # @!attribute ip_address
61
37
  # The Global IP address.
62
38
  #
@@ -64,15 +40,7 @@ module Telnyx
64
40
  optional :ip_address, String
65
41
  end
66
42
 
67
- # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, description: nil, ip_address: nil, name: nil, ports: nil)
68
- # @param id [String] Identifies the resource.
69
- #
70
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
71
- #
72
- # @param record_type [String] Identifies the type of the resource.
73
- #
74
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
75
- #
43
+ # @!method initialize(description: nil, ip_address: nil, name: nil, ports: nil)
76
44
  # @param description [String] A user specified description for the address.
77
45
  #
78
46
  # @param ip_address [String] The Global IP address.
@@ -13,7 +13,7 @@ module Telnyx
13
13
  # @param data [Telnyx::Models::GlobalIPHealthCheckCreateResponse::Data]
14
14
 
15
15
  # @see Telnyx::Models::GlobalIPHealthCheckCreateResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
16
+ class Data < Telnyx::Models::Record
17
17
  # @!attribute global_ip_id
18
18
  # Global IP ID.
19
19
  #
@@ -32,41 +32,7 @@ module Telnyx
32
32
  # @return [String, nil]
33
33
  optional :health_check_type, String
34
34
 
35
- response_only do
36
- # @!attribute id
37
- # Identifies the resource.
38
- #
39
- # @return [String, nil]
40
- optional :id, String
41
-
42
- # @!attribute created_at
43
- # ISO 8601 formatted date-time indicating when the resource was created.
44
- #
45
- # @return [String, nil]
46
- optional :created_at, String
47
-
48
- # @!attribute record_type
49
- # Identifies the type of the resource.
50
- #
51
- # @return [String, nil]
52
- optional :record_type, String
53
-
54
- # @!attribute updated_at
55
- # ISO 8601 formatted date-time indicating when the resource was updated.
56
- #
57
- # @return [String, nil]
58
- optional :updated_at, String
59
- end
60
-
61
- # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, global_ip_id: nil, health_check_params: nil, health_check_type: nil)
62
- # @param id [String] Identifies the resource.
63
- #
64
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
65
- #
66
- # @param record_type [String] Identifies the type of the resource.
67
- #
68
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
69
- #
35
+ # @!method initialize(global_ip_id: nil, health_check_params: nil, health_check_type: nil)
70
36
  # @param global_ip_id [String] Global IP ID.
71
37
  #
72
38
  # @param health_check_params [Hash{Symbol=>Object}] A Global IP health check params.
@@ -13,7 +13,7 @@ module Telnyx
13
13
  # @param data [Telnyx::Models::GlobalIPHealthCheckDeleteResponse::Data]
14
14
 
15
15
  # @see Telnyx::Models::GlobalIPHealthCheckDeleteResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
16
+ class Data < Telnyx::Models::Record
17
17
  # @!attribute global_ip_id
18
18
  # Global IP ID.
19
19
  #
@@ -32,41 +32,7 @@ module Telnyx
32
32
  # @return [String, nil]
33
33
  optional :health_check_type, String
34
34
 
35
- response_only do
36
- # @!attribute id
37
- # Identifies the resource.
38
- #
39
- # @return [String, nil]
40
- optional :id, String
41
-
42
- # @!attribute created_at
43
- # ISO 8601 formatted date-time indicating when the resource was created.
44
- #
45
- # @return [String, nil]
46
- optional :created_at, String
47
-
48
- # @!attribute record_type
49
- # Identifies the type of the resource.
50
- #
51
- # @return [String, nil]
52
- optional :record_type, String
53
-
54
- # @!attribute updated_at
55
- # ISO 8601 formatted date-time indicating when the resource was updated.
56
- #
57
- # @return [String, nil]
58
- optional :updated_at, String
59
- end
60
-
61
- # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, global_ip_id: nil, health_check_params: nil, health_check_type: nil)
62
- # @param id [String] Identifies the resource.
63
- #
64
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
65
- #
66
- # @param record_type [String] Identifies the type of the resource.
67
- #
68
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
69
- #
35
+ # @!method initialize(global_ip_id: nil, health_check_params: nil, health_check_type: nil)
70
36
  # @param global_ip_id [String] Global IP ID.
71
37
  #
72
38
  # @param health_check_params [Hash{Symbol=>Object}] A Global IP health check params.
@@ -3,7 +3,7 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  # @see Telnyx::Resources::GlobalIPHealthChecks#list
6
- class GlobalIPHealthCheckListResponse < Telnyx::Internal::Type::BaseModel
6
+ class GlobalIPHealthCheckListResponse < Telnyx::Models::Record
7
7
  # @!attribute global_ip_id
8
8
  # Global IP ID.
9
9
  #
@@ -22,41 +22,7 @@ module Telnyx
22
22
  # @return [String, nil]
23
23
  optional :health_check_type, String
24
24
 
25
- response_only do
26
- # @!attribute id
27
- # Identifies the resource.
28
- #
29
- # @return [String, nil]
30
- optional :id, String
31
-
32
- # @!attribute created_at
33
- # ISO 8601 formatted date-time indicating when the resource was created.
34
- #
35
- # @return [String, nil]
36
- optional :created_at, String
37
-
38
- # @!attribute record_type
39
- # Identifies the type of the resource.
40
- #
41
- # @return [String, nil]
42
- optional :record_type, String
43
-
44
- # @!attribute updated_at
45
- # ISO 8601 formatted date-time indicating when the resource was updated.
46
- #
47
- # @return [String, nil]
48
- optional :updated_at, String
49
- end
50
-
51
- # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, global_ip_id: nil, health_check_params: nil, health_check_type: nil)
52
- # @param id [String] Identifies the resource.
53
- #
54
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
55
- #
56
- # @param record_type [String] Identifies the type of the resource.
57
- #
58
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
59
- #
25
+ # @!method initialize(global_ip_id: nil, health_check_params: nil, health_check_type: nil)
60
26
  # @param global_ip_id [String] Global IP ID.
61
27
  #
62
28
  # @param health_check_params [Hash{Symbol=>Object}] A Global IP health check params.
@@ -13,7 +13,7 @@ module Telnyx
13
13
  # @param data [Telnyx::Models::GlobalIPHealthCheckRetrieveResponse::Data]
14
14
 
15
15
  # @see Telnyx::Models::GlobalIPHealthCheckRetrieveResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
16
+ class Data < Telnyx::Models::Record
17
17
  # @!attribute global_ip_id
18
18
  # Global IP ID.
19
19
  #
@@ -32,41 +32,7 @@ module Telnyx
32
32
  # @return [String, nil]
33
33
  optional :health_check_type, String
34
34
 
35
- response_only do
36
- # @!attribute id
37
- # Identifies the resource.
38
- #
39
- # @return [String, nil]
40
- optional :id, String
41
-
42
- # @!attribute created_at
43
- # ISO 8601 formatted date-time indicating when the resource was created.
44
- #
45
- # @return [String, nil]
46
- optional :created_at, String
47
-
48
- # @!attribute record_type
49
- # Identifies the type of the resource.
50
- #
51
- # @return [String, nil]
52
- optional :record_type, String
53
-
54
- # @!attribute updated_at
55
- # ISO 8601 formatted date-time indicating when the resource was updated.
56
- #
57
- # @return [String, nil]
58
- optional :updated_at, String
59
- end
60
-
61
- # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, global_ip_id: nil, health_check_params: nil, health_check_type: nil)
62
- # @param id [String] Identifies the resource.
63
- #
64
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
65
- #
66
- # @param record_type [String] Identifies the type of the resource.
67
- #
68
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
69
- #
35
+ # @!method initialize(global_ip_id: nil, health_check_params: nil, health_check_type: nil)
70
36
  # @param global_ip_id [String] Global IP ID.
71
37
  #
72
38
  # @param health_check_params [Hash{Symbol=>Object}] A Global IP health check params.
@@ -3,7 +3,7 @@
3
3
  module Telnyx
4
4
  module Models
5
5
  # @see Telnyx::Resources::GlobalIPs#list
6
- class GlobalIPListResponse < Telnyx::Internal::Type::BaseModel
6
+ class GlobalIPListResponse < Telnyx::Models::Record
7
7
  # @!attribute description
8
8
  # A user specified description for the address.
9
9
  #
@@ -23,30 +23,6 @@ module Telnyx
23
23
  optional :ports, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
24
24
 
25
25
  response_only do
26
- # @!attribute id
27
- # Identifies the resource.
28
- #
29
- # @return [String, nil]
30
- optional :id, String
31
-
32
- # @!attribute created_at
33
- # ISO 8601 formatted date-time indicating when the resource was created.
34
- #
35
- # @return [String, nil]
36
- optional :created_at, String
37
-
38
- # @!attribute record_type
39
- # Identifies the type of the resource.
40
- #
41
- # @return [String, nil]
42
- optional :record_type, String
43
-
44
- # @!attribute updated_at
45
- # ISO 8601 formatted date-time indicating when the resource was updated.
46
- #
47
- # @return [String, nil]
48
- optional :updated_at, String
49
-
50
26
  # @!attribute ip_address
51
27
  # The Global IP address.
52
28
  #
@@ -54,15 +30,7 @@ module Telnyx
54
30
  optional :ip_address, String
55
31
  end
56
32
 
57
- # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, description: nil, ip_address: nil, name: nil, ports: nil)
58
- # @param id [String] Identifies the resource.
59
- #
60
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
61
- #
62
- # @param record_type [String] Identifies the type of the resource.
63
- #
64
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
65
- #
33
+ # @!method initialize(description: nil, ip_address: nil, name: nil, ports: nil)
66
34
  # @param description [String] A user specified description for the address.
67
35
  #
68
36
  # @param ip_address [String] The Global IP address.
@@ -13,7 +13,7 @@ module Telnyx
13
13
  # @param data [Telnyx::Models::GlobalIPRetrieveResponse::Data]
14
14
 
15
15
  # @see Telnyx::Models::GlobalIPRetrieveResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
16
+ class Data < Telnyx::Models::Record
17
17
  # @!attribute description
18
18
  # A user specified description for the address.
19
19
  #
@@ -33,30 +33,6 @@ module Telnyx
33
33
  optional :ports, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
34
34
 
35
35
  response_only do
36
- # @!attribute id
37
- # Identifies the resource.
38
- #
39
- # @return [String, nil]
40
- optional :id, String
41
-
42
- # @!attribute created_at
43
- # ISO 8601 formatted date-time indicating when the resource was created.
44
- #
45
- # @return [String, nil]
46
- optional :created_at, String
47
-
48
- # @!attribute record_type
49
- # Identifies the type of the resource.
50
- #
51
- # @return [String, nil]
52
- optional :record_type, String
53
-
54
- # @!attribute updated_at
55
- # ISO 8601 formatted date-time indicating when the resource was updated.
56
- #
57
- # @return [String, nil]
58
- optional :updated_at, String
59
-
60
36
  # @!attribute ip_address
61
37
  # The Global IP address.
62
38
  #
@@ -64,15 +40,7 @@ module Telnyx
64
40
  optional :ip_address, String
65
41
  end
66
42
 
67
- # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, description: nil, ip_address: nil, name: nil, ports: nil)
68
- # @param id [String] Identifies the resource.
69
- #
70
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
71
- #
72
- # @param record_type [String] Identifies the type of the resource.
73
- #
74
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
75
- #
43
+ # @!method initialize(description: nil, ip_address: nil, name: nil, ports: nil)
76
44
  # @param description [String] A user specified description for the address.
77
45
  #
78
46
  # @param ip_address [String] The Global IP address.
@@ -2,49 +2,15 @@
2
2
 
3
3
  module Telnyx
4
4
  module Models
5
- class NetworkCreate < Telnyx::Internal::Type::BaseModel
5
+ class NetworkCreate < Telnyx::Models::Record
6
6
  # @!attribute name
7
7
  # A user specified name for the network.
8
8
  #
9
9
  # @return [String]
10
10
  required :name, String
11
11
 
12
- response_only do
13
- # @!attribute id
14
- # Identifies the resource.
15
- #
16
- # @return [String, nil]
17
- optional :id, String
18
-
19
- # @!attribute created_at
20
- # ISO 8601 formatted date-time indicating when the resource was created.
21
- #
22
- # @return [String, nil]
23
- optional :created_at, String
24
-
25
- # @!attribute record_type
26
- # Identifies the type of the resource.
27
- #
28
- # @return [String, nil]
29
- optional :record_type, String
30
-
31
- # @!attribute updated_at
32
- # ISO 8601 formatted date-time indicating when the resource was updated.
33
- #
34
- # @return [String, nil]
35
- optional :updated_at, String
36
- end
37
-
38
- # @!method initialize(name:, id: nil, created_at: nil, record_type: nil, updated_at: nil)
12
+ # @!method initialize(name:)
39
13
  # @param name [String] A user specified name for the network.
40
- #
41
- # @param id [String] Identifies the resource.
42
- #
43
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
44
- #
45
- # @param record_type [String] Identifies the type of the resource.
46
- #
47
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
48
14
  end
49
15
  end
50
16
  end
@@ -13,48 +13,14 @@ module Telnyx
13
13
  # @param data [Telnyx::Models::NetworkCreateResponse::Data]
14
14
 
15
15
  # @see Telnyx::Models::NetworkCreateResponse#data
16
- class Data < Telnyx::Internal::Type::BaseModel
16
+ class Data < Telnyx::Models::Record
17
17
  # @!attribute name
18
18
  # A user specified name for the network.
19
19
  #
20
20
  # @return [String, nil]
21
21
  optional :name, String
22
22
 
23
- response_only do
24
- # @!attribute id
25
- # Identifies the resource.
26
- #
27
- # @return [String, nil]
28
- optional :id, String
29
-
30
- # @!attribute created_at
31
- # ISO 8601 formatted date-time indicating when the resource was created.
32
- #
33
- # @return [String, nil]
34
- optional :created_at, String
35
-
36
- # @!attribute record_type
37
- # Identifies the type of the resource.
38
- #
39
- # @return [String, nil]
40
- optional :record_type, String
41
-
42
- # @!attribute updated_at
43
- # ISO 8601 formatted date-time indicating when the resource was updated.
44
- #
45
- # @return [String, nil]
46
- optional :updated_at, String
47
- end
48
-
49
- # @!method initialize(id: nil, created_at: nil, record_type: nil, updated_at: nil, name: nil)
50
- # @param id [String] Identifies the resource.
51
- #
52
- # @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
53
- #
54
- # @param record_type [String] Identifies the type of the resource.
55
- #
56
- # @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
57
- #
23
+ # @!method initialize(name: nil)
58
24
  # @param name [String] A user specified name for the network.
59
25
  end
60
26
  end