@azure-rest/iot-device-update 1.0.1-alpha.20241203.1 → 1.0.1-alpha.20241204.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 +273 -0
- package/dist/browser/clientDefinitions.d.ts.map +1 -0
- package/dist/browser/clientDefinitions.js.map +1 -0
- package/dist/browser/deviceUpdate.d.ts +5 -0
- package/dist/browser/deviceUpdate.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/deviceUpdate.js.map +1 -1
- package/dist/browser/index.d.ts +12 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +15 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/isUnexpected.d.ts +52 -0
- package/dist/browser/isUnexpected.d.ts.map +1 -0
- package/dist/browser/isUnexpected.js.map +1 -0
- package/dist/browser/models.d.ts +95 -0
- package/dist/browser/models.d.ts.map +1 -0
- package/dist/browser/outputModels.d.ts +499 -0
- package/dist/browser/outputModels.d.ts.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/paginateHelper.d.ts +43 -0
- package/dist/browser/paginateHelper.d.ts.map +1 -0
- package/dist/browser/parameters.d.ts +212 -0
- package/dist/browser/parameters.d.ts.map +1 -0
- package/dist/browser/parameters.js.map +1 -0
- package/dist/browser/pollingHelper.d.ts +11 -0
- package/dist/browser/pollingHelper.d.ts.map +1 -0
- package/dist/browser/responses.d.ts +554 -0
- package/dist/browser/responses.d.ts.map +1 -0
- package/dist/browser/responses.js.map +1 -0
- package/dist/commonjs/clientDefinitions.d.ts +273 -0
- package/dist/commonjs/clientDefinitions.d.ts.map +1 -0
- package/dist/commonjs/clientDefinitions.js +5 -0
- package/dist/commonjs/clientDefinitions.js.map +1 -0
- package/dist/commonjs/deviceUpdate.d.ts +5 -0
- package/dist/commonjs/deviceUpdate.d.ts.map +1 -0
- package/dist/commonjs/deviceUpdate.js +24 -0
- package/dist/commonjs/deviceUpdate.js.map +1 -0
- package/dist/commonjs/index.d.ts +12 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +18 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/isUnexpected.d.ts +52 -0
- package/dist/commonjs/isUnexpected.d.ts.map +1 -0
- package/dist/{index.js → commonjs/isUnexpected.js} +4 -152
- package/dist/commonjs/isUnexpected.js.map +1 -0
- package/dist/commonjs/models.d.ts +95 -0
- package/dist/commonjs/models.d.ts.map +1 -0
- package/dist/commonjs/models.js +5 -0
- package/dist/commonjs/models.js.map +1 -0
- package/dist/commonjs/outputModels.d.ts +499 -0
- package/dist/commonjs/outputModels.d.ts.map +1 -0
- package/dist/commonjs/outputModels.js +5 -0
- package/dist/commonjs/outputModels.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/paginateHelper.d.ts +43 -0
- package/dist/commonjs/paginateHelper.d.ts.map +1 -0
- package/dist/commonjs/paginateHelper.js +73 -0
- package/dist/commonjs/paginateHelper.js.map +1 -0
- package/dist/commonjs/parameters.d.ts +212 -0
- package/dist/commonjs/parameters.d.ts.map +1 -0
- package/dist/commonjs/parameters.js +5 -0
- package/dist/commonjs/parameters.js.map +1 -0
- package/dist/commonjs/pollingHelper.d.ts +11 -0
- package/dist/commonjs/pollingHelper.d.ts.map +1 -0
- package/dist/commonjs/pollingHelper.js +51 -0
- package/dist/commonjs/pollingHelper.js.map +1 -0
- package/dist/commonjs/responses.d.ts +554 -0
- package/dist/commonjs/responses.d.ts.map +1 -0
- package/dist/commonjs/responses.js +5 -0
- package/dist/commonjs/responses.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/esm/clientDefinitions.d.ts +273 -0
- package/dist/esm/clientDefinitions.d.ts.map +1 -0
- package/dist/esm/clientDefinitions.js +4 -0
- package/dist/esm/clientDefinitions.js.map +1 -0
- package/dist/esm/deviceUpdate.d.ts +5 -0
- package/dist/esm/deviceUpdate.d.ts.map +1 -0
- package/dist/esm/deviceUpdate.js +21 -0
- package/dist/esm/deviceUpdate.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/isUnexpected.d.ts +52 -0
- package/dist/esm/isUnexpected.d.ts.map +1 -0
- package/dist/esm/isUnexpected.js +127 -0
- package/dist/esm/isUnexpected.js.map +1 -0
- package/dist/esm/models.d.ts +95 -0
- package/dist/esm/models.d.ts.map +1 -0
- package/dist/esm/models.js +4 -0
- package/dist/esm/models.js.map +1 -0
- package/dist/esm/outputModels.d.ts +499 -0
- package/dist/esm/outputModels.d.ts.map +1 -0
- package/dist/esm/outputModels.js +4 -0
- package/dist/esm/outputModels.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/paginateHelper.d.ts +43 -0
- package/dist/esm/paginateHelper.d.ts.map +1 -0
- package/dist/esm/paginateHelper.js +70 -0
- package/dist/esm/paginateHelper.js.map +1 -0
- package/dist/esm/parameters.d.ts +212 -0
- package/dist/esm/parameters.d.ts.map +1 -0
- package/dist/esm/parameters.js +4 -0
- package/dist/esm/parameters.js.map +1 -0
- package/dist/esm/pollingHelper.d.ts +11 -0
- package/dist/esm/pollingHelper.d.ts.map +1 -0
- package/dist/esm/pollingHelper.js +48 -0
- package/dist/esm/pollingHelper.js.map +1 -0
- package/dist/esm/responses.d.ts +554 -0
- package/dist/esm/responses.d.ts.map +1 -0
- package/dist/esm/responses.js +4 -0
- package/dist/esm/responses.js.map +1 -0
- package/dist/react-native/clientDefinitions.d.ts +273 -0
- package/dist/react-native/clientDefinitions.d.ts.map +1 -0
- package/dist/react-native/clientDefinitions.js +4 -0
- package/dist/react-native/clientDefinitions.js.map +1 -0
- package/dist/react-native/deviceUpdate.d.ts +5 -0
- package/dist/react-native/deviceUpdate.d.ts.map +1 -0
- package/dist/react-native/deviceUpdate.js +21 -0
- package/dist/react-native/deviceUpdate.js.map +1 -0
- package/dist/react-native/index.d.ts +12 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +15 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/isUnexpected.d.ts +52 -0
- package/dist/react-native/isUnexpected.d.ts.map +1 -0
- package/dist/react-native/isUnexpected.js +127 -0
- package/dist/react-native/isUnexpected.js.map +1 -0
- package/dist/react-native/models.d.ts +95 -0
- package/dist/react-native/models.d.ts.map +1 -0
- package/dist/react-native/models.js +4 -0
- package/dist/react-native/models.js.map +1 -0
- package/dist/react-native/outputModels.d.ts +499 -0
- package/dist/react-native/outputModels.d.ts.map +1 -0
- package/dist/react-native/outputModels.js +4 -0
- package/dist/react-native/outputModels.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/paginateHelper.d.ts +43 -0
- package/dist/react-native/paginateHelper.d.ts.map +1 -0
- package/dist/react-native/paginateHelper.js +70 -0
- package/dist/react-native/paginateHelper.js.map +1 -0
- package/dist/react-native/parameters.d.ts +212 -0
- package/dist/react-native/parameters.d.ts.map +1 -0
- package/dist/react-native/parameters.js +4 -0
- package/dist/react-native/parameters.js.map +1 -0
- package/dist/react-native/pollingHelper.d.ts +11 -0
- package/dist/react-native/pollingHelper.d.ts.map +1 -0
- package/dist/react-native/pollingHelper.js +48 -0
- package/dist/react-native/pollingHelper.js.map +1 -0
- package/dist/react-native/responses.d.ts +554 -0
- package/dist/react-native/responses.d.ts.map +1 -0
- package/dist/react-native/responses.js +4 -0
- package/dist/react-native/responses.js.map +1 -0
- package/package.json +65 -50
- package/dist/index.js.map +0 -1
- package/dist-esm/src/clientDefinitions.js.map +0 -1
- package/dist-esm/src/index.js +0 -14
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/isUnexpected.js.map +0 -1
- package/dist-esm/src/parameters.js.map +0 -1
- package/dist-esm/src/responses.js.map +0 -1
- package/review/iot-device-update.api.md +0 -2198
- package/types/iot-device-update.d.ts +0 -2096
- /package/{dist-esm/src → dist/browser}/clientDefinitions.js +0 -0
- /package/{dist-esm/src → dist/browser}/deviceUpdate.js +0 -0
- /package/{dist-esm/src → dist/browser}/isUnexpected.js +0 -0
- /package/{dist-esm/src → dist/browser}/models.js +0 -0
- /package/{dist-esm/src → dist/browser}/models.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/outputModels.js +0 -0
- /package/{dist-esm/src → dist/browser}/outputModels.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/paginateHelper.js +0 -0
- /package/{dist-esm/src → dist/browser}/paginateHelper.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/parameters.js +0 -0
- /package/{dist-esm/src → dist/browser}/pollingHelper.js +0 -0
- /package/{dist-esm/src → dist/browser}/pollingHelper.js.map +0 -0
- /package/{dist-esm/src → dist/browser}/responses.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../src/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\nimport type { HttpResponse } from \"@azure-rest/core-client\";\nimport type {\n UpdateListOutput,\n ErrorResponseOutput,\n UpdateOutput,\n StringsListOutput,\n UpdateFileOutput,\n UpdateOperationsListOutput,\n UpdateOperationOutput,\n DeviceClassesListOutput,\n DeviceClassOutput,\n UpdateInfoListOutput,\n DevicesListOutput,\n DeviceOutput,\n UpdateComplianceOutput,\n GroupsListOutput,\n GroupOutput,\n DeviceClassSubgroupUpdatableDevicesListOutput,\n DeploymentsListOutput,\n DeploymentOutput,\n DeploymentStatusOutput,\n DeviceClassSubgroupsListOutput,\n DeviceClassSubgroupOutput,\n DeviceClassSubgroupUpdatableDevicesOutput,\n DeviceClassSubgroupDeploymentStatusOutput,\n DeploymentDeviceStatesListOutput,\n DeviceOperationOutput,\n DeviceOperationsListOutput,\n LogCollectionOutput,\n LogCollectionListOutput,\n LogCollectionOperationDetailedStatusOutput,\n DeviceHealthListOutput,\n} from \"./outputModels.js\";\n\n/** Get a list of all updates that have been imported to Device Update for IoT Hub. */\nexport interface DeviceUpdateListUpdates200Response extends HttpResponse {\n status: \"200\";\n body: UpdateListOutput;\n}\n\n/** Get a list of all updates that have been imported to Device Update for IoT Hub. */\nexport interface DeviceUpdateListUpdatesdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Import new update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\nexport interface DeviceUpdateImportUpdate200Response extends HttpResponse {\n status: \"200\";\n body: UpdateOutput;\n}\n\nexport interface DeviceUpdateImportUpdate202Headers {\n /** Url to retrieve the import operation status. */\n \"operation-location\"?: string;\n}\n\n/** Import new update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\nexport interface DeviceUpdateImportUpdate202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & DeviceUpdateImportUpdate202Headers;\n}\n\n/** Import new update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\nexport interface DeviceUpdateImportUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get a specific update version. */\nexport interface DeviceUpdateGetUpdate200Response extends HttpResponse {\n status: \"200\";\n body: UpdateOutput;\n}\n\n/** Get a specific update version. */\nexport interface DeviceUpdateGetUpdate304Response extends HttpResponse {\n status: \"304\";\n body: Record<string, unknown>;\n}\n\n/** Get a specific update version. */\nexport interface DeviceUpdateGetUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\nexport interface DeviceUpdateDeleteUpdate202Headers {\n /** Url to retrieve the operation status */\n \"operation-location\"?: string;\n}\n\n/** Delete a specific update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\nexport interface DeviceUpdateDeleteUpdate202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & DeviceUpdateDeleteUpdate202Headers;\n}\n\n/** Delete a specific update version. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\nexport interface DeviceUpdateDeleteUpdatedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get a list of all update providers that have been imported to Device Update for IoT Hub. */\nexport interface DeviceUpdateListProviders200Response extends HttpResponse {\n status: \"200\";\n body: StringsListOutput;\n}\n\n/** Get a list of all update providers that have been imported to Device Update for IoT Hub. */\nexport interface DeviceUpdateListProvidersdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get a list of all update names that match the specified provider. */\nexport interface DeviceUpdateListNames200Response extends HttpResponse {\n status: \"200\";\n body: StringsListOutput;\n}\n\n/** Get a list of all update names that match the specified provider. */\nexport interface DeviceUpdateListNamesdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get a list of all update versions that match the specified provider and name. */\nexport interface DeviceUpdateListVersions200Response extends HttpResponse {\n status: \"200\";\n body: StringsListOutput;\n}\n\n/** Get a list of all update versions that match the specified provider and name. */\nexport interface DeviceUpdateListVersionsdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get a list of all update file identifiers for the specified version. */\nexport interface DeviceUpdateListFiles200Response extends HttpResponse {\n status: \"200\";\n body: StringsListOutput;\n}\n\n/** Get a list of all update file identifiers for the specified version. */\nexport interface DeviceUpdateListFilesdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get a specific update file from the version. */\nexport interface DeviceUpdateGetFile200Response extends HttpResponse {\n status: \"200\";\n body: UpdateFileOutput;\n}\n\n/** Get a specific update file from the version. */\nexport interface DeviceUpdateGetFile304Response extends HttpResponse {\n status: \"304\";\n body: Record<string, unknown>;\n}\n\n/** Get a specific update file from the version. */\nexport interface DeviceUpdateGetFiledefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\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. */\nexport interface DeviceUpdateListOperationStatuses200Response extends HttpResponse {\n status: \"200\";\n body: UpdateOperationsListOutput;\n}\n\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. */\nexport interface DeviceUpdateListOperationStatusesdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\nexport interface DeviceUpdateGetOperationStatus200Headers {\n /** Number of seconds to wait before checking the operation status again. */\n \"retry-after\"?: string;\n}\n\n/** Retrieve operation status. */\nexport interface DeviceUpdateGetOperationStatus200Response extends HttpResponse {\n status: \"200\";\n body: UpdateOperationOutput;\n headers: RawHttpHeaders & DeviceUpdateGetOperationStatus200Headers;\n}\n\n/** Retrieve operation status. */\nexport interface DeviceUpdateGetOperationStatus304Response extends HttpResponse {\n status: \"304\";\n body: Record<string, unknown>;\n}\n\n/** Retrieve operation status. */\nexport interface DeviceUpdateGetOperationStatusdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\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. */\nexport interface DeviceManagementListDeviceClasses200Response extends HttpResponse {\n status: \"200\";\n body: DeviceClassesListOutput;\n}\n\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. */\nexport interface DeviceManagementListDeviceClassesdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets the properties of a device class. */\nexport interface DeviceManagementGetDeviceClass200Response extends HttpResponse {\n status: \"200\";\n body: DeviceClassOutput;\n}\n\n/** Gets the properties of a device class. */\nexport interface DeviceManagementGetDeviceClassdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Update device class details. */\nexport interface DeviceManagementUpdateDeviceClass200Response extends HttpResponse {\n status: \"200\";\n body: DeviceClassOutput;\n}\n\n/** Update device class details. */\nexport interface DeviceManagementUpdateDeviceClassdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\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. */\nexport interface DeviceManagementDeleteDeviceClass204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\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. */\nexport interface DeviceManagementDeleteDeviceClassdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets a list of installable updates for a device class. */\nexport interface DeviceManagementListInstallableUpdatesForDeviceClass200Response\n extends HttpResponse {\n status: \"200\";\n body: UpdateInfoListOutput;\n}\n\n/** Gets a list of installable updates for a device class. */\nexport interface DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets a list of devices connected to Device Update for IoT Hub. */\nexport interface DeviceManagementListDevices200Response extends HttpResponse {\n status: \"200\";\n body: DevicesListOutput;\n}\n\n/** Gets a list of devices connected to Device Update for IoT Hub. */\nexport interface DeviceManagementListDevicesdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\nexport interface DeviceManagementImportDevices202Headers {\n /** Url to retrieve the device import operation status. */\n \"operation-location\"?: string;\n}\n\n/** Import existing devices from IoT Hub. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\nexport interface DeviceManagementImportDevices202Response extends HttpResponse {\n status: \"202\";\n body: Record<string, unknown>;\n headers: RawHttpHeaders & DeviceManagementImportDevices202Headers;\n}\n\n/** Import existing devices from IoT Hub. This is a long-running-operation; use Operation-Location response header value to check for operation status. */\nexport interface DeviceManagementImportDevicesdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets the device properties and latest deployment status for a device connected to Device Update for IoT Hub. */\nexport interface DeviceManagementGetDevice200Response extends HttpResponse {\n status: \"200\";\n body: DeviceOutput;\n}\n\n/** Gets the device properties and latest deployment status for a device connected to Device Update for IoT Hub. */\nexport interface DeviceManagementGetDevicedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets the device module properties and latest deployment status for a device module connected to Device Update for IoT Hub. */\nexport interface DeviceManagementGetDeviceModule200Response extends HttpResponse {\n status: \"200\";\n body: DeviceOutput;\n}\n\n/** Gets the device module properties and latest deployment status for a device module connected to Device Update for IoT Hub. */\nexport interface DeviceManagementGetDeviceModuledefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets the breakdown of how many devices are on their latest update, have new updates available, or are in progress receiving new updates. */\nexport interface DeviceManagementGetUpdateCompliance200Response extends HttpResponse {\n status: \"200\";\n body: UpdateComplianceOutput;\n}\n\n/** Gets the breakdown of how many devices are on their latest update, have new updates available, or are in progress receiving new updates. */\nexport interface DeviceManagementGetUpdateCompliancedefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets a list of all device groups. The $default group will always be returned first. */\nexport interface DeviceManagementListGroups200Response extends HttpResponse {\n status: \"200\";\n body: GroupsListOutput;\n}\n\n/** Gets a list of all device groups. The $default group will always be returned first. */\nexport interface DeviceManagementListGroupsdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets the device group properties. */\nexport interface DeviceManagementGetGroup200Response extends HttpResponse {\n status: \"200\";\n body: GroupOutput;\n}\n\n/** Gets the device group properties. */\nexport interface DeviceManagementGetGroupdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\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. */\nexport interface DeviceManagementDeleteGroup204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\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. */\nexport interface DeviceManagementDeleteGroupdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\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. */\nexport interface DeviceManagementGetUpdateComplianceForGroup200Response extends HttpResponse {\n status: \"200\";\n body: UpdateComplianceOutput;\n}\n\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. */\nexport interface DeviceManagementGetUpdateComplianceForGroupdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get the best available updates for a device group and a count of how many devices need each update. */\nexport interface DeviceManagementListBestUpdatesForGroup200Response extends HttpResponse {\n status: \"200\";\n body: DeviceClassSubgroupUpdatableDevicesListOutput;\n}\n\n/** Get the best available updates for a device group and a count of how many devices need each update. */\nexport interface DeviceManagementListBestUpdatesForGroupdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets a list of deployments for a device group. */\nexport interface DeviceManagementListDeploymentsForGroup200Response extends HttpResponse {\n status: \"200\";\n body: DeploymentsListOutput;\n}\n\n/** Gets a list of deployments for a device group. */\nexport interface DeviceManagementListDeploymentsForGroupdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets the deployment properties. */\nexport interface DeviceManagementGetDeployment200Response extends HttpResponse {\n status: \"200\";\n body: DeploymentOutput;\n}\n\n/** Gets the deployment properties. */\nexport interface DeviceManagementGetDeploymentdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Creates or updates a deployment. */\nexport interface DeviceManagementCreateOrUpdateDeployment200Response extends HttpResponse {\n status: \"200\";\n body: DeploymentOutput;\n}\n\n/** Creates or updates a deployment. */\nexport interface DeviceManagementCreateOrUpdateDeploymentdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Deletes a deployment. */\nexport interface DeviceManagementDeleteDeployment204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Deletes a deployment. */\nexport interface DeviceManagementDeleteDeploymentdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed. */\nexport interface DeviceManagementGetDeploymentStatus200Response extends HttpResponse {\n status: \"200\";\n body: DeploymentStatusOutput;\n}\n\n/** Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed. */\nexport interface DeviceManagementGetDeploymentStatusdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\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. */\nexport interface DeviceManagementListDeviceClassSubgroupsForGroup200Response extends HttpResponse {\n status: \"200\";\n body: DeviceClassSubgroupsListOutput;\n}\n\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. */\nexport interface DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\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. */\nexport interface DeviceManagementGetDeviceClassSubgroup200Response extends HttpResponse {\n status: \"200\";\n body: DeviceClassSubgroupOutput;\n}\n\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. */\nexport interface DeviceManagementGetDeviceClassSubgroupdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\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. */\nexport interface DeviceManagementDeleteDeviceClassSubgroup204Response extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\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. */\nexport interface DeviceManagementDeleteDeviceClassSubgroupdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\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. */\nexport interface DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n extends HttpResponse {\n status: \"200\";\n body: UpdateComplianceOutput;\n}\n\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. */\nexport interface DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get the best available update for a device class subgroup and a count of how many devices need this update. */\nexport interface DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n extends HttpResponse {\n status: \"200\";\n body: DeviceClassSubgroupUpdatableDevicesOutput;\n}\n\n/** Get the best available update for a device class subgroup and a count of how many devices need this update. */\nexport interface DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets a list of deployments for a device class subgroup. */\nexport interface DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n extends HttpResponse {\n status: \"200\";\n body: DeploymentsListOutput;\n}\n\n/** Gets a list of deployments for a device class subgroup. */\nexport interface DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets the deployment properties. */\nexport interface DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n extends HttpResponse {\n status: \"200\";\n body: DeploymentOutput;\n}\n\n/** Gets the deployment properties. */\nexport interface DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Deletes a device class subgroup deployment. */\nexport interface DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n extends HttpResponse {\n status: \"204\";\n body: Record<string, unknown>;\n}\n\n/** Deletes a device class subgroup deployment. */\nexport interface DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Stops a deployment. */\nexport interface DeviceManagementStopDeployment200Response extends HttpResponse {\n status: \"200\";\n body: DeploymentOutput;\n}\n\n/** Stops a deployment. */\nexport interface DeviceManagementStopDeploymentdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Retries a deployment with failed devices. */\nexport interface DeviceManagementRetryDeployment200Response extends HttpResponse {\n status: \"200\";\n body: DeploymentOutput;\n}\n\n/** Retries a deployment with failed devices. */\nexport interface DeviceManagementRetryDeploymentdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed. */\nexport interface DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n extends HttpResponse {\n status: \"200\";\n body: DeviceClassSubgroupDeploymentStatusOutput;\n}\n\n/** Gets the status of a deployment including a breakdown of how many devices in the deployment are in progress, completed, or failed. */\nexport interface DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Gets a list of devices in a deployment along with their state. Useful for getting a list of failed devices. */\nexport interface DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n extends HttpResponse {\n status: \"200\";\n body: DeploymentDeviceStatesListOutput;\n}\n\n/** Gets a list of devices in a deployment along with their state. Useful for getting a list of failed devices. */\nexport interface DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\nexport interface DeviceManagementGetOperationStatus200Headers {\n /** Number of seconds to wait before checking the operation status again. */\n \"retry-after\"?: string;\n}\n\n/** Retrieve operation status. */\nexport interface DeviceManagementGetOperationStatus200Response extends HttpResponse {\n status: \"200\";\n body: DeviceOperationOutput;\n headers: RawHttpHeaders & DeviceManagementGetOperationStatus200Headers;\n}\n\n/** Retrieve operation status. */\nexport interface DeviceManagementGetOperationStatus304Response extends HttpResponse {\n status: \"304\";\n body: Record<string, unknown>;\n}\n\n/** Retrieve operation status. */\nexport interface DeviceManagementGetOperationStatusdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get a list of all device import operations. Completed operations are kept for 7 days before auto-deleted. */\nexport interface DeviceManagementListOperationStatuses200Response extends HttpResponse {\n status: \"200\";\n body: DeviceOperationsListOutput;\n}\n\n/** Get a list of all device import operations. Completed operations are kept for 7 days before auto-deleted. */\nexport interface DeviceManagementListOperationStatusesdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Start the device diagnostics log collection on specified devices. */\nexport interface DeviceManagementStartLogCollection201Response extends HttpResponse {\n status: \"201\";\n body: LogCollectionOutput;\n}\n\n/** Start the device diagnostics log collection on specified devices. */\nexport interface DeviceManagementStartLogCollectiondefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get the device diagnostics log collection */\nexport interface DeviceManagementGetLogCollection200Response extends HttpResponse {\n status: \"200\";\n body: LogCollectionOutput;\n}\n\n/** Get the device diagnostics log collection */\nexport interface DeviceManagementGetLogCollectiondefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get all device diagnostics log collections */\nexport interface DeviceManagementListLogCollections200Response extends HttpResponse {\n status: \"200\";\n body: LogCollectionListOutput;\n}\n\n/** Get all device diagnostics log collections */\nexport interface DeviceManagementListLogCollectionsdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get log collection with detailed status */\nexport interface DeviceManagementGetLogCollectionDetailedStatus200Response extends HttpResponse {\n status: \"200\";\n body: LogCollectionOperationDetailedStatusOutput;\n}\n\n/** Get log collection with detailed status */\nexport interface DeviceManagementGetLogCollectionDetailedStatusdefaultResponse\n extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Get list of device health */\nexport interface DeviceManagementListHealthOfDevices200Response extends HttpResponse {\n status: \"200\";\n body: DeviceHealthListOutput;\n}\n\n/** Get list of device health */\nexport interface DeviceManagementListHealthOfDevicesdefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "Device Update for IoT Hub is an Azure service that enables customers to publish update for their IoT devices to the cloud, and then deploy that update to their devices (approve updates to groups of devices managed and provisioned in IoT Hub). It leverages the proven security and reliability of the Windows Update platform, optimized for IoT devices. It works globally and knows when and how to update devices, enabling customers to focus on their business goals and let Device Update for IoT Hub handle the updates.",
|
|
6
|
-
"version": "1.0.1-alpha.
|
|
6
|
+
"version": "1.0.1-alpha.20241204.1",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
9
9
|
"azure",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"isomorphic"
|
|
14
14
|
],
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"main": "dist/index.js",
|
|
17
|
-
"module": "./dist
|
|
18
|
-
"types": "./
|
|
16
|
+
"main": "./dist/commonjs/index.js",
|
|
17
|
+
"module": "./dist/esm/index.js",
|
|
18
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
19
19
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/deviceupdate/iot-device-update-rest/README.md",
|
|
20
20
|
"repository": "github:Azure/azure-sdk-for-js",
|
|
21
21
|
"bugs": {
|
|
@@ -23,11 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist/",
|
|
26
|
-
"dist-esm/src/",
|
|
27
|
-
"types/iot-device-update.d.ts",
|
|
28
26
|
"README.md",
|
|
29
|
-
"LICENSE"
|
|
30
|
-
"review/*"
|
|
27
|
+
"LICENSE"
|
|
31
28
|
],
|
|
32
29
|
"//metadata": {
|
|
33
30
|
"constantPaths": [
|
|
@@ -51,16 +48,11 @@
|
|
|
51
48
|
"disableDocsMs": true,
|
|
52
49
|
"apiRefLink": "https://docs.microsoft.com/rest/api/deviceupdate/2021-06-01-preview/device-update"
|
|
53
50
|
},
|
|
54
|
-
"browser":
|
|
55
|
-
"./dist-esm/test/public/utils/env.js": "./dist-esm/test/public/utils/env.browser.js"
|
|
56
|
-
},
|
|
51
|
+
"browser": "./dist/browser/index.js",
|
|
57
52
|
"scripts": {
|
|
58
|
-
"build": "npm run clean &&
|
|
59
|
-
"build:browser": "tsc -p . && dev-tool run bundle",
|
|
60
|
-
"build:debug": "tsc -p . && dev-tool run bundle && dev-tool run extract-api",
|
|
61
|
-
"build:node": "tsc -p . && dev-tool run bundle",
|
|
53
|
+
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|
|
62
54
|
"build:samples": "echo Obsolete.",
|
|
63
|
-
"build:test": "
|
|
55
|
+
"build:test": "echo Obsolete.",
|
|
64
56
|
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
|
65
57
|
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
66
58
|
"execute:samples": "dev-tool samples run samples-dev",
|
|
@@ -68,8 +60,8 @@
|
|
|
68
60
|
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
|
|
69
61
|
"generate:client": "autorest --typescript swagger/README.md && npm run format",
|
|
70
62
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
71
|
-
"integration-test:browser": "dev-tool run test:browser",
|
|
72
|
-
"integration-test:node": "dev-tool run test:
|
|
63
|
+
"integration-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
|
|
64
|
+
"integration-test:node": "dev-tool run test:vitest",
|
|
73
65
|
"lint": "eslint package.json api-extractor.json src test",
|
|
74
66
|
"lint:fix": "eslint package.json api-extractor.json src test --fix --fix-type [problem,suggestion]",
|
|
75
67
|
"pack": "npm pack 2>&1",
|
|
@@ -77,50 +69,73 @@
|
|
|
77
69
|
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser",
|
|
78
70
|
"test:node": "npm run clean && npm run build:test && npm run unit-test:node",
|
|
79
71
|
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
80
|
-
"unit-test:browser": "dev-tool run test:browser",
|
|
81
|
-
"unit-test:node": "dev-tool run test:
|
|
72
|
+
"unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser",
|
|
73
|
+
"unit-test:node": "dev-tool run test:vitest",
|
|
82
74
|
"update-snippets": "echo skipped"
|
|
83
75
|
},
|
|
84
76
|
"sideEffects": false,
|
|
85
77
|
"autoPublish": false,
|
|
86
78
|
"dependencies": {
|
|
87
|
-
"@azure-rest/core-client": "^
|
|
88
|
-
"@azure/core-auth": "^1.
|
|
89
|
-
"@azure/core-lro": "^2.2
|
|
90
|
-
"@azure/core-paging": "^1.2
|
|
91
|
-
"@azure/core-rest-pipeline": "^1.
|
|
92
|
-
"@azure/logger": "^1.
|
|
93
|
-
"tslib": "^2.
|
|
79
|
+
"@azure-rest/core-client": "^2.3.1",
|
|
80
|
+
"@azure/core-auth": "^1.9.0",
|
|
81
|
+
"@azure/core-lro": "^2.7.2",
|
|
82
|
+
"@azure/core-paging": "^1.6.2",
|
|
83
|
+
"@azure/core-rest-pipeline": "^1.18.0",
|
|
84
|
+
"@azure/logger": "^1.1.4",
|
|
85
|
+
"tslib": "^2.8.1"
|
|
94
86
|
},
|
|
95
87
|
"devDependencies": {
|
|
96
|
-
"@azure-tools/test-credential": "^
|
|
97
|
-
"@azure-tools/test-recorder": "
|
|
98
|
-
"@azure/
|
|
88
|
+
"@azure-tools/test-credential": "^2.0.0",
|
|
89
|
+
"@azure-tools/test-recorder": ">=4.1.0-alpha <4.1.0-alphb",
|
|
90
|
+
"@azure-tools/test-utils-vitest": ">=1.0.0-alpha <1.0.0-alphb",
|
|
91
|
+
"@azure/core-util": "^1.11.0",
|
|
99
92
|
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
|
|
100
93
|
"@azure/eslint-plugin-azure-sdk": ">=3.0.0-alpha <3.0.0-alphb",
|
|
101
94
|
"@azure/identity": "^4.0.1",
|
|
102
|
-
"@types/chai": "^4.1.6",
|
|
103
|
-
"@types/mocha": "^10.0.0",
|
|
104
95
|
"@types/node": "^18.0.0",
|
|
105
|
-
"
|
|
96
|
+
"@vitest/browser": "^2.1.8",
|
|
97
|
+
"@vitest/coverage-istanbul": "^2.1.8",
|
|
106
98
|
"dotenv": "^16.0.0",
|
|
107
99
|
"eslint": "^9.9.0",
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
"
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
|
|
124
|
-
|
|
100
|
+
"playwright": "^1.49.0",
|
|
101
|
+
"typescript": "~5.6.2",
|
|
102
|
+
"vitest": "^2.1.8"
|
|
103
|
+
},
|
|
104
|
+
"type": "module",
|
|
105
|
+
"tshy": {
|
|
106
|
+
"exports": {
|
|
107
|
+
"./package.json": "./package.json",
|
|
108
|
+
".": "./src/index.ts"
|
|
109
|
+
},
|
|
110
|
+
"dialects": [
|
|
111
|
+
"esm",
|
|
112
|
+
"commonjs"
|
|
113
|
+
],
|
|
114
|
+
"esmDialects": [
|
|
115
|
+
"browser",
|
|
116
|
+
"react-native"
|
|
117
|
+
],
|
|
118
|
+
"selfLink": false
|
|
119
|
+
},
|
|
120
|
+
"exports": {
|
|
121
|
+
"./package.json": "./package.json",
|
|
122
|
+
".": {
|
|
123
|
+
"browser": {
|
|
124
|
+
"types": "./dist/browser/index.d.ts",
|
|
125
|
+
"default": "./dist/browser/index.js"
|
|
126
|
+
},
|
|
127
|
+
"react-native": {
|
|
128
|
+
"types": "./dist/react-native/index.d.ts",
|
|
129
|
+
"default": "./dist/react-native/index.js"
|
|
130
|
+
},
|
|
131
|
+
"import": {
|
|
132
|
+
"types": "./dist/esm/index.d.ts",
|
|
133
|
+
"default": "./dist/esm/index.js"
|
|
134
|
+
},
|
|
135
|
+
"require": {
|
|
136
|
+
"types": "./dist/commonjs/index.d.ts",
|
|
137
|
+
"default": "./dist/commonjs/index.js"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
125
140
|
}
|
|
126
141
|
}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/deviceUpdate.ts","../src/isUnexpected.ts","../src/paginateHelper.ts","../src/pollingHelper.ts","../src/index.ts"],"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 type { TokenCredential } from \"@azure/core-auth\";\nimport type { DeviceUpdateClient } from \"./clientDefinitions\";\n\nexport default function createClient(\n endpoint: string,\n credentials: TokenCredential,\n options: ClientOptions = {},\n): DeviceUpdateClient {\n const baseUrl = options.baseUrl ?? `https://${endpoint}`;\n options.apiVersion = options.apiVersion ?? \"2022-10-01\";\n options = {\n ...options,\n credentials: {\n scopes: [\"https://api.adu.microsoft.com/.default\"],\n },\n };\n\n const userAgentInfo = `azsdk-js-iot-device-update-rest/1.0.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 };\n\n const client = getClient(baseUrl, credentials, options) as DeviceUpdateClient;\n\n return client;\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\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\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /deviceUpdate/{instanceId}/updates\": [\"200\"],\n \"POST /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"GET /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\": [\n \"200\",\n \"304\",\n ],\n \"DELETE /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\":\n [\"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files/{fileId}\":\n [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"PATCH /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/devices\": [\"200\"],\n \"POST /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"GET /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\n \"204\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"204\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:cancel\":\n [\"200\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:retry\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/status\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/devicestates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/operations\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"201\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/deviceHealth\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesdefaultResponse,\n): response is DeviceUpdateListUpdatesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdatedefaultResponse,\n): response is DeviceUpdateImportUpdatedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdatedefaultResponse,\n): response is DeviceUpdateGetUpdatedefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdatedefaultResponse,\n): response is DeviceUpdateDeleteUpdatedefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersdefaultResponse,\n): response is DeviceUpdateListProvidersdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListNames200Response | DeviceUpdateListNamesdefaultResponse,\n): response is DeviceUpdateListNamesdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsdefaultResponse,\n): response is DeviceUpdateListVersionsdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesdefaultResponse,\n): response is DeviceUpdateListFilesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFiledefaultResponse,\n): response is DeviceUpdateGetFiledefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateListOperationStatuses200Response\n | DeviceUpdateListOperationStatusesdefaultResponse,\n): response is DeviceUpdateListOperationStatusesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusdefaultResponse,\n): response is DeviceUpdateGetOperationStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClasses200Response\n | DeviceManagementListDeviceClassesdefaultResponse,\n): response is DeviceManagementListDeviceClassesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClass200Response\n | DeviceManagementGetDeviceClassdefaultResponse,\n): response is DeviceManagementGetDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementUpdateDeviceClass200Response\n | DeviceManagementUpdateDeviceClassdefaultResponse,\n): response is DeviceManagementUpdateDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClass204Response\n | DeviceManagementDeleteDeviceClassdefaultResponse,\n): response is DeviceManagementDeleteDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse,\n): response is DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListDevices200Response | DeviceManagementListDevicesdefaultResponse,\n): response is DeviceManagementListDevicesdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesdefaultResponse,\n): response is DeviceManagementImportDevicesdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDevice200Response | DeviceManagementGetDevicedefaultResponse,\n): response is DeviceManagementGetDevicedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceModule200Response\n | DeviceManagementGetDeviceModuledefaultResponse,\n): response is DeviceManagementGetDeviceModuledefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateCompliancedefaultResponse,\n): response is DeviceManagementGetUpdateCompliancedefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListGroups200Response | DeviceManagementListGroupsdefaultResponse,\n): response is DeviceManagementListGroupsdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupdefaultResponse,\n): response is DeviceManagementGetGroupdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupdefaultResponse,\n): response is DeviceManagementDeleteGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse,\n): response is DeviceManagementGetUpdateComplianceForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupdefaultResponse,\n): response is DeviceManagementListBestUpdatesForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupdefaultResponse,\n): response is DeviceManagementListDeploymentsForGroupdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentdefaultResponse,\n): response is DeviceManagementGetDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse,\n): response is DeviceManagementCreateOrUpdateDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeployment204Response\n | DeviceManagementDeleteDeploymentdefaultResponse,\n): response is DeviceManagementDeleteDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusdefaultResponse,\n): response is DeviceManagementGetDeploymentStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse,\n): response is DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementDeleteDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStopDeployment200Response\n | DeviceManagementStopDeploymentdefaultResponse,\n): response is DeviceManagementStopDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementRetryDeployment200Response\n | DeviceManagementRetryDeploymentdefaultResponse,\n): response is DeviceManagementRetryDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse,\n): response is DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusdefaultResponse,\n): response is DeviceManagementGetOperationStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesdefaultResponse,\n): response is DeviceManagementListOperationStatusesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectiondefaultResponse,\n): response is DeviceManagementStartLogCollectiondefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollection200Response\n | DeviceManagementGetLogCollectiondefaultResponse,\n): response is DeviceManagementGetLogCollectiondefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsdefaultResponse,\n): response is DeviceManagementListLogCollectionsdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse,\n): response is DeviceManagementGetLogCollectionDetailedStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesdefaultResponse,\n): response is DeviceManagementListHealthOfDevicesdefaultResponse;\nexport function isUnexpected(\n response:\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): response is\n | DeviceUpdateListUpdatesdefaultResponse\n | DeviceUpdateImportUpdatedefaultResponse\n | DeviceUpdateGetUpdatedefaultResponse\n | DeviceUpdateDeleteUpdatedefaultResponse\n | DeviceUpdateListProvidersdefaultResponse\n | DeviceUpdateListNamesdefaultResponse\n | DeviceUpdateListVersionsdefaultResponse\n | DeviceUpdateListFilesdefaultResponse\n | DeviceUpdateGetFiledefaultResponse\n | DeviceUpdateListOperationStatusesdefaultResponse\n | DeviceUpdateGetOperationStatusdefaultResponse\n | DeviceManagementListDeviceClassesdefaultResponse\n | DeviceManagementGetDeviceClassdefaultResponse\n | DeviceManagementUpdateDeviceClassdefaultResponse\n | DeviceManagementDeleteDeviceClassdefaultResponse\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse\n | DeviceManagementListDevicesdefaultResponse\n | DeviceManagementImportDevicesdefaultResponse\n | DeviceManagementGetDevicedefaultResponse\n | DeviceManagementGetDeviceModuledefaultResponse\n | DeviceManagementGetUpdateCompliancedefaultResponse\n | DeviceManagementListGroupsdefaultResponse\n | DeviceManagementGetGroupdefaultResponse\n | DeviceManagementDeleteGroupdefaultResponse\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse\n | DeviceManagementListBestUpdatesForGroupdefaultResponse\n | DeviceManagementListDeploymentsForGroupdefaultResponse\n | DeviceManagementGetDeploymentdefaultResponse\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse\n | DeviceManagementDeleteDeploymentdefaultResponse\n | DeviceManagementGetDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementStopDeploymentdefaultResponse\n | DeviceManagementRetryDeploymentdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse\n | DeviceManagementGetOperationStatusdefaultResponse\n | DeviceManagementListOperationStatusesdefaultResponse\n | DeviceManagementStartLogCollectiondefaultResponse\n | DeviceManagementGetLogCollectiondefaultResponse\n | DeviceManagementListLogCollectionsdefaultResponse\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse\n | DeviceManagementListHealthOfDevicesdefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = geParametrizedPathSuccess(url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction geParametrizedPathSuccess(path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // If the candidate and actual paths don't match in size\n // we move on to the next candidate path\n if (candidateParts.length === pathParts.length && hasParametrizedPath(key)) {\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = 0; i < candidateParts.length; i++) {\n if (candidateParts[i].startsWith(\"{\") && candidateParts[i].endsWith(\"}\")) {\n // If the current part of the candidate is a \"template\" part\n // it is a match with the actual path part on hand\n // skip as the parameterized part can match anything\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[i]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // if all parts matched we return the success values form\n // the path mapping.\n if (found) {\n return value;\n }\n }\n }\n\n // No match was found, return an empty array.\n return [];\n}\n\nfunction hasParametrizedPath(path: string): boolean {\n return path.includes(\"/{\");\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { PagedAsyncIterableIterator, PagedResult } from \"@azure/core-paging\";\nimport { getPagedAsyncIterator } from \"@azure/core-paging\";\nimport type { Client, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number,\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { Client, HttpResponse } from \"@azure-rest/core-client\";\nimport type {\n LongRunningOperation,\n LroEngineOptions,\n LroResponse,\n PollerLike,\n PollOperationState,\n} from \"@azure/core-lro\";\nimport { LroEngine } from \"@azure/core-lro\";\n\n/**\n * Helper function that builds a Poller object to help polling a long running operation.\n * @param client - Client to use for sending the request to get additional pages.\n * @param initialResponse - The initial response.\n * @param options - Options to set a resume state or custom polling interval.\n * @returns - A poller object to poll for operation state updates and eventually get the final response.\n */\nexport function getLongRunningPoller<TResult extends HttpResponse>(\n client: Client,\n initialResponse: TResult,\n options: LroEngineOptions<TResult, PollOperationState<TResult>> = {},\n): PollerLike<PollOperationState<TResult>, TResult> {\n const poller: LongRunningOperation<TResult> = {\n requestMethod: initialResponse.request.method,\n requestPath: initialResponse.request.url,\n sendInitialRequest: async () => {\n // In the case of Rest Clients we are building the LRO poller object from a response that's the reason\n // we are not triggering the initial request here, just extracting the information from the\n // response we were provided.\n return getLroResponse(initialResponse);\n },\n sendPollRequest: async (path) => {\n // This is the callback that is going to be called to poll the service\n // to get the latest status. We use the client provided and the polling path\n // which is an opaque URL provided by caller, the service sends this in one of the following headers: operation-location, azure-asyncoperation or location\n // depending on the lro pattern that the service implements. If non is provided we default to the initial path.\n const response = await client.pathUnchecked(path ?? initialResponse.request.url).get();\n const lroResponse = getLroResponse(response as TResult);\n lroResponse.rawResponse.headers[\"x-ms-original-url\"] = initialResponse.request.url;\n return lroResponse;\n },\n };\n\n return new LroEngine(poller, options);\n}\n\n/**\n * Converts a Rest Client response to a response that the LRO engine knows about\n * @param response - a rest client http response\n * @returns - An LRO response that the LRO engine can work with\n */\nfunction getLroResponse<TResult extends HttpResponse>(response: TResult): LroResponse<TResult> {\n if (Number.isNaN(response.status)) {\n throw new TypeError(`Status code of the response is not a number. Value: ${response.status}`);\n }\n\n return {\n flatResponse: response,\n rawResponse: {\n ...response,\n statusCode: Number.parseInt(response.status),\n body: response.body,\n },\n };\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport DeviceUpdate from \"./deviceUpdate\";\n\nexport * from \"./deviceUpdate\";\nexport * from \"./parameters\";\nexport * from \"./responses\";\nexport * from \"./clientDefinitions\";\nexport * from \"./isUnexpected\";\nexport * from \"./models\";\nexport * from \"./outputModels\";\nexport * from \"./paginateHelper\";\nexport * from \"./pollingHelper\";\n\nexport default DeviceUpdate;\n"],"names":["getClient","getPagedAsyncIterator","createRestError","LroEngine"],"mappings":";;;;;;;;AAAA;AACA;AAOc,SAAU,YAAY,CAClC,QAAgB,EAChB,WAA4B,EAC5B,OAAA,GAAyB,EAAE,EAAA;;IAE3B,MAAM,OAAO,GAAG,CAAA,EAAA,GAAA,OAAO,CAAC,OAAO,MAAI,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,GAAA,CAAA,Q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WAAW,CAAC,WAAW,CAAC,OAAO,CAAC,mBAAmB,CAAC,GAAG,eAAe,CAAC,OAAO,CAAC,GAAG;AAClF,YAAA,OAAO,WAAW;SACnB;KACF;AAED,IAAA,OAAO,IAAIC,iBAAS,CAAC,MAAM,EAAE,OAAO,CAAC;AACvC;AAEA;;;;AAIG;AACH,SAAS,cAAc,CAA+B,QAAiB,EAAA;IACrE,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACjC,MAAM,IAAI,SAAS,CAAC,CAAA,oDAAA,EAAuD,QAAQ,CAAC,MAAM,CAAE,CAAA,CAAC;;IAG/F,OAAO;AACL,QAAA,YAAY,EAAE,QAAQ;AACtB,QAAA,WAAW,kCACN,QAAQ,CAAA,EAAA,EACX,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,IAAI,EACpB,CAAA;KACF;AACH;;ACnEA;AACA;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
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\";\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\";\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"]}
|
package/dist-esm/src/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
import DeviceUpdate from "./deviceUpdate";
|
|
4
|
-
export * from "./deviceUpdate";
|
|
5
|
-
export * from "./parameters";
|
|
6
|
-
export * from "./responses";
|
|
7
|
-
export * from "./clientDefinitions";
|
|
8
|
-
export * from "./isUnexpected";
|
|
9
|
-
export * from "./models";
|
|
10
|
-
export * from "./outputModels";
|
|
11
|
-
export * from "./paginateHelper";
|
|
12
|
-
export * from "./pollingHelper";
|
|
13
|
-
export default DeviceUpdate;
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAEhC,eAAe,YAAY,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport DeviceUpdate from \"./deviceUpdate\";\n\nexport * from \"./deviceUpdate\";\nexport * from \"./parameters\";\nexport * from \"./responses\";\nexport * from \"./clientDefinitions\";\nexport * from \"./isUnexpected\";\nexport * from \"./models\";\nexport * from \"./outputModels\";\nexport * from \"./paginateHelper\";\nexport * from \"./pollingHelper\";\n\nexport default DeviceUpdate;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA8GlC,MAAM,WAAW,GAA6B;IAC5C,wCAAwC,EAAE,CAAC,KAAK,CAAC;IACjD,gDAAgD,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAChE,+CAA+C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC/D,6FAA6F,EAAE;QAC7F,KAAK;QACL,KAAK;KACN;IACD,gGAAgG,EAC9F,CAAC,KAAK,CAAC;IACT,kDAAkD,EAAE,CAAC,KAAK,CAAC;IAC3D,mEAAmE,EAAE,CAAC,KAAK,CAAC;IAC5E,mFAAmF,EAAE,CAAC,KAAK,CAAC;IAC5F,mGAAmG,EACjG,CAAC,KAAK,CAAC;IACT,4GAA4G,EAC1G,CAAC,KAAK,EAAE,KAAK,CAAC;IAChB,mDAAmD,EAAE,CAAC,KAAK,CAAC;IAC5D,iEAAiE,EAAE,CAAC,KAAK,EAAE,KAAK,CAA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.\n// Licensed under the MIT License.\n\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\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /deviceUpdate/{instanceId}/updates\": [\"200\"],\n \"POST /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"GET /deviceUpdate/{instanceId}/updates:import\": [\"200\", \"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\": [\n \"200\",\n \"304\",\n ],\n \"DELETE /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}\":\n [\"202\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/providers/{provider}/names/{name}/versions/{version}/files/{fileId}\":\n [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/updates/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"PATCH /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceClasses/{deviceClassId}/installableUpdates\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/devices\": [\"200\"],\n \"POST /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"GET /deviceUpdate/{instanceId}/management/devices:import\": [\"202\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/devices/{deviceId}/modules/{moduleId}\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}\": [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/updateCompliance\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/bestUpdates\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}\": [\n \"204\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deployments/{deploymentId}/status\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}\":\n [\"204\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/updateCompliance\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/bestUpdates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"200\"],\n \"DELETE /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}\":\n [\"204\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:cancel\":\n [\"200\"],\n \"POST /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}:retry\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/status\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/groups/{groupId}/deviceClassSubgroups/{deviceClassId}/deployments/{deploymentId}/devicestates\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/operations/{operationId}\": [\"200\", \"304\"],\n \"GET /deviceUpdate/{instanceId}/management/operations\": [\"200\"],\n \"PUT /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"201\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}\": [\n \"200\",\n ],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections\": [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/logCollections/{operationId}/detailedStatus\":\n [\"200\"],\n \"GET /deviceUpdate/{instanceId}/management/deviceDiagnostics/deviceHealth\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: DeviceUpdateListUpdates200Response | DeviceUpdateListUpdatesdefaultResponse,\n): response is DeviceUpdateListUpdatesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateImportUpdate200Response\n | DeviceUpdateImportUpdate202Response\n | DeviceUpdateImportUpdatedefaultResponse,\n): response is DeviceUpdateImportUpdatedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetUpdate200Response\n | DeviceUpdateGetUpdate304Response\n | DeviceUpdateGetUpdatedefaultResponse,\n): response is DeviceUpdateGetUpdatedefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateDeleteUpdate202Response | DeviceUpdateDeleteUpdatedefaultResponse,\n): response is DeviceUpdateDeleteUpdatedefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListProviders200Response | DeviceUpdateListProvidersdefaultResponse,\n): response is DeviceUpdateListProvidersdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListNames200Response | DeviceUpdateListNamesdefaultResponse,\n): response is DeviceUpdateListNamesdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListVersions200Response | DeviceUpdateListVersionsdefaultResponse,\n): response is DeviceUpdateListVersionsdefaultResponse;\nexport function isUnexpected(\n response: DeviceUpdateListFiles200Response | DeviceUpdateListFilesdefaultResponse,\n): response is DeviceUpdateListFilesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetFile200Response\n | DeviceUpdateGetFile304Response\n | DeviceUpdateGetFiledefaultResponse,\n): response is DeviceUpdateGetFiledefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateListOperationStatuses200Response\n | DeviceUpdateListOperationStatusesdefaultResponse,\n): response is DeviceUpdateListOperationStatusesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceUpdateGetOperationStatus200Response\n | DeviceUpdateGetOperationStatus304Response\n | DeviceUpdateGetOperationStatusdefaultResponse,\n): response is DeviceUpdateGetOperationStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClasses200Response\n | DeviceManagementListDeviceClassesdefaultResponse,\n): response is DeviceManagementListDeviceClassesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClass200Response\n | DeviceManagementGetDeviceClassdefaultResponse,\n): response is DeviceManagementGetDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementUpdateDeviceClass200Response\n | DeviceManagementUpdateDeviceClassdefaultResponse,\n): response is DeviceManagementUpdateDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClass204Response\n | DeviceManagementDeleteDeviceClassdefaultResponse,\n): response is DeviceManagementDeleteDeviceClassdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListInstallableUpdatesForDeviceClass200Response\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse,\n): response is DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListDevices200Response | DeviceManagementListDevicesdefaultResponse,\n): response is DeviceManagementListDevicesdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementImportDevices202Response | DeviceManagementImportDevicesdefaultResponse,\n): response is DeviceManagementImportDevicesdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDevice200Response | DeviceManagementGetDevicedefaultResponse,\n): response is DeviceManagementGetDevicedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceModule200Response\n | DeviceManagementGetDeviceModuledefaultResponse,\n): response is DeviceManagementGetDeviceModuledefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateCompliance200Response\n | DeviceManagementGetUpdateCompliancedefaultResponse,\n): response is DeviceManagementGetUpdateCompliancedefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementListGroups200Response | DeviceManagementListGroupsdefaultResponse,\n): response is DeviceManagementListGroupsdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetGroup200Response | DeviceManagementGetGroupdefaultResponse,\n): response is DeviceManagementGetGroupdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementDeleteGroup204Response | DeviceManagementDeleteGroupdefaultResponse,\n): response is DeviceManagementDeleteGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetUpdateComplianceForGroup200Response\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse,\n): response is DeviceManagementGetUpdateComplianceForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListBestUpdatesForGroup200Response\n | DeviceManagementListBestUpdatesForGroupdefaultResponse,\n): response is DeviceManagementListBestUpdatesForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForGroup200Response\n | DeviceManagementListDeploymentsForGroupdefaultResponse,\n): response is DeviceManagementListDeploymentsForGroupdefaultResponse;\nexport function isUnexpected(\n response: DeviceManagementGetDeployment200Response | DeviceManagementGetDeploymentdefaultResponse,\n): response is DeviceManagementGetDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementCreateOrUpdateDeployment200Response\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse,\n): response is DeviceManagementCreateOrUpdateDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeployment204Response\n | DeviceManagementDeleteDeploymentdefaultResponse,\n): response is DeviceManagementDeleteDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentStatus200Response\n | DeviceManagementGetDeploymentStatusdefaultResponse,\n): response is DeviceManagementGetDeploymentStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceClassSubgroupsForGroup200Response\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse,\n): response is DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroup200Response\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementDeleteDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliance200Response\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroup200Response\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeploymentsForDeviceClassSubgroup200Response\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeploymentForDeviceClassSubgroup200Response\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroup204Response\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse,\n): response is DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStopDeployment200Response\n | DeviceManagementStopDeploymentdefaultResponse,\n): response is DeviceManagementStopDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementRetryDeployment200Response\n | DeviceManagementRetryDeploymentdefaultResponse,\n): response is DeviceManagementRetryDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatus200Response\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse,\n): response is DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeployment200Response\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse,\n): response is DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetOperationStatus200Response\n | DeviceManagementGetOperationStatus304Response\n | DeviceManagementGetOperationStatusdefaultResponse,\n): response is DeviceManagementGetOperationStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListOperationStatuses200Response\n | DeviceManagementListOperationStatusesdefaultResponse,\n): response is DeviceManagementListOperationStatusesdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementStartLogCollection201Response\n | DeviceManagementStartLogCollectiondefaultResponse,\n): response is DeviceManagementStartLogCollectiondefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollection200Response\n | DeviceManagementGetLogCollectiondefaultResponse,\n): response is DeviceManagementGetLogCollectiondefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListLogCollections200Response\n | DeviceManagementListLogCollectionsdefaultResponse,\n): response is DeviceManagementListLogCollectionsdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementGetLogCollectionDetailedStatus200Response\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse,\n): response is DeviceManagementGetLogCollectionDetailedStatusdefaultResponse;\nexport function isUnexpected(\n response:\n | DeviceManagementListHealthOfDevices200Response\n | DeviceManagementListHealthOfDevicesdefaultResponse,\n): response is DeviceManagementListHealthOfDevicesdefaultResponse;\nexport function isUnexpected(\n response:\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): response is\n | DeviceUpdateListUpdatesdefaultResponse\n | DeviceUpdateImportUpdatedefaultResponse\n | DeviceUpdateGetUpdatedefaultResponse\n | DeviceUpdateDeleteUpdatedefaultResponse\n | DeviceUpdateListProvidersdefaultResponse\n | DeviceUpdateListNamesdefaultResponse\n | DeviceUpdateListVersionsdefaultResponse\n | DeviceUpdateListFilesdefaultResponse\n | DeviceUpdateGetFiledefaultResponse\n | DeviceUpdateListOperationStatusesdefaultResponse\n | DeviceUpdateGetOperationStatusdefaultResponse\n | DeviceManagementListDeviceClassesdefaultResponse\n | DeviceManagementGetDeviceClassdefaultResponse\n | DeviceManagementUpdateDeviceClassdefaultResponse\n | DeviceManagementDeleteDeviceClassdefaultResponse\n | DeviceManagementListInstallableUpdatesForDeviceClassdefaultResponse\n | DeviceManagementListDevicesdefaultResponse\n | DeviceManagementImportDevicesdefaultResponse\n | DeviceManagementGetDevicedefaultResponse\n | DeviceManagementGetDeviceModuledefaultResponse\n | DeviceManagementGetUpdateCompliancedefaultResponse\n | DeviceManagementListGroupsdefaultResponse\n | DeviceManagementGetGroupdefaultResponse\n | DeviceManagementDeleteGroupdefaultResponse\n | DeviceManagementGetUpdateComplianceForGroupdefaultResponse\n | DeviceManagementListBestUpdatesForGroupdefaultResponse\n | DeviceManagementListDeploymentsForGroupdefaultResponse\n | DeviceManagementGetDeploymentdefaultResponse\n | DeviceManagementCreateOrUpdateDeploymentdefaultResponse\n | DeviceManagementDeleteDeploymentdefaultResponse\n | DeviceManagementGetDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceClassSubgroupsForGroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupUpdateCompliancedefaultResponse\n | DeviceManagementGetBestUpdatesForDeviceClassSubgroupdefaultResponse\n | DeviceManagementListDeploymentsForDeviceClassSubgroupdefaultResponse\n | DeviceManagementGetDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementDeleteDeploymentForDeviceClassSubgroupdefaultResponse\n | DeviceManagementStopDeploymentdefaultResponse\n | DeviceManagementRetryDeploymentdefaultResponse\n | DeviceManagementGetDeviceClassSubgroupDeploymentStatusdefaultResponse\n | DeviceManagementListDeviceStatesForDeviceClassSubgroupDeploymentdefaultResponse\n | DeviceManagementGetOperationStatusdefaultResponse\n | DeviceManagementListOperationStatusesdefaultResponse\n | DeviceManagementStartLogCollectiondefaultResponse\n | DeviceManagementGetLogCollectiondefaultResponse\n | DeviceManagementListLogCollectionsdefaultResponse\n | DeviceManagementGetLogCollectionDetailedStatusdefaultResponse\n | DeviceManagementListHealthOfDevicesdefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = geParametrizedPathSuccess(url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction geParametrizedPathSuccess(path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // If the candidate and actual paths don't match in size\n // we move on to the next candidate path\n if (candidateParts.length === pathParts.length && hasParametrizedPath(key)) {\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = 0; i < candidateParts.length; i++) {\n if (candidateParts[i].startsWith(\"{\") && candidateParts[i].endsWith(\"}\")) {\n // If the current part of the candidate is a \"template\" part\n // it is a match with the actual path part on hand\n // skip as the parameterized part can match anything\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[i]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // if all parts matched we return the success values form\n // the path mapping.\n if (found) {\n return value;\n }\n }\n }\n\n // No match was found, return an empty array.\n return [];\n}\n\nfunction hasParametrizedPath(path: string): boolean {\n return path.includes(\"/{\");\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|