@azure/arm-iotfirmwaredefense 1.0.0-beta.1 → 1.0.1-alpha.20240329.2
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/CHANGELOG.md +13 -3
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +2280 -2198
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/binaryHardeningListByFirmwareSample.d.ts +2 -0
- package/dist-esm/samples-dev/binaryHardeningListByFirmwareSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareListGenerateCryptoKeyListSample.js → binaryHardeningListByFirmwareSample.js} +23 -34
- package/dist-esm/samples-dev/binaryHardeningListByFirmwareSample.js.map +1 -0
- package/dist-esm/samples-dev/cryptoCertificatesListByFirmwareSample.d.ts +2 -0
- package/dist-esm/samples-dev/cryptoCertificatesListByFirmwareSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareListGenerateCveListSample.js → cryptoCertificatesListByFirmwareSample.js} +25 -37
- package/dist-esm/samples-dev/cryptoCertificatesListByFirmwareSample.js.map +1 -0
- package/dist-esm/samples-dev/cryptoKeysListByFirmwareSample.d.ts +2 -0
- package/dist-esm/samples-dev/cryptoKeysListByFirmwareSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareListGenerateCryptoCertificateListSample.js → cryptoKeysListByFirmwareSample.js} +23 -34
- package/dist-esm/samples-dev/cryptoKeysListByFirmwareSample.js.map +1 -0
- package/dist-esm/samples-dev/cvesListByFirmwareSample.d.ts +2 -0
- package/dist-esm/samples-dev/cvesListByFirmwareSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/cvesListByFirmwareSample.js +92 -0
- package/dist-esm/samples-dev/cvesListByFirmwareSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwaresCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwaresCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareCreateSample.js → firmwaresCreateSample.js} +20 -18
- package/dist-esm/samples-dev/firmwaresCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwaresDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwaresDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareDeleteSample.js → firmwaresDeleteSample.js} +9 -9
- package/dist-esm/samples-dev/firmwaresDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwaresGenerateDownloadUrlSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwaresGenerateDownloadUrlSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareGenerateDownloadUrlSample.js → firmwaresGenerateDownloadUrlSample.js} +9 -9
- package/dist-esm/samples-dev/firmwaresGenerateDownloadUrlSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwaresGenerateFilesystemDownloadUrlSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwaresGenerateFilesystemDownloadUrlSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareGenerateFilesystemDownloadUrlSample.js → firmwaresGenerateFilesystemDownloadUrlSample.js} +9 -9
- package/dist-esm/samples-dev/firmwaresGenerateFilesystemDownloadUrlSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwaresGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwaresGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareGetSample.js → firmwaresGetSample.js} +9 -9
- package/dist-esm/samples-dev/firmwaresGetSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwaresListByWorkspaceSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwaresListByWorkspaceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareListByWorkspaceSample.js → firmwaresListByWorkspaceSample.js} +13 -23
- package/dist-esm/samples-dev/firmwaresListByWorkspaceSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwaresUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwaresUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareUpdateSample.js → firmwaresUpdateSample.js} +20 -18
- package/dist-esm/samples-dev/firmwaresUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +8 -18
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/passwordHashesListByFirmwareSample.d.ts +2 -0
- package/dist-esm/samples-dev/passwordHashesListByFirmwareSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/passwordHashesListByFirmwareSample.js +92 -0
- package/dist-esm/samples-dev/passwordHashesListByFirmwareSample.js.map +1 -0
- package/dist-esm/samples-dev/sbomComponentsListByFirmwareSample.d.ts +2 -0
- package/dist-esm/samples-dev/sbomComponentsListByFirmwareSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/sbomComponentsListByFirmwareSample.js +92 -0
- package/dist-esm/samples-dev/sbomComponentsListByFirmwareSample.js.map +1 -0
- package/dist-esm/samples-dev/summariesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/summariesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{firmwareGenerateSummarySample.js → summariesGetSample.js} +23 -23
- package/dist-esm/samples-dev/summariesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/summariesListByFirmwareSample.d.ts +2 -0
- package/dist-esm/samples-dev/summariesListByFirmwareSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/summariesListByFirmwareSample.js +92 -0
- package/dist-esm/samples-dev/summariesListByFirmwareSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesCreateSample.js +5 -4
- package/dist-esm/samples-dev/workspacesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesDeleteSample.js +2 -2
- package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.js +4 -4
- package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesGetSample.js +2 -2
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +8 -18
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +8 -18
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/workspacesUpdateSample.js +4 -4
- package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -1
- package/dist-esm/src/ioTFirmwareDefenseClient.d.ts +11 -4
- package/dist-esm/src/ioTFirmwareDefenseClient.d.ts.map +1 -1
- package/dist-esm/src/ioTFirmwareDefenseClient.js +19 -12
- package/dist-esm/src/ioTFirmwareDefenseClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +516 -602
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +40 -92
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +45 -25
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1120 -1036
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +3 -2
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +56 -49
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/binaryHardening.d.ts +41 -0
- package/dist-esm/src/operations/binaryHardening.d.ts.map +1 -0
- package/dist-esm/src/operations/binaryHardening.js +155 -0
- package/dist-esm/src/operations/binaryHardening.js.map +1 -0
- package/dist-esm/src/operations/cryptoCertificates.d.ts +41 -0
- package/dist-esm/src/operations/cryptoCertificates.d.ts.map +1 -0
- package/dist-esm/src/operations/cryptoCertificates.js +155 -0
- package/dist-esm/src/operations/cryptoCertificates.js.map +1 -0
- package/dist-esm/src/operations/cryptoKeys.d.ts +41 -0
- package/dist-esm/src/operations/cryptoKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/cryptoKeys.js +155 -0
- package/dist-esm/src/operations/cryptoKeys.js.map +1 -0
- package/dist-esm/src/operations/cves.d.ts +41 -0
- package/dist-esm/src/operations/cves.d.ts.map +1 -0
- package/dist-esm/src/operations/cves.js +155 -0
- package/dist-esm/src/operations/cves.js.map +1 -0
- package/dist-esm/src/operations/firmwares.d.ts +88 -0
- package/dist-esm/src/operations/firmwares.d.ts.map +1 -0
- package/dist-esm/src/operations/firmwares.js +350 -0
- package/dist-esm/src/operations/firmwares.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +9 -2
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +9 -2
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.js +12 -17
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/passwordHashes.d.ts +41 -0
- package/dist-esm/src/operations/passwordHashes.d.ts.map +1 -0
- package/dist-esm/src/operations/passwordHashes.js +155 -0
- package/dist-esm/src/operations/passwordHashes.js.map +1 -0
- package/dist-esm/src/operations/sbomComponents.d.ts +41 -0
- package/dist-esm/src/operations/sbomComponents.d.ts.map +1 -0
- package/dist-esm/src/operations/sbomComponents.js +155 -0
- package/dist-esm/src/operations/sbomComponents.js.map +1 -0
- package/dist-esm/src/operations/summaries.d.ts +52 -0
- package/dist-esm/src/operations/summaries.d.ts.map +1 -0
- package/dist-esm/src/operations/summaries.js +191 -0
- package/dist-esm/src/operations/summaries.js.map +1 -0
- package/dist-esm/src/operations/workspaces.js +52 -66
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/binaryHardening.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/binaryHardening.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{firmwareOperations.js → binaryHardening.js} +1 -1
- package/dist-esm/src/operationsInterfaces/binaryHardening.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cryptoCertificates.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/cryptoCertificates.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cryptoCertificates.js +9 -0
- package/dist-esm/src/operationsInterfaces/cryptoCertificates.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cryptoKeys.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/cryptoKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cryptoKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/cryptoKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/cves.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/cves.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/cves.js +9 -0
- package/dist-esm/src/operationsInterfaces/cves.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/firmwares.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/firmwares.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/firmwares.js +9 -0
- package/dist-esm/src/operationsInterfaces/firmwares.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +9 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +9 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/passwordHashes.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/passwordHashes.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/passwordHashes.js +9 -0
- package/dist-esm/src/operationsInterfaces/passwordHashes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sbomComponents.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/sbomComponents.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/sbomComponents.js +9 -0
- package/dist-esm/src/operationsInterfaces/sbomComponents.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/summaries.d.ts +24 -0
- package/dist-esm/src/operationsInterfaces/summaries.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/summaries.js +9 -0
- package/dist-esm/src/operationsInterfaces/summaries.js.map +1 -0
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js +7 -17
- package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js.map +1 -1
- package/package.json +16 -21
- package/review/arm-iotfirmwaredefense.api.md +329 -330
- package/src/ioTFirmwareDefenseClient.ts +53 -24
- package/src/models/index.ts +566 -646
- package/src/models/mappers.ts +1190 -1036
- package/src/models/parameters.ts +59 -51
- package/src/operations/binaryHardening.ts +216 -0
- package/src/operations/cryptoCertificates.ts +216 -0
- package/src/operations/cryptoKeys.ts +216 -0
- package/src/operations/cves.ts +216 -0
- package/src/operations/firmwares.ts +469 -0
- package/src/operations/index.ts +9 -2
- package/src/operations/operations.ts +16 -16
- package/src/operations/passwordHashes.ts +216 -0
- package/src/operations/sbomComponents.ts +216 -0
- package/src/operations/summaries.ts +265 -0
- package/src/operations/workspaces.ts +81 -92
- package/src/operationsInterfaces/binaryHardening.ts +31 -0
- package/src/operationsInterfaces/cryptoCertificates.ts +31 -0
- package/src/operationsInterfaces/cryptoKeys.ts +31 -0
- package/src/operationsInterfaces/cves.ts +28 -0
- package/src/operationsInterfaces/firmwares.ts +123 -0
- package/src/operationsInterfaces/index.ts +9 -2
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/passwordHashes.ts +31 -0
- package/src/operationsInterfaces/sbomComponents.ts +31 -0
- package/src/operationsInterfaces/summaries.ts +50 -0
- package/src/operationsInterfaces/workspaces.ts +8 -8
- package/src/pagingHelper.ts +1 -1
- package/types/arm-iotfirmwaredefense.d.ts +573 -675
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/firmwareCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.js +0 -62
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.js +0 -62
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.js +0 -62
- package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.js +0 -61
- package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.js +0 -61
- package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.js +0 -62
- package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateSummarySample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareGenerateSummarySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareGenerateSummarySample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareGetSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareListByWorkspaceSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareListByWorkspaceSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareListByWorkspaceSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.js +0 -104
- package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.js +0 -104
- package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareListGenerateCveListSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareListGenerateCveListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareListGenerateCveListSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.js +0 -104
- package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.js.map +0 -1
- package/dist-esm/samples-dev/firmwareUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/firmwareUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/firmwareUpdateSample.js.map +0 -1
- package/dist-esm/src/operations/firmwareOperations.d.ts +0 -313
- package/dist-esm/src/operations/firmwareOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/firmwareOperations.js +0 -1393
- package/dist-esm/src/operations/firmwareOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/firmwareOperations.d.ts +0 -169
- package/dist-esm/src/operationsInterfaces/firmwareOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/firmwareOperations.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/operations/firmwareOperations.ts +0 -1892
- package/src/operationsInterfaces/firmwareOperations.ts +0 -320
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { PasswordHashes } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient";
|
|
16
|
+
import {
|
|
17
|
+
PasswordHashResource,
|
|
18
|
+
PasswordHashesListByFirmwareNextOptionalParams,
|
|
19
|
+
PasswordHashesListByFirmwareOptionalParams,
|
|
20
|
+
PasswordHashesListByFirmwareResponse,
|
|
21
|
+
PasswordHashesListByFirmwareNextResponse,
|
|
22
|
+
} from "../models";
|
|
23
|
+
|
|
24
|
+
/// <reference lib="esnext.asynciterable" />
|
|
25
|
+
/** Class containing PasswordHashes operations. */
|
|
26
|
+
export class PasswordHashesImpl implements PasswordHashes {
|
|
27
|
+
private readonly client: IoTFirmwareDefenseClient;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Initialize a new instance of the class PasswordHashes class.
|
|
31
|
+
* @param client Reference to the service client
|
|
32
|
+
*/
|
|
33
|
+
constructor(client: IoTFirmwareDefenseClient) {
|
|
34
|
+
this.client = client;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Lists password hash analysis results of a firmware.
|
|
39
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
40
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
41
|
+
* @param firmwareId The id of the firmware.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
public listByFirmware(
|
|
45
|
+
resourceGroupName: string,
|
|
46
|
+
workspaceName: string,
|
|
47
|
+
firmwareId: string,
|
|
48
|
+
options?: PasswordHashesListByFirmwareOptionalParams,
|
|
49
|
+
): PagedAsyncIterableIterator<PasswordHashResource> {
|
|
50
|
+
const iter = this.listByFirmwarePagingAll(
|
|
51
|
+
resourceGroupName,
|
|
52
|
+
workspaceName,
|
|
53
|
+
firmwareId,
|
|
54
|
+
options,
|
|
55
|
+
);
|
|
56
|
+
return {
|
|
57
|
+
next() {
|
|
58
|
+
return iter.next();
|
|
59
|
+
},
|
|
60
|
+
[Symbol.asyncIterator]() {
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
byPage: (settings?: PageSettings) => {
|
|
64
|
+
if (settings?.maxPageSize) {
|
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
66
|
+
}
|
|
67
|
+
return this.listByFirmwarePagingPage(
|
|
68
|
+
resourceGroupName,
|
|
69
|
+
workspaceName,
|
|
70
|
+
firmwareId,
|
|
71
|
+
options,
|
|
72
|
+
settings,
|
|
73
|
+
);
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private async *listByFirmwarePagingPage(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
workspaceName: string,
|
|
81
|
+
firmwareId: string,
|
|
82
|
+
options?: PasswordHashesListByFirmwareOptionalParams,
|
|
83
|
+
settings?: PageSettings,
|
|
84
|
+
): AsyncIterableIterator<PasswordHashResource[]> {
|
|
85
|
+
let result: PasswordHashesListByFirmwareResponse;
|
|
86
|
+
let continuationToken = settings?.continuationToken;
|
|
87
|
+
if (!continuationToken) {
|
|
88
|
+
result = await this._listByFirmware(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
workspaceName,
|
|
91
|
+
firmwareId,
|
|
92
|
+
options,
|
|
93
|
+
);
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
99
|
+
while (continuationToken) {
|
|
100
|
+
result = await this._listByFirmwareNext(
|
|
101
|
+
resourceGroupName,
|
|
102
|
+
workspaceName,
|
|
103
|
+
firmwareId,
|
|
104
|
+
continuationToken,
|
|
105
|
+
options,
|
|
106
|
+
);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
private async *listByFirmwarePagingAll(
|
|
115
|
+
resourceGroupName: string,
|
|
116
|
+
workspaceName: string,
|
|
117
|
+
firmwareId: string,
|
|
118
|
+
options?: PasswordHashesListByFirmwareOptionalParams,
|
|
119
|
+
): AsyncIterableIterator<PasswordHashResource> {
|
|
120
|
+
for await (const page of this.listByFirmwarePagingPage(
|
|
121
|
+
resourceGroupName,
|
|
122
|
+
workspaceName,
|
|
123
|
+
firmwareId,
|
|
124
|
+
options,
|
|
125
|
+
)) {
|
|
126
|
+
yield* page;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Lists password hash analysis results of a firmware.
|
|
132
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
133
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
134
|
+
* @param firmwareId The id of the firmware.
|
|
135
|
+
* @param options The options parameters.
|
|
136
|
+
*/
|
|
137
|
+
private _listByFirmware(
|
|
138
|
+
resourceGroupName: string,
|
|
139
|
+
workspaceName: string,
|
|
140
|
+
firmwareId: string,
|
|
141
|
+
options?: PasswordHashesListByFirmwareOptionalParams,
|
|
142
|
+
): Promise<PasswordHashesListByFirmwareResponse> {
|
|
143
|
+
return this.client.sendOperationRequest(
|
|
144
|
+
{ resourceGroupName, workspaceName, firmwareId, options },
|
|
145
|
+
listByFirmwareOperationSpec,
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* ListByFirmwareNext
|
|
151
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
152
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
153
|
+
* @param firmwareId The id of the firmware.
|
|
154
|
+
* @param nextLink The nextLink from the previous successful call to the ListByFirmware method.
|
|
155
|
+
* @param options The options parameters.
|
|
156
|
+
*/
|
|
157
|
+
private _listByFirmwareNext(
|
|
158
|
+
resourceGroupName: string,
|
|
159
|
+
workspaceName: string,
|
|
160
|
+
firmwareId: string,
|
|
161
|
+
nextLink: string,
|
|
162
|
+
options?: PasswordHashesListByFirmwareNextOptionalParams,
|
|
163
|
+
): Promise<PasswordHashesListByFirmwareNextResponse> {
|
|
164
|
+
return this.client.sendOperationRequest(
|
|
165
|
+
{ resourceGroupName, workspaceName, firmwareId, nextLink, options },
|
|
166
|
+
listByFirmwareNextOperationSpec,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
// Operation Specifications
|
|
171
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
172
|
+
|
|
173
|
+
const listByFirmwareOperationSpec: coreClient.OperationSpec = {
|
|
174
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/passwordHashes",
|
|
175
|
+
httpMethod: "GET",
|
|
176
|
+
responses: {
|
|
177
|
+
200: {
|
|
178
|
+
bodyMapper: Mappers.PasswordHashListResult,
|
|
179
|
+
},
|
|
180
|
+
default: {
|
|
181
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
queryParameters: [Parameters.apiVersion],
|
|
185
|
+
urlParameters: [
|
|
186
|
+
Parameters.$host,
|
|
187
|
+
Parameters.subscriptionId,
|
|
188
|
+
Parameters.resourceGroupName,
|
|
189
|
+
Parameters.workspaceName,
|
|
190
|
+
Parameters.firmwareId,
|
|
191
|
+
],
|
|
192
|
+
headerParameters: [Parameters.accept],
|
|
193
|
+
serializer,
|
|
194
|
+
};
|
|
195
|
+
const listByFirmwareNextOperationSpec: coreClient.OperationSpec = {
|
|
196
|
+
path: "{nextLink}",
|
|
197
|
+
httpMethod: "GET",
|
|
198
|
+
responses: {
|
|
199
|
+
200: {
|
|
200
|
+
bodyMapper: Mappers.PasswordHashListResult,
|
|
201
|
+
},
|
|
202
|
+
default: {
|
|
203
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
urlParameters: [
|
|
207
|
+
Parameters.$host,
|
|
208
|
+
Parameters.subscriptionId,
|
|
209
|
+
Parameters.resourceGroupName,
|
|
210
|
+
Parameters.workspaceName,
|
|
211
|
+
Parameters.firmwareId,
|
|
212
|
+
Parameters.nextLink,
|
|
213
|
+
],
|
|
214
|
+
headerParameters: [Parameters.accept],
|
|
215
|
+
serializer,
|
|
216
|
+
};
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { SbomComponents } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient";
|
|
16
|
+
import {
|
|
17
|
+
SbomComponentResource,
|
|
18
|
+
SbomComponentsListByFirmwareNextOptionalParams,
|
|
19
|
+
SbomComponentsListByFirmwareOptionalParams,
|
|
20
|
+
SbomComponentsListByFirmwareResponse,
|
|
21
|
+
SbomComponentsListByFirmwareNextResponse,
|
|
22
|
+
} from "../models";
|
|
23
|
+
|
|
24
|
+
/// <reference lib="esnext.asynciterable" />
|
|
25
|
+
/** Class containing SbomComponents operations. */
|
|
26
|
+
export class SbomComponentsImpl implements SbomComponents {
|
|
27
|
+
private readonly client: IoTFirmwareDefenseClient;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Initialize a new instance of the class SbomComponents class.
|
|
31
|
+
* @param client Reference to the service client
|
|
32
|
+
*/
|
|
33
|
+
constructor(client: IoTFirmwareDefenseClient) {
|
|
34
|
+
this.client = client;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Lists SBOM analysis results of a firmware.
|
|
39
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
40
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
41
|
+
* @param firmwareId The id of the firmware.
|
|
42
|
+
* @param options The options parameters.
|
|
43
|
+
*/
|
|
44
|
+
public listByFirmware(
|
|
45
|
+
resourceGroupName: string,
|
|
46
|
+
workspaceName: string,
|
|
47
|
+
firmwareId: string,
|
|
48
|
+
options?: SbomComponentsListByFirmwareOptionalParams,
|
|
49
|
+
): PagedAsyncIterableIterator<SbomComponentResource> {
|
|
50
|
+
const iter = this.listByFirmwarePagingAll(
|
|
51
|
+
resourceGroupName,
|
|
52
|
+
workspaceName,
|
|
53
|
+
firmwareId,
|
|
54
|
+
options,
|
|
55
|
+
);
|
|
56
|
+
return {
|
|
57
|
+
next() {
|
|
58
|
+
return iter.next();
|
|
59
|
+
},
|
|
60
|
+
[Symbol.asyncIterator]() {
|
|
61
|
+
return this;
|
|
62
|
+
},
|
|
63
|
+
byPage: (settings?: PageSettings) => {
|
|
64
|
+
if (settings?.maxPageSize) {
|
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
66
|
+
}
|
|
67
|
+
return this.listByFirmwarePagingPage(
|
|
68
|
+
resourceGroupName,
|
|
69
|
+
workspaceName,
|
|
70
|
+
firmwareId,
|
|
71
|
+
options,
|
|
72
|
+
settings,
|
|
73
|
+
);
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private async *listByFirmwarePagingPage(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
workspaceName: string,
|
|
81
|
+
firmwareId: string,
|
|
82
|
+
options?: SbomComponentsListByFirmwareOptionalParams,
|
|
83
|
+
settings?: PageSettings,
|
|
84
|
+
): AsyncIterableIterator<SbomComponentResource[]> {
|
|
85
|
+
let result: SbomComponentsListByFirmwareResponse;
|
|
86
|
+
let continuationToken = settings?.continuationToken;
|
|
87
|
+
if (!continuationToken) {
|
|
88
|
+
result = await this._listByFirmware(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
workspaceName,
|
|
91
|
+
firmwareId,
|
|
92
|
+
options,
|
|
93
|
+
);
|
|
94
|
+
let page = result.value || [];
|
|
95
|
+
continuationToken = result.nextLink;
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
98
|
+
}
|
|
99
|
+
while (continuationToken) {
|
|
100
|
+
result = await this._listByFirmwareNext(
|
|
101
|
+
resourceGroupName,
|
|
102
|
+
workspaceName,
|
|
103
|
+
firmwareId,
|
|
104
|
+
continuationToken,
|
|
105
|
+
options,
|
|
106
|
+
);
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
private async *listByFirmwarePagingAll(
|
|
115
|
+
resourceGroupName: string,
|
|
116
|
+
workspaceName: string,
|
|
117
|
+
firmwareId: string,
|
|
118
|
+
options?: SbomComponentsListByFirmwareOptionalParams,
|
|
119
|
+
): AsyncIterableIterator<SbomComponentResource> {
|
|
120
|
+
for await (const page of this.listByFirmwarePagingPage(
|
|
121
|
+
resourceGroupName,
|
|
122
|
+
workspaceName,
|
|
123
|
+
firmwareId,
|
|
124
|
+
options,
|
|
125
|
+
)) {
|
|
126
|
+
yield* page;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Lists SBOM analysis results of a firmware.
|
|
132
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
133
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
134
|
+
* @param firmwareId The id of the firmware.
|
|
135
|
+
* @param options The options parameters.
|
|
136
|
+
*/
|
|
137
|
+
private _listByFirmware(
|
|
138
|
+
resourceGroupName: string,
|
|
139
|
+
workspaceName: string,
|
|
140
|
+
firmwareId: string,
|
|
141
|
+
options?: SbomComponentsListByFirmwareOptionalParams,
|
|
142
|
+
): Promise<SbomComponentsListByFirmwareResponse> {
|
|
143
|
+
return this.client.sendOperationRequest(
|
|
144
|
+
{ resourceGroupName, workspaceName, firmwareId, options },
|
|
145
|
+
listByFirmwareOperationSpec,
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* ListByFirmwareNext
|
|
151
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
152
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
153
|
+
* @param firmwareId The id of the firmware.
|
|
154
|
+
* @param nextLink The nextLink from the previous successful call to the ListByFirmware method.
|
|
155
|
+
* @param options The options parameters.
|
|
156
|
+
*/
|
|
157
|
+
private _listByFirmwareNext(
|
|
158
|
+
resourceGroupName: string,
|
|
159
|
+
workspaceName: string,
|
|
160
|
+
firmwareId: string,
|
|
161
|
+
nextLink: string,
|
|
162
|
+
options?: SbomComponentsListByFirmwareNextOptionalParams,
|
|
163
|
+
): Promise<SbomComponentsListByFirmwareNextResponse> {
|
|
164
|
+
return this.client.sendOperationRequest(
|
|
165
|
+
{ resourceGroupName, workspaceName, firmwareId, nextLink, options },
|
|
166
|
+
listByFirmwareNextOperationSpec,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
// Operation Specifications
|
|
171
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
172
|
+
|
|
173
|
+
const listByFirmwareOperationSpec: coreClient.OperationSpec = {
|
|
174
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/sbomComponents",
|
|
175
|
+
httpMethod: "GET",
|
|
176
|
+
responses: {
|
|
177
|
+
200: {
|
|
178
|
+
bodyMapper: Mappers.SbomComponentListResult,
|
|
179
|
+
},
|
|
180
|
+
default: {
|
|
181
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
queryParameters: [Parameters.apiVersion],
|
|
185
|
+
urlParameters: [
|
|
186
|
+
Parameters.$host,
|
|
187
|
+
Parameters.subscriptionId,
|
|
188
|
+
Parameters.resourceGroupName,
|
|
189
|
+
Parameters.workspaceName,
|
|
190
|
+
Parameters.firmwareId,
|
|
191
|
+
],
|
|
192
|
+
headerParameters: [Parameters.accept],
|
|
193
|
+
serializer,
|
|
194
|
+
};
|
|
195
|
+
const listByFirmwareNextOperationSpec: coreClient.OperationSpec = {
|
|
196
|
+
path: "{nextLink}",
|
|
197
|
+
httpMethod: "GET",
|
|
198
|
+
responses: {
|
|
199
|
+
200: {
|
|
200
|
+
bodyMapper: Mappers.SbomComponentListResult,
|
|
201
|
+
},
|
|
202
|
+
default: {
|
|
203
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
urlParameters: [
|
|
207
|
+
Parameters.$host,
|
|
208
|
+
Parameters.subscriptionId,
|
|
209
|
+
Parameters.resourceGroupName,
|
|
210
|
+
Parameters.workspaceName,
|
|
211
|
+
Parameters.firmwareId,
|
|
212
|
+
Parameters.nextLink,
|
|
213
|
+
],
|
|
214
|
+
headerParameters: [Parameters.accept],
|
|
215
|
+
serializer,
|
|
216
|
+
};
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
11
|
+
import { Summaries } from "../operationsInterfaces";
|
|
12
|
+
import * as coreClient from "@azure/core-client";
|
|
13
|
+
import * as Mappers from "../models/mappers";
|
|
14
|
+
import * as Parameters from "../models/parameters";
|
|
15
|
+
import { IoTFirmwareDefenseClient } from "../ioTFirmwareDefenseClient";
|
|
16
|
+
import {
|
|
17
|
+
SummaryResource,
|
|
18
|
+
SummariesListByFirmwareNextOptionalParams,
|
|
19
|
+
SummariesListByFirmwareOptionalParams,
|
|
20
|
+
SummariesListByFirmwareResponse,
|
|
21
|
+
SummaryName,
|
|
22
|
+
SummariesGetOptionalParams,
|
|
23
|
+
SummariesGetResponse,
|
|
24
|
+
SummariesListByFirmwareNextResponse,
|
|
25
|
+
} from "../models";
|
|
26
|
+
|
|
27
|
+
/// <reference lib="esnext.asynciterable" />
|
|
28
|
+
/** Class containing Summaries operations. */
|
|
29
|
+
export class SummariesImpl implements Summaries {
|
|
30
|
+
private readonly client: IoTFirmwareDefenseClient;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Initialize a new instance of the class Summaries class.
|
|
34
|
+
* @param client Reference to the service client
|
|
35
|
+
*/
|
|
36
|
+
constructor(client: IoTFirmwareDefenseClient) {
|
|
37
|
+
this.client = client;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary
|
|
42
|
+
* by name.
|
|
43
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
44
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
45
|
+
* @param firmwareId The id of the firmware.
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
public listByFirmware(
|
|
49
|
+
resourceGroupName: string,
|
|
50
|
+
workspaceName: string,
|
|
51
|
+
firmwareId: string,
|
|
52
|
+
options?: SummariesListByFirmwareOptionalParams,
|
|
53
|
+
): PagedAsyncIterableIterator<SummaryResource> {
|
|
54
|
+
const iter = this.listByFirmwarePagingAll(
|
|
55
|
+
resourceGroupName,
|
|
56
|
+
workspaceName,
|
|
57
|
+
firmwareId,
|
|
58
|
+
options,
|
|
59
|
+
);
|
|
60
|
+
return {
|
|
61
|
+
next() {
|
|
62
|
+
return iter.next();
|
|
63
|
+
},
|
|
64
|
+
[Symbol.asyncIterator]() {
|
|
65
|
+
return this;
|
|
66
|
+
},
|
|
67
|
+
byPage: (settings?: PageSettings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
71
|
+
return this.listByFirmwarePagingPage(
|
|
72
|
+
resourceGroupName,
|
|
73
|
+
workspaceName,
|
|
74
|
+
firmwareId,
|
|
75
|
+
options,
|
|
76
|
+
settings,
|
|
77
|
+
);
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private async *listByFirmwarePagingPage(
|
|
83
|
+
resourceGroupName: string,
|
|
84
|
+
workspaceName: string,
|
|
85
|
+
firmwareId: string,
|
|
86
|
+
options?: SummariesListByFirmwareOptionalParams,
|
|
87
|
+
settings?: PageSettings,
|
|
88
|
+
): AsyncIterableIterator<SummaryResource[]> {
|
|
89
|
+
let result: SummariesListByFirmwareResponse;
|
|
90
|
+
let continuationToken = settings?.continuationToken;
|
|
91
|
+
if (!continuationToken) {
|
|
92
|
+
result = await this._listByFirmware(
|
|
93
|
+
resourceGroupName,
|
|
94
|
+
workspaceName,
|
|
95
|
+
firmwareId,
|
|
96
|
+
options,
|
|
97
|
+
);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
setContinuationToken(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listByFirmwareNext(
|
|
105
|
+
resourceGroupName,
|
|
106
|
+
workspaceName,
|
|
107
|
+
firmwareId,
|
|
108
|
+
continuationToken,
|
|
109
|
+
options,
|
|
110
|
+
);
|
|
111
|
+
continuationToken = result.nextLink;
|
|
112
|
+
let page = result.value || [];
|
|
113
|
+
setContinuationToken(page, continuationToken);
|
|
114
|
+
yield page;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
private async *listByFirmwarePagingAll(
|
|
119
|
+
resourceGroupName: string,
|
|
120
|
+
workspaceName: string,
|
|
121
|
+
firmwareId: string,
|
|
122
|
+
options?: SummariesListByFirmwareOptionalParams,
|
|
123
|
+
): AsyncIterableIterator<SummaryResource> {
|
|
124
|
+
for await (const page of this.listByFirmwarePagingPage(
|
|
125
|
+
resourceGroupName,
|
|
126
|
+
workspaceName,
|
|
127
|
+
firmwareId,
|
|
128
|
+
options,
|
|
129
|
+
)) {
|
|
130
|
+
yield* page;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Lists analysis result summary names of a firmware. To fetch the full summary data, get that summary
|
|
136
|
+
* by name.
|
|
137
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
138
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
139
|
+
* @param firmwareId The id of the firmware.
|
|
140
|
+
* @param options The options parameters.
|
|
141
|
+
*/
|
|
142
|
+
private _listByFirmware(
|
|
143
|
+
resourceGroupName: string,
|
|
144
|
+
workspaceName: string,
|
|
145
|
+
firmwareId: string,
|
|
146
|
+
options?: SummariesListByFirmwareOptionalParams,
|
|
147
|
+
): Promise<SummariesListByFirmwareResponse> {
|
|
148
|
+
return this.client.sendOperationRequest(
|
|
149
|
+
{ resourceGroupName, workspaceName, firmwareId, options },
|
|
150
|
+
listByFirmwareOperationSpec,
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Get an analysis result summary of a firmware by name.
|
|
156
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
157
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
158
|
+
* @param firmwareId The id of the firmware.
|
|
159
|
+
* @param summaryName The Firmware analysis summary name describing the type of summary.
|
|
160
|
+
* @param options The options parameters.
|
|
161
|
+
*/
|
|
162
|
+
get(
|
|
163
|
+
resourceGroupName: string,
|
|
164
|
+
workspaceName: string,
|
|
165
|
+
firmwareId: string,
|
|
166
|
+
summaryName: SummaryName,
|
|
167
|
+
options?: SummariesGetOptionalParams,
|
|
168
|
+
): Promise<SummariesGetResponse> {
|
|
169
|
+
return this.client.sendOperationRequest(
|
|
170
|
+
{ resourceGroupName, workspaceName, firmwareId, summaryName, options },
|
|
171
|
+
getOperationSpec,
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* ListByFirmwareNext
|
|
177
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
178
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
179
|
+
* @param firmwareId The id of the firmware.
|
|
180
|
+
* @param nextLink The nextLink from the previous successful call to the ListByFirmware method.
|
|
181
|
+
* @param options The options parameters.
|
|
182
|
+
*/
|
|
183
|
+
private _listByFirmwareNext(
|
|
184
|
+
resourceGroupName: string,
|
|
185
|
+
workspaceName: string,
|
|
186
|
+
firmwareId: string,
|
|
187
|
+
nextLink: string,
|
|
188
|
+
options?: SummariesListByFirmwareNextOptionalParams,
|
|
189
|
+
): Promise<SummariesListByFirmwareNextResponse> {
|
|
190
|
+
return this.client.sendOperationRequest(
|
|
191
|
+
{ resourceGroupName, workspaceName, firmwareId, nextLink, options },
|
|
192
|
+
listByFirmwareNextOperationSpec,
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
// Operation Specifications
|
|
197
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
198
|
+
|
|
199
|
+
const listByFirmwareOperationSpec: coreClient.OperationSpec = {
|
|
200
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/summaries",
|
|
201
|
+
httpMethod: "GET",
|
|
202
|
+
responses: {
|
|
203
|
+
200: {
|
|
204
|
+
bodyMapper: Mappers.SummaryListResult,
|
|
205
|
+
},
|
|
206
|
+
default: {
|
|
207
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
queryParameters: [Parameters.apiVersion],
|
|
211
|
+
urlParameters: [
|
|
212
|
+
Parameters.$host,
|
|
213
|
+
Parameters.subscriptionId,
|
|
214
|
+
Parameters.resourceGroupName,
|
|
215
|
+
Parameters.workspaceName,
|
|
216
|
+
Parameters.firmwareId,
|
|
217
|
+
],
|
|
218
|
+
headerParameters: [Parameters.accept],
|
|
219
|
+
serializer,
|
|
220
|
+
};
|
|
221
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
222
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/summaries/{summaryName}",
|
|
223
|
+
httpMethod: "GET",
|
|
224
|
+
responses: {
|
|
225
|
+
200: {
|
|
226
|
+
bodyMapper: Mappers.SummaryResource,
|
|
227
|
+
},
|
|
228
|
+
default: {
|
|
229
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
queryParameters: [Parameters.apiVersion],
|
|
233
|
+
urlParameters: [
|
|
234
|
+
Parameters.$host,
|
|
235
|
+
Parameters.subscriptionId,
|
|
236
|
+
Parameters.resourceGroupName,
|
|
237
|
+
Parameters.workspaceName,
|
|
238
|
+
Parameters.firmwareId,
|
|
239
|
+
Parameters.summaryName,
|
|
240
|
+
],
|
|
241
|
+
headerParameters: [Parameters.accept],
|
|
242
|
+
serializer,
|
|
243
|
+
};
|
|
244
|
+
const listByFirmwareNextOperationSpec: coreClient.OperationSpec = {
|
|
245
|
+
path: "{nextLink}",
|
|
246
|
+
httpMethod: "GET",
|
|
247
|
+
responses: {
|
|
248
|
+
200: {
|
|
249
|
+
bodyMapper: Mappers.SummaryListResult,
|
|
250
|
+
},
|
|
251
|
+
default: {
|
|
252
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
urlParameters: [
|
|
256
|
+
Parameters.$host,
|
|
257
|
+
Parameters.subscriptionId,
|
|
258
|
+
Parameters.resourceGroupName,
|
|
259
|
+
Parameters.workspaceName,
|
|
260
|
+
Parameters.firmwareId,
|
|
261
|
+
Parameters.nextLink,
|
|
262
|
+
],
|
|
263
|
+
headerParameters: [Parameters.accept],
|
|
264
|
+
serializer,
|
|
265
|
+
};
|