device-profile/device-profile.service.ts
Properties |
Methods |
constructor(inventoryService: InventoryService, operationService: OperationService, alertService: AlertService)
|
||||||||||||
Parameters :
|
alignSoftwareTypeFragments | ||||||||||||
alignSoftwareTypeFragments(profilePartial: Partial<DeviceProfile>, profile: DeviceProfile)
|
||||||||||||
Aligns device profile managed object's
Parameters :
Returns :
Partial<DeviceProfile>
The adjusted device profile managed object. |
createDeviceProfile | ||||||
createDeviceProfile(deviceProfile: Partial<DeviceProfile>)
|
||||||
Parameters :
Returns :
any
|
Async createProfileOperation | |||||||||
createProfileOperation(device: IManagedObject, deviceProfile: Partial<DeviceProfile>)
|
|||||||||
Parameters :
Returns :
unknown
|
getConfigurationItems | |||||||||
getConfigurationItems(device: IManagedObject, selectedProfile: Partial<DeviceProfile>)
|
|||||||||
Parameters :
Returns :
ComparisonResult[]
|
getDeviceProfiles | ||||||
getDeviceProfiles(andQuery?: any)
|
||||||
Parameters :
Returns :
Promise<IResultList<IManagedObject>>
|
getDeviceProfilesByDevice | |||||||||||||||
getDeviceProfilesByDevice(device: IManagedObject, name: string)
|
|||||||||||||||
Determines the available device profiles for a given device by considering device type and the supported software types declared by the devices. Because of limitations in the Inventory Query API the methods return profile that contain at least one of the supported software types and omits profiles having only non-supported software types. Resulting device profiles need to be further filtered on the client side to exclude the ones that contain non-supported software types next to the supported ones.
Parameters :
Returns :
Promise<IResultList<IManagedObject>>
Candidate device profiles that contain at least on software with supported type. |
getDeviceProfilesByDeviceType | ||||||
Use `getDeviceProfilesByDevice` instead as it also considers the supported software types. | ||||||
getDeviceProfilesByDeviceType(deviceType: string)
|
||||||
Parameters :
Returns :
Promise<IResultList<IManagedObject>>
|
getFirmwareItems | |||||||||
getFirmwareItems(device: IManagedObject, selectedProfile: Partial<DeviceProfile>)
|
|||||||||
Parameters :
Returns :
ComparisonResult[]
|
Async getProfileOperation | ||||||
getProfileOperation(deviceId: string | number)
|
||||||
Parameters :
Returns :
unknown
|
getSoftwareItems | |||||||||
getSoftwareItems(device: IManagedObject, selectedProfile: Partial<DeviceProfile>)
|
|||||||||
Parameters :
Returns :
ComparisonResult[]
|
getSoftwareTypes | ||||||
getSoftwareTypes(profile: DeviceProfile)
|
||||||
Parameters :
Returns :
string[]
|
Readonly dateFrom |
Default value : new Date(0)
|
Readonly dateTo |
Default value : new Date(Date.now() + 86400000)
|