Skip to content

Commit

Permalink
feat: Added workloadGroups attributes to supported resources
Browse files Browse the repository at this point in the history
  • Loading branch information
willguibr committed Jan 26, 2024
1 parent 95e19f0 commit 784805e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

### Enhacements

- [PR #215](https://github.com/zscaler/zscaler-sdk-go/pull/215) - Added new ZPA attributes for application segment.
- matchStyle
- inconsistentConfigDetails

- [PR #217](https://github.com/zscaler/zscaler-sdk-go/pull/217) - Added support for ZIA Workload Groups Tagging

# 2.3.6 (January 15, 2024)
Expand Down
4 changes: 4 additions & 0 deletions docs/guides/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Track all Zscaler SDK GO releases. New resources, features, and bug fixes will b

### Enhacements

- [PR #215](https://github.com/zscaler/zscaler-sdk-go/pull/215) - Added new ZPA attributes for application segment.
- matchStyle
- inconsistentConfigDetails

- [PR #217](https://github.com/zscaler/zscaler-sdk-go/pull/217) - Added support for ZIA Workload Groups Tagging

# 2.3.6 (January 15, 2024)
Expand Down
12 changes: 10 additions & 2 deletions zia/services/dlp/dlp_web_rules/dlp_web_rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const (
)

type WebDLPRules struct {

// The unique identifier for the DLP policy rule.
ID int `json:"id,omitempty"`

Expand Down Expand Up @@ -124,8 +123,17 @@ type WebDLPRules struct {
// The name-ID pairs of the users that are excluded from the DLP policy rule.
ExcludedUsers []common.IDNameExtensions `json:"excludedUsers,omitempty"`

// The list of domain profiles that must be added to the DLP rule criteria in order to apply the DLP rules only to domains that are part of the specified profiles. A maximum of 8 profiles can be selected.
IncludedDomainProfiles []common.IDNameExtensions `json:"includedDomainProfiles,omitempty"`

// The list of domain profiles that must be added to the DLP rule criteria in order to apply the DLP rules to all domains excluding the domains that are part of the specified profiles. A maximum of 8 profiles can be selected.
ExcludedDomainProfiles []common.IDNameExtensions `json:"excludedDomainProfiles,omitempty"`

// Source IP address groups for which the rule is applicable. If not set, the rule is not restricted to a specific source IP address group.
SourceIpGroups []common.IDNameExtensions `json:"sourceIpGroups,omitempty"`

// The list of preconfigured workload groups to which the policy must be applied.
WorkloadGroups []common.IDNameWorkloadGroup `json:"workloadGroups,omitempty"`
WorkloadGroups []common.IDNameExtensions `json:"workloadGroups,omitempty"`

// Indicates the severity selected for the DLP rule violation
Severity string `json:"severity,omitempty"`
Expand Down
4 changes: 2 additions & 2 deletions zia/services/urlfilteringpolicies/urlfilteringpolicies.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type URLFilteringRule struct {
// Action taken when traffic matches rule criteria
Action string `json:"action,omitempty"`

//If set to true, the CIPA Compliance rule is enabled
// If set to true, the CIPA Compliance rule is enabled
Ciparule bool `json:"ciparule,omitempty"`

// List of device trust levels for which the rule must be applied. This field is applicable for devices that are managed using Zscaler Client Connector. The trust levels are assigned to the devices based on your posture configurations in the Zscaler Client Connector Portal. If no value is set, this field is ignored during the policy evaluation.
Expand Down Expand Up @@ -118,7 +118,7 @@ type URLFilteringRule struct {
TimeWindows []common.IDNameExtensions `json:"timeWindows,omitempty"`

// The list of preconfigured workload groups to which the policy must be applied.
WorkloadGroups []common.IDNameWorkloadGroup `json:"workloadGroups,omitempty"`
WorkloadGroups []common.IDNameExtensions `json:"workloadGroups,omitempty"`

// The cloud browser isolation profile to which the ISOLATE action is applied in the URL Filtering Policy rules.
// Note: This parameter is required for the ISOLATE action and is not applicable to other actions.
Expand Down

0 comments on commit 784805e

Please sign in to comment.