@azure/arm-iotfirmwaredefense 1.0.0-alpha.20240312.1 → 1.0.0-alpha.20240322.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/CHANGELOG.md +2 -12
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +2254 -2121
- 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} +19 -20
- 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/{firmwareListGenerateComponentListSample.js → cryptoCertificatesListByFirmwareSample.js} +21 -23
- 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} +19 -20
- 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/{firmwareListGenerateCveListSample.js → cvesListByFirmwareSample.js} +21 -23
- 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} +9 -9
- 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 +2 -2
- 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/{firmwareListGenerateBinaryHardeningListSample.js → summariesListByFirmwareSample.js} +21 -23
- 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 +2 -2
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +2 -2
- 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 +9 -9
- 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 +46 -50
- 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/test/iotfirmwaredefense_operations_test.spec.js +1 -1
- package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js.map +1 -1
- package/package.json +8 -8
- 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.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.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 -94
- 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 -1358
- 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/src/operations/firmwareOperations.ts +0 -1892
- package/src/operationsInterfaces/firmwareOperations.ts +0 -320
|
@@ -0,0 +1,469 @@
|
|
|
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 { Firmwares } 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
|
+
Firmware,
|
|
18
|
+
FirmwaresListByWorkspaceNextOptionalParams,
|
|
19
|
+
FirmwaresListByWorkspaceOptionalParams,
|
|
20
|
+
FirmwaresListByWorkspaceResponse,
|
|
21
|
+
FirmwaresCreateOptionalParams,
|
|
22
|
+
FirmwaresCreateResponse,
|
|
23
|
+
FirmwareUpdateDefinition,
|
|
24
|
+
FirmwaresUpdateOptionalParams,
|
|
25
|
+
FirmwaresUpdateResponse,
|
|
26
|
+
FirmwaresDeleteOptionalParams,
|
|
27
|
+
FirmwaresGetOptionalParams,
|
|
28
|
+
FirmwaresGetResponse,
|
|
29
|
+
FirmwaresGenerateDownloadUrlOptionalParams,
|
|
30
|
+
FirmwaresGenerateDownloadUrlResponse,
|
|
31
|
+
FirmwaresGenerateFilesystemDownloadUrlOptionalParams,
|
|
32
|
+
FirmwaresGenerateFilesystemDownloadUrlResponse,
|
|
33
|
+
FirmwaresListByWorkspaceNextResponse,
|
|
34
|
+
} from "../models";
|
|
35
|
+
|
|
36
|
+
/// <reference lib="esnext.asynciterable" />
|
|
37
|
+
/** Class containing Firmwares operations. */
|
|
38
|
+
export class FirmwaresImpl implements Firmwares {
|
|
39
|
+
private readonly client: IoTFirmwareDefenseClient;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Initialize a new instance of the class Firmwares class.
|
|
43
|
+
* @param client Reference to the service client
|
|
44
|
+
*/
|
|
45
|
+
constructor(client: IoTFirmwareDefenseClient) {
|
|
46
|
+
this.client = client;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Lists all of firmwares inside a workspace.
|
|
51
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
52
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
public listByWorkspace(
|
|
56
|
+
resourceGroupName: string,
|
|
57
|
+
workspaceName: string,
|
|
58
|
+
options?: FirmwaresListByWorkspaceOptionalParams,
|
|
59
|
+
): PagedAsyncIterableIterator<Firmware> {
|
|
60
|
+
const iter = this.listByWorkspacePagingAll(
|
|
61
|
+
resourceGroupName,
|
|
62
|
+
workspaceName,
|
|
63
|
+
options,
|
|
64
|
+
);
|
|
65
|
+
return {
|
|
66
|
+
next() {
|
|
67
|
+
return iter.next();
|
|
68
|
+
},
|
|
69
|
+
[Symbol.asyncIterator]() {
|
|
70
|
+
return this;
|
|
71
|
+
},
|
|
72
|
+
byPage: (settings?: PageSettings) => {
|
|
73
|
+
if (settings?.maxPageSize) {
|
|
74
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
75
|
+
}
|
|
76
|
+
return this.listByWorkspacePagingPage(
|
|
77
|
+
resourceGroupName,
|
|
78
|
+
workspaceName,
|
|
79
|
+
options,
|
|
80
|
+
settings,
|
|
81
|
+
);
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
private async *listByWorkspacePagingPage(
|
|
87
|
+
resourceGroupName: string,
|
|
88
|
+
workspaceName: string,
|
|
89
|
+
options?: FirmwaresListByWorkspaceOptionalParams,
|
|
90
|
+
settings?: PageSettings,
|
|
91
|
+
): AsyncIterableIterator<Firmware[]> {
|
|
92
|
+
let result: FirmwaresListByWorkspaceResponse;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByWorkspace(
|
|
96
|
+
resourceGroupName,
|
|
97
|
+
workspaceName,
|
|
98
|
+
options,
|
|
99
|
+
);
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
continuationToken = result.nextLink;
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
104
|
+
}
|
|
105
|
+
while (continuationToken) {
|
|
106
|
+
result = await this._listByWorkspaceNext(
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
workspaceName,
|
|
109
|
+
continuationToken,
|
|
110
|
+
options,
|
|
111
|
+
);
|
|
112
|
+
continuationToken = result.nextLink;
|
|
113
|
+
let page = result.value || [];
|
|
114
|
+
setContinuationToken(page, continuationToken);
|
|
115
|
+
yield page;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
private async *listByWorkspacePagingAll(
|
|
120
|
+
resourceGroupName: string,
|
|
121
|
+
workspaceName: string,
|
|
122
|
+
options?: FirmwaresListByWorkspaceOptionalParams,
|
|
123
|
+
): AsyncIterableIterator<Firmware> {
|
|
124
|
+
for await (const page of this.listByWorkspacePagingPage(
|
|
125
|
+
resourceGroupName,
|
|
126
|
+
workspaceName,
|
|
127
|
+
options,
|
|
128
|
+
)) {
|
|
129
|
+
yield* page;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Lists all of firmwares inside a workspace.
|
|
135
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
136
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
private _listByWorkspace(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
workspaceName: string,
|
|
142
|
+
options?: FirmwaresListByWorkspaceOptionalParams,
|
|
143
|
+
): Promise<FirmwaresListByWorkspaceResponse> {
|
|
144
|
+
return this.client.sendOperationRequest(
|
|
145
|
+
{ resourceGroupName, workspaceName, options },
|
|
146
|
+
listByWorkspaceOperationSpec,
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The operation to create a firmware.
|
|
152
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
153
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
154
|
+
* @param firmwareId The id of the firmware.
|
|
155
|
+
* @param firmware Details of the firmware being created or updated.
|
|
156
|
+
* @param options The options parameters.
|
|
157
|
+
*/
|
|
158
|
+
create(
|
|
159
|
+
resourceGroupName: string,
|
|
160
|
+
workspaceName: string,
|
|
161
|
+
firmwareId: string,
|
|
162
|
+
firmware: Firmware,
|
|
163
|
+
options?: FirmwaresCreateOptionalParams,
|
|
164
|
+
): Promise<FirmwaresCreateResponse> {
|
|
165
|
+
return this.client.sendOperationRequest(
|
|
166
|
+
{ resourceGroupName, workspaceName, firmwareId, firmware, options },
|
|
167
|
+
createOperationSpec,
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The operation to update firmware.
|
|
173
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
174
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
175
|
+
* @param firmwareId The id of the firmware.
|
|
176
|
+
* @param firmware Details of the firmware being created or updated.
|
|
177
|
+
* @param options The options parameters.
|
|
178
|
+
*/
|
|
179
|
+
update(
|
|
180
|
+
resourceGroupName: string,
|
|
181
|
+
workspaceName: string,
|
|
182
|
+
firmwareId: string,
|
|
183
|
+
firmware: FirmwareUpdateDefinition,
|
|
184
|
+
options?: FirmwaresUpdateOptionalParams,
|
|
185
|
+
): Promise<FirmwaresUpdateResponse> {
|
|
186
|
+
return this.client.sendOperationRequest(
|
|
187
|
+
{ resourceGroupName, workspaceName, firmwareId, firmware, options },
|
|
188
|
+
updateOperationSpec,
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The operation to delete a firmware.
|
|
194
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
195
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
196
|
+
* @param firmwareId The id of the firmware.
|
|
197
|
+
* @param options The options parameters.
|
|
198
|
+
*/
|
|
199
|
+
delete(
|
|
200
|
+
resourceGroupName: string,
|
|
201
|
+
workspaceName: string,
|
|
202
|
+
firmwareId: string,
|
|
203
|
+
options?: FirmwaresDeleteOptionalParams,
|
|
204
|
+
): Promise<void> {
|
|
205
|
+
return this.client.sendOperationRequest(
|
|
206
|
+
{ resourceGroupName, workspaceName, firmwareId, options },
|
|
207
|
+
deleteOperationSpec,
|
|
208
|
+
);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Get firmware.
|
|
213
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
214
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
215
|
+
* @param firmwareId The id of the firmware.
|
|
216
|
+
* @param options The options parameters.
|
|
217
|
+
*/
|
|
218
|
+
get(
|
|
219
|
+
resourceGroupName: string,
|
|
220
|
+
workspaceName: string,
|
|
221
|
+
firmwareId: string,
|
|
222
|
+
options?: FirmwaresGetOptionalParams,
|
|
223
|
+
): Promise<FirmwaresGetResponse> {
|
|
224
|
+
return this.client.sendOperationRequest(
|
|
225
|
+
{ resourceGroupName, workspaceName, firmwareId, options },
|
|
226
|
+
getOperationSpec,
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* The operation to a url for file download.
|
|
232
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
233
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
234
|
+
* @param firmwareId The id of the firmware.
|
|
235
|
+
* @param options The options parameters.
|
|
236
|
+
*/
|
|
237
|
+
generateDownloadUrl(
|
|
238
|
+
resourceGroupName: string,
|
|
239
|
+
workspaceName: string,
|
|
240
|
+
firmwareId: string,
|
|
241
|
+
options?: FirmwaresGenerateDownloadUrlOptionalParams,
|
|
242
|
+
): Promise<FirmwaresGenerateDownloadUrlResponse> {
|
|
243
|
+
return this.client.sendOperationRequest(
|
|
244
|
+
{ resourceGroupName, workspaceName, firmwareId, options },
|
|
245
|
+
generateDownloadUrlOperationSpec,
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The operation to a url for tar file download.
|
|
251
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
252
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
253
|
+
* @param firmwareId The id of the firmware.
|
|
254
|
+
* @param options The options parameters.
|
|
255
|
+
*/
|
|
256
|
+
generateFilesystemDownloadUrl(
|
|
257
|
+
resourceGroupName: string,
|
|
258
|
+
workspaceName: string,
|
|
259
|
+
firmwareId: string,
|
|
260
|
+
options?: FirmwaresGenerateFilesystemDownloadUrlOptionalParams,
|
|
261
|
+
): Promise<FirmwaresGenerateFilesystemDownloadUrlResponse> {
|
|
262
|
+
return this.client.sendOperationRequest(
|
|
263
|
+
{ resourceGroupName, workspaceName, firmwareId, options },
|
|
264
|
+
generateFilesystemDownloadUrlOperationSpec,
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* ListByWorkspaceNext
|
|
270
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
271
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
272
|
+
* @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
|
|
273
|
+
* @param options The options parameters.
|
|
274
|
+
*/
|
|
275
|
+
private _listByWorkspaceNext(
|
|
276
|
+
resourceGroupName: string,
|
|
277
|
+
workspaceName: string,
|
|
278
|
+
nextLink: string,
|
|
279
|
+
options?: FirmwaresListByWorkspaceNextOptionalParams,
|
|
280
|
+
): Promise<FirmwaresListByWorkspaceNextResponse> {
|
|
281
|
+
return this.client.sendOperationRequest(
|
|
282
|
+
{ resourceGroupName, workspaceName, nextLink, options },
|
|
283
|
+
listByWorkspaceNextOperationSpec,
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
// Operation Specifications
|
|
288
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
289
|
+
|
|
290
|
+
const listByWorkspaceOperationSpec: coreClient.OperationSpec = {
|
|
291
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares",
|
|
292
|
+
httpMethod: "GET",
|
|
293
|
+
responses: {
|
|
294
|
+
200: {
|
|
295
|
+
bodyMapper: Mappers.FirmwareList,
|
|
296
|
+
},
|
|
297
|
+
default: {
|
|
298
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
queryParameters: [Parameters.apiVersion],
|
|
302
|
+
urlParameters: [
|
|
303
|
+
Parameters.$host,
|
|
304
|
+
Parameters.subscriptionId,
|
|
305
|
+
Parameters.resourceGroupName,
|
|
306
|
+
Parameters.workspaceName,
|
|
307
|
+
],
|
|
308
|
+
headerParameters: [Parameters.accept],
|
|
309
|
+
serializer,
|
|
310
|
+
};
|
|
311
|
+
const createOperationSpec: coreClient.OperationSpec = {
|
|
312
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
|
|
313
|
+
httpMethod: "PUT",
|
|
314
|
+
responses: {
|
|
315
|
+
200: {
|
|
316
|
+
bodyMapper: Mappers.Firmware,
|
|
317
|
+
},
|
|
318
|
+
201: {
|
|
319
|
+
bodyMapper: Mappers.Firmware,
|
|
320
|
+
},
|
|
321
|
+
default: {
|
|
322
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
requestBody: Parameters.firmware,
|
|
326
|
+
queryParameters: [Parameters.apiVersion],
|
|
327
|
+
urlParameters: [
|
|
328
|
+
Parameters.$host,
|
|
329
|
+
Parameters.subscriptionId,
|
|
330
|
+
Parameters.resourceGroupName,
|
|
331
|
+
Parameters.workspaceName,
|
|
332
|
+
Parameters.firmwareId,
|
|
333
|
+
],
|
|
334
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
335
|
+
mediaType: "json",
|
|
336
|
+
serializer,
|
|
337
|
+
};
|
|
338
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
339
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
|
|
340
|
+
httpMethod: "PATCH",
|
|
341
|
+
responses: {
|
|
342
|
+
200: {
|
|
343
|
+
bodyMapper: Mappers.Firmware,
|
|
344
|
+
},
|
|
345
|
+
default: {
|
|
346
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
requestBody: Parameters.firmware1,
|
|
350
|
+
queryParameters: [Parameters.apiVersion],
|
|
351
|
+
urlParameters: [
|
|
352
|
+
Parameters.$host,
|
|
353
|
+
Parameters.subscriptionId,
|
|
354
|
+
Parameters.resourceGroupName,
|
|
355
|
+
Parameters.workspaceName,
|
|
356
|
+
Parameters.firmwareId,
|
|
357
|
+
],
|
|
358
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
359
|
+
mediaType: "json",
|
|
360
|
+
serializer,
|
|
361
|
+
};
|
|
362
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
363
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
|
|
364
|
+
httpMethod: "DELETE",
|
|
365
|
+
responses: {
|
|
366
|
+
200: {},
|
|
367
|
+
204: {},
|
|
368
|
+
default: {
|
|
369
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
queryParameters: [Parameters.apiVersion],
|
|
373
|
+
urlParameters: [
|
|
374
|
+
Parameters.$host,
|
|
375
|
+
Parameters.subscriptionId,
|
|
376
|
+
Parameters.resourceGroupName,
|
|
377
|
+
Parameters.workspaceName,
|
|
378
|
+
Parameters.firmwareId,
|
|
379
|
+
],
|
|
380
|
+
headerParameters: [Parameters.accept],
|
|
381
|
+
serializer,
|
|
382
|
+
};
|
|
383
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
384
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
|
|
385
|
+
httpMethod: "GET",
|
|
386
|
+
responses: {
|
|
387
|
+
200: {
|
|
388
|
+
bodyMapper: Mappers.Firmware,
|
|
389
|
+
},
|
|
390
|
+
default: {
|
|
391
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
queryParameters: [Parameters.apiVersion],
|
|
395
|
+
urlParameters: [
|
|
396
|
+
Parameters.$host,
|
|
397
|
+
Parameters.subscriptionId,
|
|
398
|
+
Parameters.resourceGroupName,
|
|
399
|
+
Parameters.workspaceName,
|
|
400
|
+
Parameters.firmwareId,
|
|
401
|
+
],
|
|
402
|
+
headerParameters: [Parameters.accept],
|
|
403
|
+
serializer,
|
|
404
|
+
};
|
|
405
|
+
const generateDownloadUrlOperationSpec: coreClient.OperationSpec = {
|
|
406
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateDownloadUrl",
|
|
407
|
+
httpMethod: "POST",
|
|
408
|
+
responses: {
|
|
409
|
+
200: {
|
|
410
|
+
bodyMapper: Mappers.UrlToken,
|
|
411
|
+
},
|
|
412
|
+
default: {
|
|
413
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
414
|
+
},
|
|
415
|
+
},
|
|
416
|
+
queryParameters: [Parameters.apiVersion],
|
|
417
|
+
urlParameters: [
|
|
418
|
+
Parameters.$host,
|
|
419
|
+
Parameters.subscriptionId,
|
|
420
|
+
Parameters.resourceGroupName,
|
|
421
|
+
Parameters.workspaceName,
|
|
422
|
+
Parameters.firmwareId,
|
|
423
|
+
],
|
|
424
|
+
headerParameters: [Parameters.accept],
|
|
425
|
+
serializer,
|
|
426
|
+
};
|
|
427
|
+
const generateFilesystemDownloadUrlOperationSpec: coreClient.OperationSpec = {
|
|
428
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateFilesystemDownloadUrl",
|
|
429
|
+
httpMethod: "POST",
|
|
430
|
+
responses: {
|
|
431
|
+
200: {
|
|
432
|
+
bodyMapper: Mappers.UrlToken,
|
|
433
|
+
},
|
|
434
|
+
default: {
|
|
435
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
436
|
+
},
|
|
437
|
+
},
|
|
438
|
+
queryParameters: [Parameters.apiVersion],
|
|
439
|
+
urlParameters: [
|
|
440
|
+
Parameters.$host,
|
|
441
|
+
Parameters.subscriptionId,
|
|
442
|
+
Parameters.resourceGroupName,
|
|
443
|
+
Parameters.workspaceName,
|
|
444
|
+
Parameters.firmwareId,
|
|
445
|
+
],
|
|
446
|
+
headerParameters: [Parameters.accept],
|
|
447
|
+
serializer,
|
|
448
|
+
};
|
|
449
|
+
const listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {
|
|
450
|
+
path: "{nextLink}",
|
|
451
|
+
httpMethod: "GET",
|
|
452
|
+
responses: {
|
|
453
|
+
200: {
|
|
454
|
+
bodyMapper: Mappers.FirmwareList,
|
|
455
|
+
},
|
|
456
|
+
default: {
|
|
457
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
458
|
+
},
|
|
459
|
+
},
|
|
460
|
+
urlParameters: [
|
|
461
|
+
Parameters.$host,
|
|
462
|
+
Parameters.subscriptionId,
|
|
463
|
+
Parameters.resourceGroupName,
|
|
464
|
+
Parameters.workspaceName,
|
|
465
|
+
Parameters.nextLink,
|
|
466
|
+
],
|
|
467
|
+
headerParameters: [Parameters.accept],
|
|
468
|
+
serializer,
|
|
469
|
+
};
|
package/src/operations/index.ts
CHANGED
|
@@ -6,6 +6,13 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
export * from "./
|
|
10
|
-
export * from "./
|
|
9
|
+
export * from "./binaryHardening";
|
|
10
|
+
export * from "./cryptoCertificates";
|
|
11
|
+
export * from "./cryptoKeys";
|
|
12
|
+
export * from "./cves";
|
|
13
|
+
export * from "./firmwares";
|
|
11
14
|
export * from "./operations";
|
|
15
|
+
export * from "./passwordHashes";
|
|
16
|
+
export * from "./sbomComponents";
|
|
17
|
+
export * from "./summaries";
|
|
18
|
+
export * from "./workspaces";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
OperationsListNextOptionalParams,
|
|
19
19
|
OperationsListOptionalParams,
|
|
20
20
|
OperationsListResponse,
|
|
21
|
-
OperationsListNextResponse
|
|
21
|
+
OperationsListNextResponse,
|
|
22
22
|
} from "../models";
|
|
23
23
|
|
|
24
24
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -39,7 +39,7 @@ export class OperationsImpl implements Operations {
|
|
|
39
39
|
* @param options The options parameters.
|
|
40
40
|
*/
|
|
41
41
|
public list(
|
|
42
|
-
options?: OperationsListOptionalParams
|
|
42
|
+
options?: OperationsListOptionalParams,
|
|
43
43
|
): PagedAsyncIterableIterator<Operation> {
|
|
44
44
|
const iter = this.listPagingAll(options);
|
|
45
45
|
return {
|
|
@@ -54,13 +54,13 @@ export class OperationsImpl implements Operations {
|
|
|
54
54
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
55
|
}
|
|
56
56
|
return this.listPagingPage(options, settings);
|
|
57
|
-
}
|
|
57
|
+
},
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
private async *listPagingPage(
|
|
62
62
|
options?: OperationsListOptionalParams,
|
|
63
|
-
settings?: PageSettings
|
|
63
|
+
settings?: PageSettings,
|
|
64
64
|
): AsyncIterableIterator<Operation[]> {
|
|
65
65
|
let result: OperationsListResponse;
|
|
66
66
|
let continuationToken = settings?.continuationToken;
|
|
@@ -81,7 +81,7 @@ export class OperationsImpl implements Operations {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
private async *listPagingAll(
|
|
84
|
-
options?: OperationsListOptionalParams
|
|
84
|
+
options?: OperationsListOptionalParams,
|
|
85
85
|
): AsyncIterableIterator<Operation> {
|
|
86
86
|
for await (const page of this.listPagingPage(options)) {
|
|
87
87
|
yield* page;
|
|
@@ -93,7 +93,7 @@ export class OperationsImpl implements Operations {
|
|
|
93
93
|
* @param options The options parameters.
|
|
94
94
|
*/
|
|
95
95
|
private _list(
|
|
96
|
-
options?: OperationsListOptionalParams
|
|
96
|
+
options?: OperationsListOptionalParams,
|
|
97
97
|
): Promise<OperationsListResponse> {
|
|
98
98
|
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
99
99
|
}
|
|
@@ -105,11 +105,11 @@ export class OperationsImpl implements Operations {
|
|
|
105
105
|
*/
|
|
106
106
|
private _listNext(
|
|
107
107
|
nextLink: string,
|
|
108
|
-
options?: OperationsListNextOptionalParams
|
|
108
|
+
options?: OperationsListNextOptionalParams,
|
|
109
109
|
): Promise<OperationsListNextResponse> {
|
|
110
110
|
return this.client.sendOperationRequest(
|
|
111
111
|
{ nextLink, options },
|
|
112
|
-
listNextOperationSpec
|
|
112
|
+
listNextOperationSpec,
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = {
|
|
|
121
121
|
httpMethod: "GET",
|
|
122
122
|
responses: {
|
|
123
123
|
200: {
|
|
124
|
-
bodyMapper: Mappers.OperationListResult
|
|
124
|
+
bodyMapper: Mappers.OperationListResult,
|
|
125
125
|
},
|
|
126
126
|
default: {
|
|
127
|
-
bodyMapper: Mappers.ErrorResponse
|
|
128
|
-
}
|
|
127
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
128
|
+
},
|
|
129
129
|
},
|
|
130
130
|
queryParameters: [Parameters.apiVersion],
|
|
131
131
|
urlParameters: [Parameters.$host],
|
|
132
132
|
headerParameters: [Parameters.accept],
|
|
133
|
-
serializer
|
|
133
|
+
serializer,
|
|
134
134
|
};
|
|
135
135
|
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
136
136
|
path: "{nextLink}",
|
|
137
137
|
httpMethod: "GET",
|
|
138
138
|
responses: {
|
|
139
139
|
200: {
|
|
140
|
-
bodyMapper: Mappers.OperationListResult
|
|
140
|
+
bodyMapper: Mappers.OperationListResult,
|
|
141
141
|
},
|
|
142
142
|
default: {
|
|
143
|
-
bodyMapper: Mappers.ErrorResponse
|
|
144
|
-
}
|
|
143
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
144
|
+
},
|
|
145
145
|
},
|
|
146
146
|
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
147
147
|
headerParameters: [Parameters.accept],
|
|
148
|
-
serializer
|
|
148
|
+
serializer,
|
|
149
149
|
};
|