Skip to content

Commit

Permalink
Fix: Fixed ZPA Policy Set Controller omitempty tags for slice attribu…
Browse files Browse the repository at this point in the history
…tes (#264)
  • Loading branch information
willguibr authored Jul 2, 2024
1 parent ff44945 commit 9985e5f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
11 changes: 10 additions & 1 deletion docs/guides/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down
8 changes: 4 additions & 4 deletions zpa/services/policysetcontrollerv2/policysetcontrollerv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down

0 comments on commit 9985e5f

Please sign in to comment.