@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>