From ee15653af8bfcbdeb87b33d8230bde93cf834039 Mon Sep 17 00:00:00 2001 From: Chad Unrein Date: Wed, 11 Oct 2023 14:16:42 -0500 Subject: [PATCH] move TODO to exclude it from generated docs --- bastionzero/service/targets/database.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bastionzero/service/targets/database.go b/bastionzero/service/targets/database.go index e7eae62..4020564 100644 --- a/bastionzero/service/targets/database.go +++ b/bastionzero/service/targets/database.go @@ -21,9 +21,11 @@ type CreateDatabaseTargetRequest struct { TargetName string `json:"targetName"` ProxyTargetID string `json:"proxyTargetId"` RemoteHost string `json:"remoteHost"` + // TODO: To match REST API, change to: RemotePort *Port `json:"remotePort,omitempty"` + // and update the comment below in a batched breaking changes release + // RemotePort is required for all databases; however, for GCP-hosted databases, the // value specified for Port.Value will be ignored when connecting to the database. - // TODO: To match REST API, change to: RemotePort *Port `json:"remotePort,omitempty"` (to be combined with other breaking changes) RemotePort Port `json:"remotePort"` LocalPort *Port `json:"localPort,omitempty"` LocalHost string `json:"localHost,omitempty"`