telnyx 5.37.0 → 5.38.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 (129) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/global_ip_assignment.rb +1 -0
  5. data/lib/telnyx/models/global_ip_assignment_create_response.rb +2 -2
  6. data/lib/telnyx/models/global_ip_assignment_delete_response.rb +2 -2
  7. data/lib/telnyx/models/global_ip_assignment_retrieve_response.rb +2 -2
  8. data/lib/telnyx/models/global_ip_assignment_update_params.rb +1 -1
  9. data/lib/telnyx/models/global_ip_assignment_update_response.rb +2 -2
  10. data/lib/telnyx/models/global_ip_create_response.rb +2 -34
  11. data/lib/telnyx/models/global_ip_delete_response.rb +2 -34
  12. data/lib/telnyx/models/global_ip_health_check_create_response.rb +2 -36
  13. data/lib/telnyx/models/global_ip_health_check_delete_response.rb +2 -36
  14. data/lib/telnyx/models/global_ip_health_check_list_response.rb +2 -36
  15. data/lib/telnyx/models/global_ip_health_check_retrieve_response.rb +2 -36
  16. data/lib/telnyx/models/global_ip_list_response.rb +2 -34
  17. data/lib/telnyx/models/global_ip_retrieve_response.rb +2 -34
  18. data/lib/telnyx/models/network_create.rb +2 -36
  19. data/lib/telnyx/models/network_create_response.rb +2 -36
  20. data/lib/telnyx/models/network_delete_response.rb +2 -36
  21. data/lib/telnyx/models/network_list_interfaces_response.rb +2 -112
  22. data/lib/telnyx/models/network_list_response.rb +2 -36
  23. data/lib/telnyx/models/network_retrieve_response.rb +2 -36
  24. data/lib/telnyx/models/network_update_response.rb +2 -36
  25. data/lib/telnyx/models/networks/default_gateway_create_response.rb +2 -34
  26. data/lib/telnyx/models/networks/default_gateway_delete_response.rb +2 -34
  27. data/lib/telnyx/models/networks/default_gateway_retrieve_response.rb +2 -34
  28. data/lib/telnyx/models/public_internet_gateway_create_response.rb +2 -75
  29. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +2 -75
  30. data/lib/telnyx/models/public_internet_gateway_list_response.rb +2 -75
  31. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +2 -75
  32. data/lib/telnyx/models/record.rb +42 -0
  33. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +272 -2
  34. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +272 -2
  35. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +271 -2
  36. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +272 -2
  37. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +272 -2
  38. data/lib/telnyx/models/wireguard_interface_create_response.rb +2 -128
  39. data/lib/telnyx/models/wireguard_interface_delete_response.rb +2 -128
  40. data/lib/telnyx/models/wireguard_interface_list_response.rb +2 -128
  41. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +2 -128
  42. data/lib/telnyx/models/wireguard_peer_create_response.rb +75 -2
  43. data/lib/telnyx/models/wireguard_peer_delete_response.rb +75 -2
  44. data/lib/telnyx/models/wireguard_peer_list_response.rb +75 -2
  45. data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +75 -2
  46. data/lib/telnyx/models/wireguard_peer_update_response.rb +75 -2
  47. data/lib/telnyx/models.rb +2 -0
  48. data/lib/telnyx/resources/global_ip_assignments.rb +1 -1
  49. data/lib/telnyx/version.rb +1 -1
  50. data/lib/telnyx.rb +2 -1
  51. data/rbi/telnyx/models/global_ip_assignment_update_params.rbi +2 -11
  52. data/rbi/telnyx/models/global_ip_create_response.rbi +1 -45
  53. data/rbi/telnyx/models/global_ip_delete_response.rbi +1 -45
  54. data/rbi/telnyx/models/global_ip_health_check_create_response.rbi +1 -45
  55. data/rbi/telnyx/models/global_ip_health_check_delete_response.rbi +1 -45
  56. data/rbi/telnyx/models/global_ip_health_check_list_response.rbi +1 -45
  57. data/rbi/telnyx/models/global_ip_health_check_retrieve_response.rbi +1 -45
  58. data/rbi/telnyx/models/global_ip_list_response.rbi +1 -45
  59. data/rbi/telnyx/models/global_ip_retrieve_response.rbi +1 -45
  60. data/rbi/telnyx/models/network_create.rbi +4 -58
  61. data/rbi/telnyx/models/network_create_response.rbi +3 -57
  62. data/rbi/telnyx/models/network_delete_response.rbi +3 -57
  63. data/rbi/telnyx/models/network_list_interfaces_response.rbi +4 -181
  64. data/rbi/telnyx/models/network_list_response.rbi +3 -57
  65. data/rbi/telnyx/models/network_retrieve_response.rbi +3 -57
  66. data/rbi/telnyx/models/network_update_response.rbi +3 -57
  67. data/rbi/telnyx/models/networks/default_gateway_create_response.rbi +1 -45
  68. data/rbi/telnyx/models/networks/default_gateway_delete_response.rbi +1 -45
  69. data/rbi/telnyx/models/networks/default_gateway_retrieve_response.rbi +1 -45
  70. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +4 -112
  71. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +4 -112
  72. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +4 -112
  73. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +4 -112
  74. data/rbi/telnyx/models/record.rbi +70 -0
  75. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +449 -4
  76. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +449 -4
  77. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -4
  78. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +449 -4
  79. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +449 -4
  80. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +4 -210
  81. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +4 -210
  82. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +4 -204
  83. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +4 -210
  84. data/rbi/telnyx/models/wireguard_peer_create_response.rbi +111 -4
  85. data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +111 -4
  86. data/rbi/telnyx/models/wireguard_peer_list_response.rbi +111 -4
  87. data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +111 -4
  88. data/rbi/telnyx/models/wireguard_peer_update_response.rbi +111 -4
  89. data/rbi/telnyx/models.rbi +2 -0
  90. data/sig/telnyx/models/global_ip_assignment_update_params.rbs +3 -17
  91. data/sig/telnyx/models/global_ip_create_response.rbs +9 -37
  92. data/sig/telnyx/models/global_ip_delete_response.rbs +9 -37
  93. data/sig/telnyx/models/global_ip_health_check_create_response.rbs +7 -35
  94. data/sig/telnyx/models/global_ip_health_check_delete_response.rbs +7 -35
  95. data/sig/telnyx/models/global_ip_health_check_list_response.rbs +7 -35
  96. data/sig/telnyx/models/global_ip_health_check_retrieve_response.rbs +7 -35
  97. data/sig/telnyx/models/global_ip_list_response.rbs +9 -37
  98. data/sig/telnyx/models/global_ip_retrieve_response.rbs +9 -37
  99. data/sig/telnyx/models/network_create.rbs +6 -39
  100. data/sig/telnyx/models/network_create_response.rbs +6 -41
  101. data/sig/telnyx/models/network_delete_response.rbs +6 -41
  102. data/sig/telnyx/models/network_list_interfaces_response.rbs +4 -106
  103. data/sig/telnyx/models/network_list_response.rbs +6 -41
  104. data/sig/telnyx/models/network_retrieve_response.rbs +6 -41
  105. data/sig/telnyx/models/network_update_response.rbs +6 -41
  106. data/sig/telnyx/models/networks/default_gateway_create_response.rbs +7 -35
  107. data/sig/telnyx/models/networks/default_gateway_delete_response.rbs +7 -35
  108. data/sig/telnyx/models/networks/default_gateway_retrieve_response.rbs +7 -35
  109. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +4 -73
  110. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +4 -73
  111. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +4 -73
  112. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +4 -73
  113. data/sig/telnyx/models/record.rbs +43 -0
  114. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +225 -4
  115. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +225 -4
  116. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +225 -4
  117. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +225 -4
  118. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +225 -4
  119. data/sig/telnyx/models/wireguard_interface_create_response.rbs +4 -120
  120. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +4 -120
  121. data/sig/telnyx/models/wireguard_interface_list_response.rbs +4 -120
  122. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +4 -120
  123. data/sig/telnyx/models/wireguard_peer_create_response.rbs +64 -4
  124. data/sig/telnyx/models/wireguard_peer_delete_response.rbs +64 -4
  125. data/sig/telnyx/models/wireguard_peer_list_response.rbs +64 -4
  126. data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +64 -4
  127. data/sig/telnyx/models/wireguard_peer_update_response.rbs +64 -4
  128. data/sig/telnyx/models.rbs +2 -0
  129. 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: da4cb6122eefdc8ddf57152d47edd56e0983f3d228b2db64f57f3c33cf1daa43
