@azure-rest/iot-device-update package
接口
类型别名
函数
函数详细信息
default(string, TokenCredential, DeviceUpdateClientOptions)
初始化 DeviceUpdateClient 的新实例
function default(endpoint: string, credentials: TokenCredential, options?: DeviceUpdateClientOptions): DeviceUpdateClient
参数
- endpoint
-
string
IoT 中心帐户终结点的设备更新(仅主机名,无协议)。
- credentials
- TokenCredential
唯一标识客户端凭据
- options
- DeviceUpdateClientOptions
所有可选参数的参数
返回
getLongRunningPoller<TResult>(Client, TResult, CreateHttpPollerOptions<TResult, OperationState<TResult>>)
生成 Poller 对象的帮助程序函数,以帮助轮询长时间运行的作。
function getLongRunningPoller<TResult>(client: Client, initialResponse: TResult, options?: CreateHttpPollerOptions<TResult, OperationState<TResult>>): Promise<SimplePollerLike<OperationState<TResult>, TResult>>
参数
- client
- Client
用于发送请求以获取其他页面的客户端。
- initialResponse
-
TResult
初始响应。
- options
-
CreateHttpPollerOptions<TResult, OperationState<TResult>>
设置恢复状态或自定义轮询间隔的选项。
返回
Promise<SimplePollerLike<OperationState<TResult>, TResult>>
- 用于轮询作状态更新的轮询程序对象,并最终获取最终响应。
isUnexpected(DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesDefaultResponse)
function isUnexpected(response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesDefaultResponse): response
参数
返回
response
isUnexpected(DeviceUpdateImportUpdate200Response | DeviceUpdateImportUpdate202Response | DeviceUpdateImportUpdateDefaultResponse)
function isUnexpected(response: DeviceUpdateImportUpdate200Response | DeviceUpdateImportUpdate202Response | DeviceUpdateImportUpdateDefaultResponse): response
参数
返回
response
isUnexpected(DeviceUpdateGetUpdate200Response | DeviceUpdateGetUpdate304Response | DeviceUpdateGetUpdateDefaultResponse)
function isUnexpected(response: DeviceUpdateGetUpdate200Response | DeviceUpdateGetUpdate304Response | DeviceUpdateGetUpdateDefaultResponse): response
参数
返回
response
isUnexpected(DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdateDefaultResponse)
function isUnexpected(response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdateDefaultResponse): response
参数
返回
response
isUnexpected(DeviceUpdateListProviders200Response | DeviceUpdateListProvidersDefaultResponse)
function isUnexpected(response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersDefaultResponse): response
参数
返回
response
isUnexpected(DeviceUpdateListNames200Response | DeviceUpdateListNamesDefaultResponse)
function isUnexpected(response: DeviceUpdateListNames200Response | DeviceUpdateListNamesDefaultResponse): response
参数
返回
response
isUnexpected(DeviceUpdateListVersions200Response | DeviceUpdateListVersionsDefaultResponse)
function isUnexpected(response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsDefaultResponse): response
参数
返回
response
isUnexpected(DeviceUpdateListFiles200Response | DeviceUpdateListFilesDefaultResponse)
function isUnexpected(response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesDefaultResponse): response
参数
返回
response
isUnexpected(DeviceUpdateGetFile200Response | DeviceUpdateGetFile304Response | DeviceUpdateGetFileDefaultResponse)
function isUnexpected(response: DeviceUpdateGetFile200Response | DeviceUpdateGetFile304Response | DeviceUpdateGetFileDefaultResponse): response
参数
返回
response
isUnexpected(DeviceUpdateListOperationStatuses200Response | DeviceUpdateListOperationStatusesDefaultResponse)
function isUnexpected(response: DeviceUpdateListOperationStatuses200Response | DeviceUpdateListOperationStatusesDefaultResponse): response
参数
返回
response
isUnexpected(DeviceUpdateGetOperationStatus200Response | DeviceUpdateGetOperationStatus304Response | DeviceUpdateGetOperationStatusDefaultResponse)
function isUnexpected(response: DeviceUpdateGetOperationStatus200Response | DeviceUpdateGetOperationStatus304Response | DeviceUpdateGetOperationStatusDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListDeviceClasses200Response | DeviceManagementListDeviceClassesDefaultResponse)
function isUnexpected(response: DeviceManagementListDeviceClasses200Response | DeviceManagementListDeviceClassesDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetDeviceClass200Response | DeviceManagementGetDeviceClassDefaultResponse)
function isUnexpected(response: DeviceManagementGetDeviceClass200Response | DeviceManagementGetDeviceClassDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementUpdateDeviceClass200Response | DeviceManagementUpdateDeviceClassDefaultResponse)
function isUnexpected(response: DeviceManagementUpdateDeviceClass200Response | DeviceManagementUpdateDeviceClassDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementDeleteDeviceClass204Response | DeviceManagementDeleteDeviceClassDefaultResponse)
function isUnexpected(response: DeviceManagementDeleteDeviceClass204Response | DeviceManagementDeleteDeviceClassDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListInstallableUpdatesForDeviceClass200Response | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse)
function isUnexpected(response: DeviceManagementListInstallableUpdatesForDeviceClass200Response | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListDevices200Response | DeviceManagementListDevicesDefaultResponse)
function isUnexpected(response: DeviceManagementListDevices200Response | DeviceManagementListDevicesDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementImportDevices202Response | DeviceManagementImportDevicesDefaultResponse)
function isUnexpected(response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetDevice200Response | DeviceManagementGetDeviceDefaultResponse)
function isUnexpected(response: DeviceManagementGetDevice200Response | DeviceManagementGetDeviceDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetDeviceModule200Response | DeviceManagementGetDeviceModuleDefaultResponse)
function isUnexpected(response: DeviceManagementGetDeviceModule200Response | DeviceManagementGetDeviceModuleDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetUpdateCompliance200Response | DeviceManagementGetUpdateComplianceDefaultResponse)
function isUnexpected(response: DeviceManagementGetUpdateCompliance200Response | DeviceManagementGetUpdateComplianceDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListGroups200Response | DeviceManagementListGroupsDefaultResponse)
function isUnexpected(response: DeviceManagementListGroups200Response | DeviceManagementListGroupsDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetGroup200Response | DeviceManagementGetGroupDefaultResponse)
function isUnexpected(response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupDefaultResponse)
function isUnexpected(response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetUpdateComplianceForGroup200Response | DeviceManagementGetUpdateComplianceForGroupDefaultResponse)
function isUnexpected(response: DeviceManagementGetUpdateComplianceForGroup200Response | DeviceManagementGetUpdateComplianceForGroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListBestUpdatesForGroup200Response | DeviceManagementListBestUpdatesForGroupDefaultResponse)
function isUnexpected(response: DeviceManagementListBestUpdatesForGroup200Response | DeviceManagementListBestUpdatesForGroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListDeploymentsForGroup200Response | DeviceManagementListDeploymentsForGroupDefaultResponse)
function isUnexpected(response: DeviceManagementListDeploymentsForGroup200Response | DeviceManagementListDeploymentsForGroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentDefaultResponse)
function isUnexpected(response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementCreateOrUpdateDeployment200Response | DeviceManagementCreateOrUpdateDeploymentDefaultResponse)
function isUnexpected(response: DeviceManagementCreateOrUpdateDeployment200Response | DeviceManagementCreateOrUpdateDeploymentDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementDeleteDeployment204Response | DeviceManagementDeleteDeploymentDefaultResponse)
function isUnexpected(response: DeviceManagementDeleteDeployment204Response | DeviceManagementDeleteDeploymentDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetDeploymentStatus200Response | DeviceManagementGetDeploymentStatusDefaultResponse)
function isUnexpected(response: DeviceManagementGetDeploymentStatus200Response | DeviceManagementGetDeploymentStatusDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListDeviceClassSubgroupsForGroup200Response | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse)
function isUnexpected(response: DeviceManagementListDeviceClassSubgroupsForGroup200Response | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetDeviceClassSubgroup200Response | DeviceManagementGetDeviceClassSubgroupDefaultResponse)
function isUnexpected(response: DeviceManagementGetDeviceClassSubgroup200Response | DeviceManagementGetDeviceClassSubgroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementDeleteDeviceClassSubgroup204Response | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse)
function isUnexpected(response: DeviceManagementDeleteDeviceClassSubgroup204Response | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse)
function isUnexpected(response: DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse)
function isUnexpected(response: DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListDeploymentsForDeviceClassSubgroup200Response | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse)
function isUnexpected(response: DeviceManagementListDeploymentsForDeviceClassSubgroup200Response | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetDeploymentForDeviceClassSubgroup200Response | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse)
function isUnexpected(response: DeviceManagementGetDeploymentForDeviceClassSubgroup200Response | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse)
function isUnexpected(response: DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementStopDeployment200Response | DeviceManagementStopDeploymentDefaultResponse)
function isUnexpected(response: DeviceManagementStopDeployment200Response | DeviceManagementStopDeploymentDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementRetryDeployment200Response | DeviceManagementRetryDeploymentDefaultResponse)
function isUnexpected(response: DeviceManagementRetryDeployment200Response | DeviceManagementRetryDeploymentDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse)
function isUnexpected(response: DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse)
function isUnexpected(response: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetOperationStatus200Response | DeviceManagementGetOperationStatus304Response | DeviceManagementGetOperationStatusDefaultResponse)
function isUnexpected(response: DeviceManagementGetOperationStatus200Response | DeviceManagementGetOperationStatus304Response | DeviceManagementGetOperationStatusDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListOperationStatuses200Response | DeviceManagementListOperationStatusesDefaultResponse)
function isUnexpected(response: DeviceManagementListOperationStatuses200Response | DeviceManagementListOperationStatusesDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementStartLogCollection201Response | DeviceManagementStartLogCollectionDefaultResponse)
function isUnexpected(response: DeviceManagementStartLogCollection201Response | DeviceManagementStartLogCollectionDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetLogCollection200Response | DeviceManagementGetLogCollectionDefaultResponse)
function isUnexpected(response: DeviceManagementGetLogCollection200Response | DeviceManagementGetLogCollectionDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListLogCollections200Response | DeviceManagementListLogCollectionsDefaultResponse)
function isUnexpected(response: DeviceManagementListLogCollections200Response | DeviceManagementListLogCollectionsDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementGetLogCollectionDetailedStatus200Response | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse)
function isUnexpected(response: DeviceManagementGetLogCollectionDetailedStatus200Response | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse): response
参数
返回
response
isUnexpected(DeviceManagementListHealthOfDevices200Response | DeviceManagementListHealthOfDevicesDefaultResponse)
function isUnexpected(response: DeviceManagementListHealthOfDevices200Response | DeviceManagementListHealthOfDevicesDefaultResponse): response
参数
返回
response
paginate<TResponse>(Client, TResponse, PagingOptions<TResponse>)
帮助程序根据 Autorest x-ms-pageable 扩展规范对初始响应的结果进行分页
function paginate<TResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>
参数
- client
- Client
用于发送下一页请求的客户端
- initialResponse
-
TResponse
包含 nextLink 和元素当前页的初始响应
- options
-
PagingOptions<TResponse>
返回
PagedAsyncIterableIterator<PaginateReturn<TResponse>>
- PagedAsyncIterableIterator 循环访问元素