telnyx 5.50.0 → 5.51.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/telnyx/models/wireguard_peer_create_params.rb +1 -13
- data/lib/telnyx/models/wireguard_peer_create_response.rb +2 -43
- data/lib/telnyx/models/wireguard_peer_delete_response.rb +2 -43
- data/lib/telnyx/models/wireguard_peer_list_response.rb +2 -43
- data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +2 -43
- data/lib/telnyx/models/wireguard_peer_update_response.rb +2 -43
- data/lib/telnyx/resources/wireguard_peers.rb +1 -6
- data/lib/telnyx/version.rb +1 -1
- data/rbi/telnyx/models/wireguard_peer_create_params.rbi +0 -13
- data/rbi/telnyx/models/wireguard_peer_create_response.rbi +1 -58
- data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +1 -58
- data/rbi/telnyx/models/wireguard_peer_list_response.rbi +1 -58
- data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +1 -58
- data/rbi/telnyx/models/wireguard_peer_update_response.rbi +1 -58
- data/rbi/telnyx/resources/wireguard_peers.rbi +0 -4
- data/sig/telnyx/models/wireguard_peer_create_params.rbs +1 -7
- data/sig/telnyx/models/wireguard_peer_create_response.rbs +7 -42
- data/sig/telnyx/models/wireguard_peer_delete_response.rbs +7 -42
- data/sig/telnyx/models/wireguard_peer_list_response.rbs +8 -47
- data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +7 -42
- data/sig/telnyx/models/wireguard_peer_update_response.rbs +7 -42
- data/sig/telnyx/resources/wireguard_peers.rbs +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3f21629209c78f3a02193bf16194073bb347a0b098d5dda6949b19e4add86771
|
|
4
|
+
data.tar.gz: d4858047203a7afa85e51253f7480bacef990b94d37db431110510275eb7d217
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7d625b2deda0ac43ec6f6329446dc800aa81b9ce6f3d8c571398fcc49264cab804f4f9f40e2a5d2461c9bcc8f61f4aa5d5141bad3c0e6baea8af72705022b32
|
|
7
|
+
data.tar.gz: f3837cc3b83a3993a02f0175f01ca6236297f9f0c87965783914f6c5109af143255cf1ea55fc496ece4aa0e99c322deba111758f97871ccf2136b774ae4e9363
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.51.0 (2026-02-27)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v5.50.0...v5.51.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.50.0...v5.51.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([3368b28](https://github.com/team-telnyx/telnyx-ruby/commit/3368b28cd6b430b10c06f9c24d53c42405eb034b))
|
|
10
|
+
|
|
3
11
|
## 5.50.0 (2026-02-27)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v5.49.0...v5.50.0](https://github.com/team-telnyx/telnyx-ruby/compare/v5.49.0...v5.50.0)
|
data/README.md
CHANGED
|
@@ -13,21 +13,9 @@ module Telnyx
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :wireguard_interface_id, String
|
|
15
15
|
|
|
16
|
-
# @!
|
|
17
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
18
|
-
# Public and Private key pair will be generated for you.
|
|
19
|
-
#
|
|
20
|
-
# @return [String, nil]
|
|
21
|
-
optional :public_key, String
|
|
22
|
-
|
|
23
|
-
# @!method initialize(wireguard_interface_id:, public_key: nil, request_options: {})
|
|
24
|
-
# Some parameter documentations has been truncated, see
|
|
25
|
-
# {Telnyx::Models::WireguardPeerCreateParams} for more details.
|
|
26
|
-
#
|
|
16
|
+
# @!method initialize(wireguard_interface_id:, request_options: {})
|
|
27
17
|
# @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
|
|
28
18
|
#
|
|
29
|
-
# @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
30
|
-
#
|
|
31
19
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
32
20
|
end
|
|
33
21
|
end
|
|
@@ -13,14 +13,7 @@ module Telnyx
|
|
|
13
13
|
# @param data [Telnyx::Models::WireguardPeerCreateResponse::Data]
|
|
14
14
|
|
|
15
15
|
# @see Telnyx::Models::WireguardPeerCreateResponse#data
|
|
16
|
-
class Data < Telnyx::
|
|
17
|
-
# @!attribute public_key
|
|
18
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
19
|
-
# Public and Private key pair will be generated for you.
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :public_key, String
|
|
23
|
-
|
|
16
|
+
class Data < Telnyx::Models::Record
|
|
24
17
|
# @!attribute wireguard_interface_id
|
|
25
18
|
# The id of the wireguard interface associated with the peer.
|
|
26
19
|
#
|
|
@@ -28,30 +21,6 @@ module Telnyx
|
|
|
28
21
|
optional :wireguard_interface_id, String
|
|
29
22
|
|
|
30
23
|
response_only do
|
|
31
|
-
# @!attribute id
|
|
32
|
-
# Identifies the resource.
|
|
33
|
-
#
|
|
34
|
-
# @return [String, nil]
|
|
35
|
-
optional :id, String
|
|
36
|
-
|
|
37
|
-
# @!attribute created_at
|
|
38
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
39
|
-
#
|
|
40
|
-
# @return [String, nil]
|
|
41
|
-
optional :created_at, String
|
|
42
|
-
|
|
43
|
-
# @!attribute record_type
|
|
44
|
-
# Identifies the type of the resource.
|
|
45
|
-
#
|
|
46
|
-
# @return [String, nil]
|
|
47
|
-
optional :record_type, String
|
|
48
|
-
|
|
49
|
-
# @!attribute updated_at
|
|
50
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
51
|
-
#
|
|
52
|
-
# @return [String, nil]
|
|
53
|
-
optional :updated_at, String
|
|
54
|
-
|
|
55
24
|
# @!attribute last_seen
|
|
56
25
|
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
57
26
|
#
|
|
@@ -69,20 +38,10 @@ module Telnyx
|
|
|
69
38
|
optional :private_key, String
|
|
70
39
|
end
|
|
71
40
|
|
|
72
|
-
# @!method initialize(
|
|
41
|
+
# @!method initialize(last_seen: nil, private_key: nil, wireguard_interface_id: nil)
|
|
73
42
|
# Some parameter documentations has been truncated, see
|
|
74
43
|
# {Telnyx::Models::WireguardPeerCreateResponse::Data} for more details.
|
|
75
44
|
#
|
|
76
|
-
# @param id [String] Identifies the resource.
|
|
77
|
-
#
|
|
78
|
-
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
79
|
-
#
|
|
80
|
-
# @param record_type [String] Identifies the type of the resource.
|
|
81
|
-
#
|
|
82
|
-
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
83
|
-
#
|
|
84
|
-
# @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
85
|
-
#
|
|
86
45
|
# @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
87
46
|
#
|
|
88
47
|
# @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
|
|
@@ -13,14 +13,7 @@ module Telnyx
|
|
|
13
13
|
# @param data [Telnyx::Models::WireguardPeerDeleteResponse::Data]
|
|
14
14
|
|
|
15
15
|
# @see Telnyx::Models::WireguardPeerDeleteResponse#data
|
|
16
|
-
class Data < Telnyx::
|
|
17
|
-
# @!attribute public_key
|
|
18
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
19
|
-
# Public and Private key pair will be generated for you.
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :public_key, String
|
|
23
|
-
|
|
16
|
+
class Data < Telnyx::Models::Record
|
|
24
17
|
# @!attribute wireguard_interface_id
|
|
25
18
|
# The id of the wireguard interface associated with the peer.
|
|
26
19
|
#
|
|
@@ -28,30 +21,6 @@ module Telnyx
|
|
|
28
21
|
optional :wireguard_interface_id, String
|
|
29
22
|
|
|
30
23
|
response_only do
|
|
31
|
-
# @!attribute id
|
|
32
|
-
# Identifies the resource.
|
|
33
|
-
#
|
|
34
|
-
# @return [String, nil]
|
|
35
|
-
optional :id, String
|
|
36
|
-
|
|
37
|
-
# @!attribute created_at
|
|
38
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
39
|
-
#
|
|
40
|
-
# @return [String, nil]
|
|
41
|
-
optional :created_at, String
|
|
42
|
-
|
|
43
|
-
# @!attribute record_type
|
|
44
|
-
# Identifies the type of the resource.
|
|
45
|
-
#
|
|
46
|
-
# @return [String, nil]
|
|
47
|
-
optional :record_type, String
|
|
48
|
-
|
|
49
|
-
# @!attribute updated_at
|
|
50
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
51
|
-
#
|
|
52
|
-
# @return [String, nil]
|
|
53
|
-
optional :updated_at, String
|
|
54
|
-
|
|
55
24
|
# @!attribute last_seen
|
|
56
25
|
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
57
26
|
#
|
|
@@ -69,20 +38,10 @@ module Telnyx
|
|
|
69
38
|
optional :private_key, String
|
|
70
39
|
end
|
|
71
40
|
|
|
72
|
-
# @!method initialize(
|
|
41
|
+
# @!method initialize(last_seen: nil, private_key: nil, wireguard_interface_id: nil)
|
|
73
42
|
# Some parameter documentations has been truncated, see
|
|
74
43
|
# {Telnyx::Models::WireguardPeerDeleteResponse::Data} for more details.
|
|
75
44
|
#
|
|
76
|
-
# @param id [String] Identifies the resource.
|
|
77
|
-
#
|
|
78
|
-
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
79
|
-
#
|
|
80
|
-
# @param record_type [String] Identifies the type of the resource.
|
|
81
|
-
#
|
|
82
|
-
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
83
|
-
#
|
|
84
|
-
# @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
85
|
-
#
|
|
86
45
|
# @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
87
46
|
#
|
|
88
47
|
# @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
|
|
@@ -3,14 +3,7 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Models
|
|
5
5
|
# @see Telnyx::Resources::WireguardPeers#list
|
|
6
|
-
class WireguardPeerListResponse < Telnyx::
|
|
7
|
-
# @!attribute public_key
|
|
8
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
9
|
-
# Public and Private key pair will be generated for you.
|
|
10
|
-
#
|
|
11
|
-
# @return [String, nil]
|
|
12
|
-
optional :public_key, String
|
|
13
|
-
|
|
6
|
+
class WireguardPeerListResponse < Telnyx::Models::Record
|
|
14
7
|
# @!attribute wireguard_interface_id
|
|
15
8
|
# The id of the wireguard interface associated with the peer.
|
|
16
9
|
#
|
|
@@ -18,30 +11,6 @@ module Telnyx
|
|
|
18
11
|
optional :wireguard_interface_id, String
|
|
19
12
|
|
|
20
13
|
response_only do
|
|
21
|
-
# @!attribute id
|
|
22
|
-
# Identifies the resource.
|
|
23
|
-
#
|
|
24
|
-
# @return [String, nil]
|
|
25
|
-
optional :id, String
|
|
26
|
-
|
|
27
|
-
# @!attribute created_at
|
|
28
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
29
|
-
#
|
|
30
|
-
# @return [String, nil]
|
|
31
|
-
optional :created_at, String
|
|
32
|
-
|
|
33
|
-
# @!attribute record_type
|
|
34
|
-
# Identifies the type of the resource.
|
|
35
|
-
#
|
|
36
|
-
# @return [String, nil]
|
|
37
|
-
optional :record_type, String
|
|
38
|
-
|
|
39
|
-
# @!attribute updated_at
|
|
40
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
41
|
-
#
|
|
42
|
-
# @return [String, nil]
|
|
43
|
-
optional :updated_at, String
|
|
44
|
-
|
|
45
14
|
# @!attribute last_seen
|
|
46
15
|
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
47
16
|
#
|
|
@@ -59,20 +28,10 @@ module Telnyx
|
|
|
59
28
|
optional :private_key, String
|
|
60
29
|
end
|
|
61
30
|
|
|
62
|
-
# @!method initialize(
|
|
31
|
+
# @!method initialize(last_seen: nil, private_key: nil, wireguard_interface_id: nil)
|
|
63
32
|
# Some parameter documentations has been truncated, see
|
|
64
33
|
# {Telnyx::Models::WireguardPeerListResponse} for more details.
|
|
65
34
|
#
|
|
66
|
-
# @param id [String] Identifies the resource.
|
|
67
|
-
#
|
|
68
|
-
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
69
|
-
#
|
|
70
|
-
# @param record_type [String] Identifies the type of the resource.
|
|
71
|
-
#
|
|
72
|
-
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
73
|
-
#
|
|
74
|
-
# @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
75
|
-
#
|
|
76
35
|
# @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
77
36
|
#
|
|
78
37
|
# @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
|
|
@@ -13,14 +13,7 @@ module Telnyx
|
|
|
13
13
|
# @param data [Telnyx::Models::WireguardPeerRetrieveResponse::Data]
|
|
14
14
|
|
|
15
15
|
# @see Telnyx::Models::WireguardPeerRetrieveResponse#data
|
|
16
|
-
class Data < Telnyx::
|
|
17
|
-
# @!attribute public_key
|
|
18
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
19
|
-
# Public and Private key pair will be generated for you.
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :public_key, String
|
|
23
|
-
|
|
16
|
+
class Data < Telnyx::Models::Record
|
|
24
17
|
# @!attribute wireguard_interface_id
|
|
25
18
|
# The id of the wireguard interface associated with the peer.
|
|
26
19
|
#
|
|
@@ -28,30 +21,6 @@ module Telnyx
|
|
|
28
21
|
optional :wireguard_interface_id, String
|
|
29
22
|
|
|
30
23
|
response_only do
|
|
31
|
-
# @!attribute id
|
|
32
|
-
# Identifies the resource.
|
|
33
|
-
#
|
|
34
|
-
# @return [String, nil]
|
|
35
|
-
optional :id, String
|
|
36
|
-
|
|
37
|
-
# @!attribute created_at
|
|
38
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
39
|
-
#
|
|
40
|
-
# @return [String, nil]
|
|
41
|
-
optional :created_at, String
|
|
42
|
-
|
|
43
|
-
# @!attribute record_type
|
|
44
|
-
# Identifies the type of the resource.
|
|
45
|
-
#
|
|
46
|
-
# @return [String, nil]
|
|
47
|
-
optional :record_type, String
|
|
48
|
-
|
|
49
|
-
# @!attribute updated_at
|
|
50
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
51
|
-
#
|
|
52
|
-
# @return [String, nil]
|
|
53
|
-
optional :updated_at, String
|
|
54
|
-
|
|
55
24
|
# @!attribute last_seen
|
|
56
25
|
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
57
26
|
#
|
|
@@ -69,20 +38,10 @@ module Telnyx
|
|
|
69
38
|
optional :private_key, String
|
|
70
39
|
end
|
|
71
40
|
|
|
72
|
-
# @!method initialize(
|
|
41
|
+
# @!method initialize(last_seen: nil, private_key: nil, wireguard_interface_id: nil)
|
|
73
42
|
# Some parameter documentations has been truncated, see
|
|
74
43
|
# {Telnyx::Models::WireguardPeerRetrieveResponse::Data} for more details.
|
|
75
44
|
#
|
|
76
|
-
# @param id [String] Identifies the resource.
|
|
77
|
-
#
|
|
78
|
-
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
79
|
-
#
|
|
80
|
-
# @param record_type [String] Identifies the type of the resource.
|
|
81
|
-
#
|
|
82
|
-
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
83
|
-
#
|
|
84
|
-
# @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
85
|
-
#
|
|
86
45
|
# @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
87
46
|
#
|
|
88
47
|
# @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
|
|
@@ -13,14 +13,7 @@ module Telnyx
|
|
|
13
13
|
# @param data [Telnyx::Models::WireguardPeerUpdateResponse::Data]
|
|
14
14
|
|
|
15
15
|
# @see Telnyx::Models::WireguardPeerUpdateResponse#data
|
|
16
|
-
class Data < Telnyx::
|
|
17
|
-
# @!attribute public_key
|
|
18
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
19
|
-
# Public and Private key pair will be generated for you.
|
|
20
|
-
#
|
|
21
|
-
# @return [String, nil]
|
|
22
|
-
optional :public_key, String
|
|
23
|
-
|
|
16
|
+
class Data < Telnyx::Models::Record
|
|
24
17
|
# @!attribute wireguard_interface_id
|
|
25
18
|
# The id of the wireguard interface associated with the peer.
|
|
26
19
|
#
|
|
@@ -28,30 +21,6 @@ module Telnyx
|
|
|
28
21
|
optional :wireguard_interface_id, String
|
|
29
22
|
|
|
30
23
|
response_only do
|
|
31
|
-
# @!attribute id
|
|
32
|
-
# Identifies the resource.
|
|
33
|
-
#
|
|
34
|
-
# @return [String, nil]
|
|
35
|
-
optional :id, String
|
|
36
|
-
|
|
37
|
-
# @!attribute created_at
|
|
38
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
39
|
-
#
|
|
40
|
-
# @return [String, nil]
|
|
41
|
-
optional :created_at, String
|
|
42
|
-
|
|
43
|
-
# @!attribute record_type
|
|
44
|
-
# Identifies the type of the resource.
|
|
45
|
-
#
|
|
46
|
-
# @return [String, nil]
|
|
47
|
-
optional :record_type, String
|
|
48
|
-
|
|
49
|
-
# @!attribute updated_at
|
|
50
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
51
|
-
#
|
|
52
|
-
# @return [String, nil]
|
|
53
|
-
optional :updated_at, String
|
|
54
|
-
|
|
55
24
|
# @!attribute last_seen
|
|
56
25
|
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
57
26
|
#
|
|
@@ -69,20 +38,10 @@ module Telnyx
|
|
|
69
38
|
optional :private_key, String
|
|
70
39
|
end
|
|
71
40
|
|
|
72
|
-
# @!method initialize(
|
|
41
|
+
# @!method initialize(last_seen: nil, private_key: nil, wireguard_interface_id: nil)
|
|
73
42
|
# Some parameter documentations has been truncated, see
|
|
74
43
|
# {Telnyx::Models::WireguardPeerUpdateResponse::Data} for more details.
|
|
75
44
|
#
|
|
76
|
-
# @param id [String] Identifies the resource.
|
|
77
|
-
#
|
|
78
|
-
# @param created_at [String] ISO 8601 formatted date-time indicating when the resource was created.
|
|
79
|
-
#
|
|
80
|
-
# @param record_type [String] Identifies the type of the resource.
|
|
81
|
-
#
|
|
82
|
-
# @param updated_at [String] ISO 8601 formatted date-time indicating when the resource was updated.
|
|
83
|
-
#
|
|
84
|
-
# @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
85
|
-
#
|
|
86
45
|
# @param last_seen [String] ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
87
46
|
#
|
|
88
47
|
# @param private_key [String] Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever ut
|
|
@@ -3,18 +3,13 @@
|
|
|
3
3
|
module Telnyx
|
|
4
4
|
module Resources
|
|
5
5
|
class WireguardPeers
|
|
6
|
-
# Some parameter documentations has been truncated, see
|
|
7
|
-
# {Telnyx::Models::WireguardPeerCreateParams} for more details.
|
|
8
|
-
#
|
|
9
6
|
# Create a new WireGuard Peer. Current limitation of 5 peers per interface can be
|
|
10
7
|
# created.
|
|
11
8
|
#
|
|
12
|
-
# @overload create(wireguard_interface_id:,
|
|
9
|
+
# @overload create(wireguard_interface_id:, request_options: {})
|
|
13
10
|
#
|
|
14
11
|
# @param wireguard_interface_id [String] The id of the wireguard interface associated with the peer.
|
|
15
12
|
#
|
|
16
|
-
# @param public_key [String] The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
17
|
-
#
|
|
18
13
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
19
14
|
#
|
|
20
15
|
# @return [Telnyx::Models::WireguardPeerCreateResponse]
|
data/lib/telnyx/version.rb
CHANGED
|
@@ -15,27 +15,15 @@ module Telnyx
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :wireguard_interface_id
|
|
17
17
|
|
|
18
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
19
|
-
# Public and Private key pair will be generated for you.
|
|
20
|
-
sig { returns(T.nilable(String)) }
|
|
21
|
-
attr_reader :public_key
|
|
22
|
-
|
|
23
|
-
sig { params(public_key: String).void }
|
|
24
|
-
attr_writer :public_key
|
|
25
|
-
|
|
26
18
|
sig do
|
|
27
19
|
params(
|
|
28
20
|
wireguard_interface_id: String,
|
|
29
|
-
public_key: String,
|
|
30
21
|
request_options: Telnyx::RequestOptions::OrHash
|
|
31
22
|
).returns(T.attached_class)
|
|
32
23
|
end
|
|
33
24
|
def self.new(
|
|
34
25
|
# The id of the wireguard interface associated with the peer.
|
|
35
26
|
wireguard_interface_id:,
|
|
36
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
37
|
-
# Public and Private key pair will be generated for you.
|
|
38
|
-
public_key: nil,
|
|
39
27
|
request_options: {}
|
|
40
28
|
)
|
|
41
29
|
end
|
|
@@ -44,7 +32,6 @@ module Telnyx
|
|
|
44
32
|
override.returns(
|
|
45
33
|
{
|
|
46
34
|
wireguard_interface_id: String,
|
|
47
|
-
public_key: String,
|
|
48
35
|
request_options: Telnyx::RequestOptions
|
|
49
36
|
}
|
|
50
37
|
)
|
|
@@ -39,7 +39,7 @@ module Telnyx
|
|
|
39
39
|
def to_hash
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
class Data < Telnyx::
|
|
42
|
+
class Data < Telnyx::Models::Record
|
|
43
43
|
OrHash =
|
|
44
44
|
T.type_alias do
|
|
45
45
|
T.any(
|
|
@@ -48,14 +48,6 @@ module Telnyx
|
|
|
48
48
|
)
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
52
|
-
# Public and Private key pair will be generated for you.
|
|
53
|
-
sig { returns(T.nilable(String)) }
|
|
54
|
-
attr_reader :public_key
|
|
55
|
-
|
|
56
|
-
sig { params(public_key: String).void }
|
|
57
|
-
attr_writer :public_key
|
|
58
|
-
|
|
59
51
|
# The id of the wireguard interface associated with the peer.
|
|
60
52
|
sig { returns(T.nilable(String)) }
|
|
61
53
|
attr_reader :wireguard_interface_id
|
|
@@ -63,34 +55,6 @@ module Telnyx
|
|
|
63
55
|
sig { params(wireguard_interface_id: String).void }
|
|
64
56
|
attr_writer :wireguard_interface_id
|
|
65
57
|
|
|
66
|
-
# Identifies the resource.
|
|
67
|
-
sig { returns(T.nilable(String)) }
|
|
68
|
-
attr_reader :id
|
|
69
|
-
|
|
70
|
-
sig { params(id: String).void }
|
|
71
|
-
attr_writer :id
|
|
72
|
-
|
|
73
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
74
|
-
sig { returns(T.nilable(String)) }
|
|
75
|
-
attr_reader :created_at
|
|
76
|
-
|
|
77
|
-
sig { params(created_at: String).void }
|
|
78
|
-
attr_writer :created_at
|
|
79
|
-
|
|
80
|
-
# Identifies the type of the resource.
|
|
81
|
-
sig { returns(T.nilable(String)) }
|
|
82
|
-
attr_reader :record_type
|
|
83
|
-
|
|
84
|
-
sig { params(record_type: String).void }
|
|
85
|
-
attr_writer :record_type
|
|
86
|
-
|
|
87
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
88
|
-
sig { returns(T.nilable(String)) }
|
|
89
|
-
attr_reader :updated_at
|
|
90
|
-
|
|
91
|
-
sig { params(updated_at: String).void }
|
|
92
|
-
attr_writer :updated_at
|
|
93
|
-
|
|
94
58
|
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
95
59
|
sig { returns(T.nilable(String)) }
|
|
96
60
|
attr_reader :last_seen
|
|
@@ -111,28 +75,12 @@ module Telnyx
|
|
|
111
75
|
|
|
112
76
|
sig do
|
|
113
77
|
params(
|
|
114
|
-
id: String,
|
|
115
|
-
created_at: String,
|
|
116
|
-
record_type: String,
|
|
117
|
-
updated_at: String,
|
|
118
|
-
public_key: String,
|
|
119
78
|
last_seen: String,
|
|
120
79
|
private_key: String,
|
|
121
80
|
wireguard_interface_id: String
|
|
122
81
|
).returns(T.attached_class)
|
|
123
82
|
end
|
|
124
83
|
def self.new(
|
|
125
|
-
# Identifies the resource.
|
|
126
|
-
id: nil,
|
|
127
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
128
|
-
created_at: nil,
|
|
129
|
-
# Identifies the type of the resource.
|
|
130
|
-
record_type: nil,
|
|
131
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
132
|
-
updated_at: nil,
|
|
133
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
134
|
-
# Public and Private key pair will be generated for you.
|
|
135
|
-
public_key: nil,
|
|
136
84
|
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
137
85
|
last_seen: nil,
|
|
138
86
|
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
|
@@ -149,11 +97,6 @@ module Telnyx
|
|
|
149
97
|
sig do
|
|
150
98
|
override.returns(
|
|
151
99
|
{
|
|
152
|
-
id: String,
|
|
153
|
-
created_at: String,
|
|
154
|
-
record_type: String,
|
|
155
|
-
updated_at: String,
|
|
156
|
-
public_key: String,
|
|
157
100
|
last_seen: String,
|
|
158
101
|
private_key: String,
|
|
159
102
|
wireguard_interface_id: String
|
|
@@ -39,7 +39,7 @@ module Telnyx
|
|
|
39
39
|
def to_hash
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
class Data < Telnyx::
|
|
42
|
+
class Data < Telnyx::Models::Record
|
|
43
43
|
OrHash =
|
|
44
44
|
T.type_alias do
|
|
45
45
|
T.any(
|
|
@@ -48,14 +48,6 @@ module Telnyx
|
|
|
48
48
|
)
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
52
|
-
# Public and Private key pair will be generated for you.
|
|
53
|
-
sig { returns(T.nilable(String)) }
|
|
54
|
-
attr_reader :public_key
|
|
55
|
-
|
|
56
|
-
sig { params(public_key: String).void }
|
|
57
|
-
attr_writer :public_key
|
|
58
|
-
|
|
59
51
|
# The id of the wireguard interface associated with the peer.
|
|
60
52
|
sig { returns(T.nilable(String)) }
|
|
61
53
|
attr_reader :wireguard_interface_id
|
|
@@ -63,34 +55,6 @@ module Telnyx
|
|
|
63
55
|
sig { params(wireguard_interface_id: String).void }
|
|
64
56
|
attr_writer :wireguard_interface_id
|
|
65
57
|
|
|
66
|
-
# Identifies the resource.
|
|
67
|
-
sig { returns(T.nilable(String)) }
|
|
68
|
-
attr_reader :id
|
|
69
|
-
|
|
70
|
-
sig { params(id: String).void }
|
|
71
|
-
attr_writer :id
|
|
72
|
-
|
|
73
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
74
|
-
sig { returns(T.nilable(String)) }
|
|
75
|
-
attr_reader :created_at
|
|
76
|
-
|
|
77
|
-
sig { params(created_at: String).void }
|
|
78
|
-
attr_writer :created_at
|
|
79
|
-
|
|
80
|
-
# Identifies the type of the resource.
|
|
81
|
-
sig { returns(T.nilable(String)) }
|
|
82
|
-
attr_reader :record_type
|
|
83
|
-
|
|
84
|
-
sig { params(record_type: String).void }
|
|
85
|
-
attr_writer :record_type
|
|
86
|
-
|
|
87
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
88
|
-
sig { returns(T.nilable(String)) }
|
|
89
|
-
attr_reader :updated_at
|
|
90
|
-
|
|
91
|
-
sig { params(updated_at: String).void }
|
|
92
|
-
attr_writer :updated_at
|
|
93
|
-
|
|
94
58
|
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
95
59
|
sig { returns(T.nilable(String)) }
|
|
96
60
|
attr_reader :last_seen
|
|
@@ -111,28 +75,12 @@ module Telnyx
|
|
|
111
75
|
|
|
112
76
|
sig do
|
|
113
77
|
params(
|
|
114
|
-
id: String,
|
|
115
|
-
created_at: String,
|
|
116
|
-
record_type: String,
|
|
117
|
-
updated_at: String,
|
|
118
|
-
public_key: String,
|
|
119
78
|
last_seen: String,
|
|
120
79
|
private_key: String,
|
|
121
80
|
wireguard_interface_id: String
|
|
122
81
|
).returns(T.attached_class)
|
|
123
82
|
end
|
|
124
83
|
def self.new(
|
|
125
|
-
# Identifies the resource.
|
|
126
|
-
id: nil,
|
|
127
|
-
# ISO 8601 formatted date-time indicating when the resource was created.
|
|
128
|
-
created_at: nil,
|
|
129
|
-
# Identifies the type of the resource.
|
|
130
|
-
record_type: nil,
|
|
131
|
-
# ISO 8601 formatted date-time indicating when the resource was updated.
|
|
132
|
-
updated_at: nil,
|
|
133
|
-
# The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new
|
|
134
|
-
# Public and Private key pair will be generated for you.
|
|
135
|
-
public_key: nil,
|
|
136
84
|
# ISO 8601 formatted date-time indicating when peer sent traffic last time.
|
|
137
85
|
last_seen: nil,
|
|
138
86
|
# Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever
|
|
@@ -149,11 +97,6 @@ module Telnyx
|
|
|
149
97
|
sig do
|
|
150
98
|
override.returns(
|
|
151
99
|
{
|
|
152
|
-
id: String,
|
|
153
|
-
created_at: String,
|
|
154
|
-
record_type: String,
|
|
155
|
-
updated_at: String,
|
|
156
|
-
public_key: String,
|
|
157
100
|
last_seen: String,
|
|
158
101
|
private_key: String,
|
|
159
102
|
wireguard_interface_id: String
|