File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ type TailnetSettingsResource struct {
16
16
// TailnetSettings represents the current settings of a tailnet.
17
17
// See https://tailscale.com/api#model/tailnetsettings.
18
18
type TailnetSettings struct {
19
+ ACLsExternallyManagedOn bool `json:"aclsExternallyManagedOn"`
20
+ ACLsExternalLink string `json:"aclsExternalLink"`
21
+
19
22
DevicesApprovalOn bool `json:"devicesApprovalOn"`
20
23
DevicesAutoUpdatesOn bool `json:"devicesAutoUpdatesOn"`
21
24
DevicesKeyDurationDays int `json:"devicesKeyDurationDays"` // days before device key expiry
@@ -31,6 +34,9 @@ type TailnetSettings struct {
31
34
// UpdateTailnetSettingsRequest is a request to update the settings of a tailnet.
32
35
// Nil values indicate that the existing setting should be left unchanged.
33
36
type UpdateTailnetSettingsRequest struct {
37
+ ACLsExternallyManagedOn * bool `json:"aclsExternallyManagedOn"`
38
+ ACLsExternalLink * string `json:"aclsExternalLink"`
39
+
34
40
DevicesApprovalOn * bool `json:"devicesApprovalOn,omitempty"`
35
41
DevicesAutoUpdatesOn * bool `json:"devicesAutoUpdatesOn,omitempty"`
36
42
DevicesKeyDurationDays * int `json:"devicesKeyDurationDays,omitempty"` // days before device key expiry
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ func TestClient_TailnetSettings_Get(t *testing.T) {
19
19
server .ResponseCode = http .StatusOK
20
20
21
21
expected := TailnetSettings {
22
+ ACLsExternallyManagedOn : true ,
23
+ ACLsExternalLink : "https://foo.com" ,
22
24
DevicesApprovalOn : true ,
23
25
DevicesAutoUpdatesOn : true ,
24
26
DevicesKeyDurationDays : 5 ,
@@ -45,6 +47,8 @@ func TestClient_TailnetSettings_Update(t *testing.T) {
45
47
server .ResponseBody = nil
46
48
47
49
updateRequest := UpdateTailnetSettingsRequest {
50
+ ACLsExternallyManagedOn : PointerTo (true ),
51
+ ACLsExternalLink : PointerTo ("https://foo.com" ),
48
52
DevicesApprovalOn : PointerTo (true ),
49
53
DevicesAutoUpdatesOn : PointerTo (true ),
50
54
DevicesKeyDurationDays : PointerTo (5 ),
You can’t perform that action at this time.
0 commit comments