@azure/iot-device-update package
接口
类型别名
| ContinuablePage |
描述结果页的接口。 |
| DeploymentState |
部署状态。 |
| DeviceClassSubgroupDeploymentState |
设备类子组部署状态。 |
| DeviceDeploymentState |
部署状态。 |
| DeviceHealthState |
设备运行状况状态 |
| DownloadSecurity |
设备下载更新有效载荷时应使用的协议。 |
| GroupType |
支持的组类型。 |
| HealthCheckResult |
运行状况检查结果 |
| ImportType |
设备导入类型。 |
| OperationStatus |
作状态。 |
| StepType |
步骤类型。 |
枚举
| KnownVersions |
可用的 API 版本。 |
函数
| is |
RestError 的 Typeguard |
| restore |
从另一轮询程序的序列化状态创建轮询器。 如果要在不同的主机上创建轮询器,或者在原始轮询器不在范围内后构造轮询器,这非常有用。 |
变量
| Rest |
失败管道请求的自定义错误类型。 |
函数详细信息
isRestError(unknown)
RestError 的 Typeguard
function isRestError(e: unknown): e is RestError
参数
- e
-
unknown
catch 子句捕获的内容。
返回
e is RestError
restorePoller<TResponse, TResult>(DeviceUpdateClient, string, (args: any[]) => PollerLike<OperationState<TResult>, TResult>, RestorePollerOptions<TResult, PathUncheckedResponse>)
从另一轮询程序的序列化状态创建轮询器。 如果要在不同的主机上创建轮询器,或者在原始轮询器不在范围内后构造轮询器,这非常有用。
function restorePoller<TResponse, TResult>(client: DeviceUpdateClient, serializedState: string, sourceOperation: (args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult, PathUncheckedResponse>): PollerLike<OperationState<TResult>, TResult>
参数
- client
- DeviceUpdateClient
- serializedState
-
string
- sourceOperation
-
(args: any[]) => PollerLike<OperationState<TResult>, TResult>
- options
-
RestorePollerOptions<TResult, PathUncheckedResponse>
返回
PollerLike<OperationState<TResult>, TResult>