@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.
Files changed (199) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +109 -0
  4. package/dist/index.js +4045 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/samples-dev/firmwareCreateSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/firmwareCreateSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/firmwareCreateSample.js +73 -0
  11. package/dist-esm/samples-dev/firmwareCreateSample.js.map +1 -0
  12. package/dist-esm/samples-dev/firmwareDeleteSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/firmwareDeleteSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/firmwareDeleteSample.js +62 -0
  15. package/dist-esm/samples-dev/firmwareDeleteSample.js.map +1 -0
  16. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.js +62 -0
  19. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningDetailsSample.js.map +1 -0
  20. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.d.ts +2 -0
  21. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.js +62 -0
  23. package/dist-esm/samples-dev/firmwareGenerateBinaryHardeningSummarySample.js.map +1 -0
  24. package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.js +62 -0
  27. package/dist-esm/samples-dev/firmwareGenerateComponentDetailsSample.js.map +1 -0
  28. package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.d.ts +2 -0
  29. package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.js +61 -0
  31. package/dist-esm/samples-dev/firmwareGenerateCryptoCertificateSummarySample.js.map +1 -0
  32. package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.d.ts +2 -0
  33. package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.js +61 -0
  35. package/dist-esm/samples-dev/firmwareGenerateCryptoKeySummarySample.js.map +1 -0
  36. package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.d.ts +2 -0
  37. package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.js +62 -0
  39. package/dist-esm/samples-dev/firmwareGenerateCveSummarySample.js.map +1 -0
  40. package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.js +62 -0
  43. package/dist-esm/samples-dev/firmwareGenerateDownloadUrlSample.js.map +1 -0
  44. package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.js +62 -0
  47. package/dist-esm/samples-dev/firmwareGenerateFilesystemDownloadUrlSample.js.map +1 -0
  48. package/dist-esm/samples-dev/firmwareGenerateSummarySample.d.ts +2 -0
  49. package/dist-esm/samples-dev/firmwareGenerateSummarySample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/firmwareGenerateSummarySample.js +62 -0
  51. package/dist-esm/samples-dev/firmwareGenerateSummarySample.js.map +1 -0
  52. package/dist-esm/samples-dev/firmwareGetSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/firmwareGetSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/firmwareGetSample.js +62 -0
  55. package/dist-esm/samples-dev/firmwareGetSample.js.map +1 -0
  56. package/dist-esm/samples-dev/firmwareListByWorkspaceSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/firmwareListByWorkspaceSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/firmwareListByWorkspaceSample.js +102 -0
  59. package/dist-esm/samples-dev/firmwareListByWorkspaceSample.js.map +1 -0
  60. package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.js +104 -0
  63. package/dist-esm/samples-dev/firmwareListGenerateBinaryHardeningListSample.js.map +1 -0
  64. package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.js +104 -0
  67. package/dist-esm/samples-dev/firmwareListGenerateComponentListSample.js.map +1 -0
  68. package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.js +103 -0
  71. package/dist-esm/samples-dev/firmwareListGenerateCryptoCertificateListSample.js.map +1 -0
  72. package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.js +103 -0
  75. package/dist-esm/samples-dev/firmwareListGenerateCryptoKeyListSample.js.map +1 -0
  76. package/dist-esm/samples-dev/firmwareListGenerateCveListSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/firmwareListGenerateCveListSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/firmwareListGenerateCveListSample.js +104 -0
  79. package/dist-esm/samples-dev/firmwareListGenerateCveListSample.js.map +1 -0
  80. package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.js +104 -0
  83. package/dist-esm/samples-dev/firmwareListGeneratePasswordHashListSample.js.map +1 -0
  84. package/dist-esm/samples-dev/firmwareUpdateSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/firmwareUpdateSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/firmwareUpdateSample.js +73 -0
  87. package/dist-esm/samples-dev/firmwareUpdateSample.js.map +1 -0
  88. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/operationsListSample.js +96 -0
  91. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  92. package/dist-esm/samples-dev/workspacesCreateSample.d.ts +2 -0
  93. package/dist-esm/samples-dev/workspacesCreateSample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/workspacesCreateSample.js +63 -0
  95. package/dist-esm/samples-dev/workspacesCreateSample.js.map +1 -0
  96. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/workspacesDeleteSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/workspacesDeleteSample.js +58 -0
  99. package/dist-esm/samples-dev/workspacesDeleteSample.js.map +1 -0
  100. package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.js +62 -0
  103. package/dist-esm/samples-dev/workspacesGenerateUploadUrlSample.js.map +1 -0
  104. package/dist-esm/samples-dev/workspacesGetSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/workspacesGetSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/workspacesGetSample.js +58 -0
  107. package/dist-esm/samples-dev/workspacesGetSample.js.map +1 -0
  108. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js +98 -0
  111. package/dist-esm/samples-dev/workspacesListByResourceGroupSample.js.map +1 -0
  112. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js +96 -0
  115. package/dist-esm/samples-dev/workspacesListBySubscriptionSample.js.map +1 -0
  116. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/workspacesUpdateSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/workspacesUpdateSample.js +60 -0
  119. package/dist-esm/samples-dev/workspacesUpdateSample.js.map +1 -0
  120. package/dist-esm/src/index.d.ts +6 -0
  121. package/dist-esm/src/index.d.ts.map +1 -0
  122. package/dist-esm/src/index.js +13 -0
  123. package/dist-esm/src/index.js.map +1 -0
  124. package/dist-esm/src/ioTFirmwareDefenseClient.d.ts +22 -0
  125. package/dist-esm/src/ioTFirmwareDefenseClient.d.ts.map +1 -0
  126. package/dist-esm/src/ioTFirmwareDefenseClient.js +102 -0
  127. package/dist-esm/src/ioTFirmwareDefenseClient.js.map +1 -0
  128. package/dist-esm/src/models/index.d.ts +1049 -0
  129. package/dist-esm/src/models/index.d.ts.map +1 -0
  130. package/dist-esm/src/models/index.js +142 -0
  131. package/dist-esm/src/models/index.js.map +1 -0
  132. package/dist-esm/src/models/mappers.d.ts +41 -0
  133. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  134. package/dist-esm/src/models/mappers.js +1618 -0
  135. package/dist-esm/src/models/mappers.js.map +1 -0
  136. package/dist-esm/src/models/parameters.d.ts +16 -0
  137. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  138. package/dist-esm/src/models/parameters.js +134 -0
  139. package/dist-esm/src/models/parameters.js.map +1 -0
  140. package/dist-esm/src/operations/firmwareOperations.d.ts +313 -0
  141. package/dist-esm/src/operations/firmwareOperations.d.ts.map +1 -0
  142. package/dist-esm/src/operations/firmwareOperations.js +1393 -0
  143. package/dist-esm/src/operations/firmwareOperations.js.map +1 -0
  144. package/dist-esm/src/operations/index.d.ts +4 -0
  145. package/dist-esm/src/operations/index.d.ts.map +1 -0
  146. package/dist-esm/src/operations/index.js +11 -0
  147. package/dist-esm/src/operations/index.js.map +1 -0
  148. package/dist-esm/src/operations/operations.d.ts +32 -0
  149. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  150. package/dist-esm/src/operations/operations.js +138 -0
  151. package/dist-esm/src/operations/operations.js.map +1 -0
  152. package/dist-esm/src/operations/workspaces.d.ts +91 -0
  153. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  154. package/dist-esm/src/operations/workspaces.js +431 -0
  155. package/dist-esm/src/operations/workspaces.js.map +1 -0
  156. package/dist-esm/src/operationsInterfaces/firmwareOperations.d.ts +169 -0
  157. package/dist-esm/src/operationsInterfaces/firmwareOperations.d.ts.map +1 -0
  158. package/dist-esm/src/operationsInterfaces/firmwareOperations.js +9 -0
  159. package/dist-esm/src/operationsInterfaces/firmwareOperations.js.map +1 -0
  160. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  161. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  162. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  163. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  164. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  165. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  166. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  167. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  168. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +55 -0
  169. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  170. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  171. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  172. package/dist-esm/src/pagingHelper.d.ts +13 -0
  173. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  174. package/dist-esm/src/pagingHelper.js +32 -0
  175. package/dist-esm/src/pagingHelper.js.map +1 -0
  176. package/dist-esm/test/iotfirmwaredefense_operations_test.spec.d.ts +4 -0
  177. package/dist-esm/test/iotfirmwaredefense_operations_test.spec.d.ts.map +1 -0
  178. package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js +120 -0
  179. package/dist-esm/test/iotfirmwaredefense_operations_test.spec.js.map +1 -0
  180. package/package.json +121 -0
  181. package/review/arm-iotfirmwaredefense.api.md +820 -0
  182. package/rollup.config.js +122 -0
  183. package/src/index.ts +13 -0
  184. package/src/ioTFirmwareDefenseClient.ts +152 -0
  185. package/src/models/index.ts +1198 -0
  186. package/src/models/mappers.ts +1678 -0
  187. package/src/models/parameters.ts +159 -0
  188. package/src/operations/firmwareOperations.ts +1892 -0
  189. package/src/operations/index.ts +11 -0
  190. package/src/operations/operations.ts +149 -0
  191. package/src/operations/workspaces.ts +527 -0
  192. package/src/operationsInterfaces/firmwareOperations.ts +320 -0
  193. package/src/operationsInterfaces/index.ts +11 -0
  194. package/src/operationsInterfaces/operations.ts +22 -0
  195. package/src/operationsInterfaces/workspaces.ts +107 -0
  196. package/src/pagingHelper.ts +39 -0
  197. package/tsconfig.json +33 -0
  198. package/types/arm-iotfirmwaredefense.d.ts +1453 -0
  199. package/types/tsdoc-metadata.json +11 -0