4
+ data.tar.gz: 2258bab28da996a1a223c9bab28705e5260c968383652821bc2d719cfb6f67d5
5
5
  SHA512:
6
- metadata.gz: 747534aeae5548c533a108186371796aa239449fe155e24b8b1805835004e0f61e2de0f9d32bf42b97062e95ba48d22dc002d287905d62b119f98808ebd066d1
7
- data.tar.gz: a0ba9f3f4aeb5dfca2699ded848e8234dce4cccc2a53f7321804414d1a2841e4ae2ed7a0a82dcd2d964eb0b2839f687a4fda761422c09c19144eb2d0c3faa5ac
6
+ metadata.gz: f778d0c0d0d01ef041ddbcb287603507eb1e3d6618f89c006c1e5365d5a88bc6c5d827b0449bfae14b2e6bea0fc190147a7a609ba915a1cd0501a510e31ac1cc
7
+ data.tar.gz: 60099f06f8bb50305fd0944057541436883567011c0a8fbe0900ec82a95338b7120d415dc910d64bf754504b58cb795426b520ebba998641e33a2fdb5460f25c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.38.0 (2026-02-24)
4
+
5
+ Full Changelog: [v5.37.0...v5.38.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.37.0...v5.38.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([bc179c8](https://github.com/team-telnyx/telnyx-ruby/commit/bc179c8778347eea49997a82698db8277e9c5254))
10
+
3
11
  ## 5.37.0 (2026-02-22)
4
12
 
5
13
  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.0"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-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