@azure/arm-iotfirmwaredefense 1.0.0-beta.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 +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +4045 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/firmwareCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareCreateSample.js +73 -0
- package/dist-esm/samples-dev/firmwareCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareDeleteSample.js +62 -0
- package/dist-esm/samples-dev/firmwareDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.js +62 -0
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.js +62 -0
- package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.js +62 -0
- package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.js +61 -0
- package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.js +61 -0
- package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.js +62 -0
- package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.js +62 -0
- package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.js +62 -0
- package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateSummarySample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareGenerateSummarySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareGenerateSummarySample.js +62 -0
- package/dist-esm/samples-dev/firmwareGenerateSummarySample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareGetSample.js +62 -0
- package/dist-esm/samples-dev/firmwareGetSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareListByWorkspaceSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareListByWorkspaceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareListByWorkspaceSample.js +102 -0
- package/dist-esm/samples-dev/firmwareListByWorkspaceSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.js +104 -0
- package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.js +104 -0
- package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.js +103 -0
- package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.js +103 -0
- package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareListGenerateCveListSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareListGenerateCveListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareListGenerateCveListSample.js +104 -0
- package/dist-esm/samples-dev/firmwareListGenerateCveListSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.js +104 -0
- package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.js.map +1 -0
- package/dist-esm/samples-dev/firmwareUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/firmwareUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/firmwareUpdateSample.js +73 -0
- package/dist-esm/samples-dev/firmwareUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +96 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesCreateSample.js +63 -0
- package/dist-esm/samples-dev/workspacesCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesDeleteSample.js +58 -0
- package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.js +62 -0
- package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesGetSample.js +58 -0
- package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +98 -0
- package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +96 -0
- package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/workspacesUpdateSample.js +60 -0
- package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/ioTFirmwareDefenseClient.d.ts +22 -0
- package/dist-esm/src/ioTFirmwareDefenseClient.d.ts.map +1 -0
- package/dist-esm/src/ioTFirmwareDefenseClient.js +102 -0
- package/dist-esm/src/ioTFirmwareDefenseClient.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1049 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +142 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +41 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1618 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +16 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +134 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/firmwareOperations.d.ts +313 -0
- package/dist-esm/src/operations/firmwareOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/firmwareOperations.js +1393 -0
- package/dist-esm/src/operations/firmwareOperations.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +138 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/workspaces.d.ts +91 -0
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operations/workspaces.js +431 -0
- package/dist-esm/src/operations/workspaces.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/firmwareOperations.d.ts +169 -0
- package/dist-esm/src/operationsInterfaces/firmwareOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/firmwareOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/firmwareOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/iotfirmwaredefense_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/iotfirmwaredefense_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js +120 -0
- package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js.map +1 -0
- package/package.json +121 -0
- package/review/arm-iotfirmwaredefense.api.md +820 -0
- package/rollup.config.js +122 -0
- package/src/index.ts +13 -0
- package/src/ioTFirmwareDefenseClient.ts +152 -0
- package/src/models/index.ts +1198 -0
- package/src/models/mappers.ts +1678 -0
- package/src/models/parameters.ts +159 -0
- package/src/operations/firmwareOperations.ts +1892 -0
- package/src/operations/index.ts +11 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/workspaces.ts +527 -0
- package/src/operationsInterfaces/firmwareOperations.ts +320 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/workspaces.ts +107 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-iotfirmwaredefense.d.ts +1453 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,320 @@
|
|
|
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 } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
Firmware,
|
|
12
|
+
FirmwareListByWorkspaceOptionalParams,
|
|
13
|
+
Component,
|
|
14
|
+
FirmwareListGenerateComponentListOptionalParams,
|
|
15
|
+
BinaryHardening,
|
|
16
|
+
FirmwareListGenerateBinaryHardeningListOptionalParams,
|
|
17
|
+
PasswordHash,
|
|
18
|
+
FirmwareListGeneratePasswordHashListOptionalParams,
|
|
19
|
+
Cve,
|
|
20
|
+
FirmwareListGenerateCveListOptionalParams,
|
|
21
|
+
CryptoCertificate,
|
|
22
|
+
FirmwareListGenerateCryptoCertificateListOptionalParams,
|
|
23
|
+
CryptoKey,
|
|
24
|
+
FirmwareListGenerateCryptoKeyListOptionalParams,
|
|
25
|
+
FirmwareCreateOptionalParams,
|
|
26
|
+
FirmwareCreateResponse,
|
|
27
|
+
FirmwareUpdateDefinition,
|
|
28
|
+
FirmwareUpdateOptionalParams,
|
|
29
|
+
FirmwareUpdateResponse,
|
|
30
|
+
FirmwareDeleteOptionalParams,
|
|
31
|
+
FirmwareGetOptionalParams,
|
|
32
|
+
FirmwareGetResponse,
|
|
33
|
+
FirmwareGenerateDownloadUrlOptionalParams,
|
|
34
|
+
FirmwareGenerateDownloadUrlResponse,
|
|
35
|
+
FirmwareGenerateFilesystemDownloadUrlOptionalParams,
|
|
36
|
+
FirmwareGenerateFilesystemDownloadUrlResponse,
|
|
37
|
+
FirmwareGenerateSummaryOptionalParams,
|
|
38
|
+
FirmwareGenerateSummaryResponse,
|
|
39
|
+
FirmwareGenerateComponentDetailsOptionalParams,
|
|
40
|
+
FirmwareGenerateComponentDetailsResponse,
|
|
41
|
+
FirmwareGenerateBinaryHardeningSummaryOptionalParams,
|
|
42
|
+
FirmwareGenerateBinaryHardeningSummaryResponse,
|
|
43
|
+
FirmwareGenerateBinaryHardeningDetailsOptionalParams,
|
|
44
|
+
FirmwareGenerateBinaryHardeningDetailsResponse,
|
|
45
|
+
FirmwareGenerateCveSummaryOptionalParams,
|
|
46
|
+
FirmwareGenerateCveSummaryResponse,
|
|
47
|
+
FirmwareGenerateCryptoCertificateSummaryOptionalParams,
|
|
48
|
+
FirmwareGenerateCryptoCertificateSummaryResponse,
|
|
49
|
+
FirmwareGenerateCryptoKeySummaryOptionalParams,
|
|
50
|
+
FirmwareGenerateCryptoKeySummaryResponse
|
|
51
|
+
} from "../models";
|
|
52
|
+
|
|
53
|
+
/// <reference lib="esnext.asynciterable" />
|
|
54
|
+
/** Interface representing a FirmwareOperations. */
|
|
55
|
+
export interface FirmwareOperations {
|
|
56
|
+
/**
|
|
57
|
+
* Lists all of firmwares inside a workspace.
|
|
58
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
59
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
listByWorkspace(
|
|
63
|
+
resourceGroupName: string,
|
|
64
|
+
workspaceName: string,
|
|
65
|
+
options?: FirmwareListByWorkspaceOptionalParams
|
|
66
|
+
): PagedAsyncIterableIterator<Firmware>;
|
|
67
|
+
/**
|
|
68
|
+
* The operation to list all components result for a firmware.
|
|
69
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
70
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
71
|
+
* @param firmwareId The id of the firmware.
|
|
72
|
+
* @param options The options parameters.
|
|
73
|
+
*/
|
|
74
|
+
listGenerateComponentList(
|
|
75
|
+
resourceGroupName: string,
|
|
76
|
+
workspaceName: string,
|
|
77
|
+
firmwareId: string,
|
|
78
|
+
options?: FirmwareListGenerateComponentListOptionalParams
|
|
79
|
+
): PagedAsyncIterableIterator<Component>;
|
|
80
|
+
/**
|
|
81
|
+
* The operation to list all binary hardening result for a firmware.
|
|
82
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
83
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
84
|
+
* @param firmwareId The id of the firmware.
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
listGenerateBinaryHardeningList(
|
|
88
|
+
resourceGroupName: string,
|
|
89
|
+
workspaceName: string,
|
|
90
|
+
firmwareId: string,
|
|
91
|
+
options?: FirmwareListGenerateBinaryHardeningListOptionalParams
|
|
92
|
+
): PagedAsyncIterableIterator<BinaryHardening>;
|
|
93
|
+
/**
|
|
94
|
+
* The operation to list all password hashes for a firmware.
|
|
95
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
96
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
97
|
+
* @param firmwareId The id of the firmware.
|
|
98
|
+
* @param options The options parameters.
|
|
99
|
+
*/
|
|
100
|
+
listGeneratePasswordHashList(
|
|
101
|
+
resourceGroupName: string,
|
|
102
|
+
workspaceName: string,
|
|
103
|
+
firmwareId: string,
|
|
104
|
+
options?: FirmwareListGeneratePasswordHashListOptionalParams
|
|
105
|
+
): PagedAsyncIterableIterator<PasswordHash>;
|
|
106
|
+
/**
|
|
107
|
+
* The operation to list all cve results for a firmware.
|
|
108
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
109
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
110
|
+
* @param firmwareId The id of the firmware.
|
|
111
|
+
* @param options The options parameters.
|
|
112
|
+
*/
|
|
113
|
+
listGenerateCveList(
|
|
114
|
+
resourceGroupName: string,
|
|
115
|
+
workspaceName: string,
|
|
116
|
+
firmwareId: string,
|
|
117
|
+
options?: FirmwareListGenerateCveListOptionalParams
|
|
118
|
+
): PagedAsyncIterableIterator<Cve>;
|
|
119
|
+
/**
|
|
120
|
+
* The operation to list all crypto certificates for a firmware.
|
|
121
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
122
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
123
|
+
* @param firmwareId The id of the firmware.
|
|
124
|
+
* @param options The options parameters.
|
|
125
|
+
*/
|
|
126
|
+
listGenerateCryptoCertificateList(
|
|
127
|
+
resourceGroupName: string,
|
|
128
|
+
workspaceName: string,
|
|
129
|
+
firmwareId: string,
|
|
130
|
+
options?: FirmwareListGenerateCryptoCertificateListOptionalParams
|
|
131
|
+
): PagedAsyncIterableIterator<CryptoCertificate>;
|
|
132
|
+
/**
|
|
133
|
+
* The operation to list all crypto keys for a firmware.
|
|
134
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
135
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
136
|
+
* @param firmwareId The id of the firmware.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
listGenerateCryptoKeyList(
|
|
140
|
+
resourceGroupName: string,
|
|
141
|
+
workspaceName: string,
|
|
142
|
+
firmwareId: string,
|
|
143
|
+
options?: FirmwareListGenerateCryptoKeyListOptionalParams
|
|
144
|
+
): PagedAsyncIterableIterator<CryptoKey>;
|
|
145
|
+
/**
|
|
146
|
+
* The operation to create a firmware.
|
|
147
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
148
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
149
|
+
* @param firmwareId The id of the firmware.
|
|
150
|
+
* @param firmware Details of the firmware being created or updated.
|
|
151
|
+
* @param options The options parameters.
|
|
152
|
+
*/
|
|
153
|
+
create(
|
|
154
|
+
resourceGroupName: string,
|
|
155
|
+
workspaceName: string,
|
|
156
|
+
firmwareId: string,
|
|
157
|
+
firmware: Firmware,
|
|
158
|
+
options?: FirmwareCreateOptionalParams
|
|
159
|
+
): Promise<FirmwareCreateResponse>;
|
|
160
|
+
/**
|
|
161
|
+
* The operation to update firmware.
|
|
162
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
163
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
164
|
+
* @param firmwareId The id of the firmware.
|
|
165
|
+
* @param firmware Details of the firmware being created or updated.
|
|
166
|
+
* @param options The options parameters.
|
|
167
|
+
*/
|
|
168
|
+
update(
|
|
169
|
+
resourceGroupName: string,
|
|
170
|
+
workspaceName: string,
|
|
171
|
+
firmwareId: string,
|
|
172
|
+
firmware: FirmwareUpdateDefinition,
|
|
173
|
+
options?: FirmwareUpdateOptionalParams
|
|
174
|
+
): Promise<FirmwareUpdateResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* The operation to delete a firmware.
|
|
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 options The options parameters.
|
|
181
|
+
*/
|
|
182
|
+
delete(
|
|
183
|
+
resourceGroupName: string,
|
|
184
|
+
workspaceName: string,
|
|
185
|
+
firmwareId: string,
|
|
186
|
+
options?: FirmwareDeleteOptionalParams
|
|
187
|
+
): Promise<void>;
|
|
188
|
+
/**
|
|
189
|
+
* Get firmware.
|
|
190
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
191
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
192
|
+
* @param firmwareId The id of the firmware.
|
|
193
|
+
* @param options The options parameters.
|
|
194
|
+
*/
|
|
195
|
+
get(
|
|
196
|
+
resourceGroupName: string,
|
|
197
|
+
workspaceName: string,
|
|
198
|
+
firmwareId: string,
|
|
199
|
+
options?: FirmwareGetOptionalParams
|
|
200
|
+
): Promise<FirmwareGetResponse>;
|
|
201
|
+
/**
|
|
202
|
+
* The operation to a url for file download.
|
|
203
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
204
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
205
|
+
* @param firmwareId The id of the firmware.
|
|
206
|
+
* @param options The options parameters.
|
|
207
|
+
*/
|
|
208
|
+
generateDownloadUrl(
|
|
209
|
+
resourceGroupName: string,
|
|
210
|
+
workspaceName: string,
|
|
211
|
+
firmwareId: string,
|
|
212
|
+
options?: FirmwareGenerateDownloadUrlOptionalParams
|
|
213
|
+
): Promise<FirmwareGenerateDownloadUrlResponse>;
|
|
214
|
+
/**
|
|
215
|
+
* The operation to a url for tar file download.
|
|
216
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
217
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
218
|
+
* @param firmwareId The id of the firmware.
|
|
219
|
+
* @param options The options parameters.
|
|
220
|
+
*/
|
|
221
|
+
generateFilesystemDownloadUrl(
|
|
222
|
+
resourceGroupName: string,
|
|
223
|
+
workspaceName: string,
|
|
224
|
+
firmwareId: string,
|
|
225
|
+
options?: FirmwareGenerateFilesystemDownloadUrlOptionalParams
|
|
226
|
+
): Promise<FirmwareGenerateFilesystemDownloadUrlResponse>;
|
|
227
|
+
/**
|
|
228
|
+
* The operation to get a scan summary.
|
|
229
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
230
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
231
|
+
* @param firmwareId The id of the firmware.
|
|
232
|
+
* @param options The options parameters.
|
|
233
|
+
*/
|
|
234
|
+
generateSummary(
|
|
235
|
+
resourceGroupName: string,
|
|
236
|
+
workspaceName: string,
|
|
237
|
+
firmwareId: string,
|
|
238
|
+
options?: FirmwareGenerateSummaryOptionalParams
|
|
239
|
+
): Promise<FirmwareGenerateSummaryResponse>;
|
|
240
|
+
/**
|
|
241
|
+
* The operation to get component details for a firmware.
|
|
242
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
243
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
244
|
+
* @param firmwareId The id of the firmware.
|
|
245
|
+
* @param options The options parameters.
|
|
246
|
+
*/
|
|
247
|
+
generateComponentDetails(
|
|
248
|
+
resourceGroupName: string,
|
|
249
|
+
workspaceName: string,
|
|
250
|
+
firmwareId: string,
|
|
251
|
+
options?: FirmwareGenerateComponentDetailsOptionalParams
|
|
252
|
+
): Promise<FirmwareGenerateComponentDetailsResponse>;
|
|
253
|
+
/**
|
|
254
|
+
* The operation to list the binary hardening summary percentages for a firmware.
|
|
255
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
256
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
257
|
+
* @param firmwareId The id of the firmware.
|
|
258
|
+
* @param options The options parameters.
|
|
259
|
+
*/
|
|
260
|
+
generateBinaryHardeningSummary(
|
|
261
|
+
resourceGroupName: string,
|
|
262
|
+
workspaceName: string,
|
|
263
|
+
firmwareId: string,
|
|
264
|
+
options?: FirmwareGenerateBinaryHardeningSummaryOptionalParams
|
|
265
|
+
): Promise<FirmwareGenerateBinaryHardeningSummaryResponse>;
|
|
266
|
+
/**
|
|
267
|
+
* The operation to get binary hardening details for a firmware.
|
|
268
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
269
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
270
|
+
* @param firmwareId The id of the firmware.
|
|
271
|
+
* @param options The options parameters.
|
|
272
|
+
*/
|
|
273
|
+
generateBinaryHardeningDetails(
|
|
274
|
+
resourceGroupName: string,
|
|
275
|
+
workspaceName: string,
|
|
276
|
+
firmwareId: string,
|
|
277
|
+
options?: FirmwareGenerateBinaryHardeningDetailsOptionalParams
|
|
278
|
+
): Promise<FirmwareGenerateBinaryHardeningDetailsResponse>;
|
|
279
|
+
/**
|
|
280
|
+
* The operation to provide a high level summary of the CVEs reported for the firmware image.
|
|
281
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
282
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
283
|
+
* @param firmwareId The id of the firmware.
|
|
284
|
+
* @param options The options parameters.
|
|
285
|
+
*/
|
|
286
|
+
generateCveSummary(
|
|
287
|
+
resourceGroupName: string,
|
|
288
|
+
workspaceName: string,
|
|
289
|
+
firmwareId: string,
|
|
290
|
+
options?: FirmwareGenerateCveSummaryOptionalParams
|
|
291
|
+
): Promise<FirmwareGenerateCveSummaryResponse>;
|
|
292
|
+
/**
|
|
293
|
+
* The operation to provide a high level summary of the discovered cryptographic certificates reported
|
|
294
|
+
* for the firmware image.
|
|
295
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
296
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
297
|
+
* @param firmwareId The id of the firmware.
|
|
298
|
+
* @param options The options parameters.
|
|
299
|
+
*/
|
|
300
|
+
generateCryptoCertificateSummary(
|
|
301
|
+
resourceGroupName: string,
|
|
302
|
+
workspaceName: string,
|
|
303
|
+
firmwareId: string,
|
|
304
|
+
options?: FirmwareGenerateCryptoCertificateSummaryOptionalParams
|
|
305
|
+
): Promise<FirmwareGenerateCryptoCertificateSummaryResponse>;
|
|
306
|
+
/**
|
|
307
|
+
* The operation to provide a high level summary of the discovered cryptographic keys reported for the
|
|
308
|
+
* firmware image.
|
|
309
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
310
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
311
|
+
* @param firmwareId The id of the firmware.
|
|
312
|
+
* @param options The options parameters.
|
|
313
|
+
*/
|
|
314
|
+
generateCryptoKeySummary(
|
|
315
|
+
resourceGroupName: string,
|
|
316
|
+
workspaceName: string,
|
|
317
|
+
firmwareId: string,
|
|
318
|
+
options?: FirmwareGenerateCryptoKeySummaryOptionalParams
|
|
319
|
+
): Promise<FirmwareGenerateCryptoKeySummaryResponse>;
|
|
320
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export * from "./firmwareOperations";
|
|
10
|
+
export * from "./workspaces";
|
|
11
|
+
export * from "./operations";
|
|
@@ -0,0 +1,22 @@
|
|
|
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 } from "@azure/core-paging";
|
|
10
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
11
|
+
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Interface representing a Operations. */
|
|
14
|
+
export interface Operations {
|
|
15
|
+
/**
|
|
16
|
+
* Lists the operations for this resource provider
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
list(
|
|
20
|
+
options?: OperationsListOptionalParams
|
|
21
|
+
): PagedAsyncIterableIterator<Operation>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
Workspace,
|
|
12
|
+
WorkspacesListBySubscriptionOptionalParams,
|
|
13
|
+
WorkspacesListByResourceGroupOptionalParams,
|
|
14
|
+
WorkspacesCreateOptionalParams,
|
|
15
|
+
WorkspacesCreateResponse,
|
|
16
|
+
WorkspaceUpdateDefinition,
|
|
17
|
+
WorkspacesUpdateOptionalParams,
|
|
18
|
+
WorkspacesUpdateResponse,
|
|
19
|
+
WorkspacesDeleteOptionalParams,
|
|
20
|
+
WorkspacesGetOptionalParams,
|
|
21
|
+
WorkspacesGetResponse,
|
|
22
|
+
GenerateUploadUrlRequest,
|
|
23
|
+
WorkspacesGenerateUploadUrlOptionalParams,
|
|
24
|
+
WorkspacesGenerateUploadUrlResponse
|
|
25
|
+
} from "../models";
|
|
26
|
+
|
|
27
|
+
/// <reference lib="esnext.asynciterable" />
|
|
28
|
+
/** Interface representing a Workspaces. */
|
|
29
|
+
export interface Workspaces {
|
|
30
|
+
/**
|
|
31
|
+
* Lists all of the firmware analysis workspaces in the specified subscription.
|
|
32
|
+
* @param options The options parameters.
|
|
33
|
+
*/
|
|
34
|
+
listBySubscription(
|
|
35
|
+
options?: WorkspacesListBySubscriptionOptionalParams
|
|
36
|
+
): PagedAsyncIterableIterator<Workspace>;
|
|
37
|
+
/**
|
|
38
|
+
* Lists all of the firmware analysis workspaces in the specified resource group.
|
|
39
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
listByResourceGroup(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
options?: WorkspacesListByResourceGroupOptionalParams
|
|
45
|
+
): PagedAsyncIterableIterator<Workspace>;
|
|
46
|
+
/**
|
|
47
|
+
* The operation to create or update a firmware analysis workspace.
|
|
48
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
49
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
50
|
+
* @param workspace Parameters when creating a firmware analysis workspace.
|
|
51
|
+
* @param options The options parameters.
|
|
52
|
+
*/
|
|
53
|
+
create(
|
|
54
|
+
resourceGroupName: string,
|
|
55
|
+
workspaceName: string,
|
|
56
|
+
workspace: Workspace,
|
|
57
|
+
options?: WorkspacesCreateOptionalParams
|
|
58
|
+
): Promise<WorkspacesCreateResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* The operation to update a firmware analysis workspaces.
|
|
61
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
62
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
63
|
+
* @param workspace Parameters when updating a firmware analysis workspace.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
update(
|
|
67
|
+
resourceGroupName: string,
|
|
68
|
+
workspaceName: string,
|
|
69
|
+
workspace: WorkspaceUpdateDefinition,
|
|
70
|
+
options?: WorkspacesUpdateOptionalParams
|
|
71
|
+
): Promise<WorkspacesUpdateResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* The operation to delete a firmware analysis workspace.
|
|
74
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
75
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
76
|
+
* @param options The options parameters.
|
|
77
|
+
*/
|
|
78
|
+
delete(
|
|
79
|
+
resourceGroupName: string,
|
|
80
|
+
workspaceName: string,
|
|
81
|
+
options?: WorkspacesDeleteOptionalParams
|
|
82
|
+
): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Get firmware analysis workspace.
|
|
85
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
86
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
get(
|
|
90
|
+
resourceGroupName: string,
|
|
91
|
+
workspaceName: string,
|
|
92
|
+
options?: WorkspacesGetOptionalParams
|
|
93
|
+
): Promise<WorkspacesGetResponse>;
|
|
94
|
+
/**
|
|
95
|
+
* The operation to get a url for file upload.
|
|
96
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
97
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
98
|
+
* @param generateUploadUrl Parameters when requesting a URL to upload firmware.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
generateUploadUrl(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
workspaceName: string,
|
|
104
|
+
generateUploadUrl: GenerateUploadUrlRequest,
|
|
105
|
+
options?: WorkspacesGenerateUploadUrlOptionalParams
|
|
106
|
+
): Promise<WorkspacesGenerateUploadUrlResponse>;
|
|
107
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
export interface PageInfo {
|
|
10
|
+
continuationToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
17
|
+
* returns a continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
21
|
+
*/
|
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
+
if (typeof page !== "object" || page === null) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function setContinuationToken(
|
|
30
|
+
page: unknown,
|
|
31
|
+
continuationToken: string | undefined
|
|
32
|
+
): void {
|
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
|
38
|
+
pageMap.set(page, pageInfo);
|
|
39
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "es6",
|
|
4
|
+
"moduleResolution": "node",
|
|
5
|
+
"strict": true,
|
|
6
|
+
"target": "es6",
|
|
7
|
+
"sourceMap": true,
|
|
8
|
+
"declarationMap": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"allowSyntheticDefaultImports": true,
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"lib": [
|
|
13
|
+
"es6",
|
|
14
|
+
"dom"
|
|
15
|
+
],
|
|
16
|
+
"declaration": true,
|
|
17
|
+
"outDir": "./dist-esm",
|
|
18
|
+
"importHelpers": true,
|
|
19
|
+
"paths": {
|
|
20
|
+
"@azure/arm-iotfirmwaredefense": [
|
|
21
|
+
"./src/index"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"include": [
|
|
26
|
+
"./src/**/*.ts",
|
|
27
|
+
"./test/**/*.ts",
|
|
28
|
+
"samples-dev/**/*.ts"
|
|
29
|
+
],
|
|
30
|
+
"exclude": [
|
|
31
|
+
"node_modules"
|
|
32
|
+
]
|
|
33
|
+
}
|