Skip to content

Commit d0b9e8f

Browse files
tailnet_settings: add HTTPSEnabled
Updates: tailscale/tailscale-terraform-provider#449 Signed-off-by: Gesa Stupperich <[email protected]>
1 parent 93a9069 commit d0b9e8f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tailnet_settings.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type TailnetSettings struct {
2929
NetworkFlowLoggingOn bool `json:"networkFlowLoggingOn"`
3030
RegionalRoutingOn bool `json:"regionalRoutingOn"`
3131
PostureIdentityCollectionOn bool `json:"postureIdentityCollectionOn"`
32+
HTTPSEnabled bool `json:"httpsEnabled"`
3233
}
3334

3435
// UpdateTailnetSettingsRequest is a request to update the settings of a tailnet.
@@ -47,6 +48,7 @@ type UpdateTailnetSettingsRequest struct {
4748
NetworkFlowLoggingOn *bool `json:"networkFlowLoggingOn,omitempty"`
4849
RegionalRoutingOn *bool `json:"regionalRoutingOn,omitempty"`
4950
PostureIdentityCollectionOn *bool `json:"postureIdentityCollectionOn,omitempty"`
51+
HTTPSEnabled *bool `json:"httpsEnabled,omitempty"`
5052
}
5153

5254
// RoleAllowedToJoinExternalTailnets constrains which users are allowed to join external tailnets

tailnet_settings_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func TestClient_TailnetSettings_Get(t *testing.T) {
2929
NetworkFlowLoggingOn: true,
3030
RegionalRoutingOn: true,
3131
PostureIdentityCollectionOn: true,
32+
HTTPSEnabled: true,
3233
}
3334
server.ResponseBody = expected
3435

@@ -57,6 +58,7 @@ func TestClient_TailnetSettings_Update(t *testing.T) {
5758
NetworkFlowLoggingOn: PointerTo(true),
5859
RegionalRoutingOn: PointerTo(true),
5960
PostureIdentityCollectionOn: PointerTo(true),
61+
HTTPSEnabled: PointerTo(true),
6062
}
6163
err := client.TailnetSettings().Update(context.Background(), updateRequest)
6264
assert.NoError(t, err)

0 commit comments

Comments
 (0)