administration

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Departments

type Departments struct {
	ID   int    `json:"id"`
	Name string `json:"name,omitempty"`
}

type GetDepartmentsFilters

type GetDepartmentsFilters struct {
	common.GetFromToFilters
	// The Zscaler location (ID). You can add multiple location IDs.
	Loc []int `json:"loc,omitempty" url:"loc,omitempty"`
	// The search string used to support search by name or department ID.
	Search string `json:"search,omitempty" url:"search,omitempty"`
}

type GetLocationsFilters

type GetLocationsFilters struct {
	common.GetFromToFilters
	// The Zscaler location (ID). You can add multiple location IDs.
	Loc []int `json:"loc,omitempty" url:"loc,omitempty"`
	// The search string used to support search by name or department ID.
	Search string `json:"q,omitempty" url:"q,omitempty"`
}

type Locations

type Locations struct {
	ID   int    `json:"id"`
	Name string `json:"name,omitempty"`
}

type Service

type Service struct {
	Client *zdx.Client
}

func New

func New(c *zdx.Client) *Service

func (*Service) GetDepartments

func (service *Service) GetDepartments(appID string, filters GetDepartmentsFilters) (*Departments, *http.Response, error)

Gets configured departments.

func (*Service) GetLocations

func (service *Service) GetLocations(appID string, filters GetLocationsFilters) (*Locations, *http.Response, error)

Gets configured departments.

Jump to

Keyboard shortcuts

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