@azure-rest/iot-device-update 1.0.1-alpha.20241218.1 → 1.1.0-alpha.20241220.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/clientDefinitions.d.ts +51 -51
- package/dist/browser/clientDefinitions.js.map +1 -1
- package/dist/browser/deviceUpdate.d.ts +12 -1
- package/dist/browser/deviceUpdate.d.ts.map +1 -1
- package/dist/browser/deviceUpdate.js +31 -9
- package/dist/browser/deviceUpdate.js.map +1 -1
- package/dist/browser/isUnexpected.d.ts +51 -51
- package/dist/browser/isUnexpected.js +37 -30
- package/dist/browser/isUnexpected.js.map +1 -1
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models.d.ts +11 -10
- package/dist/browser/models.d.ts.map +1 -1
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/outputModels.d.ts +53 -5
- package/dist/browser/outputModels.d.ts.map +1 -1
- package/dist/browser/outputModels.js.map +1 -1
- package/dist/browser/paginateHelper.d.ts +27 -2
- package/dist/browser/paginateHelper.d.ts.map +1 -1
- package/dist/browser/paginateHelper.js +98 -1
- package/dist/browser/paginateHelper.js.map +1 -1
- package/dist/browser/parameters.d.ts +7 -5
- package/dist/browser/parameters.d.ts.map +1 -1
- package/dist/browser/parameters.js.map +1 -1
- package/dist/browser/pollingHelper.d.ts +67 -2
- package/dist/browser/pollingHelper.d.ts.map +1 -1
- package/dist/browser/pollingHelper.js +65 -9
- package/dist/browser/pollingHelper.js.map +1 -1
- package/dist/browser/responses.d.ts +50 -62
- package/dist/browser/responses.d.ts.map +1 -1
- package/dist/browser/responses.js.map +1 -1
- package/dist/commonjs/clientDefinitions.d.ts +51 -51
- package/dist/commonjs/clientDefinitions.js.map +1 -1
- package/dist/commonjs/deviceUpdate.d.ts +12 -1
- package/dist/commonjs/deviceUpdate.d.ts.map +1 -1
- package/dist/commonjs/deviceUpdate.js +31 -9
- package/dist/commonjs/deviceUpdate.js.map +1 -1
- package/dist/commonjs/isUnexpected.d.ts +51 -51
- package/dist/commonjs/isUnexpected.js +37 -30
- package/dist/commonjs/isUnexpected.js.map +1 -1
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models.d.ts +11 -10
- package/dist/commonjs/models.d.ts.map +1 -1
- package/dist/commonjs/models.js.map +1 -1
- package/dist/commonjs/outputModels.d.ts +53 -5
- package/dist/commonjs/outputModels.d.ts.map +1 -1
- package/dist/commonjs/outputModels.js.map +1 -1
- package/dist/commonjs/paginateHelper.d.ts +27 -2
- package/dist/commonjs/paginateHelper.d.ts.map +1 -1
- package/dist/commonjs/paginateHelper.js +99 -2
- package/dist/commonjs/paginateHelper.js.map +1 -1
- package/dist/commonjs/parameters.d.ts +7 -5
- package/dist/commonjs/parameters.d.ts.map +1 -1
- package/dist/commonjs/parameters.js.map +1 -1
- package/dist/commonjs/pollingHelper.d.ts +67 -2
- package/dist/commonjs/pollingHelper.d.ts.map +1 -1
- package/dist/commonjs/pollingHelper.js +64 -8
- package/dist/commonjs/pollingHelper.js.map +1 -1
- package/dist/commonjs/responses.d.ts +50 -62
- package/dist/commonjs/responses.d.ts.map +1 -1
- package/dist/commonjs/responses.js.map +1 -1
- package/dist/esm/clientDefinitions.d.ts +51 -51
- package/dist/esm/clientDefinitions.js.map +1 -1
- package/dist/esm/deviceUpdate.d.ts +12 -1
- package/dist/esm/deviceUpdate.d.ts.map +1 -1
- package/dist/esm/deviceUpdate.js +31 -9
- package/dist/esm/deviceUpdate.js.map +1 -1
- package/dist/esm/isUnexpected.d.ts +51 -51
- package/dist/esm/isUnexpected.js +37 -30
- package/dist/esm/isUnexpected.js.map +1 -1
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models.d.ts +11 -10
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/outputModels.d.ts +53 -5
- package/dist/esm/outputModels.d.ts.map +1 -1
- package/dist/esm/outputModels.js.map +1 -1
- package/dist/esm/paginateHelper.d.ts +27 -2
- package/dist/esm/paginateHelper.d.ts.map +1 -1
- package/dist/esm/paginateHelper.js +98 -1
- package/dist/esm/paginateHelper.js.map +1 -1
- package/dist/esm/parameters.d.ts +7 -5
- package/dist/esm/parameters.d.ts.map +1 -1
- package/dist/esm/parameters.js.map +1 -1
- package/dist/esm/pollingHelper.d.ts +67 -2
- package/dist/esm/pollingHelper.d.ts.map +1 -1
- package/dist/esm/pollingHelper.js +65 -9
- package/dist/esm/pollingHelper.js.map +1 -1
- package/dist/esm/responses.d.ts +50 -62
- package/dist/esm/responses.d.ts.map +1 -1
- package/dist/esm/responses.js.map +1 -1
- package/dist/react-native/clientDefinitions.d.ts +51 -51
- package/dist/react-native/clientDefinitions.js.map +1 -1
- package/dist/react-native/deviceUpdate.d.ts +12 -1
- package/dist/react-native/deviceUpdate.d.ts.map +1 -1
- package/dist/react-native/deviceUpdate.js +31 -9
- package/dist/react-native/deviceUpdate.js.map +1 -1
- package/dist/react-native/isUnexpected.d.ts +51 -51
- package/dist/react-native/isUnexpected.js +37 -30
- package/dist/react-native/isUnexpected.js.map +1 -1
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models.d.ts +11 -10
- package/dist/react-native/models.d.ts.map +1 -1
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/outputModels.d.ts +53 -5
- package/dist/react-native/outputModels.d.ts.map +1 -1
- package/dist/react-native/outputModels.js.map +1 -1
- package/dist/react-native/paginateHelper.d.ts +27 -2
- package/dist/react-native/paginateHelper.d.ts.map +1 -1
- package/dist/react-native/paginateHelper.js +98 -1
- package/dist/react-native/paginateHelper.js.map +1 -1
- package/dist/react-native/parameters.d.ts +7 -5
- package/dist/react-native/parameters.d.ts.map +1 -1
- package/dist/react-native/parameters.js.map +1 -1
- package/dist/react-native/pollingHelper.d.ts +67 -2
- package/dist/react-native/pollingHelper.d.ts.map +1 -1
- package/dist/react-native/pollingHelper.js +65 -9
- package/dist/react-native/pollingHelper.js.map +1 -1
- package/dist/react-native/responses.d.ts +50 -62
- package/dist/react-native/responses.d.ts.map +1 -1
- package/dist/react-native/responses.js.map +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n DeviceUpdateListUpdatesParameters,\n DeviceUpdateImportUpdateParameters,\n DeviceUpdateGetUpdateParameters,\n DeviceUpdateDeleteUpdateParameters,\n DeviceUpdateListProvidersParameters,\n DeviceUpdateListNamesParameters,\n DeviceUpdateListVersionsParameters,\n DeviceUpdateListFilesParameters,\n DeviceUpdateGetFileParameters,\n DeviceUpdateListOperationStatusesParameters,\n DeviceUpdateGetOperationStatusParameters,\n DeviceManagementListDeviceClassesParameters,\n DeviceManagementGetDeviceClassParameters,\n DeviceManagementUpdateDeviceClassParameters,\n DeviceManagementDeleteDeviceClassParameters,\n DeviceManagementListInstallableUpdatesForDeviceClassParameters,\n DeviceManagementListDevicesParameters,\n DeviceManagementImportDevicesParameters,\n DeviceManagementGetDeviceParameters,\n DeviceManagementGetDeviceModuleParameters,\n DeviceManagementGetUpdateComplianceParameters,\n DeviceManagementListGroupsParameters,\n DeviceManagementGetGroupParameters,\n DeviceManagementDeleteGroupParameters,\n DeviceManagementGetUpdateComplianceForGroupParameters,\n DeviceManagementListBestUpdatesForGroupParameters,\n DeviceManagementListDeploymentsForGroupParameters,\n DeviceManagementGetDeploymentParameters,\n DeviceManagementCreateOrUpdateDeploymentParameters,\n DeviceManagementDeleteDeploymentParameters,\n DeviceManagementGetDeploymentStatusParameters,\n DeviceManagementListDeviceClassSubgroupsForGroupParameters,\n DeviceManagementGetDeviceClassSubgroupParameters,\n DeviceManagementDeleteDeviceClassSubgroupParameters,\n DeviceManagementGetDeviceClassSubgroupUpdateComplianceParameters,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroupParameters,\n DeviceManagementListDeploymentsForDeviceClassSubgroupParameters,\n DeviceManagementGetDeploymentForDeviceClassSubgroupParameters,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroupParameters,\n DeviceManagementStopDeploymentParameters,\n DeviceManagementRetryDeploymentParameters,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatusParameters,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentParameters,\n DeviceManagementGetOperationStatusParameters,\n DeviceManagementListOperationStatusesParameters,\n DeviceManagementStartLogCollectionParameters,\n DeviceManagementGetLogCollectionParameters,\n DeviceManagementListLogCollectionsParameters,\n DeviceManagementGetLogCollectionDetailedStatusParameters,\n DeviceManagementListHealthOfDevicesParameters,\n} from \"./parameters.js\";\nimport type {\n DeviceUpdateListUpdates200Response,\n DeviceUpdateListUpdatesdefaultResponse,\n DeviceUpdateImportUpdate200Response,\n DeviceUpdateImportUpdate202Response,\n DeviceUpdateImportUpdatedefaultResponse,\n DeviceUpdateGetUpdate200Response,\n DeviceUpdateGetUpdate304Response,\n DeviceUpdateGetUpdatedefaultResponse,\n DeviceUpdateDeleteUpdate202Response,\n DeviceUpdateDeleteUpdatedefaultResponse,\n DeviceUpdateListProviders200Response,\n DeviceUpdateListProvidersdefaultResponse,\n DeviceUpdateListNames200Response,\n DeviceUpdateListNamesdefaultResponse,\n DeviceUpdateListVersions200Response,\n DeviceUpdateListVersionsdefaultResponse,\n DeviceUpdateListFiles200Response,\n DeviceUpdateListFilesdefaultResponse,\n DeviceUpdateGetFile200Response,\n DeviceUpdateGetFile304Response,\n DeviceUpdateGetFiledefaultResponse,\n DeviceUpdateListOperationStatuses200Response,\n DeviceUpdateListOperationStatusesdefaultResponse,\n DeviceUpdateGetOperationStatus200Response,\n DeviceUpdateGetOperationStatus304Response,\n DeviceUpdateGetOperationStatusdefaultResponse,\n DeviceManagementListDeviceClasses200Response,\n DeviceManagementListDeviceClassesdefaultResponse,\n DeviceManagementGetDeviceClass200Response,\n DeviceManagementGetDeviceClassdefaultResponse,\n DeviceManagementUpdateDeviceClass200Response,\n DeviceManagementUpdateDeviceClassdefaultResponse,\n DeviceManagementDeleteDeviceClass204Response,\n DeviceManagementDeleteDeviceClassdefaultResponse,\n DeviceManagementListInstallableUpdatesForDeviceClass200Response,\n DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse,\n DeviceManagementListDevices200Response,\n DeviceManagementListDevicesdefaultResponse,\n DeviceManagementImportDevices202Response,\n DeviceManagementImportDevicesdefaultResponse,\n DeviceManagementGetDevice200Response,\n DeviceManagementGetDevicedefaultResponse,\n DeviceManagementGetDeviceModule200Response,\n DeviceManagementGetDeviceModuledefaultResponse,\n DeviceManagementGetUpdateCompliance200Response,\n DeviceManagementGetUpdateCompliancedefaultResponse,\n DeviceManagementListGroups200Response,\n DeviceManagementListGroupsdefaultResponse,\n DeviceManagementGetGroup200Response,\n DeviceManagementGetGroupdefaultResponse,\n DeviceManagementDeleteGroup204Response,\n DeviceManagementDeleteGroupdefaultResponse,\n DeviceManagementGetUpdateComplianceForGroup200Response,\n DeviceManagementGetUpdateComplianceForGroupdefaultResponse,\n DeviceManagementListBestUpdatesForGroup200Response,\n DeviceManagementListBestUpdatesForGroupdefaultResponse,\n DeviceManagementListDeploymentsForGroup200Response,\n DeviceManagementListDeploymentsForGroupdefaultResponse,\n DeviceManagementGetDeployment200Response,\n DeviceManagementGetDeploymentdefaultResponse,\n DeviceManagementCreateOrUpdateDeployment200Response,\n DeviceManagementCreateOrUpdateDeploymentdefaultResponse,\n DeviceManagementDeleteDeployment204Response,\n DeviceManagementDeleteDeploymentdefaultResponse,\n DeviceManagementGetDeploymentStatus200Response,\n DeviceManagementGetDeploymentStatusdefaultResponse,\n DeviceManagementListDeviceClassSubgroupsForGroup200Response,\n DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse,\n DeviceManagementGetDeviceClassSubgroup200Response,\n DeviceManagementGetDeviceClassSubgroupdefaultResponse,\n DeviceManagementDeleteDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeviceClassSubgroupdefaultResponse,\n DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response,\n DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse,\n DeviceManagementListDeploymentsForDeviceClassSubgroup200Response,\n DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse,\n DeviceManagementGetDeploymentForDeviceClassSubgroup200Response,\n DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse,\n DeviceManagementStopDeployment200Response,\n DeviceManagementStopDeploymentdefaultResponse,\n DeviceManagementRetryDeployment200Response,\n DeviceManagementRetryDeploymentdefaultResponse,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse,\n DeviceManagementGetOperationStatus200Response,\n DeviceManagementGetOperationStatus304Response,\n DeviceManagementGetOperationStatusdefaultResponse,\n DeviceManagementListOperationStatuses200Response,\n DeviceManagementListOperationStatusesdefaultResponse,\n DeviceManagementStartLogCollection201Response,\n DeviceManagementStartLogCollectiondefaultResponse,\n DeviceManagementGetLogCollection200Response,\n DeviceManagementGetLogCollectiondefaultResponse,\n DeviceManagementListLogCollections200Response,\n DeviceManagementListLogCollectionsdefaultResponse,\n DeviceManagementGetLogCollectionDetailedStatus200Response,\n DeviceManagementGetLogCollectionDetailedStatusdefaultResponse,\n DeviceManagementListHealthOfDevices200Response,\n DeviceManagementListHealthOfDevicesdefaultResponse,\n} from \"./responses.js\";\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface DeviceUpdateListUpdates {\n /** Get a list of all updates that have been imported to Device Update for IoT Hub. */\n get(\n options?: DeviceUpdateListUpdatesParameters,\n ): StreamableMethod<DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesdefaultResponse>;\n}\n\nexport interface DeviceUpdateImportUpdate {\n /** Import new update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\n post(\n options: DeviceUpdateImportUpdateParameters,\n ): StreamableMethod<\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdatedefaultResponse\n >;\n}\n\nexport interface DeviceUpdateGetUpdate {\n /** Get a specific update version. */\n get(\n options?: DeviceUpdateGetUpdateParameters,\n ): StreamableMethod<\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdatedefaultResponse\n >;\n /** Delete a specific update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\n delete(\n options?: DeviceUpdateDeleteUpdateParameters,\n ): StreamableMethod<\n DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdatedefaultResponse\n >;\n}\n\nexport interface DeviceUpdateListProviders {\n /** Get a list of all update providers that have been imported to Device Update for IoT Hub. */\n get(\n options?: DeviceUpdateListProvidersParameters,\n ): StreamableMethod<\n DeviceUpdateListProviders200Response | DeviceUpdateListProvidersdefaultResponse\n >;\n}\n\nexport interface DeviceUpdateListNames {\n /** Get a list of all update names that match the specified provider. */\n get(\n options?: DeviceUpdateListNamesParameters,\n ): StreamableMethod<DeviceUpdateListNames200Response | DeviceUpdateListNamesdefaultResponse>;\n}\n\nexport interface DeviceUpdateListVersions {\n /** Get a list of all update versions that match the specified provider and name. */\n get(\n options?: DeviceUpdateListVersionsParameters,\n ): StreamableMethod<\n DeviceUpdateListVersions200Response | DeviceUpdateListVersionsdefaultResponse\n >;\n}\n\nexport interface DeviceUpdateListFiles {\n /** Get a list of all update file identifiers for the specified version. */\n get(\n options?: DeviceUpdateListFilesParameters,\n ): StreamableMethod<DeviceUpdateListFiles200Response | DeviceUpdateListFilesdefaultResponse>;\n}\n\nexport interface DeviceUpdateGetFile {\n /** Get a specific update file from the version. */\n get(\n options?: DeviceUpdateGetFileParameters,\n ): StreamableMethod<\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFiledefaultResponse\n >;\n}\n\nexport interface DeviceUpdateListOperationStatuses {\n /** Get a list of all import update operations. Completed operations are kept for 7 days before auto-deleted. Delete operations are not returned by this API version. */\n get(\n options?: DeviceUpdateListOperationStatusesParameters,\n ): StreamableMethod<\n DeviceUpdateListOperationStatuses200Response | DeviceUpdateListOperationStatusesdefaultResponse\n >;\n}\n\nexport interface DeviceUpdateGetOperationStatus {\n /** Retrieve operation status. */\n get(\n options?: DeviceUpdateGetOperationStatusParameters,\n ): StreamableMethod<\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusdefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDeviceClasses {\n /** Gets a list of all device classes (sets of devices compatible with the same updates based on the model Id and compat properties reported in the Device Update PnP interface in IoT Hub) for all devices connected to Device Update for IoT Hub. */\n get(\n options?: DeviceManagementListDeviceClassesParameters,\n ): StreamableMethod<\n DeviceManagementListDeviceClasses200Response | DeviceManagementListDeviceClassesdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeviceClass {\n /** Gets the properties of a device class. */\n get(\n options?: DeviceManagementGetDeviceClassParameters,\n ): StreamableMethod<\n DeviceManagementGetDeviceClass200Response | DeviceManagementGetDeviceClassdefaultResponse\n >;\n /** Update device class details. */\n patch(\n options: DeviceManagementUpdateDeviceClassParameters,\n ): StreamableMethod<\n DeviceManagementUpdateDeviceClass200Response | DeviceManagementUpdateDeviceClassdefaultResponse\n >;\n /** Deletes a device class. Device classes are created automatically when Device Update-enabled devices are connected to the hub but are not automatically cleaned up since they are referenced by DeviceClassSubgroups. If the user has deleted all DeviceClassSubgroups for a device class they can also delete the device class to remove the records from the system and to stop checking the compatibility of this device class with new updates. If a device is ever reconnected for this device class it will be re-created. */\n delete(\n options?: DeviceManagementDeleteDeviceClassParameters,\n ): StreamableMethod<\n DeviceManagementDeleteDeviceClass204Response | DeviceManagementDeleteDeviceClassdefaultResponse\n >;\n}\n\nexport interface DeviceManagementListInstallableUpdatesForDeviceClass {\n /** Gets a list of installable updates for a device class. */\n get(\n options?: DeviceManagementListInstallableUpdatesForDeviceClassParameters,\n ): StreamableMethod<\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDevices {\n /** Gets a list of devices connected to Device Update for IoT Hub. */\n get(\n options?: DeviceManagementListDevicesParameters,\n ): StreamableMethod<\n DeviceManagementListDevices200Response | DeviceManagementListDevicesdefaultResponse\n >;\n}\n\nexport interface DeviceManagementImportDevices {\n /** Import existing devices from IoT Hub. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\n post(\n options: DeviceManagementImportDevicesParameters,\n ): StreamableMethod<\n DeviceManagementImportDevices202Response | DeviceManagementImportDevicesdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDevice {\n /** Gets the device properties and latest deployment status for a device connected to Device Update for IoT Hub. */\n get(\n options?: DeviceManagementGetDeviceParameters,\n ): StreamableMethod<\n DeviceManagementGetDevice200Response | DeviceManagementGetDevicedefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeviceModule {\n /** Gets the device module properties and latest deployment status for a device module connected to Device Update for IoT Hub. */\n get(\n options?: DeviceManagementGetDeviceModuleParameters,\n ): StreamableMethod<\n DeviceManagementGetDeviceModule200Response | DeviceManagementGetDeviceModuledefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetUpdateCompliance {\n /** Gets the breakdown of how many devices are on their latest update, have new updates available, or are in progress receiving new updates. */\n get(\n options?: DeviceManagementGetUpdateComplianceParameters,\n ): StreamableMethod<\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateCompliancedefaultResponse\n >;\n}\n\nexport interface DeviceManagementListGroups {\n /** Gets a list of all device groups. The $default group will always be returned first. */\n get(\n options?: DeviceManagementListGroupsParameters,\n ): StreamableMethod<\n DeviceManagementListGroups200Response | DeviceManagementListGroupsdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetGroup {\n /** Gets the device group properties. */\n get(\n options?: DeviceManagementGetGroupParameters,\n ): StreamableMethod<\n DeviceManagementGetGroup200Response | DeviceManagementGetGroupdefaultResponse\n >;\n /** Deletes a device group. This group is automatically created when a Device Update-enabled device is connected to the hub and reports its properties. Groups, subgroups, and deployments are not automatically cleaned up but are retained for history purposes. Users can call this method to delete a group if they do not need to retain any of the history of the group and no longer need it. If a device is ever connected again for this group after the group was deleted it will be automatically re-created but there will be no history. */\n delete(\n options?: DeviceManagementDeleteGroupParameters,\n ): StreamableMethod<\n DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetUpdateComplianceForGroup {\n /** Get device group update compliance information such as how many devices are on their latest update, how many need new updates, and how many are in progress on receiving a new update. */\n get(\n options?: DeviceManagementGetUpdateComplianceForGroupParameters,\n ): StreamableMethod<\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse\n >;\n}\n\nexport interface DeviceManagementListBestUpdatesForGroup {\n /** Get the best available updates for a device group and a count of how many devices need each update. */\n get(\n options?: DeviceManagementListBestUpdatesForGroupParameters,\n ): StreamableMethod<\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupdefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDeploymentsForGroup {\n /** Gets a list of deployments for a device group. */\n get(\n options?: DeviceManagementListDeploymentsForGroupParameters,\n ): StreamableMethod<\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeployment {\n /** Gets the deployment properties. */\n get(\n options?: DeviceManagementGetDeploymentParameters,\n ): StreamableMethod<\n DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentdefaultResponse\n >;\n /** Creates or updates a deployment. */\n put(\n options: DeviceManagementCreateOrUpdateDeploymentParameters,\n ): StreamableMethod<\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse\n >;\n /** Deletes a deployment. */\n delete(\n options?: DeviceManagementDeleteDeploymentParameters,\n ): StreamableMethod<\n DeviceManagementDeleteDeployment204Response | DeviceManagementDeleteDeploymentdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeploymentStatus {\n /** Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed. */\n get(\n options?: DeviceManagementGetDeploymentStatusParameters,\n ): StreamableMethod<\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusdefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDeviceClassSubgroupsForGroup {\n /** Get the device class subgroups for the group. A device class subgroup is the set of devices within the group that share the same device class. All devices within the same device class are compatible with the same updates. */\n get(\n options?: DeviceManagementListDeviceClassSubgroupsForGroupParameters,\n ): StreamableMethod<\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeviceClassSubgroup {\n /** Gets device class subgroup details. A device class subgroup is the set of devices within the group that share the same device class. All devices within the same device class are compatible with the same updates. */\n get(\n options?: DeviceManagementGetDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse\n >;\n /** Deletes a device class subgroup. This subgroup is automatically created when a Device Update-enabled device is connected to the hub and reports its properties. Groups, subgroups, and deployments are not automatically cleaned up but are retained for history purposes. Users can call this method to delete a subgroup if they do not need to retain any of the history of the subgroup and no longer need it. If a device is ever connected again for this subgroup after the subgroup was deleted it will be automatically re-created but there will be no history. */\n delete(\n options?: DeviceManagementDeleteDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeviceClassSubgroupUpdateCompliance {\n /** Get device class subgroup update compliance information such as how many devices are on their latest update, how many need new updates, and how many are in progress on receiving a new update. */\n get(\n options?: DeviceManagementGetDeviceClassSubgroupUpdateComplianceParameters,\n ): StreamableMethod<\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetBestUpdatesForDeviceClassSubgroup {\n /** Get the best available update for a device class subgroup and a count of how many devices need this update. */\n get(\n options?: DeviceManagementGetBestUpdatesForDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDeploymentsForDeviceClassSubgroup {\n /** Gets a list of deployments for a device class subgroup. */\n get(\n options?: DeviceManagementListDeploymentsForDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeploymentForDeviceClassSubgroup {\n /** Gets the deployment properties. */\n get(\n options?: DeviceManagementGetDeploymentForDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse\n >;\n /** Deletes a device class subgroup deployment. */\n delete(\n options?: DeviceManagementDeleteDeploymentForDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse\n >;\n}\n\nexport interface DeviceManagementStopDeployment {\n /** Stops a deployment. */\n post(\n options?: DeviceManagementStopDeploymentParameters,\n ): StreamableMethod<\n DeviceManagementStopDeployment200Response | DeviceManagementStopDeploymentdefaultResponse\n >;\n}\n\nexport interface DeviceManagementRetryDeployment {\n /** Retries a deployment with failed devices. */\n post(\n options?: DeviceManagementRetryDeploymentParameters,\n ): StreamableMethod<\n DeviceManagementRetryDeployment200Response | DeviceManagementRetryDeploymentdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeviceClassSubgroupDeploymentStatus {\n /** Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed. */\n get(\n options?: DeviceManagementGetDeviceClassSubgroupDeploymentStatusParameters,\n ): StreamableMethod<\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment {\n /** Gets a list of devices in a deployment along with their state. Useful for getting a list of failed devices. */\n get(\n options?: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentParameters,\n ): StreamableMethod<\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetOperationStatus {\n /** Retrieve operation status. */\n get(\n options?: DeviceManagementGetOperationStatusParameters,\n ): StreamableMethod<\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusdefaultResponse\n >;\n}\n\nexport interface DeviceManagementListOperationStatuses {\n /** Get a list of all device import operations. Completed operations are kept for 7 days before auto-deleted. */\n get(\n options?: DeviceManagementListOperationStatusesParameters,\n ): StreamableMethod<\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesdefaultResponse\n >;\n}\n\nexport interface DeviceManagementStartLogCollection {\n /** Start the device diagnostics log collection on specified devices. */\n put(\n options: DeviceManagementStartLogCollectionParameters,\n ): StreamableMethod<\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectiondefaultResponse\n >;\n /** Get the device diagnostics log collection */\n get(\n options?: DeviceManagementGetLogCollectionParameters,\n ): StreamableMethod<\n DeviceManagementGetLogCollection200Response | DeviceManagementGetLogCollectiondefaultResponse\n >;\n}\n\nexport interface DeviceManagementListLogCollections {\n /** Get all device diagnostics log collections */\n get(\n options?: DeviceManagementListLogCollectionsParameters,\n ): StreamableMethod<\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsdefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetLogCollectionDetailedStatus {\n /** Get log collection with detailed status */\n get(\n options?: DeviceManagementGetLogCollectionDetailedStatusParameters,\n ): StreamableMethod<\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse\n >;\n}\n\nexport interface DeviceManagementListHealthOfDevices {\n /** Get list of device health */\n get(\n options: DeviceManagementListHealthOfDevicesParameters,\n ): StreamableMethod<\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesdefaultResponse\n >;\n}\n\nexport interface Routes {\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates' has methods for the following verbs: get */\n (path: \"/deviceUpdate/{instanceId}/updates\", instanceId: string): DeviceUpdateListUpdates;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates:import' has methods for the following verbs: post */\n (path: \"/deviceUpdate/{instanceId}/updates:import\", instanceId: string): DeviceUpdateImportUpdate;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers/\\{provider\\}/names/\\{name\\}/versions/\\{version\\}' has methods for the following verbs: get, delete */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\",\n instanceId: string,\n provider: string,\n name: string,\n version: string,\n ): DeviceUpdateGetUpdate;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers\",\n instanceId: string,\n ): DeviceUpdateListProviders;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers/\\{provider\\}/names' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers/{provider}/names\",\n instanceId: string,\n provider: string,\n ): DeviceUpdateListNames;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers/\\{provider\\}/names/\\{name\\}/versions' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions\",\n instanceId: string,\n provider: string,\n name: string,\n ): DeviceUpdateListVersions;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers/\\{provider\\}/names/\\{name\\}/versions/\\{version\\}/files' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files\",\n instanceId: string,\n provider: string,\n name: string,\n version: string,\n ): DeviceUpdateListFiles;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers/\\{provider\\}/names/\\{name\\}/versions/\\{version\\}/files/\\{fileId\\}' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files/{fileId}\",\n instanceId: string,\n provider: string,\n name: string,\n version: string,\n fileId: string,\n ): DeviceUpdateGetFile;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/operations' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/operations\",\n instanceId: string,\n ): DeviceUpdateListOperationStatuses;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/operations/\\{operationId\\}' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/operations/{operationId}\",\n instanceId: string,\n operationId: string,\n ): DeviceUpdateGetOperationStatus;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceClasses' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceClasses\",\n instanceId: string,\n ): DeviceManagementListDeviceClasses;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceClasses/\\{deviceClassId\\}' has methods for the following verbs: get, patch, delete */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\",\n instanceId: string,\n deviceClassId: string,\n ): DeviceManagementGetDeviceClass;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceClasses/\\{deviceClassId\\}/installableUpdates' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates\",\n instanceId: string,\n deviceClassId: string,\n ): DeviceManagementListInstallableUpdatesForDeviceClass;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/devices' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/devices\",\n instanceId: string,\n ): DeviceManagementListDevices;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/devices:import' has methods for the following verbs: post */\n (\n path: \"/deviceUpdate/{instanceId}/management/devices:import\",\n instanceId: string,\n ): DeviceManagementImportDevices;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/devices/\\{deviceId\\}' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/devices/{deviceId}\",\n instanceId: string,\n deviceId: string,\n ): DeviceManagementGetDevice;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/devices/\\{deviceId\\}/modules/\\{moduleId\\}' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}\",\n instanceId: string,\n deviceId: string,\n moduleId: string,\n ): DeviceManagementGetDeviceModule;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/updateCompliance' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/updateCompliance\",\n instanceId: string,\n ): DeviceManagementGetUpdateCompliance;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups\",\n instanceId: string,\n ): DeviceManagementListGroups;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}' has methods for the following verbs: get, delete */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}\",\n instanceId: string,\n groupId: string,\n ): DeviceManagementGetGroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/updateCompliance' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance\",\n instanceId: string,\n groupId: string,\n ): DeviceManagementGetUpdateComplianceForGroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/bestUpdates' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates\",\n instanceId: string,\n groupId: string,\n ): DeviceManagementListBestUpdatesForGroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deployments' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments\",\n instanceId: string,\n groupId: string,\n ): DeviceManagementListDeploymentsForGroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deployments/\\{deploymentId\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\",\n instanceId: string,\n groupId: string,\n deploymentId: string,\n ): DeviceManagementGetDeployment;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deployments/\\{deploymentId\\}/status' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status\",\n instanceId: string,\n groupId: string,\n deploymentId: string,\n ): DeviceManagementGetDeploymentStatus;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups\",\n instanceId: string,\n groupId: string,\n ): DeviceManagementListDeviceClassSubgroupsForGroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}' has methods for the following verbs: get, delete */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n ): DeviceManagementGetDeviceClassSubgroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/updateCompliance' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n ): DeviceManagementGetDeviceClassSubgroupUpdateCompliance;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/bestUpdates' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n ): DeviceManagementGetBestUpdatesForDeviceClassSubgroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n ): DeviceManagementListDeploymentsForDeviceClassSubgroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments/\\{deploymentId\\}' has methods for the following verbs: get, delete */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n deploymentId: string,\n ): DeviceManagementGetDeploymentForDeviceClassSubgroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments/\\{deploymentId\\}:cancel' has methods for the following verbs: post */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:cancel\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n deploymentId: string,\n ): DeviceManagementStopDeployment;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments/\\{deploymentId\\}:retry' has methods for the following verbs: post */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:retry\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n deploymentId: string,\n ): DeviceManagementRetryDeployment;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments/\\{deploymentId\\}/status' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/status\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n deploymentId: string,\n ): DeviceManagementGetDeviceClassSubgroupDeploymentStatus;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments/\\{deploymentId\\}/devicestates' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/devicestates\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n deploymentId: string,\n ): DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/operations/\\{operationId\\}' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/operations/{operationId}\",\n instanceId: string,\n operationId: string,\n ): DeviceManagementGetOperationStatus;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/operations' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/operations\",\n instanceId: string,\n ): DeviceManagementListOperationStatuses;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceDiagnostics/logCollections/\\{operationId\\}' has methods for the following verbs: put, get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\",\n instanceId: string,\n operationId: string,\n ): DeviceManagementStartLogCollection;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceDiagnostics/logCollections' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections\",\n instanceId: string,\n ): DeviceManagementListLogCollections;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceDiagnostics/logCollections/\\{operationId\\}/detailedStatus' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus\",\n instanceId: string,\n operationId: string,\n ): DeviceManagementGetLogCollectionDetailedStatus;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceDiagnostics/deviceHealth' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceDiagnostics/deviceHealth\",\n instanceId: string,\n ): DeviceManagementListHealthOfDevices;\n}\n\nexport type DeviceUpdateClient = Client & {\n path: Routes;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"clientDefinitions.js","sourceRoot":"","sources":["../../src/clientDefinitions.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n DeviceUpdateListUpdatesParameters,\n DeviceUpdateImportUpdateParameters,\n DeviceUpdateGetUpdateParameters,\n DeviceUpdateDeleteUpdateParameters,\n DeviceUpdateListProvidersParameters,\n DeviceUpdateListNamesParameters,\n DeviceUpdateListVersionsParameters,\n DeviceUpdateListFilesParameters,\n DeviceUpdateGetFileParameters,\n DeviceUpdateListOperationStatusesParameters,\n DeviceUpdateGetOperationStatusParameters,\n DeviceManagementListDeviceClassesParameters,\n DeviceManagementGetDeviceClassParameters,\n DeviceManagementUpdateDeviceClassParameters,\n DeviceManagementDeleteDeviceClassParameters,\n DeviceManagementListInstallableUpdatesForDeviceClassParameters,\n DeviceManagementListDevicesParameters,\n DeviceManagementImportDevicesParameters,\n DeviceManagementGetDeviceParameters,\n DeviceManagementGetDeviceModuleParameters,\n DeviceManagementGetUpdateComplianceParameters,\n DeviceManagementListGroupsParameters,\n DeviceManagementGetGroupParameters,\n DeviceManagementDeleteGroupParameters,\n DeviceManagementGetUpdateComplianceForGroupParameters,\n DeviceManagementListBestUpdatesForGroupParameters,\n DeviceManagementListDeploymentsForGroupParameters,\n DeviceManagementGetDeploymentParameters,\n DeviceManagementCreateOrUpdateDeploymentParameters,\n DeviceManagementDeleteDeploymentParameters,\n DeviceManagementGetDeploymentStatusParameters,\n DeviceManagementListDeviceClassSubgroupsForGroupParameters,\n DeviceManagementGetDeviceClassSubgroupParameters,\n DeviceManagementDeleteDeviceClassSubgroupParameters,\n DeviceManagementGetDeviceClassSubgroupUpdateComplianceParameters,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroupParameters,\n DeviceManagementListDeploymentsForDeviceClassSubgroupParameters,\n DeviceManagementGetDeploymentForDeviceClassSubgroupParameters,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroupParameters,\n DeviceManagementStopDeploymentParameters,\n DeviceManagementRetryDeploymentParameters,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatusParameters,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentParameters,\n DeviceManagementGetOperationStatusParameters,\n DeviceManagementListOperationStatusesParameters,\n DeviceManagementStartLogCollectionParameters,\n DeviceManagementGetLogCollectionParameters,\n DeviceManagementListLogCollectionsParameters,\n DeviceManagementGetLogCollectionDetailedStatusParameters,\n DeviceManagementListHealthOfDevicesParameters,\n} from \"./parameters.js\";\nimport type {\n DeviceUpdateListUpdates200Response,\n DeviceUpdateListUpdatesDefaultResponse,\n DeviceUpdateImportUpdate200Response,\n DeviceUpdateImportUpdate202Response,\n DeviceUpdateImportUpdateDefaultResponse,\n DeviceUpdateGetUpdate200Response,\n DeviceUpdateGetUpdate304Response,\n DeviceUpdateGetUpdateDefaultResponse,\n DeviceUpdateDeleteUpdate202Response,\n DeviceUpdateDeleteUpdateDefaultResponse,\n DeviceUpdateListProviders200Response,\n DeviceUpdateListProvidersDefaultResponse,\n DeviceUpdateListNames200Response,\n DeviceUpdateListNamesDefaultResponse,\n DeviceUpdateListVersions200Response,\n DeviceUpdateListVersionsDefaultResponse,\n DeviceUpdateListFiles200Response,\n DeviceUpdateListFilesDefaultResponse,\n DeviceUpdateGetFile200Response,\n DeviceUpdateGetFile304Response,\n DeviceUpdateGetFileDefaultResponse,\n DeviceUpdateListOperationStatuses200Response,\n DeviceUpdateListOperationStatusesDefaultResponse,\n DeviceUpdateGetOperationStatus200Response,\n DeviceUpdateGetOperationStatus304Response,\n DeviceUpdateGetOperationStatusDefaultResponse,\n DeviceManagementListDeviceClasses200Response,\n DeviceManagementListDeviceClassesDefaultResponse,\n DeviceManagementGetDeviceClass200Response,\n DeviceManagementGetDeviceClassDefaultResponse,\n DeviceManagementUpdateDeviceClass200Response,\n DeviceManagementUpdateDeviceClassDefaultResponse,\n DeviceManagementDeleteDeviceClass204Response,\n DeviceManagementDeleteDeviceClassDefaultResponse,\n DeviceManagementListInstallableUpdatesForDeviceClass200Response,\n DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse,\n DeviceManagementListDevices200Response,\n DeviceManagementListDevicesDefaultResponse,\n DeviceManagementImportDevices202Response,\n DeviceManagementImportDevicesDefaultResponse,\n DeviceManagementGetDevice200Response,\n DeviceManagementGetDeviceDefaultResponse,\n DeviceManagementGetDeviceModule200Response,\n DeviceManagementGetDeviceModuleDefaultResponse,\n DeviceManagementGetUpdateCompliance200Response,\n DeviceManagementGetUpdateComplianceDefaultResponse,\n DeviceManagementListGroups200Response,\n DeviceManagementListGroupsDefaultResponse,\n DeviceManagementGetGroup200Response,\n DeviceManagementGetGroupDefaultResponse,\n DeviceManagementDeleteGroup204Response,\n DeviceManagementDeleteGroupDefaultResponse,\n DeviceManagementGetUpdateComplianceForGroup200Response,\n DeviceManagementGetUpdateComplianceForGroupDefaultResponse,\n DeviceManagementListBestUpdatesForGroup200Response,\n DeviceManagementListBestUpdatesForGroupDefaultResponse,\n DeviceManagementListDeploymentsForGroup200Response,\n DeviceManagementListDeploymentsForGroupDefaultResponse,\n DeviceManagementGetDeployment200Response,\n DeviceManagementGetDeploymentDefaultResponse,\n DeviceManagementCreateOrUpdateDeployment200Response,\n DeviceManagementCreateOrUpdateDeploymentDefaultResponse,\n DeviceManagementDeleteDeployment204Response,\n DeviceManagementDeleteDeploymentDefaultResponse,\n DeviceManagementGetDeploymentStatus200Response,\n DeviceManagementGetDeploymentStatusDefaultResponse,\n DeviceManagementListDeviceClassSubgroupsForGroup200Response,\n DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse,\n DeviceManagementGetDeviceClassSubgroup200Response,\n DeviceManagementGetDeviceClassSubgroupDefaultResponse,\n DeviceManagementDeleteDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeviceClassSubgroupDefaultResponse,\n DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response,\n DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response,\n DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse,\n DeviceManagementListDeploymentsForDeviceClassSubgroup200Response,\n DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse,\n DeviceManagementGetDeploymentForDeviceClassSubgroup200Response,\n DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response,\n DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse,\n DeviceManagementStopDeployment200Response,\n DeviceManagementStopDeploymentDefaultResponse,\n DeviceManagementRetryDeployment200Response,\n DeviceManagementRetryDeploymentDefaultResponse,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response,\n DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response,\n DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse,\n DeviceManagementGetOperationStatus200Response,\n DeviceManagementGetOperationStatus304Response,\n DeviceManagementGetOperationStatusDefaultResponse,\n DeviceManagementListOperationStatuses200Response,\n DeviceManagementListOperationStatusesDefaultResponse,\n DeviceManagementStartLogCollection201Response,\n DeviceManagementStartLogCollectionDefaultResponse,\n DeviceManagementGetLogCollection200Response,\n DeviceManagementGetLogCollectionDefaultResponse,\n DeviceManagementListLogCollections200Response,\n DeviceManagementListLogCollectionsDefaultResponse,\n DeviceManagementGetLogCollectionDetailedStatus200Response,\n DeviceManagementGetLogCollectionDetailedStatusDefaultResponse,\n DeviceManagementListHealthOfDevices200Response,\n DeviceManagementListHealthOfDevicesDefaultResponse,\n} from \"./responses.js\";\nimport type { Client, StreamableMethod } from \"@azure-rest/core-client\";\n\nexport interface DeviceUpdateListUpdates {\n /** Get a list of all updates that have been imported to Device Update for IoT Hub. */\n get(\n options?: DeviceUpdateListUpdatesParameters,\n ): StreamableMethod<DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesDefaultResponse>;\n}\n\nexport interface DeviceUpdateImportUpdate {\n /** Import new update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\n post(\n options: DeviceUpdateImportUpdateParameters,\n ): StreamableMethod<\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdateDefaultResponse\n >;\n}\n\nexport interface DeviceUpdateGetUpdate {\n /** Get a specific update version. */\n get(\n options?: DeviceUpdateGetUpdateParameters,\n ): StreamableMethod<\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdateDefaultResponse\n >;\n /** Delete a specific update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\n delete(\n options?: DeviceUpdateDeleteUpdateParameters,\n ): StreamableMethod<\n DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdateDefaultResponse\n >;\n}\n\nexport interface DeviceUpdateListProviders {\n /** Get a list of all update providers that have been imported to Device Update for IoT Hub. */\n get(\n options?: DeviceUpdateListProvidersParameters,\n ): StreamableMethod<\n DeviceUpdateListProviders200Response | DeviceUpdateListProvidersDefaultResponse\n >;\n}\n\nexport interface DeviceUpdateListNames {\n /** Get a list of all update names that match the specified provider. */\n get(\n options?: DeviceUpdateListNamesParameters,\n ): StreamableMethod<DeviceUpdateListNames200Response | DeviceUpdateListNamesDefaultResponse>;\n}\n\nexport interface DeviceUpdateListVersions {\n /** Get a list of all update versions that match the specified provider and name. */\n get(\n options?: DeviceUpdateListVersionsParameters,\n ): StreamableMethod<\n DeviceUpdateListVersions200Response | DeviceUpdateListVersionsDefaultResponse\n >;\n}\n\nexport interface DeviceUpdateListFiles {\n /** Get a list of all update file identifiers for the specified version. */\n get(\n options?: DeviceUpdateListFilesParameters,\n ): StreamableMethod<DeviceUpdateListFiles200Response | DeviceUpdateListFilesDefaultResponse>;\n}\n\nexport interface DeviceUpdateGetFile {\n /** Get a specific update file from the version. */\n get(\n options?: DeviceUpdateGetFileParameters,\n ): StreamableMethod<\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFileDefaultResponse\n >;\n}\n\nexport interface DeviceUpdateListOperationStatuses {\n /** Get a list of all import update operations. Completed operations are kept for 7 days before auto-deleted. Delete operations are not returned by this API version. */\n get(\n options?: DeviceUpdateListOperationStatusesParameters,\n ): StreamableMethod<\n DeviceUpdateListOperationStatuses200Response | DeviceUpdateListOperationStatusesDefaultResponse\n >;\n}\n\nexport interface DeviceUpdateGetOperationStatus {\n /** Retrieve operation status. */\n get(\n options?: DeviceUpdateGetOperationStatusParameters,\n ): StreamableMethod<\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDeviceClasses {\n /** Gets a list of all device classes (sets of devices compatible with the same updates based on the model Id and compat properties reported in the Device Update PnP interface in IoT Hub) for all devices connected to Device Update for IoT Hub. */\n get(\n options?: DeviceManagementListDeviceClassesParameters,\n ): StreamableMethod<\n DeviceManagementListDeviceClasses200Response | DeviceManagementListDeviceClassesDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeviceClass {\n /** Gets the properties of a device class. */\n get(\n options?: DeviceManagementGetDeviceClassParameters,\n ): StreamableMethod<\n DeviceManagementGetDeviceClass200Response | DeviceManagementGetDeviceClassDefaultResponse\n >;\n /** Update device class details. */\n patch(\n options: DeviceManagementUpdateDeviceClassParameters,\n ): StreamableMethod<\n DeviceManagementUpdateDeviceClass200Response | DeviceManagementUpdateDeviceClassDefaultResponse\n >;\n /** Deletes a device class. Device classes are created automatically when Device Update-enabled devices are connected to the hub but are not automatically cleaned up since they are referenced by DeviceClassSubgroups. If the user has deleted all DeviceClassSubgroups for a device class they can also delete the device class to remove the records from the system and to stop checking the compatibility of this device class with new updates. If a device is ever reconnected for this device class it will be re-created. */\n delete(\n options?: DeviceManagementDeleteDeviceClassParameters,\n ): StreamableMethod<\n DeviceManagementDeleteDeviceClass204Response | DeviceManagementDeleteDeviceClassDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListInstallableUpdatesForDeviceClass {\n /** Gets a list of installable updates for a device class. */\n get(\n options?: DeviceManagementListInstallableUpdatesForDeviceClassParameters,\n ): StreamableMethod<\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDevices {\n /** Gets a list of devices connected to Device Update for IoT Hub. */\n get(\n options?: DeviceManagementListDevicesParameters,\n ): StreamableMethod<\n DeviceManagementListDevices200Response | DeviceManagementListDevicesDefaultResponse\n >;\n}\n\nexport interface DeviceManagementImportDevices {\n /** Import existing devices from IoT Hub. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\n post(\n options: DeviceManagementImportDevicesParameters,\n ): StreamableMethod<\n DeviceManagementImportDevices202Response | DeviceManagementImportDevicesDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDevice {\n /** Gets the device properties and latest deployment status for a device connected to Device Update for IoT Hub. */\n get(\n options?: DeviceManagementGetDeviceParameters,\n ): StreamableMethod<\n DeviceManagementGetDevice200Response | DeviceManagementGetDeviceDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeviceModule {\n /** Gets the device module properties and latest deployment status for a device module connected to Device Update for IoT Hub. */\n get(\n options?: DeviceManagementGetDeviceModuleParameters,\n ): StreamableMethod<\n DeviceManagementGetDeviceModule200Response | DeviceManagementGetDeviceModuleDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetUpdateCompliance {\n /** Gets the breakdown of how many devices are on their latest update, have new updates available, or are in progress receiving new updates. */\n get(\n options?: DeviceManagementGetUpdateComplianceParameters,\n ): StreamableMethod<\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateComplianceDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListGroups {\n /** Gets a list of all device groups. The $default group will always be returned first. */\n get(\n options?: DeviceManagementListGroupsParameters,\n ): StreamableMethod<\n DeviceManagementListGroups200Response | DeviceManagementListGroupsDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetGroup {\n /** Gets the device group properties. */\n get(\n options?: DeviceManagementGetGroupParameters,\n ): StreamableMethod<\n DeviceManagementGetGroup200Response | DeviceManagementGetGroupDefaultResponse\n >;\n /** Deletes a device group. This group is automatically created when a Device Update-enabled device is connected to the hub and reports its properties. Groups, subgroups, and deployments are not automatically cleaned up but are retained for history purposes. Users can call this method to delete a group if they do not need to retain any of the history of the group and no longer need it. If a device is ever connected again for this group after the group was deleted it will be automatically re-created but there will be no history. */\n delete(\n options?: DeviceManagementDeleteGroupParameters,\n ): StreamableMethod<\n DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetUpdateComplianceForGroup {\n /** Get device group update compliance information such as how many devices are on their latest update, how many need new updates, and how many are in progress on receiving a new update. */\n get(\n options?: DeviceManagementGetUpdateComplianceForGroupParameters,\n ): StreamableMethod<\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListBestUpdatesForGroup {\n /** Get the best available updates for a device group and a count of how many devices need each update. */\n get(\n options?: DeviceManagementListBestUpdatesForGroupParameters,\n ): StreamableMethod<\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDeploymentsForGroup {\n /** Gets a list of deployments for a device group. */\n get(\n options?: DeviceManagementListDeploymentsForGroupParameters,\n ): StreamableMethod<\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeployment {\n /** Gets the deployment properties. */\n get(\n options?: DeviceManagementGetDeploymentParameters,\n ): StreamableMethod<\n DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentDefaultResponse\n >;\n /** Creates or updates a deployment. */\n put(\n options: DeviceManagementCreateOrUpdateDeploymentParameters,\n ): StreamableMethod<\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentDefaultResponse\n >;\n /** Deletes a deployment. */\n delete(\n options?: DeviceManagementDeleteDeploymentParameters,\n ): StreamableMethod<\n DeviceManagementDeleteDeployment204Response | DeviceManagementDeleteDeploymentDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeploymentStatus {\n /** Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed. */\n get(\n options?: DeviceManagementGetDeploymentStatusParameters,\n ): StreamableMethod<\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDeviceClassSubgroupsForGroup {\n /** Get the device class subgroups for the group. A device class subgroup is the set of devices within the group that share the same device class. All devices within the same device class are compatible with the same updates. */\n get(\n options?: DeviceManagementListDeviceClassSubgroupsForGroupParameters,\n ): StreamableMethod<\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeviceClassSubgroup {\n /** Gets device class subgroup details. A device class subgroup is the set of devices within the group that share the same device class. All devices within the same device class are compatible with the same updates. */\n get(\n options?: DeviceManagementGetDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupDefaultResponse\n >;\n /** Deletes a device class subgroup. This subgroup is automatically created when a Device Update-enabled device is connected to the hub and reports its properties. Groups, subgroups, and deployments are not automatically cleaned up but are retained for history purposes. Users can call this method to delete a subgroup if they do not need to retain any of the history of the subgroup and no longer need it. If a device is ever connected again for this subgroup after the subgroup was deleted it will be automatically re-created but there will be no history. */\n delete(\n options?: DeviceManagementDeleteDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeviceClassSubgroupUpdateCompliance {\n /** Get device class subgroup update compliance information such as how many devices are on their latest update, how many need new updates, and how many are in progress on receiving a new update. */\n get(\n options?: DeviceManagementGetDeviceClassSubgroupUpdateComplianceParameters,\n ): StreamableMethod<\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetBestUpdatesForDeviceClassSubgroup {\n /** Get the best available update for a device class subgroup and a count of how many devices need this update. */\n get(\n options?: DeviceManagementGetBestUpdatesForDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDeploymentsForDeviceClassSubgroup {\n /** Gets a list of deployments for a device class subgroup. */\n get(\n options?: DeviceManagementListDeploymentsForDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeploymentForDeviceClassSubgroup {\n /** Gets the deployment properties. */\n get(\n options?: DeviceManagementGetDeploymentForDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse\n >;\n /** Deletes a device class subgroup deployment. */\n delete(\n options?: DeviceManagementDeleteDeploymentForDeviceClassSubgroupParameters,\n ): StreamableMethod<\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse\n >;\n}\n\nexport interface DeviceManagementStopDeployment {\n /** Stops a deployment. */\n post(\n options?: DeviceManagementStopDeploymentParameters,\n ): StreamableMethod<\n DeviceManagementStopDeployment200Response | DeviceManagementStopDeploymentDefaultResponse\n >;\n}\n\nexport interface DeviceManagementRetryDeployment {\n /** Retries a deployment with failed devices. */\n post(\n options?: DeviceManagementRetryDeploymentParameters,\n ): StreamableMethod<\n DeviceManagementRetryDeployment200Response | DeviceManagementRetryDeploymentDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetDeviceClassSubgroupDeploymentStatus {\n /** Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed. */\n get(\n options?: DeviceManagementGetDeviceClassSubgroupDeploymentStatusParameters,\n ): StreamableMethod<\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment {\n /** Gets a list of devices in a deployment along with their state. Useful for getting a list of failed devices. */\n get(\n options?: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentParameters,\n ): StreamableMethod<\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetOperationStatus {\n /** Retrieve operation status. */\n get(\n options?: DeviceManagementGetOperationStatusParameters,\n ): StreamableMethod<\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListOperationStatuses {\n /** Get a list of all device import operations. Completed operations are kept for 7 days before auto-deleted. */\n get(\n options?: DeviceManagementListOperationStatusesParameters,\n ): StreamableMethod<\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesDefaultResponse\n >;\n}\n\nexport interface DeviceManagementStartLogCollection {\n /** Start the device diagnostics log collection on specified devices. */\n put(\n options: DeviceManagementStartLogCollectionParameters,\n ): StreamableMethod<\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectionDefaultResponse\n >;\n /** Get the device diagnostics log collection */\n get(\n options?: DeviceManagementGetLogCollectionParameters,\n ): StreamableMethod<\n DeviceManagementGetLogCollection200Response | DeviceManagementGetLogCollectionDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListLogCollections {\n /** Get all device diagnostics log collections */\n get(\n options?: DeviceManagementListLogCollectionsParameters,\n ): StreamableMethod<\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsDefaultResponse\n >;\n}\n\nexport interface DeviceManagementGetLogCollectionDetailedStatus {\n /** Get log collection with detailed status */\n get(\n options?: DeviceManagementGetLogCollectionDetailedStatusParameters,\n ): StreamableMethod<\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse\n >;\n}\n\nexport interface DeviceManagementListHealthOfDevices {\n /** Get list of device health */\n get(\n options: DeviceManagementListHealthOfDevicesParameters,\n ): StreamableMethod<\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesDefaultResponse\n >;\n}\n\nexport interface Routes {\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates' has methods for the following verbs: get */\n (path: \"/deviceUpdate/{instanceId}/updates\", instanceId: string): DeviceUpdateListUpdates;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates:import' has methods for the following verbs: post */\n (path: \"/deviceUpdate/{instanceId}/updates:import\", instanceId: string): DeviceUpdateImportUpdate;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers/\\{provider\\}/names/\\{name\\}/versions/\\{version\\}' has methods for the following verbs: get, delete */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\",\n instanceId: string,\n provider: string,\n name: string,\n version: string,\n ): DeviceUpdateGetUpdate;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers\",\n instanceId: string,\n ): DeviceUpdateListProviders;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers/\\{provider\\}/names' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers/{provider}/names\",\n instanceId: string,\n provider: string,\n ): DeviceUpdateListNames;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers/\\{provider\\}/names/\\{name\\}/versions' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions\",\n instanceId: string,\n provider: string,\n name: string,\n ): DeviceUpdateListVersions;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers/\\{provider\\}/names/\\{name\\}/versions/\\{version\\}/files' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files\",\n instanceId: string,\n provider: string,\n name: string,\n version: string,\n ): DeviceUpdateListFiles;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/providers/\\{provider\\}/names/\\{name\\}/versions/\\{version\\}/files/\\{fileId\\}' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files/{fileId}\",\n instanceId: string,\n provider: string,\n name: string,\n version: string,\n fileId: string,\n ): DeviceUpdateGetFile;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/operations' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/operations\",\n instanceId: string,\n ): DeviceUpdateListOperationStatuses;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/updates/operations/\\{operationId\\}' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/updates/operations/{operationId}\",\n instanceId: string,\n operationId: string,\n ): DeviceUpdateGetOperationStatus;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceClasses' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceClasses\",\n instanceId: string,\n ): DeviceManagementListDeviceClasses;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceClasses/\\{deviceClassId\\}' has methods for the following verbs: get, patch, delete */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\",\n instanceId: string,\n deviceClassId: string,\n ): DeviceManagementGetDeviceClass;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceClasses/\\{deviceClassId\\}/installableUpdates' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates\",\n instanceId: string,\n deviceClassId: string,\n ): DeviceManagementListInstallableUpdatesForDeviceClass;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/devices' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/devices\",\n instanceId: string,\n ): DeviceManagementListDevices;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/devices:import' has methods for the following verbs: post */\n (\n path: \"/deviceUpdate/{instanceId}/management/devices:import\",\n instanceId: string,\n ): DeviceManagementImportDevices;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/devices/\\{deviceId\\}' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/devices/{deviceId}\",\n instanceId: string,\n deviceId: string,\n ): DeviceManagementGetDevice;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/devices/\\{deviceId\\}/modules/\\{moduleId\\}' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}\",\n instanceId: string,\n deviceId: string,\n moduleId: string,\n ): DeviceManagementGetDeviceModule;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/updateCompliance' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/updateCompliance\",\n instanceId: string,\n ): DeviceManagementGetUpdateCompliance;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups\",\n instanceId: string,\n ): DeviceManagementListGroups;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}' has methods for the following verbs: get, delete */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}\",\n instanceId: string,\n groupId: string,\n ): DeviceManagementGetGroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/updateCompliance' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance\",\n instanceId: string,\n groupId: string,\n ): DeviceManagementGetUpdateComplianceForGroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/bestUpdates' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates\",\n instanceId: string,\n groupId: string,\n ): DeviceManagementListBestUpdatesForGroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deployments' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments\",\n instanceId: string,\n groupId: string,\n ): DeviceManagementListDeploymentsForGroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deployments/\\{deploymentId\\}' has methods for the following verbs: get, put, delete */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\",\n instanceId: string,\n groupId: string,\n deploymentId: string,\n ): DeviceManagementGetDeployment;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deployments/\\{deploymentId\\}/status' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status\",\n instanceId: string,\n groupId: string,\n deploymentId: string,\n ): DeviceManagementGetDeploymentStatus;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups\",\n instanceId: string,\n groupId: string,\n ): DeviceManagementListDeviceClassSubgroupsForGroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}' has methods for the following verbs: get, delete */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n ): DeviceManagementGetDeviceClassSubgroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/updateCompliance' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n ): DeviceManagementGetDeviceClassSubgroupUpdateCompliance;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/bestUpdates' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n ): DeviceManagementGetBestUpdatesForDeviceClassSubgroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n ): DeviceManagementListDeploymentsForDeviceClassSubgroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments/\\{deploymentId\\}' has methods for the following verbs: get, delete */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n deploymentId: string,\n ): DeviceManagementGetDeploymentForDeviceClassSubgroup;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments/\\{deploymentId\\}:cancel' has methods for the following verbs: post */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:cancel\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n deploymentId: string,\n ): DeviceManagementStopDeployment;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments/\\{deploymentId\\}:retry' has methods for the following verbs: post */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:retry\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n deploymentId: string,\n ): DeviceManagementRetryDeployment;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments/\\{deploymentId\\}/status' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/status\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n deploymentId: string,\n ): DeviceManagementGetDeviceClassSubgroupDeploymentStatus;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/groups/\\{groupId\\}/deviceClassSubgroups/\\{deviceClassId\\}/deployments/\\{deploymentId\\}/devicestates' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/devicestates\",\n instanceId: string,\n groupId: string,\n deviceClassId: string,\n deploymentId: string,\n ): DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/operations/\\{operationId\\}' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/operations/{operationId}\",\n instanceId: string,\n operationId: string,\n ): DeviceManagementGetOperationStatus;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/operations' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/operations\",\n instanceId: string,\n ): DeviceManagementListOperationStatuses;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceDiagnostics/logCollections/\\{operationId\\}' has methods for the following verbs: put, get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\",\n instanceId: string,\n operationId: string,\n ): DeviceManagementStartLogCollection;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceDiagnostics/logCollections' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections\",\n instanceId: string,\n ): DeviceManagementListLogCollections;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceDiagnostics/logCollections/\\{operationId\\}/detailedStatus' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus\",\n instanceId: string,\n operationId: string,\n ): DeviceManagementGetLogCollectionDetailedStatus;\n /** Resource for '/deviceUpdate/\\{instanceId\\}/management/deviceDiagnostics/deviceHealth' has methods for the following verbs: get */\n (\n path: \"/deviceUpdate/{instanceId}/management/deviceDiagnostics/deviceHealth\",\n instanceId: string,\n ): DeviceManagementListHealthOfDevices;\n}\n\nexport type DeviceUpdateClient = Client & {\n path: Routes;\n};\n"]}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import type { ClientOptions } from "@azure-rest/core-client";
|
|
2
2
|
import type { TokenCredential } from "@azure/core-auth";
|
|
3
3
|
import type { DeviceUpdateClient } from "./clientDefinitions.js";
|
|
4
|
-
|
|
4
|
+
/** The optional parameters for the client */
|
|
5
|
+
export interface DeviceUpdateClientOptions extends ClientOptions {
|
|
6
|
+
/** The api version option of the client */
|
|
7
|
+
apiVersion?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of `DeviceUpdateClient`
|
|
11
|
+
* @param endpoint - The Device Update for IoT Hub account endpoint (hostname only, no protocol).
|
|
12
|
+
* @param credentials - uniquely identify client credential
|
|
13
|
+
* @param options - the parameter for all optional parameters
|
|
14
|
+
*/
|
|
15
|
+
export default function createClient(endpoint: string, credentials: TokenCredential, { apiVersion, ...options }?: DeviceUpdateClientOptions): DeviceUpdateClient;
|
|
5
16
|
//# sourceMappingURL=deviceUpdate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceUpdate.d.ts","sourceRoot":"","sources":["../../src/deviceUpdate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"deviceUpdate.d.ts","sourceRoot":"","sources":["../../src/deviceUpdate.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,6CAA6C;AAC7C,MAAM,WAAW,yBAA0B,SAAQ,aAAa;IAC9D,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,eAAe,EAC5B,EAAE,UAAyB,EAAE,GAAG,OAAO,EAAE,GAAE,yBAA8B,GACxE,kBAAkB,CAuCpB"}
|
|
@@ -1,21 +1,43 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
+
import { __rest } from "tslib";
|
|
3
4
|
import { getClient } from "@azure-rest/core-client";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
import { logger } from "./logger.js";
|
|
6
|
+
/**
|
|
7
|
+
* Initialize a new instance of `DeviceUpdateClient`
|
|
8
|
+
* @param endpoint - The Device Update for IoT Hub account endpoint (hostname only, no protocol).
|
|
9
|
+
* @param credentials - uniquely identify client credential
|
|
10
|
+
* @param options - the parameter for all optional parameters
|
|
11
|
+
*/
|
|
12
|
+
export default function createClient(endpoint, credentials, _a = {}) {
|
|
13
|
+
var _b, _c, _d, _e, _f, _g;
|
|
14
|
+
var { apiVersion = "2022-10-01" } = _a, options = __rest(_a, ["apiVersion"]);
|
|
15
|
+
const endpointUrl = (_c = (_b = options.endpoint) !== null && _b !== void 0 ? _b : options.baseUrl) !== null && _c !== void 0 ? _c : `https://${endpoint}`;
|
|
16
|
+
const userAgentInfo = `azsdk-js-iot-device-update-rest/1.1.0`;
|
|
12
17
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
13
18
|
? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
|
|
14
19
|
: `${userAgentInfo}`;
|
|
15
20
|
options = Object.assign(Object.assign({}, options), { userAgentOptions: {
|
|
16
21
|
userAgentPrefix,
|
|
22
|
+
}, loggingOptions: {
|
|
23
|
+
logger: (_e = (_d = options.loggingOptions) === null || _d === void 0 ? void 0 : _d.logger) !== null && _e !== void 0 ? _e : logger.info,
|
|
24
|
+
}, credentials: {
|
|
25
|
+
scopes: (_g = (_f = options.credentials) === null || _f === void 0 ? void 0 : _f.scopes) !== null && _g !== void 0 ? _g : ["https://api.adu.microsoft.com/.default"],
|
|
17
26
|
} });
|
|
18
|
-
const client = getClient(
|
|
27
|
+
const client = getClient(endpointUrl, credentials, options);
|
|
28
|
+
client.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
29
|
+
client.pipeline.addPolicy({
|
|
30
|
+
name: "ClientApiVersionPolicy",
|
|
31
|
+
sendRequest: (req, next) => {
|
|
32
|
+
// Use the apiVersion defined in request url directly
|
|
33
|
+
// Append one if there is no apiVersion and we have one at client options
|
|
34
|
+
const url = new URL(req.url);
|
|
35
|
+
if (!url.searchParams.get("api-version") && apiVersion) {
|
|
36
|
+
req.url = `${req.url}${Array.from(url.searchParams.keys()).length > 0 ? "&" : "?"}api-version=${apiVersion}`;
|
|
37
|
+
}
|
|
38
|
+
return next(req);
|
|
39
|
+
},
|
|
40
|
+
});
|
|
19
41
|
return client;
|
|
20
42
|
}
|
|
21
43
|
//# sourceMappingURL=deviceUpdate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceUpdate.js","sourceRoot":"","sources":["../../src/deviceUpdate.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC
|
|
1
|
+
{"version":3,"file":"deviceUpdate.js","sourceRoot":"","sources":["../../src/deviceUpdate.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAUrC;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,QAAgB,EAChB,WAA4B,EAC5B,KAAuE,EAAE;;QAAzE,EAAE,UAAU,GAAG,YAAY,OAA8C,EAAzC,OAAO,cAAvC,cAAyC,CAAF;IAEvC,MAAM,WAAW,GAAG,MAAA,MAAA,OAAO,CAAC,QAAQ,mCAAI,OAAO,CAAC,OAAO,mCAAI,WAAW,QAAQ,EAAE,CAAC;IACjF,MAAM,aAAa,GAAG,uCAAuC,CAAC;IAC9D,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;QAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,aAAa,EAAE;QAChE,CAAC,CAAC,GAAG,aAAa,EAAE,CAAC;IACzB,OAAO,mCACF,OAAO,KACV,gBAAgB,EAAE;YAChB,eAAe;SAChB,EACD,cAAc,EAAE;YACd,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,cAAc,0CAAE,MAAM,mCAAI,MAAM,CAAC,IAAI;SACtD,EACD,WAAW,EAAE;YACX,MAAM,EAAE,MAAA,MAAA,OAAO,CAAC,WAAW,0CAAE,MAAM,mCAAI,CAAC,wCAAwC,CAAC;SAClF,GACF,CAAC;IACF,MAAM,MAAM,GAAG,SAAS,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,CAAuB,CAAC;IAElF,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;QACxB,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,UAAU,EAAE,CAAC;gBACvD,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { ClientOptions } from \"@azure-rest/core-client\";\nimport { getClient } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger.js\";\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { DeviceUpdateClient } from \"./clientDefinitions.js\";\n\n/** The optional parameters for the client */\nexport interface DeviceUpdateClientOptions extends ClientOptions {\n /** The api version option of the client */\n apiVersion?: string;\n}\n\n/**\n * Initialize a new instance of `DeviceUpdateClient`\n * @param endpoint - The Device Update for IoT Hub account endpoint (hostname only, no protocol).\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpoint: string,\n credentials: TokenCredential,\n { apiVersion = \"2022-10-01\", ...options }: DeviceUpdateClientOptions = {},\n): DeviceUpdateClient {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? `https://${endpoint}`;\n const userAgentInfo = `azsdk-js-iot-device-update-rest/1.1.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://api.adu.microsoft.com/.default\"],\n },\n };\n const client = getClient(endpointUrl, credentials, options) as DeviceUpdateClient;\n\n client.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n client.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\") && apiVersion) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n\n return client;\n}\n"]}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import type { DeviceUpdateListUpdates200Response,
|
|
2
|
-
export declare function isUnexpected(response: DeviceUpdateListUpdates200Response |
|
|
3
|
-
export declare function isUnexpected(response: DeviceUpdateImportUpdate200Response | DeviceUpdateImportUpdate202Response |
|
|
4
|
-
export declare function isUnexpected(response: DeviceUpdateGetUpdate200Response | DeviceUpdateGetUpdate304Response |
|
|
5
|
-
export declare function isUnexpected(response: DeviceUpdateDeleteUpdate202Response |
|
|
6
|
-
export declare function isUnexpected(response: DeviceUpdateListProviders200Response |
|
|
7
|
-
export declare function isUnexpected(response: DeviceUpdateListNames200Response |
|
|
8
|
-
export declare function isUnexpected(response: DeviceUpdateListVersions200Response |
|
|
9
|
-
export declare function isUnexpected(response: DeviceUpdateListFiles200Response |
|
|
10
|
-
export declare function isUnexpected(response: DeviceUpdateGetFile200Response | DeviceUpdateGetFile304Response |
|
|
11
|
-
export declare function isUnexpected(response: DeviceUpdateListOperationStatuses200Response |
|
|
12
|
-
export declare function isUnexpected(response: DeviceUpdateGetOperationStatus200Response | DeviceUpdateGetOperationStatus304Response |
|
|
13
|
-
export declare function isUnexpected(response: DeviceManagementListDeviceClasses200Response |
|
|
14
|
-
export declare function isUnexpected(response: DeviceManagementGetDeviceClass200Response |
|
|
15
|
-
export declare function isUnexpected(response: DeviceManagementUpdateDeviceClass200Response |
|
|
16
|
-
export declare function isUnexpected(response: DeviceManagementDeleteDeviceClass204Response |
|
|
17
|
-
export declare function isUnexpected(response: DeviceManagementListInstallableUpdatesForDeviceClass200Response |
|
|
18
|
-
export declare function isUnexpected(response: DeviceManagementListDevices200Response |
|
|
19
|
-
export declare function isUnexpected(response: DeviceManagementImportDevices202Response |
|
|
20
|
-
export declare function isUnexpected(response: DeviceManagementGetDevice200Response |
|
|
21
|
-
export declare function isUnexpected(response: DeviceManagementGetDeviceModule200Response |
|
|
22
|
-
export declare function isUnexpected(response: DeviceManagementGetUpdateCompliance200Response |
|
|
23
|
-
export declare function isUnexpected(response: DeviceManagementListGroups200Response |
|
|
24
|
-
export declare function isUnexpected(response: DeviceManagementGetGroup200Response |
|
|
25
|
-
export declare function isUnexpected(response: DeviceManagementDeleteGroup204Response |
|
|
26
|
-
export declare function isUnexpected(response: DeviceManagementGetUpdateComplianceForGroup200Response |
|
|
27
|
-
export declare function isUnexpected(response: DeviceManagementListBestUpdatesForGroup200Response |
|
|
28
|
-
export declare function isUnexpected(response: DeviceManagementListDeploymentsForGroup200Response |
|
|
29
|
-
export declare function isUnexpected(response: DeviceManagementGetDeployment200Response |
|
|
30
|
-
export declare function isUnexpected(response: DeviceManagementCreateOrUpdateDeployment200Response |
|
|
31
|
-
export declare function isUnexpected(response: DeviceManagementDeleteDeployment204Response |
|
|
32
|
-
export declare function isUnexpected(response: DeviceManagementGetDeploymentStatus200Response |
|
|
33
|
-
export declare function isUnexpected(response: DeviceManagementListDeviceClassSubgroupsForGroup200Response |
|
|
34
|
-
export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroup200Response |
|
|
35
|
-
export declare function isUnexpected(response: DeviceManagementDeleteDeviceClassSubgroup204Response |
|
|
36
|
-
export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response |
|
|
37
|
-
export declare function isUnexpected(response: DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response |
|
|
38
|
-
export declare function isUnexpected(response: DeviceManagementListDeploymentsForDeviceClassSubgroup200Response |
|
|
39
|
-
export declare function isUnexpected(response: DeviceManagementGetDeploymentForDeviceClassSubgroup200Response |
|
|
40
|
-
export declare function isUnexpected(response: DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response |
|
|
41
|
-
export declare function isUnexpected(response: DeviceManagementStopDeployment200Response |
|
|
42
|
-
export declare function isUnexpected(response: DeviceManagementRetryDeployment200Response |
|
|
43
|
-
export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response |
|
|
44
|
-
export declare function isUnexpected(response: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response |
|
|
45
|
-
export declare function isUnexpected(response: DeviceManagementGetOperationStatus200Response | DeviceManagementGetOperationStatus304Response |
|
|
46
|
-
export declare function isUnexpected(response: DeviceManagementListOperationStatuses200Response |
|
|
47
|
-
export declare function isUnexpected(response: DeviceManagementStartLogCollection201Response |
|
|
48
|
-
export declare function isUnexpected(response: DeviceManagementGetLogCollection200Response |
|
|
49
|
-
export declare function isUnexpected(response: DeviceManagementListLogCollections200Response |
|
|
50
|
-
export declare function isUnexpected(response: DeviceManagementGetLogCollectionDetailedStatus200Response |
|
|
51
|
-
export declare function isUnexpected(response: DeviceManagementListHealthOfDevices200Response |
|
|
1
|
+
import type { DeviceUpdateListUpdates200Response, DeviceUpdateListUpdatesDefaultResponse, DeviceUpdateImportUpdate200Response, DeviceUpdateImportUpdate202Response, DeviceUpdateImportUpdateDefaultResponse, DeviceUpdateGetUpdate200Response, DeviceUpdateGetUpdate304Response, DeviceUpdateGetUpdateDefaultResponse, DeviceUpdateDeleteUpdate202Response, DeviceUpdateDeleteUpdateDefaultResponse, DeviceUpdateListProviders200Response, DeviceUpdateListProvidersDefaultResponse, DeviceUpdateListNames200Response, DeviceUpdateListNamesDefaultResponse, DeviceUpdateListVersions200Response, DeviceUpdateListVersionsDefaultResponse, DeviceUpdateListFiles200Response, DeviceUpdateListFilesDefaultResponse, DeviceUpdateGetFile200Response, DeviceUpdateGetFile304Response, DeviceUpdateGetFileDefaultResponse, DeviceUpdateListOperationStatuses200Response, DeviceUpdateListOperationStatusesDefaultResponse, DeviceUpdateGetOperationStatus200Response, DeviceUpdateGetOperationStatus304Response, DeviceUpdateGetOperationStatusDefaultResponse, DeviceManagementListDeviceClasses200Response, DeviceManagementListDeviceClassesDefaultResponse, DeviceManagementGetDeviceClass200Response, DeviceManagementGetDeviceClassDefaultResponse, DeviceManagementUpdateDeviceClass200Response, DeviceManagementUpdateDeviceClassDefaultResponse, DeviceManagementDeleteDeviceClass204Response, DeviceManagementDeleteDeviceClassDefaultResponse, DeviceManagementListInstallableUpdatesForDeviceClass200Response, DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse, DeviceManagementListDevices200Response, DeviceManagementListDevicesDefaultResponse, DeviceManagementImportDevices202Response, DeviceManagementImportDevicesDefaultResponse, DeviceManagementGetDevice200Response, DeviceManagementGetDeviceDefaultResponse, DeviceManagementGetDeviceModule200Response, DeviceManagementGetDeviceModuleDefaultResponse, DeviceManagementGetUpdateCompliance200Response, DeviceManagementGetUpdateComplianceDefaultResponse, DeviceManagementListGroups200Response, DeviceManagementListGroupsDefaultResponse, DeviceManagementGetGroup200Response, DeviceManagementGetGroupDefaultResponse, DeviceManagementDeleteGroup204Response, DeviceManagementDeleteGroupDefaultResponse, DeviceManagementGetUpdateComplianceForGroup200Response, DeviceManagementGetUpdateComplianceForGroupDefaultResponse, DeviceManagementListBestUpdatesForGroup200Response, DeviceManagementListBestUpdatesForGroupDefaultResponse, DeviceManagementListDeploymentsForGroup200Response, DeviceManagementListDeploymentsForGroupDefaultResponse, DeviceManagementGetDeployment200Response, DeviceManagementGetDeploymentDefaultResponse, DeviceManagementCreateOrUpdateDeployment200Response, DeviceManagementCreateOrUpdateDeploymentDefaultResponse, DeviceManagementDeleteDeployment204Response, DeviceManagementDeleteDeploymentDefaultResponse, DeviceManagementGetDeploymentStatus200Response, DeviceManagementGetDeploymentStatusDefaultResponse, DeviceManagementListDeviceClassSubgroupsForGroup200Response, DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse, DeviceManagementGetDeviceClassSubgroup200Response, DeviceManagementGetDeviceClassSubgroupDefaultResponse, DeviceManagementDeleteDeviceClassSubgroup204Response, DeviceManagementDeleteDeviceClassSubgroupDefaultResponse, DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response, DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse, DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response, DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse, DeviceManagementListDeploymentsForDeviceClassSubgroup200Response, DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse, DeviceManagementGetDeploymentForDeviceClassSubgroup200Response, DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse, DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response, DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse, DeviceManagementStopDeployment200Response, DeviceManagementStopDeploymentDefaultResponse, DeviceManagementRetryDeployment200Response, DeviceManagementRetryDeploymentDefaultResponse, DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response, DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse, DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response, DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse, DeviceManagementGetOperationStatus200Response, DeviceManagementGetOperationStatus304Response, DeviceManagementGetOperationStatusDefaultResponse, DeviceManagementListOperationStatuses200Response, DeviceManagementListOperationStatusesDefaultResponse, DeviceManagementStartLogCollection201Response, DeviceManagementStartLogCollectionDefaultResponse, DeviceManagementGetLogCollection200Response, DeviceManagementGetLogCollectionDefaultResponse, DeviceManagementListLogCollections200Response, DeviceManagementListLogCollectionsDefaultResponse, DeviceManagementGetLogCollectionDetailedStatus200Response, DeviceManagementGetLogCollectionDetailedStatusDefaultResponse, DeviceManagementListHealthOfDevices200Response, DeviceManagementListHealthOfDevicesDefaultResponse } from "./responses.js";
|
|
2
|
+
export declare function isUnexpected(response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesDefaultResponse): response is DeviceUpdateListUpdatesDefaultResponse;
|
|
3
|
+
export declare function isUnexpected(response: DeviceUpdateImportUpdate200Response | DeviceUpdateImportUpdate202Response | DeviceUpdateImportUpdateDefaultResponse): response is DeviceUpdateImportUpdateDefaultResponse;
|
|
4
|
+
export declare function isUnexpected(response: DeviceUpdateGetUpdate200Response | DeviceUpdateGetUpdate304Response | DeviceUpdateGetUpdateDefaultResponse): response is DeviceUpdateGetUpdateDefaultResponse;
|
|
5
|
+
export declare function isUnexpected(response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdateDefaultResponse): response is DeviceUpdateDeleteUpdateDefaultResponse;
|
|
6
|
+
export declare function isUnexpected(response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersDefaultResponse): response is DeviceUpdateListProvidersDefaultResponse;
|
|
7
|
+
export declare function isUnexpected(response: DeviceUpdateListNames200Response | DeviceUpdateListNamesDefaultResponse): response is DeviceUpdateListNamesDefaultResponse;
|
|
8
|
+
export declare function isUnexpected(response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsDefaultResponse): response is DeviceUpdateListVersionsDefaultResponse;
|
|
9
|
+
export declare function isUnexpected(response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesDefaultResponse): response is DeviceUpdateListFilesDefaultResponse;
|
|
10
|
+
export declare function isUnexpected(response: DeviceUpdateGetFile200Response | DeviceUpdateGetFile304Response | DeviceUpdateGetFileDefaultResponse): response is DeviceUpdateGetFileDefaultResponse;
|
|
11
|
+
export declare function isUnexpected(response: DeviceUpdateListOperationStatuses200Response | DeviceUpdateListOperationStatusesDefaultResponse): response is DeviceUpdateListOperationStatusesDefaultResponse;
|
|
12
|
+
export declare function isUnexpected(response: DeviceUpdateGetOperationStatus200Response | DeviceUpdateGetOperationStatus304Response | DeviceUpdateGetOperationStatusDefaultResponse): response is DeviceUpdateGetOperationStatusDefaultResponse;
|
|
13
|
+
export declare function isUnexpected(response: DeviceManagementListDeviceClasses200Response | DeviceManagementListDeviceClassesDefaultResponse): response is DeviceManagementListDeviceClassesDefaultResponse;
|
|
14
|
+
export declare function isUnexpected(response: DeviceManagementGetDeviceClass200Response | DeviceManagementGetDeviceClassDefaultResponse): response is DeviceManagementGetDeviceClassDefaultResponse;
|
|
15
|
+
export declare function isUnexpected(response: DeviceManagementUpdateDeviceClass200Response | DeviceManagementUpdateDeviceClassDefaultResponse): response is DeviceManagementUpdateDeviceClassDefaultResponse;
|
|
16
|
+
export declare function isUnexpected(response: DeviceManagementDeleteDeviceClass204Response | DeviceManagementDeleteDeviceClassDefaultResponse): response is DeviceManagementDeleteDeviceClassDefaultResponse;
|
|
17
|
+
export declare function isUnexpected(response: DeviceManagementListInstallableUpdatesForDeviceClass200Response | DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse): response is DeviceManagementListInstallableUpdatesForDeviceClassDefaultResponse;
|
|
18
|
+
export declare function isUnexpected(response: DeviceManagementListDevices200Response | DeviceManagementListDevicesDefaultResponse): response is DeviceManagementListDevicesDefaultResponse;
|
|
19
|
+
export declare function isUnexpected(response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesDefaultResponse): response is DeviceManagementImportDevicesDefaultResponse;
|
|
20
|
+
export declare function isUnexpected(response: DeviceManagementGetDevice200Response | DeviceManagementGetDeviceDefaultResponse): response is DeviceManagementGetDeviceDefaultResponse;
|
|
21
|
+
export declare function isUnexpected(response: DeviceManagementGetDeviceModule200Response | DeviceManagementGetDeviceModuleDefaultResponse): response is DeviceManagementGetDeviceModuleDefaultResponse;
|
|
22
|
+
export declare function isUnexpected(response: DeviceManagementGetUpdateCompliance200Response | DeviceManagementGetUpdateComplianceDefaultResponse): response is DeviceManagementGetUpdateComplianceDefaultResponse;
|
|
23
|
+
export declare function isUnexpected(response: DeviceManagementListGroups200Response | DeviceManagementListGroupsDefaultResponse): response is DeviceManagementListGroupsDefaultResponse;
|
|
24
|
+
export declare function isUnexpected(response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupDefaultResponse): response is DeviceManagementGetGroupDefaultResponse;
|
|
25
|
+
export declare function isUnexpected(response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupDefaultResponse): response is DeviceManagementDeleteGroupDefaultResponse;
|
|
26
|
+
export declare function isUnexpected(response: DeviceManagementGetUpdateComplianceForGroup200Response | DeviceManagementGetUpdateComplianceForGroupDefaultResponse): response is DeviceManagementGetUpdateComplianceForGroupDefaultResponse;
|
|
27
|
+
export declare function isUnexpected(response: DeviceManagementListBestUpdatesForGroup200Response | DeviceManagementListBestUpdatesForGroupDefaultResponse): response is DeviceManagementListBestUpdatesForGroupDefaultResponse;
|
|
28
|
+
export declare function isUnexpected(response: DeviceManagementListDeploymentsForGroup200Response | DeviceManagementListDeploymentsForGroupDefaultResponse): response is DeviceManagementListDeploymentsForGroupDefaultResponse;
|
|
29
|
+
export declare function isUnexpected(response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentDefaultResponse): response is DeviceManagementGetDeploymentDefaultResponse;
|
|
30
|
+
export declare function isUnexpected(response: DeviceManagementCreateOrUpdateDeployment200Response | DeviceManagementCreateOrUpdateDeploymentDefaultResponse): response is DeviceManagementCreateOrUpdateDeploymentDefaultResponse;
|
|
31
|
+
export declare function isUnexpected(response: DeviceManagementDeleteDeployment204Response | DeviceManagementDeleteDeploymentDefaultResponse): response is DeviceManagementDeleteDeploymentDefaultResponse;
|
|
32
|
+
export declare function isUnexpected(response: DeviceManagementGetDeploymentStatus200Response | DeviceManagementGetDeploymentStatusDefaultResponse): response is DeviceManagementGetDeploymentStatusDefaultResponse;
|
|
33
|
+
export declare function isUnexpected(response: DeviceManagementListDeviceClassSubgroupsForGroup200Response | DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse): response is DeviceManagementListDeviceClassSubgroupsForGroupDefaultResponse;
|
|
34
|
+
export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroup200Response | DeviceManagementGetDeviceClassSubgroupDefaultResponse): response is DeviceManagementGetDeviceClassSubgroupDefaultResponse;
|
|
35
|
+
export declare function isUnexpected(response: DeviceManagementDeleteDeviceClassSubgroup204Response | DeviceManagementDeleteDeviceClassSubgroupDefaultResponse): response is DeviceManagementDeleteDeviceClassSubgroupDefaultResponse;
|
|
36
|
+
export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response | DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse): response is DeviceManagementGetDeviceClassSubgroupUpdateComplianceDefaultResponse;
|
|
37
|
+
export declare function isUnexpected(response: DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response | DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse): response is DeviceManagementGetBestUpdatesForDeviceClassSubgroupDefaultResponse;
|
|
38
|
+
export declare function isUnexpected(response: DeviceManagementListDeploymentsForDeviceClassSubgroup200Response | DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse): response is DeviceManagementListDeploymentsForDeviceClassSubgroupDefaultResponse;
|
|
39
|
+
export declare function isUnexpected(response: DeviceManagementGetDeploymentForDeviceClassSubgroup200Response | DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse): response is DeviceManagementGetDeploymentForDeviceClassSubgroupDefaultResponse;
|
|
40
|
+
export declare function isUnexpected(response: DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response | DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse): response is DeviceManagementDeleteDeploymentForDeviceClassSubgroupDefaultResponse;
|
|
41
|
+
export declare function isUnexpected(response: DeviceManagementStopDeployment200Response | DeviceManagementStopDeploymentDefaultResponse): response is DeviceManagementStopDeploymentDefaultResponse;
|
|
42
|
+
export declare function isUnexpected(response: DeviceManagementRetryDeployment200Response | DeviceManagementRetryDeploymentDefaultResponse): response is DeviceManagementRetryDeploymentDefaultResponse;
|
|
43
|
+
export declare function isUnexpected(response: DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response | DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse): response is DeviceManagementGetDeviceClassSubgroupDeploymentStatusDefaultResponse;
|
|
44
|
+
export declare function isUnexpected(response: DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse): response is DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentDefaultResponse;
|
|
45
|
+
export declare function isUnexpected(response: DeviceManagementGetOperationStatus200Response | DeviceManagementGetOperationStatus304Response | DeviceManagementGetOperationStatusDefaultResponse): response is DeviceManagementGetOperationStatusDefaultResponse;
|
|
46
|
+
export declare function isUnexpected(response: DeviceManagementListOperationStatuses200Response | DeviceManagementListOperationStatusesDefaultResponse): response is DeviceManagementListOperationStatusesDefaultResponse;
|
|
47
|
+
export declare function isUnexpected(response: DeviceManagementStartLogCollection201Response | DeviceManagementStartLogCollectionDefaultResponse): response is DeviceManagementStartLogCollectionDefaultResponse;
|
|
48
|
+
export declare function isUnexpected(response: DeviceManagementGetLogCollection200Response | DeviceManagementGetLogCollectionDefaultResponse): response is DeviceManagementGetLogCollectionDefaultResponse;
|
|
49
|
+
export declare function isUnexpected(response: DeviceManagementListLogCollections200Response | DeviceManagementListLogCollectionsDefaultResponse): response is DeviceManagementListLogCollectionsDefaultResponse;
|
|
50
|
+
export declare function isUnexpected(response: DeviceManagementGetLogCollectionDetailedStatus200Response | DeviceManagementGetLogCollectionDetailedStatusDefaultResponse): response is DeviceManagementGetLogCollectionDetailedStatusDefaultResponse;
|
|
51
|
+
export declare function isUnexpected(response: DeviceManagementListHealthOfDevices200Response | DeviceManagementListHealthOfDevicesDefaultResponse): response is DeviceManagementListHealthOfDevicesDefaultResponse;
|
|
52
52
|
//# sourceMappingURL=isUnexpected.d.ts.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
const responseMap = {
|
|
4
4
|
"GET /deviceUpdate/{instanceId}/updates": ["200"],
|
|
5
|
-
"POST /deviceUpdate/{instanceId}/updates:import": ["200", "202"],
|
|
6
5
|
"GET /deviceUpdate/{instanceId}/updates:import": ["200", "202"],
|
|
6
|
+
"POST /deviceUpdate/{instanceId}/updates:import": ["200", "202"],
|
|
7
7
|
"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}": [
|
|
8
8
|
"200",
|
|
9
9
|
"304",
|
|
@@ -24,8 +24,8 @@ const responseMap = {
|
|
|
24
24
|
"200",
|
|
25
25
|
],
|
|
26
26
|
"GET /deviceUpdate/{instanceId}/management/devices": ["200"],
|
|
27
|
-
"POST /deviceUpdate/{instanceId}/management/devices:import": ["202"],
|
|
28
27
|
"GET /deviceUpdate/{instanceId}/management/devices:import": ["202"],
|
|
28
|
+
"POST /deviceUpdate/{instanceId}/management/devices:import": ["202"],
|
|
29
29
|
"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}": ["200"],
|
|
30
30
|
"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}": ["200"],
|
|
31
31
|
"GET /deviceUpdate/{instanceId}/management/updateCompliance": ["200"],
|
|
@@ -73,52 +73,59 @@ export function isUnexpected(response) {
|
|
|
73
73
|
const method = response.request.method;
|
|
74
74
|
let pathDetails = responseMap[`${method} ${url.pathname}`];
|
|
75
75
|
if (!pathDetails) {
|
|
76
|
-
pathDetails =
|
|
76
|
+
pathDetails = getParametrizedPathSuccess(method, url.pathname);
|
|
77
77
|
}
|
|
78
78
|
return !pathDetails.includes(response.status);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function getParametrizedPathSuccess(method, path) {
|
|
81
|
+
var _a, _b, _c, _d;
|
|
81
82
|
const pathParts = path.split("/");
|
|
83
|
+
// Traverse list to match the longest candidate
|
|
84
|
+
// matchedLen: the length of candidate path
|
|
85
|
+
// matchedValue: the matched status code array
|
|
86
|
+
let matchedLen = -1, matchedValue = [];
|
|
82
87
|
// Iterate the responseMap to find a match
|
|
83
88
|
for (const [key, value] of Object.entries(responseMap)) {
|
|
84
89
|
// Extracting the path from the map key which is in format
|
|
85
90
|
// GET /path/foo
|
|
91
|
+
if (!key.startsWith(method)) {
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
86
94
|
const candidatePath = getPathFromMapKey(key);
|
|
87
95
|
// Get each part of the url path
|
|
88
96
|
const candidateParts = candidatePath.split("/");
|
|
89
|
-
//
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
// If the candidate part is not a template and
|
|
102
|
-
// the parts don't match mark the candidate as not found
|
|
103
|
-
// to move on with the next candidate path.
|
|
104
|
-
if (candidateParts[i] !== pathParts[i]) {
|
|
97
|
+
// track if we have found a match to return the values found.
|
|
98
|
+
let found = true;
|
|
99
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
100
|
+
if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
|
|
101
|
+
const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
|
|
102
|
+
// If the current part of the candidate is a "template" part
|
|
103
|
+
// Try to use the suffix of pattern to match the path
|
|
104
|
+
// {guid} ==> $
|
|
105
|
+
// {guid}:export ==> :export$
|
|
106
|
+
const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
|
|
107
|
+
if (!isMatched) {
|
|
105
108
|
found = false;
|
|
106
109
|
break;
|
|
107
110
|
}
|
|
111
|
+
continue;
|
|
108
112
|
}
|
|
109
|
-
//
|
|
110
|
-
//
|
|
111
|
-
// the path
|
|
112
|
-
if (
|
|
113
|
-
|
|
113
|
+
// If the candidate part is not a template and
|
|
114
|
+
// the parts don't match mark the candidate as not found
|
|
115
|
+
// to move on with the next candidate path.
|
|
116
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
117
|
+
found = false;
|
|
118
|
+
break;
|
|
114
119
|
}
|
|
115
120
|
}
|
|
121
|
+
// We finished evaluating the current candidate parts
|
|
122
|
+
// Update the matched value if and only if we found the longer pattern
|
|
123
|
+
if (found && candidatePath.length > matchedLen) {
|
|
124
|
+
matchedLen = candidatePath.length;
|
|
125
|
+
matchedValue = value;
|
|
126
|
+
}
|
|
116
127
|
}
|
|
117
|
-
|
|
118
|
-
return [];
|
|
119
|
-
}
|
|
120
|
-
function hasParametrizedPath(path) {
|
|
121
|
-
return path.includes("/{");
|
|
128
|
+
return matchedValue;
|
|
122
129
|
}
|
|
123
130
|
function getPathFromMapKey(mapKey) {
|
|
124
131
|
const pathStart = mapKey.indexOf("/");
|