publicapi

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetDevices

type GetDevices struct {
	AgentVersion            string `json:"agentVersion"`
	CompanyName             string `json:"companyName"`
	ConfigDownloadTime      string `json:"config_download_time"`
	DeregistrationTimestamp string `json:"deregistrationTimestamp"`
	Detail                  string `json:"detail"`
	DownloadCount           int    `json:"download_count"`
	HardwareFingerprint     string `json:"hardwareFingerprint"`
	KeepAliveTime           string `json:"keepAliveTime"`
	LastSeenTime            string `json:"last_seen_time"`
	MacAddress              string `json:"macAddress"`
	MachineHostname         string `json:"machineHostname"`
	Manufacturer            string `json:"manufacturer"`
	OsVersion               string `json:"osVersion"`
	Owner                   string `json:"owner"`
	PolicyName              string `json:"policyName"`
	RegistrationState       string `json:"registrationState"`
	RegistrationTime        string `json:"registration_time"`
	State                   int    `json:"state"`
	TunnelVersion           string `json:"tunnelVersion"`
	Type                    int    `json:"type"`
	Udid                    string `json:"udid"`
	UpmVersion              string `json:"upmVersion"`
	User                    string `json:"user"`
	VpnState                int    `json:"vpnState"`
	ZappArch                string `json:"zappArch"`
}

type GetOtp

type GetOtp struct {
	Otp string `json:"otp"`
}

type GetOtpQuery

type GetOtpQuery struct {
	Udid string `json:"udid,omitempty" url:"udid,omitempty"`
}

type GetPassword

type GetPassword struct {
	ExitPass             string `json:"exitPass"`
	LogoutPass           string `json:"logoutPass"`
	UninstallPass        string `json:"uninstallPass"`
	ZdSettingsAccessPass string `json:"zdSettingsAccessPass"`
	ZdxDisablePass       string `json:"zdxDisablePass"`
	ZiaDisablePass       string `json:"ziaDisablePass"`
	ZpaDisablePass       string `json:"zpaDisablePass"`
}

type GetPasswordsQuery

type GetPasswordsQuery struct {
	OsType   int    `json:"osType,omitempty" url:"osType,omitempty"`
	Username string `json:"username,omitempty" url:"username,omitempty"`
}

type RemoveDevicesRequest

type RemoveDevicesRequest struct {
	ClientConnectorVersion []string `json:"clientConnectorVersion,omitempty"`
	OsType                 int      `json:"osType,omitempty"`
	Udids                  []string `json:"udids,omitempty"`
	UserName               string   `json:"userName,omitempty"`
}

type RemoveDevicesResponse

type RemoveDevicesResponse struct {
	DevicesRemoved int    `json:"devicesRemoved,omitempty"`
	ErrorMsg       string `json:"errorMsg,omitempty"`
}

type Service

type Service struct {
	Client *zcc.Client
}

func New

func New(c *zcc.Client) *Service

func (*Service) ForceRemoveDevices

func (service *Service) ForceRemoveDevices(request RemoveDevicesRequest) (*RemoveDevicesResponse, error)

func (*Service) GetAll

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

func (*Service) GetOtp

func (service *Service) GetOtp(udid string) (*GetOtp, error)

func (*Service) GetPasswords

func (service *Service) GetPasswords(osType int, username string) (*GetPassword, error)

func (*Service) SoftRemoveDevices

func (service *Service) SoftRemoveDevices(request RemoveDevicesRequest) (*RemoveDevicesResponse, error)

Jump to

Keyboard shortcuts

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