devicegroups

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 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 DeviceGroups

type DeviceGroups struct {
	ID          int    `json:"id"`
	Name        string `json:"name,omitempty"`
	GroupType   string `json:"groupType,omitempty"`
	Description string `json:"description,omitempty"`
	OSType      string `json:"osType,omitempty"`
	Predefined  bool   `json:"predefined"`
	DeviceNames string `json:"deviceNames,omitempty"`
	DeviceCount int    `json:"deviceCount,omitempty"`
}

type Devices

type Devices struct {
	ID              int    `json:"id"`
	Name            string `json:"name,omitempty"`
	DeviceGroupType string `json:"deviceGroupType,omitempty"`
	DeviceModel     string `json:"deviceModel,omitempty"`
	OSType          string `json:"osType,omitempty"`
	OSVersion       string `json:"osVersion,omitempty"`
	Description     string `json:"description,omitempty"`
	OwnerUserId     int    `json:"ownerUserId,omitempty"`
	OwnerName       string `json:"ownerName,omitempty"`
}

type Service

type Service struct {
	Client *zia.Client
}

func New

func New(c *zia.Client) *Service

func (*Service) GetAll added in v0.0.4

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

func (*Service) GetDeviceGroupByName

func (service *Service) GetDeviceGroupByName(deviceGroupName string) (*DeviceGroups, error)

func (*Service) GetDeviceGroups

func (service *Service) GetDeviceGroups(deviceGroupId int) (*DeviceGroups, error)

func (*Service) GetDevicesByID

func (service *Service) GetDevicesByID(deviceId int) (*Devices, error)

func (*Service) GetDevicesByModel

func (service *Service) GetDevicesByModel(deviceModel string) (*Devices, error)

func (*Service) GetDevicesByName

func (service *Service) GetDevicesByName(deviceName string) (*Devices, error)

Get Devices by Name

func (*Service) GetDevicesByOSType

func (service *Service) GetDevicesByOSType(osTypeName string) (*Devices, error)

func (*Service) GetDevicesByOSVersion

func (service *Service) GetDevicesByOSVersion(osVersionName string) (*Devices, error)

func (*Service) GetDevicesByOwner

func (service *Service) GetDevicesByOwner(ownerName string) (*Devices, error)

Jump to

Keyboard shortcuts

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