locationgroups

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type City

type City struct {
	MatchString string `json:"matchString,omitempty"`
	MatchType   string `json:"matchType,omitempty"`
}

type DynamicLocationGroupCriteria

type DynamicLocationGroupCriteria struct {
	Name                   *Name       `json:"name,omitempty"`
	Countries              []string    `json:"countries,omitempty"`
	City                   *City       `json:"city,omitempty"`
	ManagedBy              []ManagedBy `json:"managedBy,omitempty"`
	EnforceAuthentication  bool        `json:"enforceAuthentication"`
	EnforceAup             bool        `json:"enforceAup"`
	EnforceFirewallControl bool        `json:"enforceFirewallControl"`
	EnableXffForwarding    bool        `json:"enableXffForwarding"`
	EnableCaution          bool        `json:"enableCaution"`
	EnableBandwidthControl bool        `json:"enableBandwidthControl"`
	Profiles               []string    `json:"profiles"`
}

type LastModUser

type LastModUser struct {
	ID         int                    `json:"id,omitempty"`
	Name       string                 `json:"name,omitempty"`
	Extensions map[string]interface{} `json:"extensions,omitempty"`
}

type LocationGroup

type LocationGroup struct {
	ID                           int                           `json:"id,omitempty"`
	Name                         string                        `json:"name,omitempty"`
	Deleted                      bool                          `json:"deleted,omitempty"`
	GroupType                    string                        `json:"groupType,omitempty"`
	DynamicLocationGroupCriteria *DynamicLocationGroupCriteria `json:"dynamicLocationGroupCriteria,omitempty"`
	Comments                     string                        `json:"comments"`
	Locations                    []Locations                   `json:"locations"`
	LastModUser                  *LastModUser                  `json:"lastModUser"`
	LastModTime                  int                           `json:"lastModTime"`
	Predefined                   bool                          `json:"predefined"`
}

type Locations

type Locations struct {
	ID         int                    `json:"id,omitempty"`
	Name       string                 `json:"name,omitempty"`
	Extensions map[string]interface{} `json:"extensions,omitempty"`
}

type ManagedBy

type ManagedBy struct {
	ID         int                    `json:"id,omitempty"`
	Name       string                 `json:"name,omitempty"`
	Extensions map[string]interface{} `json:"extensions,omitempty"`
}

type Name

type Name struct {
	MatchString string `json:"matchString,omitempty"`
	MatchType   string `json:"matchType,omitempty"`
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) CreateLocationGroup

func (service *Service) CreateLocationGroup(locationGroups *LocationGroup) (*LocationGroup, error)

func (*Service) DeleteLocationGroup

func (service *Service) DeleteLocationGroup(groupID int) (*http.Response, error)

func (*Service) GetAll added in v0.0.4

func (service *Service) GetAll() ([]LocationGroup, error)

func (*Service) GetLocationGroup

func (service *Service) GetLocationGroup(groupID int) (*LocationGroup, error)

func (*Service) GetLocationGroupByName

func (service *Service) GetLocationGroupByName(locationGroupName string) (*LocationGroup, error)

func (*Service) UpdateLocationGroup

func (service *Service) UpdateLocationGroup(groupID int, locationGroups *LocationGroup) (*LocationGroup, *http.Response, error)

Jump to

Keyboard shortcuts

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