zpa

package
v2.81.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderVersion = "2.5.2"

ProviderVersion is set at build-time in the release process

Functions

func CommonPolicySchema

func CommonPolicySchema() map[string]*schema.Schema

func DiffSuppressFuncCoordinate

func DiffSuppressFuncCoordinate(k, old, new string, d *schema.ResourceData) bool

func ExpandPolicyRuleResourceConditions

func ExpandPolicyRuleResourceConditions(d map[string]interface{}) ([]lssconfigcontroller.PolicyRuleResourceConditions, error)

func GetPolicyConditionsSchema

func GetPolicyConditionsSchema(objectTypes []string) *schema.Schema

func ListToStringSlice

func ListToStringSlice(v []interface{}) []string

func MergeSchema

func MergeSchema(schemas ...map[string]*schema.Schema) map[string]*schema.Schema

func PRAPortOverlap

func PRAPortOverlap(s1, s2 []string) (bool, []string, []string)

func Provider

func Provider() *schema.Provider

func SetToStringList

func SetToStringList(d *schema.ResourceData, key string) []string

func SetToStringSlice

func SetToStringSlice(d *schema.Set) []string

func ValidateConditions

func ValidateConditions(conditions []policysetcontroller.Conditions, zClient *Client) bool

func ValidateLatitude

func ValidateLatitude(val interface{}, key string) (warns []string, errs []error)

func ValidateLongitude

func ValidateLongitude(val interface{}, key string) (warns []string, errs []error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

type Config

type Config struct {

	// ZPA Client ID for API Client
	ClientID string

	// ZPA Client Secret for API Client
	ClientSecret string

	// ZPA Customer ID for API Client
	CustomerID string

	// ZPA Base URL for API Client
	BaseURL string

	// UserAgent for API Client
	UserAgent string
}

func (*Config) Client

func (c *Config) Client() (*Client, error)

type Getter

type Getter func(id string) error

func (Getter) Get

func (g Getter) Get(id string) error

type RuleIDOrderPair

type RuleIDOrderPair struct {
	ID    string
	Order int
}

type RuleIDOrderPairList

type RuleIDOrderPairList []RuleIDOrderPair

func (RuleIDOrderPairList) Len

func (p RuleIDOrderPairList) Len() int

func (RuleIDOrderPairList) Less

func (p RuleIDOrderPairList) Less(i, j int) bool

func (RuleIDOrderPairList) Swap

func (p RuleIDOrderPairList) Swap(i, j int)

Source Files

Directories

Path Synopsis
common

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL