devicegroups

package
v3.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceGroups

type DeviceGroups struct {
	// The unique identifer for the device group
	ID int `json:"id"`

	// The device group name
	Name string `json:"name,omitempty"`

	// The device group type
	GroupType string `json:"groupType,omitempty"`

	// The device group's description
	Description string `json:"description,omitempty"`

	// The operating system (OS)
	OSType string `json:"osType,omitempty"`

	// Indicates whether this is a predefined device group. If this value is set to true, the group is predefined
	Predefined  bool   `json:"predefined"`
	DeviceNames string `json:"deviceNames,omitempty"`

	// The number of devices within the group
	DeviceCount int `json:"deviceCount,omitempty"`
}

func GetAllDevicesGroups

func GetAllDevicesGroups(ctx context.Context, service *zscaler.Service) ([]DeviceGroups, error)

func GetDeviceGroupByName

func GetDeviceGroupByName(ctx context.Context, service *zscaler.Service, deviceGroupName string) (*DeviceGroups, error)

func GetIncludeDeviceInfo

func GetIncludeDeviceInfo(ctx context.Context, service *zscaler.Service, includeDeviceInfo, includePseudoGroups bool) ([]DeviceGroups, error)

type Devices

type Devices struct {
	// The unique identifier for the device
	ID int `json:"id"`

	// The device name
	Name string `json:"name,omitempty"`

	// The device group type
	DeviceGroupType string `json:"deviceGroupType,omitempty"`

	// The device model
	DeviceModel string `json:"deviceModel,omitempty"`

	// The operating system (OS)
	OSType string `json:"osType,omitempty"`

	// The operating system version
	OSVersion string `json:"osVersion,omitempty"`

	// The device's description
	Description string `json:"description,omitempty"`

	// The unique identifier of the device owner (i.e., user)
	OwnerUserId int `json:"ownerUserId,omitempty"`

	// The device owner's user name
	OwnerName string `json:"ownerName,omitempty"`

	// The hostname of the device
	HostName string `json:"hostName,omitempty"`
}

func GetAllDevices

func GetAllDevices(ctx context.Context, service *zscaler.Service) ([]Devices, error)

func GetDevicesByID

func GetDevicesByID(ctx context.Context, service *zscaler.Service, deviceID int) (*Devices, error)

func GetDevicesByModel

func GetDevicesByModel(ctx context.Context, service *zscaler.Service, deviceModel string) (*Devices, error)

func GetDevicesByName

func GetDevicesByName(ctx context.Context, service *zscaler.Service, deviceName string) (*Devices, error)

Get Devices by Name.

func GetDevicesByOSType

func GetDevicesByOSType(ctx context.Context, service *zscaler.Service, osTypeName string) (*Devices, error)

func GetDevicesByOSVersion

func GetDevicesByOSVersion(ctx context.Context, service *zscaler.Service, osVersionName string) (*Devices, error)

func GetDevicesByOwner

func GetDevicesByOwner(ctx context.Context, service *zscaler.Service, ownerName string) (*Devices, error)

Jump to

Keyboard shortcuts

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