Documentation ¶
Index ¶
- type DeviceGroups
- type Devices
- type Service
- func (service *Service) GetAllDevices() ([]Devices, error)
- func (service *Service) GetAllDevicesGroups() ([]DeviceGroups, error)
- func (service *Service) GetDeviceGroupByName(deviceGroupName string) (*DeviceGroups, error)
- func (service *Service) GetDeviceGroups(deviceGroupId int) (*DeviceGroups, error)
- func (service *Service) GetDevicesByID(deviceId int) (*Devices, error)
- func (service *Service) GetDevicesByModel(deviceModel string) (*Devices, error)
- func (service *Service) GetDevicesByName(deviceName string) (*Devices, error)
- func (service *Service) GetDevicesByOSType(osTypeName string) (*Devices, error)
- func (service *Service) GetDevicesByOSVersion(osVersionName string) (*Devices, error)
- func (service *Service) GetDevicesByOwner(ownerName string) (*Devices, error)
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"` }
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"` }
type Service ¶
func (*Service) GetAllDevices ¶ added in v2.2.0
func (*Service) GetAllDevicesGroups ¶ added in v2.2.0
func (service *Service) GetAllDevicesGroups() ([]DeviceGroups, 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) GetDevicesByModel ¶
func (*Service) GetDevicesByName ¶
Get Devices by Name.
func (*Service) GetDevicesByOSType ¶
func (*Service) GetDevicesByOSVersion ¶
Click to show internal directories.
Click to hide internal directories.