locationmanagement

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: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

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

type Locations

type Locations struct {
	ID                                  int              `json:"id,omitempty"`
	Name                                string           `json:"name,omitempty"`
	ParentID                            int              `json:"parentId,omitempty"`
	UpBandwidth                         int              `json:"upBandwidth,omitempty"`
	DnBandwidth                         int              `json:"dnBandwidth,omitempty"`
	Country                             string           `json:"country,omitempty"`
	TZ                                  string           `json:"tz,omitempty"`
	IPAddresses                         []string         `json:"ipAddresses,omitempty"`
	Ports                               string           `json:"ports,omitempty"`
	VPNCredentials                      []VPNCredentials `json:"vpnCredentials,omitempty"`
	AuthRequired                        bool             `json:"authRequired"`
	SSLScanEnabled                      bool             `json:"sslScanEnabled"`
	ZappSSLScanEnabled                  bool             `json:"zappSSLScanEnabled"`
	XFFForwardEnabled                   bool             `json:"xffForwardEnabled"`
	SurrogateIP                         bool             `json:"surrogateIP"`
	IdleTimeInMinutes                   int              `json:"idleTimeInMinutes,omitempty"`
	DisplayTimeUnit                     string           `json:"displayTimeUnit,omitempty"`
	SurrogateIPEnforcedForKnownBrowsers bool             `json:"surrogateIPEnforcedForKnownBrowsers"`
	SurrogateRefreshTimeInMinutes       int              `json:"surrogateRefreshTimeInMinutes,omitempty"`
	SurrogateRefreshTimeUnit            string           `json:"surrogateRefreshTimeUnit,omitempty"`
	OFWEnabled                          bool             `json:"ofwEnabled"`
	IPSControl                          bool             `json:"ipsControl"`
	AUPEnabled                          bool             `json:"aupEnabled"`
	CautionEnabled                      bool             `json:"cautionEnabled"`
	AUPBlockInternetUntilAccepted       bool             `json:"aupBlockInternetUntilAccepted"`
	AUPForceSSLInspection               bool             `json:"aupForceSslInspection"`
	AUPTimeoutInDays                    int              `json:"aupTimeoutInDays,omitempty"`
	Profile                             string           `json:"profile,omitempty"`
	Description                         string           `json:"description,omitempty"`
}

Gets locations only, not sub-locations. When a location matches the given search parameter criteria only its parent location is included in the result set, not its sub-locations.

type ManagedBy

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

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) Create

func (service *Service) Create(locations *Locations) (*Locations, error)

func (*Service) Delete

func (service *Service) Delete(locationID int) (*http.Response, error)

func (*Service) GetAll added in v0.0.4

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

func (*Service) GetLocation

func (service *Service) GetLocation(locationID int) (*Locations, error)

Gets locations only, not sub-locations. When a location matches the given search parameter criteria only its parent location is included in the result set, not its sub-locations

func (*Service) GetLocationByName

func (service *Service) GetLocationByName(locationName string) (*Locations, error)

func (*Service) GetSublocations

func (service *Service) GetSublocations(sublocations string) (*Locations, error)

Gets a name and ID dictionary of locations.

func (*Service) Update

func (service *Service) Update(locationID int, locations *Locations) (*Locations, *http.Response, error)

type VPNCredentials

type VPNCredentials struct {
	ID           int         `json:"id,omitempty"`
	Type         string      `json:"type,omitempty"`
	FQDN         string      `json:"fqdn,omitempty"`
	IPAddress    string      `json:"ipAddress"`
	PreSharedKey string      `json:"preSharedKey,omitempty"`
	Comments     string      `json:"comments,omitempty"`
	Location     []Location  `json:"location,omitempty"`
	ManagedBy    []ManagedBy `json:"managedBy,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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