Versions in this module Expand all Collapse all v1 v1.0.1 Aug 10, 2023 Changes in this version + type AppConnectorGroups struct + ID string + type AppServerGroups struct + ID string + type Conditions struct + CreationTime string + ID string + ModifiedBy string + ModifiedTime string + Negated bool + Operands []Operands + Operator string + type Count struct + Count string + type Operands struct + CreationTime string + ID string + IdpID string + LHS string + ModifiedBy string + ModifiedTime string + Name string + ObjectType string + RHS string + type PolicyRule struct + Action string + ActionID string + AppConnectorGroups []AppConnectorGroups + AppServerGroups []AppServerGroups + BypassDefaultRule bool + Conditions []Conditions + CreationTime string + CustomMsg string + DefaultRule bool + DefaultRuleName string + Description string + ID string + IsolationDefaultRule bool + LSSDefaultRule bool + MicroTenantID string + MicroTenantName string + ModifiedBy string + ModifiedTime string + Name string + Operator string + PolicySetID string + PolicyType string + Priority string + ReauthDefaultRule bool + ReauthIdleTimeout string + ReauthTimeout string + RuleOrder string + ZpnCbiProfileID string + ZpnInspectionProfileID string + ZpnInspectionProfileName string + ZpnIsolationProfileID string + type PolicySet struct + CreationTime string + Description string + Enabled bool + ID string + ModifiedBy string + ModifiedTime string + Name string + PolicyType string + Rules []PolicyRule + Sorted bool + type Service struct + Client *zpa.Client + func New(c *zpa.Client) *Service + func (service *Service) Create(rule *PolicyRule) (*PolicyRule, *http.Response, error) + func (service *Service) Delete(policySetID, ruleId string) (*http.Response, error) + func (service *Service) GetAllByType(policyType string) ([]PolicyRule, *http.Response, error) + func (service *Service) GetByNameAndType(policyType, ruleName string) (*PolicyRule, *http.Response, error) + func (service *Service) GetByNameAndTypes(policyTypes []string, ruleName string) (p *PolicyRule, resp *http.Response, err error) + func (service *Service) GetByPolicyType(policyType string) (*PolicySet, *http.Response, error) + func (service *Service) GetPolicyRule(policySetID, ruleId string) (*PolicyRule, *http.Response, error) + func (service *Service) Reorder(policySetID, ruleId string, order int) (*http.Response, error) + func (service *Service) RulesCount() (int, *http.Response, error) + func (service *Service) Update(policySetID, ruleId string, policySetRule *PolicyRule) (*http.Response, error)