@@ -0,0 +1,1393 @@
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
+ import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
+ import { setContinuationToken } from "../pagingHelper";
10
+ import * as coreClient from "@azure/core-client";
11
+ import * as Mappers from "../models/mappers";
12
+ import * as Parameters from "../models/parameters";
13
+ /// <reference lib="esnext.asynciterable" />
14
+ /** Class containing FirmwareOperations operations. */
15
+ export class FirmwareOperationsImpl {
16
+ /**
17
+ * Initialize a new instance of the class FirmwareOperations class.
18
+ * @param client Reference to the service client
19
+ */
20
+ constructor(client) {
21
+ this.client = client;
22
+ }
23
+ /**
24
+ * Lists all of firmwares inside a workspace.
25
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
26
+ * @param workspaceName The name of the firmware analysis workspace.
27
+ * @param options The options parameters.
28
+ */
29
+ listByWorkspace(resourceGroupName, workspaceName, options) {
30
+ const iter = this.listByWorkspacePagingAll(resourceGroupName, workspaceName, options);
31
+ return {
32
+ next() {
33
+ return iter.next();
34
+ },
35
+ [Symbol.asyncIterator]() {
36
+ return this;
37
+ },
38
+ byPage: (settings) => {
39
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
40
+ throw new Error("maxPageSize is not supported by this operation.");
41
+ }
42
+ return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
43
+ }
44
+ };
45
+ }
46
+ listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
47
+ return __asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
48
+ let result;
49
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
+ if (!continuationToken) {
51
+ result = yield __await(this._listByWorkspace(resourceGroupName, workspaceName, options));
52
+ let page = result.value || [];
53
+ continuationToken = result.nextLink;
54
+ setContinuationToken(page, continuationToken);
55
+ yield yield __await(page);
56
+ }
57
+ while (continuationToken) {
58
+ result = yield __await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
59
+ continuationToken = result.nextLink;
60
+ let page = result.value || [];
61
+ setContinuationToken(page, continuationToken);
62
+ yield yield __await(page);
63
+ }
64
+ });
65
+ }
66
+ listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
67
+ return __asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
68
+ var _a, e_1, _b, _c;
69
+ try {
70
+ for (var _d = true, _e = __asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
71
+ _c = _f.value;
72
+ _d = false;
73
+ try {
74
+ const page = _c;
75
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
76
+ }
77
+ finally {
78
+ _d = true;
79
+ }
80
+ }
81
+ }
82
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
+ finally {
84
+ try {
85
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
86
+ }
87
+ finally { if (e_1) throw e_1.error; }
88
+ }
89
+ });
90
+ }
91
+ /**
92
+ * The operation to list all components result for a firmware.
93
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
94
+ * @param workspaceName The name of the firmware analysis workspace.
95
+ * @param firmwareId The id of the firmware.
96
+ * @param options The options parameters.
97
+ */
98
+ listGenerateComponentList(resourceGroupName, workspaceName, firmwareId, options) {
99
+ const iter = this.listGenerateComponentListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
100
+ return {
101
+ next() {
102
+ return iter.next();
103
+ },
104
+ [Symbol.asyncIterator]() {
105
+ return this;
106
+ },
107
+ byPage: (settings) => {
108
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
109
+ throw new Error("maxPageSize is not supported by this operation.");
110
+ }
111
+ return this.listGenerateComponentListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
112
+ }
113
+ };
114
+ }
115
+ listGenerateComponentListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
116
+ return __asyncGenerator(this, arguments, function* listGenerateComponentListPagingPage_1() {
117
+ let result;
118
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
119
+ if (!continuationToken) {
120
+ result = yield __await(this._listGenerateComponentList(resourceGroupName, workspaceName, firmwareId, options));
121
+ let page = result.value || [];
122
+ continuationToken = result.nextLink;
123
+ setContinuationToken(page, continuationToken);
124
+ yield yield __await(page);
125
+ }
126
+ while (continuationToken) {
127
+ result = yield __await(this._listGenerateComponentListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
128
+ continuationToken = result.nextLink;
129
+ let page = result.value || [];
130
+ setContinuationToken(page, continuationToken);
131
+ yield yield __await(page);
132
+ }
133
+ });
134
+ }
135
+ listGenerateComponentListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
136
+ return __asyncGenerator(this, arguments, function* listGenerateComponentListPagingAll_1() {
137
+ var _a, e_2, _b, _c;
138
+ try {
139
+ for (var _d = true, _e = __asyncValues(this.listGenerateComponentListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
140
+ _c = _f.value;
141
+ _d = false;
142
+ try {
143
+ const page = _c;
144
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
145
+ }
146
+ finally {
147
+ _d = true;
148
+ }
149
+ }
150
+ }
151
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
152
+ finally {
153
+ try {
154
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
155
+ }
156
+ finally { if (e_2) throw e_2.error; }
157
+ }
158
+ });
159
+ }
160
+ /**
161
+ * The operation to list all binary hardening result for a 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 options The options parameters.
166
+ */
167
+ listGenerateBinaryHardeningList(resourceGroupName, workspaceName, firmwareId, options) {
168
+ const iter = this.listGenerateBinaryHardeningListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
169
+ return {
170
+ next() {
171
+ return iter.next();
172
+ },
173
+ [Symbol.asyncIterator]() {
174
+ return this;
175
+ },
176
+ byPage: (settings) => {
177
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
178
+ throw new Error("maxPageSize is not supported by this operation.");
179
+ }
180
+ return this.listGenerateBinaryHardeningListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
181
+ }
182
+ };
183
+ }
184
+ listGenerateBinaryHardeningListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
185
+ return __asyncGenerator(this, arguments, function* listGenerateBinaryHardeningListPagingPage_1() {
186
+ let result;
187
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
188
+ if (!continuationToken) {
189
+ result = yield __await(this._listGenerateBinaryHardeningList(resourceGroupName, workspaceName, firmwareId, options));
190
+ let page = result.value || [];
191
+ continuationToken = result.nextLink;
192
+ setContinuationToken(page, continuationToken);
193
+ yield yield __await(page);
194
+ }
195
+ while (continuationToken) {
196
+ result = yield __await(this._listGenerateBinaryHardeningListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
197
+ continuationToken = result.nextLink;
198
+ let page = result.value || [];
199
+ setContinuationToken(page, continuationToken);
200
+ yield yield __await(page);
201
+ }
202
+ });
203
+ }
204
+ listGenerateBinaryHardeningListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
205
+ return __asyncGenerator(this, arguments, function* listGenerateBinaryHardeningListPagingAll_1() {
206
+ var _a, e_3, _b, _c;
207
+ try {
208
+ for (var _d = true, _e = __asyncValues(this.listGenerateBinaryHardeningListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
209
+ _c = _f.value;
210
+ _d = false;
211
+ try {
212
+ const page = _c;
213
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
214
+ }
215
+ finally {
216
+ _d = true;
217
+ }
218
+ }
219
+ }
220
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
221
+ finally {
222
+ try {
223
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
224
+ }
225
+ finally { if (e_3) throw e_3.error; }
226
+ }
227
+ });
228
+ }
229
+ /**
230
+ * The operation to list all password hashes for a firmware.
231
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
232
+ * @param workspaceName The name of the firmware analysis workspace.
233
+ * @param firmwareId The id of the firmware.
234
+ * @param options The options parameters.
235
+ */
236
+ listGeneratePasswordHashList(resourceGroupName, workspaceName, firmwareId, options) {
237
+ const iter = this.listGeneratePasswordHashListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
238
+ return {
239
+ next() {
240
+ return iter.next();
241
+ },
242
+ [Symbol.asyncIterator]() {
243
+ return this;
244
+ },
245
+ byPage: (settings) => {
246
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
247
+ throw new Error("maxPageSize is not supported by this operation.");
248
+ }
249
+ return this.listGeneratePasswordHashListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
250
+ }
251
+ };
252
+ }
253
+ listGeneratePasswordHashListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
254
+ return __asyncGenerator(this, arguments, function* listGeneratePasswordHashListPagingPage_1() {
255
+ let result;
256
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
257
+ if (!continuationToken) {
258
+ result = yield __await(this._listGeneratePasswordHashList(resourceGroupName, workspaceName, firmwareId, options));
259
+ let page = result.value || [];
260
+ continuationToken = result.nextLink;
261
+ setContinuationToken(page, continuationToken);
262
+ yield yield __await(page);
263
+ }
264
+ while (continuationToken) {
265
+ result = yield __await(this._listGeneratePasswordHashListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
266
+ continuationToken = result.nextLink;
267
+ let page = result.value || [];
268
+ setContinuationToken(page, continuationToken);
269
+ yield yield __await(page);
270
+ }
271
+ });
272
+ }
273
+ listGeneratePasswordHashListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
274
+ return __asyncGenerator(this, arguments, function* listGeneratePasswordHashListPagingAll_1() {
275
+ var _a, e_4, _b, _c;
276
+ try {
277
+ for (var _d = true, _e = __asyncValues(this.listGeneratePasswordHashListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
278
+ _c = _f.value;
279
+ _d = false;
280
+ try {
281
+ const page = _c;
282
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
283
+ }
284
+ finally {
285
+ _d = true;
286
+ }
287
+ }
288
+ }
289
+ catch (e_4_1) { e_4 = { error: e_4_1 }; }
290
+ finally {
291
+ try {
292
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
293
+ }
294
+ finally { if (e_4) throw e_4.error; }
295
+ }
296
+ });
297
+ }
298
+ /**
299
+ * The operation to list all cve results for a firmware.
300
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
301
+ * @param workspaceName The name of the firmware analysis workspace.
302
+ * @param firmwareId The id of the firmware.
303
+ * @param options The options parameters.
304
+ */
305
+ listGenerateCveList(resourceGroupName, workspaceName, firmwareId, options) {
306
+ const iter = this.listGenerateCveListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
307
+ return {
308
+ next() {
309
+ return iter.next();
310
+ },
311
+ [Symbol.asyncIterator]() {
312
+ return this;
313
+ },
314
+ byPage: (settings) => {
315
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
316
+ throw new Error("maxPageSize is not supported by this operation.");
317
+ }
318
+ return this.listGenerateCveListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
319
+ }
320
+ };
321
+ }
322
+ listGenerateCveListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
323
+ return __asyncGenerator(this, arguments, function* listGenerateCveListPagingPage_1() {
324
+ let result;
325
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
326
+ if (!continuationToken) {
327
+ result = yield __await(this._listGenerateCveList(resourceGroupName, workspaceName, firmwareId, options));
328
+ let page = result.value || [];
329
+ continuationToken = result.nextLink;
330
+ setContinuationToken(page, continuationToken);
331
+ yield yield __await(page);
332
+ }
333
+ while (continuationToken) {
334
+ result = yield __await(this._listGenerateCveListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
335
+ continuationToken = result.nextLink;
336
+ let page = result.value || [];
337
+ setContinuationToken(page, continuationToken);
338
+ yield yield __await(page);
339
+ }
340
+ });
341
+ }
342
+ listGenerateCveListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
343
+ return __asyncGenerator(this, arguments, function* listGenerateCveListPagingAll_1() {
344
+ var _a, e_5, _b, _c;
345
+ try {
346
+ for (var _d = true, _e = __asyncValues(this.listGenerateCveListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
347
+ _c = _f.value;
348
+ _d = false;
349
+ try {
350
+ const page = _c;
351
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
352
+ }
353
+ finally {
354
+ _d = true;
355
+ }
356
+ }
357
+ }
358
+ catch (e_5_1) { e_5 = { error: e_5_1 }; }
359
+ finally {
360
+ try {
361
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
362
+ }
363
+ finally { if (e_5) throw e_5.error; }
364
+ }
365
+ });
366
+ }
367
+ /**
368
+ * The operation to list all crypto certificates for a firmware.
369
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
370
+ * @param workspaceName The name of the firmware analysis workspace.
371
+ * @param firmwareId The id of the firmware.
372
+ * @param options The options parameters.
373
+ */
374
+ listGenerateCryptoCertificateList(resourceGroupName, workspaceName, firmwareId, options) {
375
+ const iter = this.listGenerateCryptoCertificateListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
376
+ return {
377
+ next() {
378
+ return iter.next();
379
+ },
380
+ [Symbol.asyncIterator]() {
381
+ return this;
382
+ },
383
+ byPage: (settings) => {
384
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
385
+ throw new Error("maxPageSize is not supported by this operation.");
386
+ }
387
+ return this.listGenerateCryptoCertificateListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
388
+ }
389
+ };
390
+ }
391
+ listGenerateCryptoCertificateListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
392
+ return __asyncGenerator(this, arguments, function* listGenerateCryptoCertificateListPagingPage_1() {
393
+ let result;
394
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
395
+ if (!continuationToken) {
396
+ result = yield __await(this._listGenerateCryptoCertificateList(resourceGroupName, workspaceName, firmwareId, options));
397
+ let page = result.value || [];
398
+ continuationToken = result.nextLink;
399
+ setContinuationToken(page, continuationToken);
400
+ yield yield __await(page);
401
+ }
402
+ while (continuationToken) {
403
+ result = yield __await(this._listGenerateCryptoCertificateListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
404
+ continuationToken = result.nextLink;
405
+ let page = result.value || [];
406
+ setContinuationToken(page, continuationToken);
407
+ yield yield __await(page);
408
+ }
409
+ });
410
+ }
411
+ listGenerateCryptoCertificateListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
412
+ return __asyncGenerator(this, arguments, function* listGenerateCryptoCertificateListPagingAll_1() {
413
+ var _a, e_6, _b, _c;
414
+ try {
415
+ for (var _d = true, _e = __asyncValues(this.listGenerateCryptoCertificateListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
416
+ _c = _f.value;
417
+ _d = false;
418
+ try {
419
+ const page = _c;
420
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
421
+ }
422
+ finally {
423
+ _d = true;
424
+ }
425
+ }
426
+ }
427
+ catch (e_6_1) { e_6 = { error: e_6_1 }; }
428
+ finally {
429
+ try {
430
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
431
+ }
432
+ finally { if (e_6) throw e_6.error; }
433
+ }
434
+ });
435
+ }
436
+ /**
437
+ * The operation to list all crypto keys for a firmware.
438
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
439
+ * @param workspaceName The name of the firmware analysis workspace.
440
+ * @param firmwareId The id of the firmware.
441
+ * @param options The options parameters.
442
+ */
443
+ listGenerateCryptoKeyList(resourceGroupName, workspaceName, firmwareId, options) {
444
+ const iter = this.listGenerateCryptoKeyListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
445
+ return {
446
+ next() {
447
+ return iter.next();
448
+ },
449
+ [Symbol.asyncIterator]() {
450
+ return this;
451
+ },
452
+ byPage: (settings) => {
453
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
454
+ throw new Error("maxPageSize is not supported by this operation.");
455
+ }
456
+ return this.listGenerateCryptoKeyListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
457
+ }
458
+ };
459
+ }
460
+ listGenerateCryptoKeyListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
461
+ return __asyncGenerator(this, arguments, function* listGenerateCryptoKeyListPagingPage_1() {
462
+ let result;
463
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
464
+ if (!continuationToken) {
465
+ result = yield __await(this._listGenerateCryptoKeyList(resourceGroupName, workspaceName, firmwareId, options));
466
+ let page = result.value || [];
467
+ continuationToken = result.nextLink;
468
+ setContinuationToken(page, continuationToken);
469
+ yield yield __await(page);
470
+ }
471
+ while (continuationToken) {
472
+ result = yield __await(this._listGenerateCryptoKeyListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
473
+ continuationToken = result.nextLink;
474
+ let page = result.value || [];
475
+ setContinuationToken(page, continuationToken);
476
+ yield yield __await(page);
477
+ }
478
+ });
479
+ }
480
+ listGenerateCryptoKeyListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
481
+ return __asyncGenerator(this, arguments, function* listGenerateCryptoKeyListPagingAll_1() {
482
+ var _a, e_7, _b, _c;
483
+ try {
484
+ for (var _d = true, _e = __asyncValues(this.listGenerateCryptoKeyListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
485
+ _c = _f.value;
486
+ _d = false;
487
+ try {
488
+ const page = _c;
489
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
490
+ }
491
+ finally {
492
+ _d = true;
493
+ }
494
+ }
495
+ }
496
+ catch (e_7_1) { e_7 = { error: e_7_1 }; }
497
+ finally {
498
+ try {
499
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
500
+ }
501
+ finally { if (e_7) throw e_7.error; }
502
+ }
503
+ });
504
+ }
505
+ /**
506
+ * Lists all of firmwares inside a workspace.
507
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
508
+ * @param workspaceName The name of the firmware analysis workspace.
509
+ * @param options The options parameters.
510
+ */
511
+ _listByWorkspace(resourceGroupName, workspaceName, options) {
512
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listByWorkspaceOperationSpec);
513
+ }
514
+ /**
515
+ * The operation to create a firmware.
516
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
517
+ * @param workspaceName The name of the firmware analysis workspace.
518
+ * @param firmwareId The id of the firmware.
519
+ * @param firmware Details of the firmware being created or updated.
520
+ * @param options The options parameters.
521
+ */
522
+ create(resourceGroupName, workspaceName, firmwareId, firmware, options) {
523
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, firmware, options }, createOperationSpec);
524
+ }
525
+ /**
526
+ * The operation to update firmware.
527
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
528
+ * @param workspaceName The name of the firmware analysis workspace.
529
+ * @param firmwareId The id of the firmware.
530
+ * @param firmware Details of the firmware being created or updated.
531
+ * @param options The options parameters.
532
+ */
533
+ update(resourceGroupName, workspaceName, firmwareId, firmware, options) {
534
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, firmware, options }, updateOperationSpec);
535
+ }
536
+ /**
537
+ * The operation to delete a firmware.
538
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
539
+ * @param workspaceName The name of the firmware analysis workspace.
540
+ * @param firmwareId The id of the firmware.
541
+ * @param options The options parameters.
542
+ */
543
+ delete(resourceGroupName, workspaceName, firmwareId, options) {
544
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, deleteOperationSpec);
545
+ }
546
+ /**
547
+ * Get firmware.
548
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
549
+ * @param workspaceName The name of the firmware analysis workspace.
550
+ * @param firmwareId The id of the firmware.
551
+ * @param options The options parameters.
552
+ */
553
+ get(resourceGroupName, workspaceName, firmwareId, options) {
554
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, getOperationSpec);
555
+ }
556
+ /**
557
+ * The operation to a url for file download.
558
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
559
+ * @param workspaceName The name of the firmware analysis workspace.
560
+ * @param firmwareId The id of the firmware.
561
+ * @param options The options parameters.
562
+ */
563
+ generateDownloadUrl(resourceGroupName, workspaceName, firmwareId, options) {
564
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateDownloadUrlOperationSpec);
565
+ }
566
+ /**
567
+ * The operation to a url for tar file download.
568
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
569
+ * @param workspaceName The name of the firmware analysis workspace.
570
+ * @param firmwareId The id of the firmware.
571
+ * @param options The options parameters.
572
+ */
573
+ generateFilesystemDownloadUrl(resourceGroupName, workspaceName, firmwareId, options) {
574
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateFilesystemDownloadUrlOperationSpec);
575
+ }
576
+ /**
577
+ * The operation to get a scan summary.
578
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
579
+ * @param workspaceName The name of the firmware analysis workspace.
580
+ * @param firmwareId The id of the firmware.
581
+ * @param options The options parameters.
582
+ */
583
+ generateSummary(resourceGroupName, workspaceName, firmwareId, options) {
584
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateSummaryOperationSpec);
585
+ }
586
+ /**
587
+ * The operation to list all components result for a firmware.
588
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
589
+ * @param workspaceName The name of the firmware analysis workspace.
590
+ * @param firmwareId The id of the firmware.
591
+ * @param options The options parameters.
592
+ */
593
+ _listGenerateComponentList(resourceGroupName, workspaceName, firmwareId, options) {
594
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGenerateComponentListOperationSpec);
595
+ }
596
+ /**
597
+ * The operation to get component details for a firmware.
598
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
599
+ * @param workspaceName The name of the firmware analysis workspace.
600
+ * @param firmwareId The id of the firmware.
601
+ * @param options The options parameters.
602
+ */
603
+ generateComponentDetails(resourceGroupName, workspaceName, firmwareId, options) {
604
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateComponentDetailsOperationSpec);
605
+ }
606
+ /**
607
+ * The operation to list all binary hardening result for a firmware.
608
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
609
+ * @param workspaceName The name of the firmware analysis workspace.
610
+ * @param firmwareId The id of the firmware.
611
+ * @param options The options parameters.
612
+ */
613
+ _listGenerateBinaryHardeningList(resourceGroupName, workspaceName, firmwareId, options) {
614
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGenerateBinaryHardeningListOperationSpec);
615
+ }
616
+ /**
617
+ * The operation to list the binary hardening summary percentages for a firmware.
618
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
619
+ * @param workspaceName The name of the firmware analysis workspace.
620
+ * @param firmwareId The id of the firmware.
621
+ * @param options The options parameters.
622
+ */
623
+ generateBinaryHardeningSummary(resourceGroupName, workspaceName, firmwareId, options) {
624
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateBinaryHardeningSummaryOperationSpec);
625
+ }
626
+ /**
627
+ * The operation to get binary hardening details for a firmware.
628
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
629
+ * @param workspaceName The name of the firmware analysis workspace.
630
+ * @param firmwareId The id of the firmware.
631
+ * @param options The options parameters.
632
+ */
633
+ generateBinaryHardeningDetails(resourceGroupName, workspaceName, firmwareId, options) {
634
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateBinaryHardeningDetailsOperationSpec);
635
+ }
636
+ /**
637
+ * The operation to list all password hashes for a firmware.
638
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
639
+ * @param workspaceName The name of the firmware analysis workspace.
640
+ * @param firmwareId The id of the firmware.
641
+ * @param options The options parameters.
642
+ */
643
+ _listGeneratePasswordHashList(resourceGroupName, workspaceName, firmwareId, options) {
644
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGeneratePasswordHashListOperationSpec);
645
+ }
646
+ /**
647
+ * The operation to list all cve results for a firmware.
648
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
649
+ * @param workspaceName The name of the firmware analysis workspace.
650
+ * @param firmwareId The id of the firmware.
651
+ * @param options The options parameters.
652
+ */
653
+ _listGenerateCveList(resourceGroupName, workspaceName, firmwareId, options) {
654
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGenerateCveListOperationSpec);
655
+ }
656
+ /**
657
+ * The operation to provide a high level summary of the CVEs reported for the firmware image.
658
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
659
+ * @param workspaceName The name of the firmware analysis workspace.
660
+ * @param firmwareId The id of the firmware.
661
+ * @param options The options parameters.
662
+ */
663
+ generateCveSummary(resourceGroupName, workspaceName, firmwareId, options) {
664
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateCveSummaryOperationSpec);
665
+ }
666
+ /**
667
+ * The operation to provide a high level summary of the discovered cryptographic certificates reported
668
+ * for the firmware image.
669
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
670
+ * @param workspaceName The name of the firmware analysis workspace.
671
+ * @param firmwareId The id of the firmware.
672
+ * @param options The options parameters.
673
+ */
674
+ generateCryptoCertificateSummary(resourceGroupName, workspaceName, firmwareId, options) {
675
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateCryptoCertificateSummaryOperationSpec);
676
+ }
677
+ /**
678
+ * The operation to provide a high level summary of the discovered cryptographic keys reported for the
679
+ * firmware image.
680
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
681
+ * @param workspaceName The name of the firmware analysis workspace.
682
+ * @param firmwareId The id of the firmware.
683
+ * @param options The options parameters.
684
+ */
685
+ generateCryptoKeySummary(resourceGroupName, workspaceName, firmwareId, options) {
686
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateCryptoKeySummaryOperationSpec);
687
+ }
688
+ /**
689
+ * The operation to list all crypto certificates for a firmware.
690
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
691
+ * @param workspaceName The name of the firmware analysis workspace.
692
+ * @param firmwareId The id of the firmware.
693
+ * @param options The options parameters.
694
+ */
695
+ _listGenerateCryptoCertificateList(resourceGroupName, workspaceName, firmwareId, options) {
696
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGenerateCryptoCertificateListOperationSpec);
697
+ }
698
+ /**
699
+ * The operation to list all crypto keys for a firmware.
700
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
701
+ * @param workspaceName The name of the firmware analysis workspace.
702
+ * @param firmwareId The id of the firmware.
703
+ * @param options The options parameters.
704
+ */
705
+ _listGenerateCryptoKeyList(resourceGroupName, workspaceName, firmwareId, options) {
706
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGenerateCryptoKeyListOperationSpec);
707
+ }
708
+ /**
709
+ * ListByWorkspaceNext
710
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
711
+ * @param workspaceName The name of the firmware analysis workspace.
712
+ * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
713
+ * @param options The options parameters.
714
+ */
715
+ _listByWorkspaceNext(resourceGroupName, workspaceName, nextLink, options) {
716
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listByWorkspaceNextOperationSpec);
717
+ }
718
+ /**
719
+ * ListGenerateComponentListNext
720
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
721
+ * @param workspaceName The name of the firmware analysis workspace.
722
+ * @param firmwareId The id of the firmware.
723
+ * @param nextLink The nextLink from the previous successful call to the ListGenerateComponentList
724
+ * method.
725
+ * @param options The options parameters.
726
+ */
727
+ _listGenerateComponentListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
728
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGenerateComponentListNextOperationSpec);
729
+ }
730
+ /**
731
+ * ListGenerateBinaryHardeningListNext
732
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
733
+ * @param workspaceName The name of the firmware analysis workspace.
734
+ * @param firmwareId The id of the firmware.
735
+ * @param nextLink The nextLink from the previous successful call to the
736
+ * ListGenerateBinaryHardeningList method.
737
+ * @param options The options parameters.
738
+ */
739
+ _listGenerateBinaryHardeningListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
740
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGenerateBinaryHardeningListNextOperationSpec);
741
+ }
742
+ /**
743
+ * ListGeneratePasswordHashListNext
744
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
745
+ * @param workspaceName The name of the firmware analysis workspace.
746
+ * @param firmwareId The id of the firmware.
747
+ * @param nextLink The nextLink from the previous successful call to the ListGeneratePasswordHashList
748
+ * method.
749
+ * @param options The options parameters.
750
+ */
751
+ _listGeneratePasswordHashListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
752
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGeneratePasswordHashListNextOperationSpec);
753
+ }
754
+ /**
755
+ * ListGenerateCveListNext
756
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
757
+ * @param workspaceName The name of the firmware analysis workspace.
758
+ * @param firmwareId The id of the firmware.
759
+ * @param nextLink The nextLink from the previous successful call to the ListGenerateCveList method.
760
+ * @param options The options parameters.
761
+ */
762
+ _listGenerateCveListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
763
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGenerateCveListNextOperationSpec);
764
+ }
765
+ /**
766
+ * ListGenerateCryptoCertificateListNext
767
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
768
+ * @param workspaceName The name of the firmware analysis workspace.
769
+ * @param firmwareId The id of the firmware.
770
+ * @param nextLink The nextLink from the previous successful call to the
771
+ * ListGenerateCryptoCertificateList method.
772
+ * @param options The options parameters.
773
+ */
774
+ _listGenerateCryptoCertificateListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
775
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGenerateCryptoCertificateListNextOperationSpec);
776
+ }
777
+ /**
778
+ * ListGenerateCryptoKeyListNext
779
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
780
+ * @param workspaceName The name of the firmware analysis workspace.
781
+ * @param firmwareId The id of the firmware.
782
+ * @param nextLink The nextLink from the previous successful call to the ListGenerateCryptoKeyList
783
+ * method.
784
+ * @param options The options parameters.
785
+ */
786
+ _listGenerateCryptoKeyListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
787
+ return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGenerateCryptoKeyListNextOperationSpec);
788
+ }
789
+ }
790
+ // Operation Specifications
791
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
792
+ const listByWorkspaceOperationSpec = {
793
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares",
794
+ httpMethod: "GET",
795
+ responses: {
796
+ 200: {
797
+ bodyMapper: Mappers.FirmwareList
798
+ },
799
+ default: {
800
+ bodyMapper: Mappers.ErrorResponse
801
+ }
802
+ },
803
+ queryParameters: [Parameters.apiVersion],
804
+ urlParameters: [
805
+ Parameters.$host,
806
+ Parameters.subscriptionId,
807
+ Parameters.resourceGroupName,
808
+ Parameters.workspaceName
809
+ ],
810
+ headerParameters: [Parameters.accept],
811
+ serializer
812
+ };
813
+ const createOperationSpec = {
814
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
815
+ httpMethod: "PUT",
816
+ responses: {
817
+ 200: {
818
+ bodyMapper: Mappers.Firmware
819
+ },
820
+ 201: {
821
+ bodyMapper: Mappers.Firmware
822
+ },
823
+ default: {
824
+ bodyMapper: Mappers.ErrorResponse
825
+ }
826
+ },
827
+ requestBody: Parameters.firmware,
828
+ queryParameters: [Parameters.apiVersion],
829
+ urlParameters: [
830
+ Parameters.$host,
831
+ Parameters.subscriptionId,
832
+ Parameters.resourceGroupName,
833
+ Parameters.workspaceName,
834
+ Parameters.firmwareId
835
+ ],
836
+ headerParameters: [Parameters.accept, Parameters.contentType],
837
+ mediaType: "json",
838
+ serializer
839
+ };
840
+ const updateOperationSpec = {
841
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
842
+ httpMethod: "PATCH",
843
+ responses: {
844
+ 200: {
845
+ bodyMapper: Mappers.Firmware
846
+ },
847
+ 201: {
848
+ bodyMapper: Mappers.Firmware
849
+ },
850
+ default: {
851
+ bodyMapper: Mappers.ErrorResponse
852
+ }
853
+ },
854
+ requestBody: Parameters.firmware1,
855
+ queryParameters: [Parameters.apiVersion],
856
+ urlParameters: [
857
+ Parameters.$host,
858
+ Parameters.subscriptionId,
859
+ Parameters.resourceGroupName,
860
+ Parameters.workspaceName,
861
+ Parameters.firmwareId
862
+ ],
863
+ headerParameters: [Parameters.accept, Parameters.contentType],
864
+ mediaType: "json",
865
+ serializer
866
+ };
867
+ const deleteOperationSpec = {
868
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
869
+ httpMethod: "DELETE",
870
+ responses: {
871
+ 200: {},
872
+ 204: {},
873
+ default: {
874
+ bodyMapper: Mappers.ErrorResponse
875
+ }
876
+ },
877
+ queryParameters: [Parameters.apiVersion],
878
+ urlParameters: [
879
+ Parameters.$host,
880
+ Parameters.subscriptionId,
881
+ Parameters.resourceGroupName,
882
+ Parameters.workspaceName,
883
+ Parameters.firmwareId
884
+ ],
885
+ headerParameters: [Parameters.accept],
886
+ serializer
887
+ };
888
+ const getOperationSpec = {
889
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
890
+ httpMethod: "GET",
891
+ responses: {
892
+ 200: {
893
+ bodyMapper: Mappers.Firmware
894
+ },
895
+ default: {
896
+ bodyMapper: Mappers.ErrorResponse
897
+ }
898
+ },
899
+ queryParameters: [Parameters.apiVersion],
900
+ urlParameters: [
901
+ Parameters.$host,
902
+ Parameters.subscriptionId,
903
+ Parameters.resourceGroupName,
904
+ Parameters.workspaceName,
905
+ Parameters.firmwareId
906
+ ],
907
+ headerParameters: [Parameters.accept],
908
+ serializer
909
+ };
910
+ const generateDownloadUrlOperationSpec = {
911
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateDownloadUrl",
912
+ httpMethod: "POST",
913
+ responses: {
914
+ 200: {
915
+ bodyMapper: Mappers.UrlToken
916
+ },
917
+ default: {
918
+ bodyMapper: Mappers.ErrorResponse
919
+ }
920
+ },
921
+ queryParameters: [Parameters.apiVersion],
922
+ urlParameters: [
923
+ Parameters.$host,
924
+ Parameters.subscriptionId,
925
+ Parameters.resourceGroupName,
926
+ Parameters.workspaceName,
927
+ Parameters.firmwareId
928
+ ],
929
+ headerParameters: [Parameters.accept],
930
+ serializer
931
+ };
932
+ const generateFilesystemDownloadUrlOperationSpec = {
933
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateFilesystemDownloadUrl",
934
+ httpMethod: "POST",
935
+ responses: {
936
+ 200: {
937
+ bodyMapper: Mappers.UrlToken
938
+ },
939
+ default: {
940
+ bodyMapper: Mappers.ErrorResponse
941
+ }
942
+ },
943
+ queryParameters: [Parameters.apiVersion],
944
+ urlParameters: [
945
+ Parameters.$host,
946
+ Parameters.subscriptionId,
947
+ Parameters.resourceGroupName,
948
+ Parameters.workspaceName,
949
+ Parameters.firmwareId
950
+ ],
951
+ headerParameters: [Parameters.accept],
952
+ serializer
953
+ };
954
+ const generateSummaryOperationSpec = {
955
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateSummary",
956
+ httpMethod: "POST",
957
+ responses: {
958
+ 200: {
959
+ bodyMapper: Mappers.FirmwareSummary
960
+ },
961
+ default: {
962
+ bodyMapper: Mappers.ErrorResponse
963
+ }
964
+ },
965
+ queryParameters: [Parameters.apiVersion],
966
+ urlParameters: [
967
+ Parameters.$host,
968
+ Parameters.subscriptionId,
969
+ Parameters.resourceGroupName,
970
+ Parameters.workspaceName,
971
+ Parameters.firmwareId
972
+ ],
973
+ headerParameters: [Parameters.accept],
974
+ serializer
975
+ };
976
+ const listGenerateComponentListOperationSpec = {
977
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateComponentList",
978
+ httpMethod: "POST",
979
+ responses: {
980
+ 200: {
981
+ bodyMapper: Mappers.ComponentList
982
+ },
983
+ default: {
984
+ bodyMapper: Mappers.ErrorResponse
985
+ }
986
+ },
987
+ queryParameters: [Parameters.apiVersion],
988
+ urlParameters: [
989
+ Parameters.$host,
990
+ Parameters.subscriptionId,
991
+ Parameters.resourceGroupName,
992
+ Parameters.workspaceName,
993
+ Parameters.firmwareId
994
+ ],
995
+ headerParameters: [Parameters.accept],
996
+ serializer
997
+ };
998
+ const generateComponentDetailsOperationSpec = {
999
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateComponentDetails",
1000
+ httpMethod: "POST",
1001
+ responses: {
1002
+ 200: {
1003
+ bodyMapper: Mappers.Component
1004
+ },
1005
+ default: {
1006
+ bodyMapper: Mappers.ErrorResponse
1007
+ }
1008
+ },
1009
+ queryParameters: [Parameters.apiVersion],
1010
+ urlParameters: [
1011
+ Parameters.$host,
1012
+ Parameters.subscriptionId,
1013
+ Parameters.resourceGroupName,
1014
+ Parameters.workspaceName,
1015
+ Parameters.firmwareId
1016
+ ],
1017
+ headerParameters: [Parameters.accept],
1018
+ serializer
1019
+ };
1020
+ const listGenerateBinaryHardeningListOperationSpec = {
1021
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningList",
1022
+ httpMethod: "POST",
1023
+ responses: {
1024
+ 200: {
1025
+ bodyMapper: Mappers.BinaryHardeningList
1026
+ },
1027
+ default: {
1028
+ bodyMapper: Mappers.ErrorResponse
1029
+ }
1030
+ },
1031
+ queryParameters: [Parameters.apiVersion],
1032
+ urlParameters: [
1033
+ Parameters.$host,
1034
+ Parameters.subscriptionId,
1035
+ Parameters.resourceGroupName,
1036
+ Parameters.workspaceName,
1037
+ Parameters.firmwareId
1038
+ ],
1039
+ headerParameters: [Parameters.accept],
1040
+ serializer
1041
+ };
1042
+ const generateBinaryHardeningSummaryOperationSpec = {
1043
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningSummary",
1044
+ httpMethod: "POST",
1045
+ responses: {
1046
+ 200: {
1047
+ bodyMapper: Mappers.BinaryHardeningSummary
1048
+ },
1049
+ default: {
1050
+ bodyMapper: Mappers.ErrorResponse
1051
+ }
1052
+ },
1053
+ queryParameters: [Parameters.apiVersion],
1054
+ urlParameters: [
1055
+ Parameters.$host,
1056
+ Parameters.subscriptionId,
1057
+ Parameters.resourceGroupName,
1058
+ Parameters.workspaceName,
1059
+ Parameters.firmwareId
1060
+ ],
1061
+ headerParameters: [Parameters.accept],
1062
+ serializer
1063
+ };
1064
+ const generateBinaryHardeningDetailsOperationSpec = {
1065
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningDetails",
1066
+ httpMethod: "POST",
1067
+ responses: {
1068
+ 200: {
1069
+ bodyMapper: Mappers.BinaryHardening
1070
+ },
1071
+ default: {
1072
+ bodyMapper: Mappers.ErrorResponse
1073
+ }
1074
+ },
1075
+ queryParameters: [Parameters.apiVersion],
1076
+ urlParameters: [
1077
+ Parameters.$host,
1078
+ Parameters.subscriptionId,
1079
+ Parameters.resourceGroupName,
1080
+ Parameters.workspaceName,
1081
+ Parameters.firmwareId
1082
+ ],
1083
+ headerParameters: [Parameters.accept],
1084
+ serializer
1085
+ };
1086
+ const listGeneratePasswordHashListOperationSpec = {
1087
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generatePasswordHashList",
1088
+ httpMethod: "POST",
1089
+ responses: {
1090
+ 200: {
1091
+ bodyMapper: Mappers.PasswordHashList
1092
+ },
1093
+ default: {
1094
+ bodyMapper: Mappers.ErrorResponse
1095
+ }
1096
+ },
1097
+ queryParameters: [Parameters.apiVersion],
1098
+ urlParameters: [
1099
+ Parameters.$host,
1100
+ Parameters.subscriptionId,
1101
+ Parameters.resourceGroupName,
1102
+ Parameters.workspaceName,
1103
+ Parameters.firmwareId
1104
+ ],
1105
+ headerParameters: [Parameters.accept],
1106
+ serializer
1107
+ };
1108
+ const listGenerateCveListOperationSpec = {
1109
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCveList",
1110
+ httpMethod: "POST",
1111
+ responses: {
1112
+ 200: {
1113
+ bodyMapper: Mappers.CveList
1114
+ },
1115
+ default: {
1116
+ bodyMapper: Mappers.ErrorResponse
1117
+ }
1118
+ },
1119
+ queryParameters: [Parameters.apiVersion],
1120
+ urlParameters: [
1121
+ Parameters.$host,
1122
+ Parameters.subscriptionId,
1123
+ Parameters.resourceGroupName,
1124
+ Parameters.workspaceName,
1125
+ Parameters.firmwareId
1126
+ ],
1127
+ headerParameters: [Parameters.accept],
1128
+ serializer
1129
+ };
1130
+ const generateCveSummaryOperationSpec = {
1131
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCveSummary",
1132
+ httpMethod: "POST",
1133
+ responses: {
1134
+ 200: {
1135
+ bodyMapper: Mappers.CveSummary
1136
+ },
1137
+ default: {
1138
+ bodyMapper: Mappers.ErrorResponse
1139
+ }
1140
+ },
1141
+ queryParameters: [Parameters.apiVersion],
1142
+ urlParameters: [
1143
+ Parameters.$host,
1144
+ Parameters.subscriptionId,
1145
+ Parameters.resourceGroupName,
1146
+ Parameters.workspaceName,
1147
+ Parameters.firmwareId
1148
+ ],
1149
+ headerParameters: [Parameters.accept],
1150
+ serializer
1151
+ };
1152
+ const generateCryptoCertificateSummaryOperationSpec = {
1153
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoCertificateSummary",
1154
+ httpMethod: "POST",
1155
+ responses: {
1156
+ 200: {
1157
+ bodyMapper: Mappers.CryptoCertificateSummary
1158
+ },
1159
+ default: {
1160
+ bodyMapper: Mappers.ErrorResponse
1161
+ }
1162
+ },
1163
+ queryParameters: [Parameters.apiVersion],
1164
+ urlParameters: [
1165
+ Parameters.$host,
1166
+ Parameters.subscriptionId,
1167
+ Parameters.resourceGroupName,
1168
+ Parameters.workspaceName,
1169
+ Parameters.firmwareId
1170
+ ],
1171
+ headerParameters: [Parameters.accept],
1172
+ serializer
1173
+ };
1174
+ const generateCryptoKeySummaryOperationSpec = {
1175
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoKeySummary",
1176
+ httpMethod: "POST",
1177
+ responses: {
1178
+ 200: {
1179
+ bodyMapper: Mappers.CryptoKeySummary
1180
+ },
1181
+ default: {
1182
+ bodyMapper: Mappers.ErrorResponse
1183
+ }
1184
+ },
1185
+ queryParameters: [Parameters.apiVersion],
1186
+ urlParameters: [
1187
+ Parameters.$host,
1188
+ Parameters.subscriptionId,
1189
+ Parameters.resourceGroupName,
1190
+ Parameters.workspaceName,
1191
+ Parameters.firmwareId
1192
+ ],
1193
+ headerParameters: [Parameters.accept],
1194
+ serializer
1195
+ };
1196
+ const listGenerateCryptoCertificateListOperationSpec = {
1197
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoCertificateList",
1198
+ httpMethod: "POST",
1199
+ responses: {
1200
+ 200: {
1201
+ bodyMapper: Mappers.CryptoCertificateList
1202
+ },
1203
+ default: {
1204
+ bodyMapper: Mappers.ErrorResponse
1205
+ }
1206
+ },
1207
+ queryParameters: [Parameters.apiVersion],
1208
+ urlParameters: [
1209
+ Parameters.$host,
1210
+ Parameters.subscriptionId,
1211
+ Parameters.resourceGroupName,
1212
+ Parameters.workspaceName,
1213
+ Parameters.firmwareId
1214
+ ],
1215
+ headerParameters: [Parameters.accept],
1216
+ serializer
1217
+ };
1218
+ const listGenerateCryptoKeyListOperationSpec = {
1219
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoKeyList",
1220
+ httpMethod: "POST",
1221
+ responses: {
1222
+ 200: {
1223
+ bodyMapper: Mappers.CryptoKeyList
1224
+ },
1225
+ default: {
1226
+ bodyMapper: Mappers.ErrorResponse
1227
+ }
1228
+ },
1229
+ queryParameters: [Parameters.apiVersion],
1230
+ urlParameters: [
1231
+ Parameters.$host,
1232
+ Parameters.subscriptionId,
1233
+ Parameters.resourceGroupName,
1234
+ Parameters.workspaceName,
1235
+ Parameters.firmwareId
1236
+ ],
1237
+ headerParameters: [Parameters.accept],
1238
+ serializer
1239
+ };
1240
+ const listByWorkspaceNextOperationSpec = {
1241
+ path: "{nextLink}",
1242
+ httpMethod: "GET",
1243
+ responses: {
1244
+ 200: {
1245
+ bodyMapper: Mappers.FirmwareList
1246
+ },
1247
+ default: {
1248
+ bodyMapper: Mappers.ErrorResponse
1249
+ }
1250
+ },
1251
+ urlParameters: [
1252
+ Parameters.$host,
1253
+ Parameters.subscriptionId,
1254
+ Parameters.resourceGroupName,
1255
+ Parameters.workspaceName,
1256
+ Parameters.nextLink
1257
+ ],
1258
+ headerParameters: [Parameters.accept],
1259
+ serializer
1260
+ };
1261
+ const listGenerateComponentListNextOperationSpec = {
1262
+ path: "{nextLink}",
1263
+ httpMethod: "GET",
1264
+ responses: {
1265
+ 200: {
1266
+ bodyMapper: Mappers.ComponentList
1267
+ },
1268
+ default: {
1269
+ bodyMapper: Mappers.ErrorResponse
1270
+ }
1271
+ },
1272
+ urlParameters: [
1273
+ Parameters.$host,
1274
+ Parameters.subscriptionId,
1275
+ Parameters.resourceGroupName,
1276
+ Parameters.workspaceName,
1277
+ Parameters.firmwareId,
1278
+ Parameters.nextLink
1279
+ ],
1280
+ headerParameters: [Parameters.accept],
1281
+ serializer
1282
+ };
1283
+ const listGenerateBinaryHardeningListNextOperationSpec = {
1284
+ path: "{nextLink}",
1285
+ httpMethod: "GET",
1286
+ responses: {
1287
+ 200: {
1288
+ bodyMapper: Mappers.BinaryHardeningList
1289
+ },
1290
+ default: {
1291
+ bodyMapper: Mappers.ErrorResponse
1292
+ }
1293
+ },
1294
+ urlParameters: [
1295
+ Parameters.$host,
1296
+ Parameters.subscriptionId,
1297
+ Parameters.resourceGroupName,
1298
+ Parameters.workspaceName,
1299
+ Parameters.firmwareId,
1300
+ Parameters.nextLink
1301
+ ],
1302
+ headerParameters: [Parameters.accept],
1303
+ serializer
1304
+ };
1305
+ const listGeneratePasswordHashListNextOperationSpec = {
1306
+ path: "{nextLink}",
1307
+ httpMethod: "GET",
1308
+ responses: {
1309
+ 200: {
1310
+ bodyMapper: Mappers.PasswordHashList
1311
+ },
1312
+ default: {
1313
+ bodyMapper: Mappers.ErrorResponse
1314
+ }
1315
+ },
1316
+ urlParameters: [
1317
+ Parameters.$host,
1318
+ Parameters.subscriptionId,
1319
+ Parameters.resourceGroupName,
1320
+ Parameters.workspaceName,
1321
+ Parameters.firmwareId,
1322
+ Parameters.nextLink
1323
+ ],
1324
+ headerParameters: [Parameters.accept],
1325
+ serializer
1326
+ };
1327
+ const listGenerateCveListNextOperationSpec = {
1328
+ path: "{nextLink}",
1329
+ httpMethod: "GET",
1330
+ responses: {
1331
+ 200: {
1332
+ bodyMapper: Mappers.CveList
1333
+ },
1334
+ default: {
1335
+ bodyMapper: Mappers.ErrorResponse
1336
+ }
1337
+ },
1338
+ urlParameters: [
1339
+ Parameters.$host,
1340
+ Parameters.subscriptionId,
1341
+ Parameters.resourceGroupName,
1342
+ Parameters.workspaceName,
1343
+ Parameters.firmwareId,
1344
+ Parameters.nextLink
1345
+ ],
1346
+ headerParameters: [Parameters.accept],
1347
+ serializer
1348
+ };
1349
+ const listGenerateCryptoCertificateListNextOperationSpec = {
1350
+ path: "{nextLink}",
1351
+ httpMethod: "GET",
1352
+ responses: {
1353
+ 200: {
1354
+ bodyMapper: Mappers.CryptoCertificateList
1355
+ },
1356
+ default: {
1357
+ bodyMapper: Mappers.ErrorResponse
1358
+ }
1359
+ },
1360
+ urlParameters: [
1361
+ Parameters.$host,
1362
+ Parameters.subscriptionId,
1363
+ Parameters.resourceGroupName,
1364
+ Parameters.workspaceName,
1365
+ Parameters.firmwareId,
1366
+ Parameters.nextLink
1367
+ ],
1368
+ headerParameters: [Parameters.accept],
1369
+ serializer
1370
+ };
1371
+ const listGenerateCryptoKeyListNextOperationSpec = {
1372
+ path: "{nextLink}",
1373
+ httpMethod: "GET",
1374
+ responses: {
1375
+ 200: {
1376
+ bodyMapper: Mappers.CryptoKeyList
1377
+ },
1378
+ default: {
1379
+ bodyMapper: Mappers.ErrorResponse
1380
+ }
1381
+ },
1382
+ urlParameters: [
1383
+ Parameters.$host,
1384
+ Parameters.subscriptionId,
1385
+ Parameters.resourceGroupName,
1386
+ Parameters.workspaceName,
1387
+ Parameters.firmwareId,
1388
+ Parameters.nextLink
1389
+ ],
1390
+ headerParameters: [Parameters.accept],
1391
+ serializer
1392
+ };
1393
+ //# sourceMappingURL=firmwareOperations.js.map