From 9985e5f385e67cef601842d492ee348e147b8577 Mon Sep 17 00:00:00 2001 From: William Guilherme Date: Mon, 1 Jul 2024 22:42:46 -0700 Subject: [PATCH] Fix: Fixed ZPA Policy Set Controller omitempty tags for slice attributes (#264) --- CHANGELOG.md | 9 +++++++++ docs/guides/release-notes.md | 11 ++++++++++- .../cbiprofilecontroller/cbiprofilecontroller.go | 11 ++++++----- .../policysetcontrollerv2/policysetcontrollerv2.go | 8 ++++---- 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94ddf7e1..e78509d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +# 2.61.5 (July 2, 2024) + +## Notes +- Golang: **v1.21** + +### Enhancement + +- [PR #264](https://github.com/zscaler/zscaler-sdk-go/pull/264) - Fixed ZPA `policysetcontroller` and `policysetcontrollerv2` attributes `appConnectorGroups`, `serviceEdgeGroups`, `appServerGroups` by removing the `omitempty` tag + # 2.61.4 (June 28, 2024) ## Notes diff --git a/docs/guides/release-notes.md b/docs/guides/release-notes.md index 87ea4005..df5edac2 100644 --- a/docs/guides/release-notes.md +++ b/docs/guides/release-notes.md @@ -13,10 +13,19 @@ Track all Zscaler SDK GO releases. New resources, features, and bug fixes will b --- -``Last updated: v2.61.4`` +``Last updated: v2.61.5`` --- +# 2.61.5 (July 2, 2024) + +## Notes +- Golang: **v1.21** + +### Enhancement + +- [PR #264](https://github.com/zscaler/zscaler-sdk-go/pull/264) - Fixed ZPA `policysetcontroller` and `policysetcontrollerv2` attributes `appConnectorGroups`, `serviceEdgeGroups`, `appServerGroups` by removing the `omitempty` tag + # 2.61.4 (June 28, 2024) ## Notes diff --git a/zpa/services/cloudbrowserisolation/cbiprofilecontroller/cbiprofilecontroller.go b/zpa/services/cloudbrowserisolation/cbiprofilecontroller/cbiprofilecontroller.go index 3ba40d6c..17c3d63b 100644 --- a/zpa/services/cloudbrowserisolation/cbiprofilecontroller/cbiprofilecontroller.go +++ b/zpa/services/cloudbrowserisolation/cbiprofilecontroller/cbiprofilecontroller.go @@ -62,11 +62,11 @@ type ForwardToZia struct { } type Watermark struct { - Enabled bool `json:"enabled,omitempty"` - ShowUserID bool `json:"showUserId,omitempty"` - ShowTimestamp bool `json:"showTimestamp,omitempty"` - ShowMessage bool `json:"showMessage,omitempty"` - Message bool `json:"message,omitempty"` + Enabled bool `json:"enabled,omitempty"` + ShowUserID bool `json:"showUserId,omitempty"` + ShowTimestamp bool `json:"showTimestamp,omitempty"` + ShowMessage bool `json:"showMessage,omitempty"` + Message string `json:"message,omitempty"` } type SecurityControls struct { DocumentViewer bool `json:"documentViewer,omitempty"` @@ -78,6 +78,7 @@ type SecurityControls struct { CopyPaste string `json:"copyPaste,omitempty"` LocalRender bool `json:"localRender,omitempty"` } + type Regions struct { Name string `json:"name,omitempty"` ID string `json:"id,omitempty"` diff --git a/zpa/services/policysetcontrollerv2/policysetcontrollerv2.go b/zpa/services/policysetcontrollerv2/policysetcontrollerv2.go index 0993631e..4e41b34b 100644 --- a/zpa/services/policysetcontrollerv2/policysetcontrollerv2.go +++ b/zpa/services/policysetcontrollerv2/policysetcontrollerv2.go @@ -61,10 +61,10 @@ type PolicyRuleResource struct { ZpnInspectionProfileName string `json:"zpnInspectionProfileName,omitempty"` MicroTenantID string `json:"microtenantId,omitempty"` MicroTenantName string `json:"microtenantName,omitempty"` - Conditions []PolicyRuleResourceConditions `json:"conditions,omitempty"` - AppConnectorGroups []AppConnectorGroups `json:"appConnectorGroups,omitempty"` - AppServerGroups []AppServerGroups `json:"appServerGroups,omitempty"` - ServiceEdgeGroups []ServiceEdgeGroups `json:"serviceEdgeGroups,omitempty"` + Conditions []PolicyRuleResourceConditions `json:"conditions"` + AppConnectorGroups []AppConnectorGroups `json:"appConnectorGroups"` + AppServerGroups []AppServerGroups `json:"appServerGroups"` + ServiceEdgeGroups []ServiceEdgeGroups `json:"serviceEdgeGroups"` Credential *Credential `json:"credential,omitempty"` PrivilegedCapabilities PrivilegedCapabilities `json:"privilegedCapabilities,omitempty"` }