Skip to content

Commit

Permalink
Merge pull request #189 from zscaler/zpa-#189-app-segment-browser-acc…
Browse files Browse the repository at this point in the history
…ess-fix

fix: Fixed missing attributes for application segments
  • Loading branch information
willguibr authored Dec 2, 2023
2 parents 55e32c1 + 416d07e commit 3e80a00
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.19

- name: Import GPG key
id: import_gpg
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
- [PR #188](https://github.com/zscaler/zscaler-sdk-go/pull/188) Added support for ZIA 🆕 Forwarding Control Policy endpoint `/forwardingRules`
- [PR #188](https://github.com/zscaler/zscaler-sdk-go/pull/188) Added support for ZIA 🆕 Custom ZPA Gateway endpoint `/zpaGateways`for use with Forwarding Control policy to forward traffic to ZPA for Source IP Anchoring

### Fixes

- [PR #189](https://github.com/zscaler/zscaler-sdk-go/pull/189) Fixed missing `microtenantId` and `microtenantName` attributes in ZPA browser access package.

# 2.1.6 (November 17, 2023)

## Notes
Expand Down
3 changes: 3 additions & 0 deletions docs/guides/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ Track all Zscaler SDK GO releases. New resources, features, and bug fixes will b
- [PR #188](https://github.com/zscaler/zscaler-sdk-go/pull/188) Added support for ZIA 🆕 Forwarding Control Policy endpoint `/forwardingRules`
- [PR #188](https://github.com/zscaler/zscaler-sdk-go/pull/188) Added support for ZIA 🆕 Custom ZPA Gateway endpoint `/zpaGateways`for use with Forwarding Control policy to forward traffic to ZPA for Source IP Anchoring

### Fixes

- [PR #189](https://github.com/zscaler/zscaler-sdk-go/pull/189) Fixed missing `microtenantId` and `microtenantName` attributes in ZPA browser access package.
# 2.1.6 (November 17, 2023)

## Notes
Expand Down
3 changes: 3 additions & 0 deletions zpa/services/applicationsegment/zpa_application_segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ type ApplicationSegmentResource struct {
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Enabled bool `json:"enabled"`
ADPEnabled bool `json:"adpEnabled"`
PassiveHealthEnabled bool `json:"passiveHealthEnabled"`
DoubleEncrypt bool `json:"doubleEncrypt"`
ConfigSpace string `json:"configSpace,omitempty"`
Applications string `json:"applications,omitempty"`
BypassType string `json:"bypassType,omitempty"`
BypassOnReauth bool `json:"bypassOnReauth,omitempty"`
HealthCheckType string `json:"healthCheckType,omitempty"`
IsCnameEnabled bool `json:"isCnameEnabled"`
IpAnchored bool `json:"ipAnchored"`
FQDNDnsCheck bool `json:"fqdnDnsCheck"`
HealthReporting string `json:"healthReporting,omitempty"`
SelectConnectorCloseToApp bool `json:"selectConnectorCloseToApp"`
IcmpAccessType string `json:"icmpAccessType,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ type AppSegmentInspection struct {
SegmentGroupID string `json:"segmentGroupId,omitempty"`
SegmentGroupName string `json:"segmentGroupName,omitempty"`
BypassType string `json:"bypassType,omitempty"`
BypassOnReauth bool `json:"bypassOnReauth,omitempty"`
ConfigSpace string `json:"configSpace,omitempty"`
DomainNames []string `json:"domainNames,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Enabled bool `json:"enabled"`
AppRecommendationId string `json:"appRecommendationId,omitempty"`
ICMPAccessType string `json:"icmpAccessType,omitempty"`
PassiveHealthEnabled bool `json:"passiveHealthEnabled,omitempty"`
FQDNDnsCheck bool `json:"fqdnDnsCheck"`
SelectConnectorCloseToApp bool `json:"selectConnectorCloseToApp"`
DoubleEncrypt bool `json:"doubleEncrypt"`
HealthCheckType string `json:"healthCheckType,omitempty"`
Expand All @@ -43,6 +46,8 @@ type AppSegmentInspection struct {
UDPPortRanges []string `json:"udpPortRanges,omitempty"`
TCPAppPortRange []common.NetworkPorts `json:"tcpPortRange,omitempty"`
UDPAppPortRange []common.NetworkPorts `json:"udpPortRange,omitempty"`
TCPProtocols []string `json:"tcpProtocols,omitempty"`
UDPProtocols []string `json:"udpProtocols,omitempty"`
InspectionAppDto []InspectionAppDto `json:"inspectionApps,omitempty"`
CommonAppsDto CommonAppsDto `json:"commonAppsDto,omitempty"`
AppServerGroups []AppServerGroups `json:"serverGroups,omitempty"`
Expand Down Expand Up @@ -91,19 +96,20 @@ type AppsConfig struct {
}

type InspectionAppDto struct {
ID string `json:"id,omitempty"`
AppID string `json:"appId,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Enabled bool `json:"enabled"`
ApplicationPort string `json:"applicationPort,omitempty"`
ApplicationProtocol string `json:"applicationProtocol,omitempty"`
CertificateID string `json:"certificateId,omitempty"`
CertificateName string `json:"certificateName,omitempty"`
Domain string `json:"domain,omitempty"`
TrustUntrustedCert bool `json:"trustUntrustedCert"`
MicroTenantID string `json:"microtenantId,omitempty"`
MicroTenantName string `json:"microtenantName,omitempty"`
ID string `json:"id,omitempty"`
AppID string `json:"appId,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Enabled bool `json:"enabled"`
ApplicationPort string `json:"applicationPort,omitempty"`
ApplicationProtocol string `json:"applicationProtocol,omitempty"`
CertificateID string `json:"certificateId,omitempty"`
CertificateName string `json:"certificateName,omitempty"`
Domain string `json:"domain,omitempty"`
Protocols []string `json:"protocols,omitempty"`
TrustUntrustedCert bool `json:"trustUntrustedCert"`
MicroTenantID string `json:"microtenantId,omitempty"`
MicroTenantName string `json:"microtenantName,omitempty"`
}

type AppServerGroups struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ type AppSegmentPRA struct {
PassiveHealthEnabled bool `json:"passiveHealthEnabled"`
SelectConnectorCloseToApp bool `json:"selectConnectorCloseToApp"`
DoubleEncrypt bool `json:"doubleEncrypt"`
AppRecommendationId string `json:"appRecommendationId,omitempty"`
ConfigSpace string `json:"configSpace,omitempty"`
Applications string `json:"applications,omitempty"`
BypassType string `json:"bypassType,omitempty"`
BypassOnReauth bool `json:"bypassOnReauth,omitempty"`
FQDNDnsCheck bool `json:"fqdnDnsCheck"`
HealthCheckType string `json:"healthCheckType,omitempty"`
IsCnameEnabled bool `json:"isCnameEnabled"`
IpAnchored bool `json:"ipAnchored"`
Expand All @@ -46,7 +49,7 @@ type AppSegmentPRA struct {
DefaultIdleTimeout string `json:"defaultIdleTimeout,omitempty"`
DefaultMaxAge string `json:"defaultMaxAge,omitempty"`
TCPPortRanges []string `json:"tcpPortRanges,omitempty"`
UDPPortRanges []string `json:"udpPortRanges,omitempty"`
UDPProtocols []string `json:"udpProtocols,omitempty"`
SRAAppsDto []SRAAppsDto `json:"sraApps,omitempty"`
CommonAppsDto CommonAppsDto `json:"commonAppsDto,omitempty"`
SharedMicrotenantDetails SharedMicrotenantDetails `json:"sharedMicrotenantDetails,omitempty"`
Expand Down
11 changes: 9 additions & 2 deletions zpa/services/browseraccess/zpa_browser_access.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ const (

type BrowserAccess struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
SegmentGroupID string `json:"segmentGroupId,omitempty"`
SegmentGroupName string `json:"segmentGroupName,omitempty"`
BypassType string `json:"bypassType,omitempty"`
BypassOnReauth bool `json:"bypassOnReauth,omitempty"`
AppRecommendationId string `json:"appRecommendationId,omitempty"`
ConfigSpace string `json:"configSpace,omitempty"`
DomainNames []string `json:"domainNames,omitempty"`
Name string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Enabled bool `json:"enabled"`
PassiveHealthEnabled bool `json:"passiveHealthEnabled"`
FQDNDnsCheck bool `json:"fqdnDnsCheck"`
SelectConnectorCloseToApp bool `json:"selectConnectorCloseToApp"`
DoubleEncrypt bool `json:"doubleEncrypt"`
HealthCheckType string `json:"healthCheckType,omitempty"`
Expand All @@ -33,6 +36,8 @@ type BrowserAccess struct {
IsIncompleteDRConfig bool `json:"isIncompleteDRConfig"`
UseInDrMode bool `json:"useInDrMode"`
InspectTrafficWithZia bool `json:"inspectTrafficWithZia"`
MicroTenantID string `json:"microtenantId,omitempty"`
MicroTenantName string `json:"microtenantName,omitempty"`
HealthReporting string `json:"healthReporting,omitempty"`
ICMPAccessType string `json:"icmpAccessType,omitempty"`
CreationTime string `json:"creationTime,omitempty"`
Expand Down Expand Up @@ -81,6 +86,8 @@ type ClientlessApps struct {
ModifiedTime string `json:"modifiedTime,omitempty"`
Name string `json:"name,omitempty"`
Path string `json:"path,omitempty"`
MicroTenantID string `json:"microtenantId,omitempty"`
MicroTenantName string `json:"microtenantName,omitempty"`
TrustUntrustedCert bool `json:"trustUntrustedCert"`
}

Expand Down

0 comments on commit 3e80a00

Please sign in to comment.