@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
package/dist/index.js
ADDED
|
@@ -0,0 +1,4045 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var tslib = require('tslib');
|
|
6
|
+
var coreClient = require('@azure/core-client');
|
|
7
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
+
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
29
|
+
|
|
30
|
+
/*
|
|
31
|
+
* Copyright (c) Microsoft Corporation.
|
|
32
|
+
* Licensed under the MIT License.
|
|
33
|
+
*
|
|
34
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
+
*/
|
|
37
|
+
const pageMap = new WeakMap();
|
|
38
|
+
/**
|
|
39
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
40
|
+
* returns a continuation token that can be used to begin paging from
|
|
41
|
+
* that point later.
|
|
42
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
43
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
44
|
+
*/
|
|
45
|
+
function getContinuationToken(page) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (typeof page !== "object" || page === null) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
+
}
|
|
52
|
+
function setContinuationToken(page, continuationToken) {
|
|
53
|
+
var _a;
|
|
54
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
|
+
pageInfo.continuationToken = continuationToken;
|
|
59
|
+
pageMap.set(page, pageInfo);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/*
|
|
63
|
+
* Copyright (c) Microsoft Corporation.
|
|
64
|
+
* Licensed under the MIT License.
|
|
65
|
+
*
|
|
66
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
67
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
68
|
+
*/
|
|
69
|
+
/** Known values of {@link Status} that the service accepts. */
|
|
70
|
+
exports.KnownStatus = void 0;
|
|
71
|
+
(function (KnownStatus) {
|
|
72
|
+
/** Pending */
|
|
73
|
+
KnownStatus["Pending"] = "Pending";
|
|
74
|
+
/** Extracting */
|
|
75
|
+
KnownStatus["Extracting"] = "Extracting";
|
|
76
|
+
/** Analyzing */
|
|
77
|
+
KnownStatus["Analyzing"] = "Analyzing";
|
|
78
|
+
/** Ready */
|
|
79
|
+
KnownStatus["Ready"] = "Ready";
|
|
80
|
+
/** Error */
|
|
81
|
+
KnownStatus["Error"] = "Error";
|
|
82
|
+
})(exports.KnownStatus || (exports.KnownStatus = {}));
|
|
83
|
+
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
84
|
+
exports.KnownProvisioningState = void 0;
|
|
85
|
+
(function (KnownProvisioningState) {
|
|
86
|
+
/** Accepted */
|
|
87
|
+
KnownProvisioningState["Accepted"] = "Accepted";
|
|
88
|
+
/** Succeeded */
|
|
89
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
90
|
+
/** Canceled */
|
|
91
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
92
|
+
/** Failed */
|
|
93
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
94
|
+
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
95
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
96
|
+
exports.KnownCreatedByType = void 0;
|
|
97
|
+
(function (KnownCreatedByType) {
|
|
98
|
+
/** User */
|
|
99
|
+
KnownCreatedByType["User"] = "User";
|
|
100
|
+
/** Application */
|
|
101
|
+
KnownCreatedByType["Application"] = "Application";
|
|
102
|
+
/** ManagedIdentity */
|
|
103
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
104
|
+
/** Key */
|
|
105
|
+
KnownCreatedByType["Key"] = "Key";
|
|
106
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
107
|
+
/** Known values of {@link IsUpdateAvailable} that the service accepts. */
|
|
108
|
+
exports.KnownIsUpdateAvailable = void 0;
|
|
109
|
+
(function (KnownIsUpdateAvailable) {
|
|
110
|
+
/** True */
|
|
111
|
+
KnownIsUpdateAvailable["True"] = "True";
|
|
112
|
+
/** False */
|
|
113
|
+
KnownIsUpdateAvailable["False"] = "False";
|
|
114
|
+
})(exports.KnownIsUpdateAvailable || (exports.KnownIsUpdateAvailable = {}));
|
|
115
|
+
/** Known values of {@link NxFlag} that the service accepts. */
|
|
116
|
+
exports.KnownNxFlag = void 0;
|
|
117
|
+
(function (KnownNxFlag) {
|
|
118
|
+
/** True */
|
|
119
|
+
KnownNxFlag["True"] = "True";
|
|
120
|
+
/** False */
|
|
121
|
+
KnownNxFlag["False"] = "False";
|
|
122
|
+
})(exports.KnownNxFlag || (exports.KnownNxFlag = {}));
|
|
123
|
+
/** Known values of {@link PieFlag} that the service accepts. */
|
|
124
|
+
exports.KnownPieFlag = void 0;
|
|
125
|
+
(function (KnownPieFlag) {
|
|
126
|
+
/** True */
|
|
127
|
+
KnownPieFlag["True"] = "True";
|
|
128
|
+
/** False */
|
|
129
|
+
KnownPieFlag["False"] = "False";
|
|
130
|
+
})(exports.KnownPieFlag || (exports.KnownPieFlag = {}));
|
|
131
|
+
/** Known values of {@link RelroFlag} that the service accepts. */
|
|
132
|
+
exports.KnownRelroFlag = void 0;
|
|
133
|
+
(function (KnownRelroFlag) {
|
|
134
|
+
/** True */
|
|
135
|
+
KnownRelroFlag["True"] = "True";
|
|
136
|
+
/** False */
|
|
137
|
+
KnownRelroFlag["False"] = "False";
|
|
138
|
+
})(exports.KnownRelroFlag || (exports.KnownRelroFlag = {}));
|
|
139
|
+
/** Known values of {@link CanaryFlag} that the service accepts. */
|
|
140
|
+
exports.KnownCanaryFlag = void 0;
|
|
141
|
+
(function (KnownCanaryFlag) {
|
|
142
|
+
/** True */
|
|
143
|
+
KnownCanaryFlag["True"] = "True";
|
|
144
|
+
/** False */
|
|
145
|
+
KnownCanaryFlag["False"] = "False";
|
|
146
|
+
})(exports.KnownCanaryFlag || (exports.KnownCanaryFlag = {}));
|
|
147
|
+
/** Known values of {@link StrippedFlag} that the service accepts. */
|
|
148
|
+
exports.KnownStrippedFlag = void 0;
|
|
149
|
+
(function (KnownStrippedFlag) {
|
|
150
|
+
/** True */
|
|
151
|
+
KnownStrippedFlag["True"] = "True";
|
|
152
|
+
/** False */
|
|
153
|
+
KnownStrippedFlag["False"] = "False";
|
|
154
|
+
})(exports.KnownStrippedFlag || (exports.KnownStrippedFlag = {}));
|
|
155
|
+
/** Known values of {@link IsExpired} that the service accepts. */
|
|
156
|
+
exports.KnownIsExpired = void 0;
|
|
157
|
+
(function (KnownIsExpired) {
|
|
158
|
+
/** True */
|
|
159
|
+
KnownIsExpired["True"] = "True";
|
|
160
|
+
/** False */
|
|
161
|
+
KnownIsExpired["False"] = "False";
|
|
162
|
+
})(exports.KnownIsExpired || (exports.KnownIsExpired = {}));
|
|
163
|
+
/** Known values of {@link IsSelfSigned} that the service accepts. */
|
|
164
|
+
exports.KnownIsSelfSigned = void 0;
|
|
165
|
+
(function (KnownIsSelfSigned) {
|
|
166
|
+
/** True */
|
|
167
|
+
KnownIsSelfSigned["True"] = "True";
|
|
168
|
+
/** False */
|
|
169
|
+
KnownIsSelfSigned["False"] = "False";
|
|
170
|
+
})(exports.KnownIsSelfSigned || (exports.KnownIsSelfSigned = {}));
|
|
171
|
+
/** Known values of {@link IsWeakSignature} that the service accepts. */
|
|
172
|
+
exports.KnownIsWeakSignature = void 0;
|
|
173
|
+
(function (KnownIsWeakSignature) {
|
|
174
|
+
/** True */
|
|
175
|
+
KnownIsWeakSignature["True"] = "True";
|
|
176
|
+
/** False */
|
|
177
|
+
KnownIsWeakSignature["False"] = "False";
|
|
178
|
+
})(exports.KnownIsWeakSignature || (exports.KnownIsWeakSignature = {}));
|
|
179
|
+
/** Known values of {@link IsShortKeySize} that the service accepts. */
|
|
180
|
+
exports.KnownIsShortKeySize = void 0;
|
|
181
|
+
(function (KnownIsShortKeySize) {
|
|
182
|
+
/** True */
|
|
183
|
+
KnownIsShortKeySize["True"] = "True";
|
|
184
|
+
/** False */
|
|
185
|
+
KnownIsShortKeySize["False"] = "False";
|
|
186
|
+
})(exports.KnownIsShortKeySize || (exports.KnownIsShortKeySize = {}));
|
|
187
|
+
/** Known values of {@link Origin} that the service accepts. */
|
|
188
|
+
exports.KnownOrigin = void 0;
|
|
189
|
+
(function (KnownOrigin) {
|
|
190
|
+
/** User */
|
|
191
|
+
KnownOrigin["User"] = "user";
|
|
192
|
+
/** System */
|
|
193
|
+
KnownOrigin["System"] = "system";
|
|
194
|
+
/** UserSystem */
|
|
195
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
196
|
+
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
197
|
+
/** Known values of {@link ActionType} that the service accepts. */
|
|
198
|
+
exports.KnownActionType = void 0;
|
|
199
|
+
(function (KnownActionType) {
|
|
200
|
+
/** Internal */
|
|
201
|
+
KnownActionType["Internal"] = "Internal";
|
|
202
|
+
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
203
|
+
|
|
204
|
+
/*
|
|
205
|
+
* Copyright (c) Microsoft Corporation.
|
|
206
|
+
* Licensed under the MIT License.
|
|
207
|
+
*
|
|
208
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
209
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
210
|
+
*/
|
|
211
|
+
const FirmwareList = {
|
|
212
|
+
type: {
|
|
213
|
+
name: "Composite",
|
|
214
|
+
className: "FirmwareList",
|
|
215
|
+
modelProperties: {
|
|
216
|
+
value: {
|
|
217
|
+
serializedName: "value",
|
|
218
|
+
readOnly: true,
|
|
219
|
+
type: {
|
|
220
|
+
name: "Sequence",
|
|
221
|
+
element: {
|
|
222
|
+
type: {
|
|
223
|
+
name: "Composite",
|
|
224
|
+
className: "Firmware"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
nextLink: {
|
|
230
|
+
serializedName: "nextLink",
|
|
231
|
+
type: {
|
|
232
|
+
name: "String"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
const Resource = {
|
|
239
|
+
type: {
|
|
240
|
+
name: "Composite",
|
|
241
|
+
className: "Resource",
|
|
242
|
+
modelProperties: {
|
|
243
|
+
id: {
|
|
244
|
+
serializedName: "id",
|
|
245
|
+
readOnly: true,
|
|
246
|
+
type: {
|
|
247
|
+
name: "String"
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
name: {
|
|
251
|
+
serializedName: "name",
|
|
252
|
+
readOnly: true,
|
|
253
|
+
type: {
|
|
254
|
+
name: "String"
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
type: {
|
|
258
|
+
serializedName: "type",
|
|
259
|
+
readOnly: true,
|
|
260
|
+
type: {
|
|
261
|
+
name: "String"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
systemData: {
|
|
265
|
+
serializedName: "systemData",
|
|
266
|
+
type: {
|
|
267
|
+
name: "Composite",
|
|
268
|
+
className: "SystemData"
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
const SystemData = {
|
|
275
|
+
type: {
|
|
276
|
+
name: "Composite",
|
|
277
|
+
className: "SystemData",
|
|
278
|
+
modelProperties: {
|
|
279
|
+
createdBy: {
|
|
280
|
+
serializedName: "createdBy",
|
|
281
|
+
type: {
|
|
282
|
+
name: "String"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
createdByType: {
|
|
286
|
+
serializedName: "createdByType",
|
|
287
|
+
type: {
|
|
288
|
+
name: "String"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
createdAt: {
|
|
292
|
+
serializedName: "createdAt",
|
|
293
|
+
type: {
|
|
294
|
+
name: "DateTime"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
lastModifiedBy: {
|
|
298
|
+
serializedName: "lastModifiedBy",
|
|
299
|
+
type: {
|
|
300
|
+
name: "String"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
lastModifiedByType: {
|
|
304
|
+
serializedName: "lastModifiedByType",
|
|
305
|
+
type: {
|
|
306
|
+
name: "String"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
lastModifiedAt: {
|
|
310
|
+
serializedName: "lastModifiedAt",
|
|
311
|
+
type: {
|
|
312
|
+
name: "DateTime"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
const ErrorResponse = {
|
|
319
|
+
type: {
|
|
320
|
+
name: "Composite",
|
|
321
|
+
className: "ErrorResponse",
|
|
322
|
+
modelProperties: {
|
|
323
|
+
error: {
|
|
324
|
+
serializedName: "error",
|
|
325
|
+
type: {
|
|
326
|
+
name: "Composite",
|
|
327
|
+
className: "ErrorDetail"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
const ErrorDetail = {
|
|
334
|
+
type: {
|
|
335
|
+
name: "Composite",
|
|
336
|
+
className: "ErrorDetail",
|
|
337
|
+
modelProperties: {
|
|
338
|
+
code: {
|
|
339
|
+
serializedName: "code",
|
|
340
|
+
readOnly: true,
|
|
341
|
+
type: {
|
|
342
|
+
name: "String"
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
message: {
|
|
346
|
+
serializedName: "message",
|
|
347
|
+
readOnly: true,
|
|
348
|
+
type: {
|
|
349
|
+
name: "String"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
target: {
|
|
353
|
+
serializedName: "target",
|
|
354
|
+
readOnly: true,
|
|
355
|
+
type: {
|
|
356
|
+
name: "String"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
details: {
|
|
360
|
+
serializedName: "details",
|
|
361
|
+
readOnly: true,
|
|
362
|
+
type: {
|
|
363
|
+
name: "Sequence",
|
|
364
|
+
element: {
|
|
365
|
+
type: {
|
|
366
|
+
name: "Composite",
|
|
367
|
+
className: "ErrorDetail"
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
additionalInfo: {
|
|
373
|
+
serializedName: "additionalInfo",
|
|
374
|
+
readOnly: true,
|
|
375
|
+
type: {
|
|
376
|
+
name: "Sequence",
|
|
377
|
+
element: {
|
|
378
|
+
type: {
|
|
379
|
+
name: "Composite",
|
|
380
|
+
className: "ErrorAdditionalInfo"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
const ErrorAdditionalInfo = {
|
|
389
|
+
type: {
|
|
390
|
+
name: "Composite",
|
|
391
|
+
className: "ErrorAdditionalInfo",
|
|
392
|
+
modelProperties: {
|
|
393
|
+
type: {
|
|
394
|
+
serializedName: "type",
|
|
395
|
+
readOnly: true,
|
|
396
|
+
type: {
|
|
397
|
+
name: "String"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
info: {
|
|
401
|
+
serializedName: "info",
|
|
402
|
+
readOnly: true,
|
|
403
|
+
type: {
|
|
404
|
+
name: "Dictionary",
|
|
405
|
+
value: { type: { name: "any" } }
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
};
|
|
411
|
+
const FirmwareUpdateDefinition = {
|
|
412
|
+
type: {
|
|
413
|
+
name: "Composite",
|
|
414
|
+
className: "FirmwareUpdateDefinition",
|
|
415
|
+
modelProperties: {
|
|
416
|
+
fileName: {
|
|
417
|
+
serializedName: "properties.fileName",
|
|
418
|
+
type: {
|
|
419
|
+
name: "String"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
vendor: {
|
|
423
|
+
serializedName: "properties.vendor",
|
|
424
|
+
type: {
|
|
425
|
+
name: "String"
|
|
426
|
+
}
|
|
427
|
+
},
|
|
428
|
+
model: {
|
|
429
|
+
serializedName: "properties.model",
|
|
430
|
+
type: {
|
|
431
|
+
name: "String"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
version: {
|
|
435
|
+
serializedName: "properties.version",
|
|
436
|
+
type: {
|
|
437
|
+
name: "String"
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
description: {
|
|
441
|
+
serializedName: "properties.description",
|
|
442
|
+
type: {
|
|
443
|
+
name: "String"
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
fileSize: {
|
|
447
|
+
serializedName: "properties.fileSize",
|
|
448
|
+
nullable: true,
|
|
449
|
+
type: {
|
|
450
|
+
name: "Number"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
status: {
|
|
454
|
+
defaultValue: "Pending",
|
|
455
|
+
serializedName: "properties.status",
|
|
456
|
+
type: {
|
|
457
|
+
name: "String"
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
statusMessages: {
|
|
461
|
+
serializedName: "properties.statusMessages",
|
|
462
|
+
type: {
|
|
463
|
+
name: "Sequence",
|
|
464
|
+
element: {
|
|
465
|
+
type: {
|
|
466
|
+
name: "Dictionary",
|
|
467
|
+
value: { type: { name: "any" } }
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
provisioningState: {
|
|
473
|
+
serializedName: "properties.provisioningState",
|
|
474
|
+
readOnly: true,
|
|
475
|
+
type: {
|
|
476
|
+
name: "String"
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
const UrlToken = {
|
|
483
|
+
type: {
|
|
484
|
+
name: "Composite",
|
|
485
|
+
className: "UrlToken",
|
|
486
|
+
modelProperties: {
|
|
487
|
+
url: {
|
|
488
|
+
serializedName: "url",
|
|
489
|
+
readOnly: true,
|
|
490
|
+
type: {
|
|
491
|
+
name: "String"
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
uploadUrl: {
|
|
495
|
+
serializedName: "uploadUrl",
|
|
496
|
+
readOnly: true,
|
|
497
|
+
type: {
|
|
498
|
+
name: "String"
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
const FirmwareSummary = {
|
|
505
|
+
type: {
|
|
506
|
+
name: "Composite",
|
|
507
|
+
className: "FirmwareSummary",
|
|
508
|
+
modelProperties: {
|
|
509
|
+
extractedSize: {
|
|
510
|
+
serializedName: "extractedSize",
|
|
511
|
+
nullable: true,
|
|
512
|
+
type: {
|
|
513
|
+
name: "Number"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
fileSize: {
|
|
517
|
+
serializedName: "fileSize",
|
|
518
|
+
nullable: true,
|
|
519
|
+
type: {
|
|
520
|
+
name: "Number"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
extractedFileCount: {
|
|
524
|
+
serializedName: "extractedFileCount",
|
|
525
|
+
nullable: true,
|
|
526
|
+
type: {
|
|
527
|
+
name: "Number"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
componentCount: {
|
|
531
|
+
serializedName: "componentCount",
|
|
532
|
+
nullable: true,
|
|
533
|
+
type: {
|
|
534
|
+
name: "Number"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
binaryCount: {
|
|
538
|
+
serializedName: "binaryCount",
|
|
539
|
+
nullable: true,
|
|
540
|
+
type: {
|
|
541
|
+
name: "Number"
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
analysisTimeSeconds: {
|
|
545
|
+
serializedName: "analysisTimeSeconds",
|
|
546
|
+
nullable: true,
|
|
547
|
+
type: {
|
|
548
|
+
name: "Number"
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
rootFileSystems: {
|
|
552
|
+
serializedName: "rootFileSystems",
|
|
553
|
+
nullable: true,
|
|
554
|
+
type: {
|
|
555
|
+
name: "Number"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
const ComponentList = {
|
|
562
|
+
type: {
|
|
563
|
+
name: "Composite",
|
|
564
|
+
className: "ComponentList",
|
|
565
|
+
modelProperties: {
|
|
566
|
+
value: {
|
|
567
|
+
serializedName: "value",
|
|
568
|
+
readOnly: true,
|
|
569
|
+
type: {
|
|
570
|
+
name: "Sequence",
|
|
571
|
+
element: {
|
|
572
|
+
type: {
|
|
573
|
+
name: "Composite",
|
|
574
|
+
className: "Component"
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
nextLink: {
|
|
580
|
+
serializedName: "nextLink",
|
|
581
|
+
type: {
|
|
582
|
+
name: "String"
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
};
|
|
588
|
+
const Component = {
|
|
589
|
+
type: {
|
|
590
|
+
name: "Composite",
|
|
591
|
+
className: "Component",
|
|
592
|
+
modelProperties: {
|
|
593
|
+
componentId: {
|
|
594
|
+
serializedName: "componentId",
|
|
595
|
+
nullable: true,
|
|
596
|
+
type: {
|
|
597
|
+
name: "String"
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
componentName: {
|
|
601
|
+
serializedName: "componentName",
|
|
602
|
+
nullable: true,
|
|
603
|
+
type: {
|
|
604
|
+
name: "String"
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
version: {
|
|
608
|
+
serializedName: "version",
|
|
609
|
+
nullable: true,
|
|
610
|
+
type: {
|
|
611
|
+
name: "String"
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
license: {
|
|
615
|
+
serializedName: "license",
|
|
616
|
+
nullable: true,
|
|
617
|
+
type: {
|
|
618
|
+
name: "String"
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
releaseDate: {
|
|
622
|
+
serializedName: "releaseDate",
|
|
623
|
+
type: {
|
|
624
|
+
name: "DateTime"
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
paths: {
|
|
628
|
+
serializedName: "paths",
|
|
629
|
+
type: {
|
|
630
|
+
name: "Sequence",
|
|
631
|
+
element: {
|
|
632
|
+
type: {
|
|
633
|
+
name: "String"
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
isUpdateAvailable: {
|
|
639
|
+
serializedName: "isUpdateAvailable",
|
|
640
|
+
type: {
|
|
641
|
+
name: "String"
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
const BinaryHardeningList = {
|
|
648
|
+
type: {
|
|
649
|
+
name: "Composite",
|
|
650
|
+
className: "BinaryHardeningList",
|
|
651
|
+
modelProperties: {
|
|
652
|
+
value: {
|
|
653
|
+
serializedName: "value",
|
|
654
|
+
readOnly: true,
|
|
655
|
+
type: {
|
|
656
|
+
name: "Sequence",
|
|
657
|
+
element: {
|
|
658
|
+
type: {
|
|
659
|
+
name: "Composite",
|
|
660
|
+
className: "BinaryHardening"
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
nextLink: {
|
|
666
|
+
serializedName: "nextLink",
|
|
667
|
+
type: {
|
|
668
|
+
name: "String"
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
};
|
|
674
|
+
const BinaryHardening = {
|
|
675
|
+
type: {
|
|
676
|
+
name: "Composite",
|
|
677
|
+
className: "BinaryHardening",
|
|
678
|
+
modelProperties: {
|
|
679
|
+
binaryHardeningId: {
|
|
680
|
+
serializedName: "binaryHardeningId",
|
|
681
|
+
nullable: true,
|
|
682
|
+
type: {
|
|
683
|
+
name: "String"
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
architecture: {
|
|
687
|
+
serializedName: "architecture",
|
|
688
|
+
nullable: true,
|
|
689
|
+
type: {
|
|
690
|
+
name: "String"
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
path: {
|
|
694
|
+
serializedName: "path",
|
|
695
|
+
nullable: true,
|
|
696
|
+
type: {
|
|
697
|
+
name: "String"
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
class: {
|
|
701
|
+
serializedName: "class",
|
|
702
|
+
nullable: true,
|
|
703
|
+
type: {
|
|
704
|
+
name: "String"
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
runpath: {
|
|
708
|
+
serializedName: "runpath",
|
|
709
|
+
nullable: true,
|
|
710
|
+
type: {
|
|
711
|
+
name: "String"
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
rpath: {
|
|
715
|
+
serializedName: "rpath",
|
|
716
|
+
nullable: true,
|
|
717
|
+
type: {
|
|
718
|
+
name: "String"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
nx: {
|
|
722
|
+
serializedName: "features.nx",
|
|
723
|
+
type: {
|
|
724
|
+
name: "String"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
pie: {
|
|
728
|
+
serializedName: "features.pie",
|
|
729
|
+
type: {
|
|
730
|
+
name: "String"
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
relro: {
|
|
734
|
+
serializedName: "features.relro",
|
|
735
|
+
type: {
|
|
736
|
+
name: "String"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
739
|
+
canary: {
|
|
740
|
+
serializedName: "features.canary",
|
|
741
|
+
type: {
|
|
742
|
+
name: "String"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
stripped: {
|
|
746
|
+
serializedName: "features.stripped",
|
|
747
|
+
type: {
|
|
748
|
+
name: "String"
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
};
|
|
754
|
+
const BinaryHardeningSummary = {
|
|
755
|
+
type: {
|
|
756
|
+
name: "Composite",
|
|
757
|
+
className: "BinaryHardeningSummary",
|
|
758
|
+
modelProperties: {
|
|
759
|
+
totalFiles: {
|
|
760
|
+
serializedName: "totalFiles",
|
|
761
|
+
type: {
|
|
762
|
+
name: "Number"
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
nx: {
|
|
766
|
+
serializedName: "nx",
|
|
767
|
+
nullable: true,
|
|
768
|
+
type: {
|
|
769
|
+
name: "Number"
|
|
770
|
+
}
|
|
771
|
+
},
|
|
772
|
+
pie: {
|
|
773
|
+
serializedName: "pie",
|
|
774
|
+
nullable: true,
|
|
775
|
+
type: {
|
|
776
|
+
name: "Number"
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
relro: {
|
|
780
|
+
serializedName: "relro",
|
|
781
|
+
nullable: true,
|
|
782
|
+
type: {
|
|
783
|
+
name: "Number"
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
canary: {
|
|
787
|
+
serializedName: "canary",
|
|
788
|
+
nullable: true,
|
|
789
|
+
type: {
|
|
790
|
+
name: "Number"
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
stripped: {
|
|
794
|
+
serializedName: "stripped",
|
|
795
|
+
nullable: true,
|
|
796
|
+
type: {
|
|
797
|
+
name: "Number"
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
const PasswordHashList = {
|
|
804
|
+
type: {
|
|
805
|
+
name: "Composite",
|
|
806
|
+
className: "PasswordHashList",
|
|
807
|
+
modelProperties: {
|
|
808
|
+
value: {
|
|
809
|
+
serializedName: "value",
|
|
810
|
+
readOnly: true,
|
|
811
|
+
type: {
|
|
812
|
+
name: "Sequence",
|
|
813
|
+
element: {
|
|
814
|
+
type: {
|
|
815
|
+
name: "Composite",
|
|
816
|
+
className: "PasswordHash"
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
nextLink: {
|
|
822
|
+
serializedName: "nextLink",
|
|
823
|
+
type: {
|
|
824
|
+
name: "String"
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
};
|
|
830
|
+
const PasswordHash = {
|
|
831
|
+
type: {
|
|
832
|
+
name: "Composite",
|
|
833
|
+
className: "PasswordHash",
|
|
834
|
+
modelProperties: {
|
|
835
|
+
passwordHashId: {
|
|
836
|
+
serializedName: "passwordHashId",
|
|
837
|
+
nullable: true,
|
|
838
|
+
type: {
|
|
839
|
+
name: "String"
|
|
840
|
+
}
|
|
841
|
+
},
|
|
842
|
+
filePath: {
|
|
843
|
+
serializedName: "filePath",
|
|
844
|
+
nullable: true,
|
|
845
|
+
type: {
|
|
846
|
+
name: "String"
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
salt: {
|
|
850
|
+
serializedName: "salt",
|
|
851
|
+
nullable: true,
|
|
852
|
+
type: {
|
|
853
|
+
name: "String"
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
hash: {
|
|
857
|
+
serializedName: "hash",
|
|
858
|
+
nullable: true,
|
|
859
|
+
type: {
|
|
860
|
+
name: "String"
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
context: {
|
|
864
|
+
serializedName: "context",
|
|
865
|
+
nullable: true,
|
|
866
|
+
type: {
|
|
867
|
+
name: "String"
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
username: {
|
|
871
|
+
serializedName: "username",
|
|
872
|
+
nullable: true,
|
|
873
|
+
type: {
|
|
874
|
+
name: "String"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
algorithm: {
|
|
878
|
+
serializedName: "algorithm",
|
|
879
|
+
nullable: true,
|
|
880
|
+
type: {
|
|
881
|
+
name: "String"
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
};
|
|
887
|
+
const CveList = {
|
|
888
|
+
type: {
|
|
889
|
+
name: "Composite",
|
|
890
|
+
className: "CveList",
|
|
891
|
+
modelProperties: {
|
|
892
|
+
value: {
|
|
893
|
+
serializedName: "value",
|
|
894
|
+
readOnly: true,
|
|
895
|
+
type: {
|
|
896
|
+
name: "Sequence",
|
|
897
|
+
element: {
|
|
898
|
+
type: {
|
|
899
|
+
name: "Composite",
|
|
900
|
+
className: "Cve"
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
nextLink: {
|
|
906
|
+
serializedName: "nextLink",
|
|
907
|
+
type: {
|
|
908
|
+
name: "String"
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
const Cve = {
|
|
915
|
+
type: {
|
|
916
|
+
name: "Composite",
|
|
917
|
+
className: "Cve",
|
|
918
|
+
modelProperties: {
|
|
919
|
+
cveId: {
|
|
920
|
+
serializedName: "cveId",
|
|
921
|
+
nullable: true,
|
|
922
|
+
type: {
|
|
923
|
+
name: "String"
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
component: {
|
|
927
|
+
serializedName: "component",
|
|
928
|
+
type: {
|
|
929
|
+
name: "Dictionary",
|
|
930
|
+
value: { type: { name: "any" } }
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
severity: {
|
|
934
|
+
serializedName: "severity",
|
|
935
|
+
nullable: true,
|
|
936
|
+
type: {
|
|
937
|
+
name: "String"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
name: {
|
|
941
|
+
serializedName: "name",
|
|
942
|
+
nullable: true,
|
|
943
|
+
type: {
|
|
944
|
+
name: "String"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
cvssScore: {
|
|
948
|
+
serializedName: "cvssScore",
|
|
949
|
+
nullable: true,
|
|
950
|
+
type: {
|
|
951
|
+
name: "String"
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
cvssVersion: {
|
|
955
|
+
serializedName: "cvssVersion",
|
|
956
|
+
nullable: true,
|
|
957
|
+
type: {
|
|
958
|
+
name: "String"
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
cvssV2Score: {
|
|
962
|
+
serializedName: "cvssV2Score",
|
|
963
|
+
nullable: true,
|
|
964
|
+
type: {
|
|
965
|
+
name: "String"
|
|
966
|
+
}
|
|
967
|
+
},
|
|
968
|
+
cvssV3Score: {
|
|
969
|
+
serializedName: "cvssV3Score",
|
|
970
|
+
nullable: true,
|
|
971
|
+
type: {
|
|
972
|
+
name: "String"
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
publishDate: {
|
|
976
|
+
serializedName: "publishDate",
|
|
977
|
+
type: {
|
|
978
|
+
name: "DateTime"
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
updatedDate: {
|
|
982
|
+
serializedName: "updatedDate",
|
|
983
|
+
type: {
|
|
984
|
+
name: "DateTime"
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
links: {
|
|
988
|
+
serializedName: "links",
|
|
989
|
+
readOnly: true,
|
|
990
|
+
type: {
|
|
991
|
+
name: "Sequence",
|
|
992
|
+
element: {
|
|
993
|
+
type: {
|
|
994
|
+
name: "Composite",
|
|
995
|
+
className: "CveLink"
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
description: {
|
|
1001
|
+
serializedName: "description",
|
|
1002
|
+
nullable: true,
|
|
1003
|
+
type: {
|
|
1004
|
+
name: "String"
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
};
|
|
1010
|
+
const CveLink = {
|
|
1011
|
+
type: {
|
|
1012
|
+
name: "Composite",
|
|
1013
|
+
className: "CveLink",
|
|
1014
|
+
modelProperties: {
|
|
1015
|
+
href: {
|
|
1016
|
+
serializedName: "href",
|
|
1017
|
+
nullable: true,
|
|
1018
|
+
type: {
|
|
1019
|
+
name: "String"
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
label: {
|
|
1023
|
+
serializedName: "label",
|
|
1024
|
+
nullable: true,
|
|
1025
|
+
type: {
|
|
1026
|
+
name: "String"
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
};
|
|
1032
|
+
const CveSummary = {
|
|
1033
|
+
type: {
|
|
1034
|
+
name: "Composite",
|
|
1035
|
+
className: "CveSummary",
|
|
1036
|
+
modelProperties: {
|
|
1037
|
+
critical: {
|
|
1038
|
+
serializedName: "critical",
|
|
1039
|
+
nullable: true,
|
|
1040
|
+
type: {
|
|
1041
|
+
name: "Number"
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
high: {
|
|
1045
|
+
serializedName: "high",
|
|
1046
|
+
nullable: true,
|
|
1047
|
+
type: {
|
|
1048
|
+
name: "Number"
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
medium: {
|
|
1052
|
+
serializedName: "medium",
|
|
1053
|
+
nullable: true,
|
|
1054
|
+
type: {
|
|
1055
|
+
name: "Number"
|
|
1056
|
+
}
|
|
1057
|
+
},
|
|
1058
|
+
low: {
|
|
1059
|
+
serializedName: "low",
|
|
1060
|
+
nullable: true,
|
|
1061
|
+
type: {
|
|
1062
|
+
name: "Number"
|
|
1063
|
+
}
|
|
1064
|
+
},
|
|
1065
|
+
unknown: {
|
|
1066
|
+
serializedName: "unknown",
|
|
1067
|
+
nullable: true,
|
|
1068
|
+
type: {
|
|
1069
|
+
name: "Number"
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
undefined: {
|
|
1073
|
+
serializedName: "undefined",
|
|
1074
|
+
nullable: true,
|
|
1075
|
+
type: {
|
|
1076
|
+
name: "Number"
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
};
|
|
1082
|
+
const CryptoCertificateSummary = {
|
|
1083
|
+
type: {
|
|
1084
|
+
name: "Composite",
|
|
1085
|
+
className: "CryptoCertificateSummary",
|
|
1086
|
+
modelProperties: {
|
|
1087
|
+
totalCertificates: {
|
|
1088
|
+
serializedName: "totalCertificates",
|
|
1089
|
+
type: {
|
|
1090
|
+
name: "Number"
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
pairedKeys: {
|
|
1094
|
+
serializedName: "pairedKeys",
|
|
1095
|
+
type: {
|
|
1096
|
+
name: "Number"
|
|
1097
|
+
}
|
|
1098
|
+
},
|
|
1099
|
+
expired: {
|
|
1100
|
+
serializedName: "expired",
|
|
1101
|
+
type: {
|
|
1102
|
+
name: "Number"
|
|
1103
|
+
}
|
|
1104
|
+
},
|
|
1105
|
+
expiringSoon: {
|
|
1106
|
+
serializedName: "expiringSoon",
|
|
1107
|
+
type: {
|
|
1108
|
+
name: "Number"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
weakSignature: {
|
|
1112
|
+
serializedName: "weakSignature",
|
|
1113
|
+
type: {
|
|
1114
|
+
name: "Number"
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
selfSigned: {
|
|
1118
|
+
serializedName: "selfSigned",
|
|
1119
|
+
type: {
|
|
1120
|
+
name: "Number"
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
shortKeySize: {
|
|
1124
|
+
serializedName: "shortKeySize",
|
|
1125
|
+
type: {
|
|
1126
|
+
name: "Number"
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
};
|
|
1132
|
+
const CryptoKeySummary = {
|
|
1133
|
+
type: {
|
|
1134
|
+
name: "Composite",
|
|
1135
|
+
className: "CryptoKeySummary",
|
|
1136
|
+
modelProperties: {
|
|
1137
|
+
totalKeys: {
|
|
1138
|
+
serializedName: "totalKeys",
|
|
1139
|
+
type: {
|
|
1140
|
+
name: "Number"
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
publicKeys: {
|
|
1144
|
+
serializedName: "publicKeys",
|
|
1145
|
+
type: {
|
|
1146
|
+
name: "Number"
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
privateKeys: {
|
|
1150
|
+
serializedName: "privateKeys",
|
|
1151
|
+
type: {
|
|
1152
|
+
name: "Number"
|
|
1153
|
+
}
|
|
1154
|
+
},
|
|
1155
|
+
pairedKeys: {
|
|
1156
|
+
serializedName: "pairedKeys",
|
|
1157
|
+
type: {
|
|
1158
|
+
name: "Number"
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
shortKeySize: {
|
|
1162
|
+
serializedName: "shortKeySize",
|
|
1163
|
+
type: {
|
|
1164
|
+
name: "Number"
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
};
|
|
1170
|
+
const CryptoCertificateList = {
|
|
1171
|
+
type: {
|
|
1172
|
+
name: "Composite",
|
|
1173
|
+
className: "CryptoCertificateList",
|
|
1174
|
+
modelProperties: {
|
|
1175
|
+
value: {
|
|
1176
|
+
serializedName: "value",
|
|
1177
|
+
readOnly: true,
|
|
1178
|
+
type: {
|
|
1179
|
+
name: "Sequence",
|
|
1180
|
+
element: {
|
|
1181
|
+
type: {
|
|
1182
|
+
name: "Composite",
|
|
1183
|
+
className: "CryptoCertificate"
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
nextLink: {
|
|
1189
|
+
serializedName: "nextLink",
|
|
1190
|
+
type: {
|
|
1191
|
+
name: "String"
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
};
|
|
1197
|
+
const CryptoCertificate = {
|
|
1198
|
+
type: {
|
|
1199
|
+
name: "Composite",
|
|
1200
|
+
className: "CryptoCertificate",
|
|
1201
|
+
modelProperties: {
|
|
1202
|
+
cryptoCertId: {
|
|
1203
|
+
serializedName: "cryptoCertId",
|
|
1204
|
+
nullable: true,
|
|
1205
|
+
type: {
|
|
1206
|
+
name: "String"
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
name: {
|
|
1210
|
+
serializedName: "name",
|
|
1211
|
+
nullable: true,
|
|
1212
|
+
type: {
|
|
1213
|
+
name: "String"
|
|
1214
|
+
}
|
|
1215
|
+
},
|
|
1216
|
+
subject: {
|
|
1217
|
+
serializedName: "subject",
|
|
1218
|
+
type: {
|
|
1219
|
+
name: "Composite",
|
|
1220
|
+
className: "CryptoCertificateEntity"
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
issuer: {
|
|
1224
|
+
serializedName: "issuer",
|
|
1225
|
+
type: {
|
|
1226
|
+
name: "Composite",
|
|
1227
|
+
className: "CryptoCertificateEntity"
|
|
1228
|
+
}
|
|
1229
|
+
},
|
|
1230
|
+
issuedDate: {
|
|
1231
|
+
serializedName: "issuedDate",
|
|
1232
|
+
nullable: true,
|
|
1233
|
+
type: {
|
|
1234
|
+
name: "DateTime"
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
expirationDate: {
|
|
1238
|
+
serializedName: "expirationDate",
|
|
1239
|
+
nullable: true,
|
|
1240
|
+
type: {
|
|
1241
|
+
name: "DateTime"
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
role: {
|
|
1245
|
+
serializedName: "role",
|
|
1246
|
+
nullable: true,
|
|
1247
|
+
type: {
|
|
1248
|
+
name: "String"
|
|
1249
|
+
}
|
|
1250
|
+
},
|
|
1251
|
+
signatureAlgorithm: {
|
|
1252
|
+
serializedName: "signatureAlgorithm",
|
|
1253
|
+
nullable: true,
|
|
1254
|
+
type: {
|
|
1255
|
+
name: "String"
|
|
1256
|
+
}
|
|
1257
|
+
},
|
|
1258
|
+
keySize: {
|
|
1259
|
+
serializedName: "keySize",
|
|
1260
|
+
nullable: true,
|
|
1261
|
+
type: {
|
|
1262
|
+
name: "Number"
|
|
1263
|
+
}
|
|
1264
|
+
},
|
|
1265
|
+
keyAlgorithm: {
|
|
1266
|
+
serializedName: "keyAlgorithm",
|
|
1267
|
+
nullable: true,
|
|
1268
|
+
type: {
|
|
1269
|
+
name: "String"
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
encoding: {
|
|
1273
|
+
serializedName: "encoding",
|
|
1274
|
+
nullable: true,
|
|
1275
|
+
type: {
|
|
1276
|
+
name: "String"
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
serialNumber: {
|
|
1280
|
+
serializedName: "serialNumber",
|
|
1281
|
+
nullable: true,
|
|
1282
|
+
type: {
|
|
1283
|
+
name: "String"
|
|
1284
|
+
}
|
|
1285
|
+
},
|
|
1286
|
+
fingerprint: {
|
|
1287
|
+
serializedName: "fingerprint",
|
|
1288
|
+
nullable: true,
|
|
1289
|
+
type: {
|
|
1290
|
+
name: "String"
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
usage: {
|
|
1294
|
+
serializedName: "usage",
|
|
1295
|
+
nullable: true,
|
|
1296
|
+
type: {
|
|
1297
|
+
name: "Sequence",
|
|
1298
|
+
element: {
|
|
1299
|
+
type: {
|
|
1300
|
+
name: "String"
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
},
|
|
1305
|
+
filePaths: {
|
|
1306
|
+
serializedName: "filePaths",
|
|
1307
|
+
readOnly: true,
|
|
1308
|
+
nullable: true,
|
|
1309
|
+
type: {
|
|
1310
|
+
name: "Sequence",
|
|
1311
|
+
element: {
|
|
1312
|
+
type: {
|
|
1313
|
+
name: "String"
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
},
|
|
1318
|
+
pairedKey: {
|
|
1319
|
+
serializedName: "pairedKey",
|
|
1320
|
+
type: {
|
|
1321
|
+
name: "Composite",
|
|
1322
|
+
className: "PairedKey"
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
isExpired: {
|
|
1326
|
+
serializedName: "isExpired",
|
|
1327
|
+
nullable: true,
|
|
1328
|
+
type: {
|
|
1329
|
+
name: "String"
|
|
1330
|
+
}
|
|
1331
|
+
},
|
|
1332
|
+
isSelfSigned: {
|
|
1333
|
+
serializedName: "isSelfSigned",
|
|
1334
|
+
nullable: true,
|
|
1335
|
+
type: {
|
|
1336
|
+
name: "String"
|
|
1337
|
+
}
|
|
1338
|
+
},
|
|
1339
|
+
isWeakSignature: {
|
|
1340
|
+
serializedName: "isWeakSignature",
|
|
1341
|
+
nullable: true,
|
|
1342
|
+
type: {
|
|
1343
|
+
name: "String"
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1346
|
+
isShortKeySize: {
|
|
1347
|
+
serializedName: "isShortKeySize",
|
|
1348
|
+
nullable: true,
|
|
1349
|
+
type: {
|
|
1350
|
+
name: "String"
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
};
|
|
1356
|
+
const CryptoCertificateEntity = {
|
|
1357
|
+
type: {
|
|
1358
|
+
name: "Composite",
|
|
1359
|
+
className: "CryptoCertificateEntity",
|
|
1360
|
+
modelProperties: {
|
|
1361
|
+
commonName: {
|
|
1362
|
+
serializedName: "commonName",
|
|
1363
|
+
nullable: true,
|
|
1364
|
+
type: {
|
|
1365
|
+
name: "String"
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
organization: {
|
|
1369
|
+
serializedName: "organization",
|
|
1370
|
+
nullable: true,
|
|
1371
|
+
type: {
|
|
1372
|
+
name: "String"
|
|
1373
|
+
}
|
|
1374
|
+
},
|
|
1375
|
+
organizationalUnit: {
|
|
1376
|
+
serializedName: "organizationalUnit",
|
|
1377
|
+
nullable: true,
|
|
1378
|
+
type: {
|
|
1379
|
+
name: "String"
|
|
1380
|
+
}
|
|
1381
|
+
},
|
|
1382
|
+
state: {
|
|
1383
|
+
serializedName: "state",
|
|
1384
|
+
nullable: true,
|
|
1385
|
+
type: {
|
|
1386
|
+
name: "String"
|
|
1387
|
+
}
|
|
1388
|
+
},
|
|
1389
|
+
country: {
|
|
1390
|
+
serializedName: "country",
|
|
1391
|
+
nullable: true,
|
|
1392
|
+
type: {
|
|
1393
|
+
name: "String"
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
};
|
|
1399
|
+
const PairedKey = {
|
|
1400
|
+
type: {
|
|
1401
|
+
name: "Composite",
|
|
1402
|
+
className: "PairedKey",
|
|
1403
|
+
modelProperties: {
|
|
1404
|
+
id: {
|
|
1405
|
+
serializedName: "id",
|
|
1406
|
+
type: {
|
|
1407
|
+
name: "String"
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
type: {
|
|
1411
|
+
serializedName: "type",
|
|
1412
|
+
type: {
|
|
1413
|
+
name: "String"
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
additionalProperties: {
|
|
1417
|
+
serializedName: "additionalProperties",
|
|
1418
|
+
nullable: true,
|
|
1419
|
+
type: {
|
|
1420
|
+
name: "Dictionary",
|
|
1421
|
+
value: { type: { name: "any" } }
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
const CryptoKeyList = {
|
|
1428
|
+
type: {
|
|
1429
|
+
name: "Composite",
|
|
1430
|
+
className: "CryptoKeyList",
|
|
1431
|
+
modelProperties: {
|
|
1432
|
+
value: {
|
|
1433
|
+
serializedName: "value",
|
|
1434
|
+
readOnly: true,
|
|
1435
|
+
type: {
|
|
1436
|
+
name: "Sequence",
|
|
1437
|
+
element: {
|
|
1438
|
+
type: {
|
|
1439
|
+
name: "Composite",
|
|
1440
|
+
className: "CryptoKey"
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
},
|
|
1445
|
+
nextLink: {
|
|
1446
|
+
serializedName: "nextLink",
|
|
1447
|
+
type: {
|
|
1448
|
+
name: "String"
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
};
|
|
1454
|
+
const CryptoKey = {
|
|
1455
|
+
type: {
|
|
1456
|
+
name: "Composite",
|
|
1457
|
+
className: "CryptoKey",
|
|
1458
|
+
modelProperties: {
|
|
1459
|
+
cryptoKeyId: {
|
|
1460
|
+
serializedName: "cryptoKeyId",
|
|
1461
|
+
nullable: true,
|
|
1462
|
+
type: {
|
|
1463
|
+
name: "String"
|
|
1464
|
+
}
|
|
1465
|
+
},
|
|
1466
|
+
keyType: {
|
|
1467
|
+
serializedName: "keyType",
|
|
1468
|
+
nullable: true,
|
|
1469
|
+
type: {
|
|
1470
|
+
name: "String"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
keySize: {
|
|
1474
|
+
serializedName: "keySize",
|
|
1475
|
+
nullable: true,
|
|
1476
|
+
type: {
|
|
1477
|
+
name: "Number"
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
keyAlgorithm: {
|
|
1481
|
+
serializedName: "keyAlgorithm",
|
|
1482
|
+
nullable: true,
|
|
1483
|
+
type: {
|
|
1484
|
+
name: "String"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
usage: {
|
|
1488
|
+
serializedName: "usage",
|
|
1489
|
+
nullable: true,
|
|
1490
|
+
type: {
|
|
1491
|
+
name: "Sequence",
|
|
1492
|
+
element: {
|
|
1493
|
+
type: {
|
|
1494
|
+
name: "String"
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
filePaths: {
|
|
1500
|
+
serializedName: "filePaths",
|
|
1501
|
+
readOnly: true,
|
|
1502
|
+
nullable: true,
|
|
1503
|
+
type: {
|
|
1504
|
+
name: "Sequence",
|
|
1505
|
+
element: {
|
|
1506
|
+
type: {
|
|
1507
|
+
name: "String"
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
},
|
|
1512
|
+
pairedKey: {
|
|
1513
|
+
serializedName: "pairedKey",
|
|
1514
|
+
type: {
|
|
1515
|
+
name: "Composite",
|
|
1516
|
+
className: "PairedKey"
|
|
1517
|
+
}
|
|
1518
|
+
},
|
|
1519
|
+
isShortKeySize: {
|
|
1520
|
+
serializedName: "isShortKeySize",
|
|
1521
|
+
nullable: true,
|
|
1522
|
+
type: {
|
|
1523
|
+
name: "String"
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
};
|
|
1529
|
+
const WorkspaceList = {
|
|
1530
|
+
type: {
|
|
1531
|
+
name: "Composite",
|
|
1532
|
+
className: "WorkspaceList",
|
|
1533
|
+
modelProperties: {
|
|
1534
|
+
value: {
|
|
1535
|
+
serializedName: "value",
|
|
1536
|
+
readOnly: true,
|
|
1537
|
+
type: {
|
|
1538
|
+
name: "Sequence",
|
|
1539
|
+
element: {
|
|
1540
|
+
type: {
|
|
1541
|
+
name: "Composite",
|
|
1542
|
+
className: "Workspace"
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
},
|
|
1547
|
+
nextLink: {
|
|
1548
|
+
serializedName: "nextLink",
|
|
1549
|
+
type: {
|
|
1550
|
+
name: "String"
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
};
|
|
1556
|
+
const WorkspaceUpdateDefinition = {
|
|
1557
|
+
type: {
|
|
1558
|
+
name: "Composite",
|
|
1559
|
+
className: "WorkspaceUpdateDefinition",
|
|
1560
|
+
modelProperties: {
|
|
1561
|
+
provisioningState: {
|
|
1562
|
+
serializedName: "properties.provisioningState",
|
|
1563
|
+
readOnly: true,
|
|
1564
|
+
type: {
|
|
1565
|
+
name: "String"
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1571
|
+
const GenerateUploadUrlRequest = {
|
|
1572
|
+
type: {
|
|
1573
|
+
name: "Composite",
|
|
1574
|
+
className: "GenerateUploadUrlRequest",
|
|
1575
|
+
modelProperties: {
|
|
1576
|
+
firmwareId: {
|
|
1577
|
+
serializedName: "firmwareId",
|
|
1578
|
+
type: {
|
|
1579
|
+
name: "String"
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
};
|
|
1585
|
+
const OperationListResult = {
|
|
1586
|
+
type: {
|
|
1587
|
+
name: "Composite",
|
|
1588
|
+
className: "OperationListResult",
|
|
1589
|
+
modelProperties: {
|
|
1590
|
+
value: {
|
|
1591
|
+
serializedName: "value",
|
|
1592
|
+
readOnly: true,
|
|
1593
|
+
type: {
|
|
1594
|
+
name: "Sequence",
|
|
1595
|
+
element: {
|
|
1596
|
+
type: {
|
|
1597
|
+
name: "Composite",
|
|
1598
|
+
className: "Operation"
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
},
|
|
1603
|
+
nextLink: {
|
|
1604
|
+
serializedName: "nextLink",
|
|
1605
|
+
readOnly: true,
|
|
1606
|
+
type: {
|
|
1607
|
+
name: "String"
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
};
|
|
1613
|
+
const Operation = {
|
|
1614
|
+
type: {
|
|
1615
|
+
name: "Composite",
|
|
1616
|
+
className: "Operation",
|
|
1617
|
+
modelProperties: {
|
|
1618
|
+
name: {
|
|
1619
|
+
serializedName: "name",
|
|
1620
|
+
readOnly: true,
|
|
1621
|
+
type: {
|
|
1622
|
+
name: "String"
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
isDataAction: {
|
|
1626
|
+
serializedName: "isDataAction",
|
|
1627
|
+
readOnly: true,
|
|
1628
|
+
type: {
|
|
1629
|
+
name: "Boolean"
|
|
1630
|
+
}
|
|
1631
|
+
},
|
|
1632
|
+
display: {
|
|
1633
|
+
serializedName: "display",
|
|
1634
|
+
type: {
|
|
1635
|
+
name: "Composite",
|
|
1636
|
+
className: "OperationDisplay"
|
|
1637
|
+
}
|
|
1638
|
+
},
|
|
1639
|
+
origin: {
|
|
1640
|
+
serializedName: "origin",
|
|
1641
|
+
readOnly: true,
|
|
1642
|
+
type: {
|
|
1643
|
+
name: "String"
|
|
1644
|
+
}
|
|
1645
|
+
},
|
|
1646
|
+
actionType: {
|
|
1647
|
+
serializedName: "actionType",
|
|
1648
|
+
readOnly: true,
|
|
1649
|
+
type: {
|
|
1650
|
+
name: "String"
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
};
|
|
1656
|
+
const OperationDisplay = {
|
|
1657
|
+
type: {
|
|
1658
|
+
name: "Composite",
|
|
1659
|
+
className: "OperationDisplay",
|
|
1660
|
+
modelProperties: {
|
|
1661
|
+
provider: {
|
|
1662
|
+
serializedName: "provider",
|
|
1663
|
+
readOnly: true,
|
|
1664
|
+
type: {
|
|
1665
|
+
name: "String"
|
|
1666
|
+
}
|
|
1667
|
+
},
|
|
1668
|
+
resource: {
|
|
1669
|
+
serializedName: "resource",
|
|
1670
|
+
readOnly: true,
|
|
1671
|
+
type: {
|
|
1672
|
+
name: "String"
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
operation: {
|
|
1676
|
+
serializedName: "operation",
|
|
1677
|
+
readOnly: true,
|
|
1678
|
+
type: {
|
|
1679
|
+
name: "String"
|
|
1680
|
+
}
|
|
1681
|
+
},
|
|
1682
|
+
description: {
|
|
1683
|
+
serializedName: "description",
|
|
1684
|
+
readOnly: true,
|
|
1685
|
+
type: {
|
|
1686
|
+
name: "String"
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
};
|
|
1692
|
+
const CveComponent = {
|
|
1693
|
+
type: {
|
|
1694
|
+
name: "Composite",
|
|
1695
|
+
className: "CveComponent",
|
|
1696
|
+
modelProperties: {
|
|
1697
|
+
componentId: {
|
|
1698
|
+
serializedName: "componentId",
|
|
1699
|
+
nullable: true,
|
|
1700
|
+
type: {
|
|
1701
|
+
name: "String"
|
|
1702
|
+
}
|
|
1703
|
+
},
|
|
1704
|
+
name: {
|
|
1705
|
+
serializedName: "name",
|
|
1706
|
+
nullable: true,
|
|
1707
|
+
type: {
|
|
1708
|
+
name: "String"
|
|
1709
|
+
}
|
|
1710
|
+
},
|
|
1711
|
+
version: {
|
|
1712
|
+
serializedName: "version",
|
|
1713
|
+
nullable: true,
|
|
1714
|
+
type: {
|
|
1715
|
+
name: "String"
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
};
|
|
1721
|
+
const ProxyResource = {
|
|
1722
|
+
type: {
|
|
1723
|
+
name: "Composite",
|
|
1724
|
+
className: "ProxyResource",
|
|
1725
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
1726
|
+
}
|
|
1727
|
+
};
|
|
1728
|
+
const TrackedResource = {
|
|
1729
|
+
type: {
|
|
1730
|
+
name: "Composite",
|
|
1731
|
+
className: "TrackedResource",
|
|
1732
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
1733
|
+
serializedName: "tags",
|
|
1734
|
+
type: {
|
|
1735
|
+
name: "Dictionary",
|
|
1736
|
+
value: { type: { name: "String" } }
|
|
1737
|
+
}
|
|
1738
|
+
}, location: {
|
|
1739
|
+
serializedName: "location",
|
|
1740
|
+
required: true,
|
|
1741
|
+
type: {
|
|
1742
|
+
name: "String"
|
|
1743
|
+
}
|
|
1744
|
+
} })
|
|
1745
|
+
}
|
|
1746
|
+
};
|
|
1747
|
+
const Firmware = {
|
|
1748
|
+
type: {
|
|
1749
|
+
name: "Composite",
|
|
1750
|
+
className: "Firmware",
|
|
1751
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { fileName: {
|
|
1752
|
+
serializedName: "properties.fileName",
|
|
1753
|
+
type: {
|
|
1754
|
+
name: "String"
|
|
1755
|
+
}
|
|
1756
|
+
}, vendor: {
|
|
1757
|
+
serializedName: "properties.vendor",
|
|
1758
|
+
type: {
|
|
1759
|
+
name: "String"
|
|
1760
|
+
}
|
|
1761
|
+
}, model: {
|
|
1762
|
+
serializedName: "properties.model",
|
|
1763
|
+
type: {
|
|
1764
|
+
name: "String"
|
|
1765
|
+
}
|
|
1766
|
+
}, version: {
|
|
1767
|
+
serializedName: "properties.version",
|
|
1768
|
+
type: {
|
|
1769
|
+
name: "String"
|
|
1770
|
+
}
|
|
1771
|
+
}, description: {
|
|
1772
|
+
serializedName: "properties.description",
|
|
1773
|
+
type: {
|
|
1774
|
+
name: "String"
|
|
1775
|
+
}
|
|
1776
|
+
}, fileSize: {
|
|
1777
|
+
serializedName: "properties.fileSize",
|
|
1778
|
+
nullable: true,
|
|
1779
|
+
type: {
|
|
1780
|
+
name: "Number"
|
|
1781
|
+
}
|
|
1782
|
+
}, status: {
|
|
1783
|
+
defaultValue: "Pending",
|
|
1784
|
+
serializedName: "properties.status",
|
|
1785
|
+
type: {
|
|
1786
|
+
name: "String"
|
|
1787
|
+
}
|
|
1788
|
+
}, statusMessages: {
|
|
1789
|
+
serializedName: "properties.statusMessages",
|
|
1790
|
+
type: {
|
|
1791
|
+
name: "Sequence",
|
|
1792
|
+
element: {
|
|
1793
|
+
type: {
|
|
1794
|
+
name: "Dictionary",
|
|
1795
|
+
value: { type: { name: "any" } }
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
}, provisioningState: {
|
|
1800
|
+
serializedName: "properties.provisioningState",
|
|
1801
|
+
readOnly: true,
|
|
1802
|
+
type: {
|
|
1803
|
+
name: "String"
|
|
1804
|
+
}
|
|
1805
|
+
} })
|
|
1806
|
+
}
|
|
1807
|
+
};
|
|
1808
|
+
const Workspace = {
|
|
1809
|
+
type: {
|
|
1810
|
+
name: "Composite",
|
|
1811
|
+
className: "Workspace",
|
|
1812
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { provisioningState: {
|
|
1813
|
+
serializedName: "properties.provisioningState",
|
|
1814
|
+
readOnly: true,
|
|
1815
|
+
type: {
|
|
1816
|
+
name: "String"
|
|
1817
|
+
}
|
|
1818
|
+
} })
|
|
1819
|
+
}
|
|
1820
|
+
};
|
|
1821
|
+
|
|
1822
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1823
|
+
__proto__: null,
|
|
1824
|
+
FirmwareList: FirmwareList,
|
|
1825
|
+
Resource: Resource,
|
|
1826
|
+
SystemData: SystemData,
|
|
1827
|
+
ErrorResponse: ErrorResponse,
|
|
1828
|
+
ErrorDetail: ErrorDetail,
|
|
1829
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1830
|
+
FirmwareUpdateDefinition: FirmwareUpdateDefinition,
|
|
1831
|
+
UrlToken: UrlToken,
|
|
1832
|
+
FirmwareSummary: FirmwareSummary,
|
|
1833
|
+
ComponentList: ComponentList,
|
|
1834
|
+
Component: Component,
|
|
1835
|
+
BinaryHardeningList: BinaryHardeningList,
|
|
1836
|
+
BinaryHardening: BinaryHardening,
|
|
1837
|
+
BinaryHardeningSummary: BinaryHardeningSummary,
|
|
1838
|
+
PasswordHashList: PasswordHashList,
|
|
1839
|
+
PasswordHash: PasswordHash,
|
|
1840
|
+
CveList: CveList,
|
|
1841
|
+
Cve: Cve,
|
|
1842
|
+
CveLink: CveLink,
|
|
1843
|
+
CveSummary: CveSummary,
|
|
1844
|
+
CryptoCertificateSummary: CryptoCertificateSummary,
|
|
1845
|
+
CryptoKeySummary: CryptoKeySummary,
|
|
1846
|
+
CryptoCertificateList: CryptoCertificateList,
|
|
1847
|
+
CryptoCertificate: CryptoCertificate,
|
|
1848
|
+
CryptoCertificateEntity: CryptoCertificateEntity,
|
|
1849
|
+
PairedKey: PairedKey,
|
|
1850
|
+
CryptoKeyList: CryptoKeyList,
|
|
1851
|
+
CryptoKey: CryptoKey,
|
|
1852
|
+
WorkspaceList: WorkspaceList,
|
|
1853
|
+
WorkspaceUpdateDefinition: WorkspaceUpdateDefinition,
|
|
1854
|
+
GenerateUploadUrlRequest: GenerateUploadUrlRequest,
|
|
1855
|
+
OperationListResult: OperationListResult,
|
|
1856
|
+
Operation: Operation,
|
|
1857
|
+
OperationDisplay: OperationDisplay,
|
|
1858
|
+
CveComponent: CveComponent,
|
|
1859
|
+
ProxyResource: ProxyResource,
|
|
1860
|
+
TrackedResource: TrackedResource,
|
|
1861
|
+
Firmware: Firmware,
|
|
1862
|
+
Workspace: Workspace
|
|
1863
|
+
});
|
|
1864
|
+
|
|
1865
|
+
/*
|
|
1866
|
+
* Copyright (c) Microsoft Corporation.
|
|
1867
|
+
* Licensed under the MIT License.
|
|
1868
|
+
*
|
|
1869
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1870
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1871
|
+
*/
|
|
1872
|
+
const accept = {
|
|
1873
|
+
parameterPath: "accept",
|
|
1874
|
+
mapper: {
|
|
1875
|
+
defaultValue: "application/json",
|
|
1876
|
+
isConstant: true,
|
|
1877
|
+
serializedName: "Accept",
|
|
1878
|
+
type: {
|
|
1879
|
+
name: "String"
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
};
|
|
1883
|
+
const $host = {
|
|
1884
|
+
parameterPath: "$host",
|
|
1885
|
+
mapper: {
|
|
1886
|
+
serializedName: "$host",
|
|
1887
|
+
required: true,
|
|
1888
|
+
type: {
|
|
1889
|
+
name: "String"
|
|
1890
|
+
}
|
|
1891
|
+
},
|
|
1892
|
+
skipEncoding: true
|
|
1893
|
+
};
|
|
1894
|
+
const subscriptionId = {
|
|
1895
|
+
parameterPath: "subscriptionId",
|
|
1896
|
+
mapper: {
|
|
1897
|
+
constraints: {
|
|
1898
|
+
MinLength: 1
|
|
1899
|
+
},
|
|
1900
|
+
serializedName: "subscriptionId",
|
|
1901
|
+
required: true,
|
|
1902
|
+
type: {
|
|
1903
|
+
name: "String"
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
};
|
|
1907
|
+
const resourceGroupName = {
|
|
1908
|
+
parameterPath: "resourceGroupName",
|
|
1909
|
+
mapper: {
|
|
1910
|
+
constraints: {
|
|
1911
|
+
MaxLength: 90,
|
|
1912
|
+
MinLength: 1
|
|
1913
|
+
},
|
|
1914
|
+
serializedName: "resourceGroupName",
|
|
1915
|
+
required: true,
|
|
1916
|
+
type: {
|
|
1917
|
+
name: "String"
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
};
|
|
1921
|
+
const workspaceName = {
|
|
1922
|
+
parameterPath: "workspaceName",
|
|
1923
|
+
mapper: {
|
|
1924
|
+
constraints: {
|
|
1925
|
+
Pattern: new RegExp("^[a-zA-Z0-9][a-zA-Z0-9_.-]*$")
|
|
1926
|
+
},
|
|
1927
|
+
serializedName: "workspaceName",
|
|
1928
|
+
required: true,
|
|
1929
|
+
type: {
|
|
1930
|
+
name: "String"
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
};
|
|
1934
|
+
const apiVersion = {
|
|
1935
|
+
parameterPath: "apiVersion",
|
|
1936
|
+
mapper: {
|
|
1937
|
+
defaultValue: "2023-02-08-preview",
|
|
1938
|
+
isConstant: true,
|
|
1939
|
+
serializedName: "api-version",
|
|
1940
|
+
type: {
|
|
1941
|
+
name: "String"
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
};
|
|
1945
|
+
const contentType = {
|
|
1946
|
+
parameterPath: ["options", "contentType"],
|
|
1947
|
+
mapper: {
|
|
1948
|
+
defaultValue: "application/json",
|
|
1949
|
+
isConstant: true,
|
|
1950
|
+
serializedName: "Content-Type",
|
|
1951
|
+
type: {
|
|
1952
|
+
name: "String"
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
};
|
|
1956
|
+
const firmware = {
|
|
1957
|
+
parameterPath: "firmware",
|
|
1958
|
+
mapper: Firmware
|
|
1959
|
+
};
|
|
1960
|
+
const firmwareId = {
|
|
1961
|
+
parameterPath: "firmwareId",
|
|
1962
|
+
mapper: {
|
|
1963
|
+
serializedName: "firmwareId",
|
|
1964
|
+
required: true,
|
|
1965
|
+
type: {
|
|
1966
|
+
name: "String"
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
};
|
|
1970
|
+
const firmware1 = {
|
|
1971
|
+
parameterPath: "firmware",
|
|
1972
|
+
mapper: FirmwareUpdateDefinition
|
|
1973
|
+
};
|
|
1974
|
+
const nextLink = {
|
|
1975
|
+
parameterPath: "nextLink",
|
|
1976
|
+
mapper: {
|
|
1977
|
+
serializedName: "nextLink",
|
|
1978
|
+
required: true,
|
|
1979
|
+
type: {
|
|
1980
|
+
name: "String"
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1983
|
+
skipEncoding: true
|
|
1984
|
+
};
|
|
1985
|
+
const workspace = {
|
|
1986
|
+
parameterPath: "workspace",
|
|
1987
|
+
mapper: Workspace
|
|
1988
|
+
};
|
|
1989
|
+
const workspace1 = {
|
|
1990
|
+
parameterPath: "workspace",
|
|
1991
|
+
mapper: WorkspaceUpdateDefinition
|
|
1992
|
+
};
|
|
1993
|
+
const generateUploadUrl = {
|
|
1994
|
+
parameterPath: "generateUploadUrl",
|
|
1995
|
+
mapper: GenerateUploadUrlRequest
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1998
|
+
/*
|
|
1999
|
+
* Copyright (c) Microsoft Corporation.
|
|
2000
|
+
* Licensed under the MIT License.
|
|
2001
|
+
*
|
|
2002
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2003
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2004
|
+
*/
|
|
2005
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2006
|
+
/** Class containing FirmwareOperations operations. */
|
|
2007
|
+
class FirmwareOperationsImpl {
|
|
2008
|
+
/**
|
|
2009
|
+
* Initialize a new instance of the class FirmwareOperations class.
|
|
2010
|
+
* @param client Reference to the service client
|
|
2011
|
+
*/
|
|
2012
|
+
constructor(client) {
|
|
2013
|
+
this.client = client;
|
|
2014
|
+
}
|
|
2015
|
+
/**
|
|
2016
|
+
* Lists all of firmwares inside a workspace.
|
|
2017
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2018
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2019
|
+
* @param options The options parameters.
|
|
2020
|
+
*/
|
|
2021
|
+
listByWorkspace(resourceGroupName, workspaceName, options) {
|
|
2022
|
+
const iter = this.listByWorkspacePagingAll(resourceGroupName, workspaceName, options);
|
|
2023
|
+
return {
|
|
2024
|
+
next() {
|
|
2025
|
+
return iter.next();
|
|
2026
|
+
},
|
|
2027
|
+
[Symbol.asyncIterator]() {
|
|
2028
|
+
return this;
|
|
2029
|
+
},
|
|
2030
|
+
byPage: (settings) => {
|
|
2031
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2032
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2033
|
+
}
|
|
2034
|
+
return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
|
|
2035
|
+
}
|
|
2036
|
+
};
|
|
2037
|
+
}
|
|
2038
|
+
listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
|
|
2039
|
+
return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
|
|
2040
|
+
let result;
|
|
2041
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2042
|
+
if (!continuationToken) {
|
|
2043
|
+
result = yield tslib.__await(this._listByWorkspace(resourceGroupName, workspaceName, options));
|
|
2044
|
+
let page = result.value || [];
|
|
2045
|
+
continuationToken = result.nextLink;
|
|
2046
|
+
setContinuationToken(page, continuationToken);
|
|
2047
|
+
yield yield tslib.__await(page);
|
|
2048
|
+
}
|
|
2049
|
+
while (continuationToken) {
|
|
2050
|
+
result = yield tslib.__await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
|
|
2051
|
+
continuationToken = result.nextLink;
|
|
2052
|
+
let page = result.value || [];
|
|
2053
|
+
setContinuationToken(page, continuationToken);
|
|
2054
|
+
yield yield tslib.__await(page);
|
|
2055
|
+
}
|
|
2056
|
+
});
|
|
2057
|
+
}
|
|
2058
|
+
listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
|
|
2059
|
+
return tslib.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
|
|
2060
|
+
var _a, e_1, _b, _c;
|
|
2061
|
+
try {
|
|
2062
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2063
|
+
_c = _f.value;
|
|
2064
|
+
_d = false;
|
|
2065
|
+
try {
|
|
2066
|
+
const page = _c;
|
|
2067
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2068
|
+
}
|
|
2069
|
+
finally {
|
|
2070
|
+
_d = true;
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2075
|
+
finally {
|
|
2076
|
+
try {
|
|
2077
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2078
|
+
}
|
|
2079
|
+
finally { if (e_1) throw e_1.error; }
|
|
2080
|
+
}
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
2083
|
+
/**
|
|
2084
|
+
* The operation to list all components result for a firmware.
|
|
2085
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2086
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2087
|
+
* @param firmwareId The id of the firmware.
|
|
2088
|
+
* @param options The options parameters.
|
|
2089
|
+
*/
|
|
2090
|
+
listGenerateComponentList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2091
|
+
const iter = this.listGenerateComponentListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
|
|
2092
|
+
return {
|
|
2093
|
+
next() {
|
|
2094
|
+
return iter.next();
|
|
2095
|
+
},
|
|
2096
|
+
[Symbol.asyncIterator]() {
|
|
2097
|
+
return this;
|
|
2098
|
+
},
|
|
2099
|
+
byPage: (settings) => {
|
|
2100
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2101
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2102
|
+
}
|
|
2103
|
+
return this.listGenerateComponentListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
}
|
|
2107
|
+
listGenerateComponentListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
|
|
2108
|
+
return tslib.__asyncGenerator(this, arguments, function* listGenerateComponentListPagingPage_1() {
|
|
2109
|
+
let result;
|
|
2110
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2111
|
+
if (!continuationToken) {
|
|
2112
|
+
result = yield tslib.__await(this._listGenerateComponentList(resourceGroupName, workspaceName, firmwareId, options));
|
|
2113
|
+
let page = result.value || [];
|
|
2114
|
+
continuationToken = result.nextLink;
|
|
2115
|
+
setContinuationToken(page, continuationToken);
|
|
2116
|
+
yield yield tslib.__await(page);
|
|
2117
|
+
}
|
|
2118
|
+
while (continuationToken) {
|
|
2119
|
+
result = yield tslib.__await(this._listGenerateComponentListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
|
|
2120
|
+
continuationToken = result.nextLink;
|
|
2121
|
+
let page = result.value || [];
|
|
2122
|
+
setContinuationToken(page, continuationToken);
|
|
2123
|
+
yield yield tslib.__await(page);
|
|
2124
|
+
}
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
listGenerateComponentListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2128
|
+
return tslib.__asyncGenerator(this, arguments, function* listGenerateComponentListPagingAll_1() {
|
|
2129
|
+
var _a, e_2, _b, _c;
|
|
2130
|
+
try {
|
|
2131
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listGenerateComponentListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2132
|
+
_c = _f.value;
|
|
2133
|
+
_d = false;
|
|
2134
|
+
try {
|
|
2135
|
+
const page = _c;
|
|
2136
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2137
|
+
}
|
|
2138
|
+
finally {
|
|
2139
|
+
_d = true;
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2143
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2144
|
+
finally {
|
|
2145
|
+
try {
|
|
2146
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2147
|
+
}
|
|
2148
|
+
finally { if (e_2) throw e_2.error; }
|
|
2149
|
+
}
|
|
2150
|
+
});
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* The operation to list all binary hardening result for a firmware.
|
|
2154
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2155
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2156
|
+
* @param firmwareId The id of the firmware.
|
|
2157
|
+
* @param options The options parameters.
|
|
2158
|
+
*/
|
|
2159
|
+
listGenerateBinaryHardeningList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2160
|
+
const iter = this.listGenerateBinaryHardeningListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
|
|
2161
|
+
return {
|
|
2162
|
+
next() {
|
|
2163
|
+
return iter.next();
|
|
2164
|
+
},
|
|
2165
|
+
[Symbol.asyncIterator]() {
|
|
2166
|
+
return this;
|
|
2167
|
+
},
|
|
2168
|
+
byPage: (settings) => {
|
|
2169
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2170
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2171
|
+
}
|
|
2172
|
+
return this.listGenerateBinaryHardeningListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
|
|
2173
|
+
}
|
|
2174
|
+
};
|
|
2175
|
+
}
|
|
2176
|
+
listGenerateBinaryHardeningListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
|
|
2177
|
+
return tslib.__asyncGenerator(this, arguments, function* listGenerateBinaryHardeningListPagingPage_1() {
|
|
2178
|
+
let result;
|
|
2179
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2180
|
+
if (!continuationToken) {
|
|
2181
|
+
result = yield tslib.__await(this._listGenerateBinaryHardeningList(resourceGroupName, workspaceName, firmwareId, options));
|
|
2182
|
+
let page = result.value || [];
|
|
2183
|
+
continuationToken = result.nextLink;
|
|
2184
|
+
setContinuationToken(page, continuationToken);
|
|
2185
|
+
yield yield tslib.__await(page);
|
|
2186
|
+
}
|
|
2187
|
+
while (continuationToken) {
|
|
2188
|
+
result = yield tslib.__await(this._listGenerateBinaryHardeningListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
|
|
2189
|
+
continuationToken = result.nextLink;
|
|
2190
|
+
let page = result.value || [];
|
|
2191
|
+
setContinuationToken(page, continuationToken);
|
|
2192
|
+
yield yield tslib.__await(page);
|
|
2193
|
+
}
|
|
2194
|
+
});
|
|
2195
|
+
}
|
|
2196
|
+
listGenerateBinaryHardeningListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2197
|
+
return tslib.__asyncGenerator(this, arguments, function* listGenerateBinaryHardeningListPagingAll_1() {
|
|
2198
|
+
var _a, e_3, _b, _c;
|
|
2199
|
+
try {
|
|
2200
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listGenerateBinaryHardeningListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2201
|
+
_c = _f.value;
|
|
2202
|
+
_d = false;
|
|
2203
|
+
try {
|
|
2204
|
+
const page = _c;
|
|
2205
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2206
|
+
}
|
|
2207
|
+
finally {
|
|
2208
|
+
_d = true;
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
2213
|
+
finally {
|
|
2214
|
+
try {
|
|
2215
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2216
|
+
}
|
|
2217
|
+
finally { if (e_3) throw e_3.error; }
|
|
2218
|
+
}
|
|
2219
|
+
});
|
|
2220
|
+
}
|
|
2221
|
+
/**
|
|
2222
|
+
* The operation to list all password hashes for a firmware.
|
|
2223
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2224
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2225
|
+
* @param firmwareId The id of the firmware.
|
|
2226
|
+
* @param options The options parameters.
|
|
2227
|
+
*/
|
|
2228
|
+
listGeneratePasswordHashList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2229
|
+
const iter = this.listGeneratePasswordHashListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
|
|
2230
|
+
return {
|
|
2231
|
+
next() {
|
|
2232
|
+
return iter.next();
|
|
2233
|
+
},
|
|
2234
|
+
[Symbol.asyncIterator]() {
|
|
2235
|
+
return this;
|
|
2236
|
+
},
|
|
2237
|
+
byPage: (settings) => {
|
|
2238
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2239
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2240
|
+
}
|
|
2241
|
+
return this.listGeneratePasswordHashListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
|
|
2242
|
+
}
|
|
2243
|
+
};
|
|
2244
|
+
}
|
|
2245
|
+
listGeneratePasswordHashListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
|
|
2246
|
+
return tslib.__asyncGenerator(this, arguments, function* listGeneratePasswordHashListPagingPage_1() {
|
|
2247
|
+
let result;
|
|
2248
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2249
|
+
if (!continuationToken) {
|
|
2250
|
+
result = yield tslib.__await(this._listGeneratePasswordHashList(resourceGroupName, workspaceName, firmwareId, options));
|
|
2251
|
+
let page = result.value || [];
|
|
2252
|
+
continuationToken = result.nextLink;
|
|
2253
|
+
setContinuationToken(page, continuationToken);
|
|
2254
|
+
yield yield tslib.__await(page);
|
|
2255
|
+
}
|
|
2256
|
+
while (continuationToken) {
|
|
2257
|
+
result = yield tslib.__await(this._listGeneratePasswordHashListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
|
|
2258
|
+
continuationToken = result.nextLink;
|
|
2259
|
+
let page = result.value || [];
|
|
2260
|
+
setContinuationToken(page, continuationToken);
|
|
2261
|
+
yield yield tslib.__await(page);
|
|
2262
|
+
}
|
|
2263
|
+
});
|
|
2264
|
+
}
|
|
2265
|
+
listGeneratePasswordHashListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2266
|
+
return tslib.__asyncGenerator(this, arguments, function* listGeneratePasswordHashListPagingAll_1() {
|
|
2267
|
+
var _a, e_4, _b, _c;
|
|
2268
|
+
try {
|
|
2269
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listGeneratePasswordHashListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2270
|
+
_c = _f.value;
|
|
2271
|
+
_d = false;
|
|
2272
|
+
try {
|
|
2273
|
+
const page = _c;
|
|
2274
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2275
|
+
}
|
|
2276
|
+
finally {
|
|
2277
|
+
_d = true;
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
2282
|
+
finally {
|
|
2283
|
+
try {
|
|
2284
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2285
|
+
}
|
|
2286
|
+
finally { if (e_4) throw e_4.error; }
|
|
2287
|
+
}
|
|
2288
|
+
});
|
|
2289
|
+
}
|
|
2290
|
+
/**
|
|
2291
|
+
* The operation to list all cve results for a firmware.
|
|
2292
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2293
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2294
|
+
* @param firmwareId The id of the firmware.
|
|
2295
|
+
* @param options The options parameters.
|
|
2296
|
+
*/
|
|
2297
|
+
listGenerateCveList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2298
|
+
const iter = this.listGenerateCveListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
|
|
2299
|
+
return {
|
|
2300
|
+
next() {
|
|
2301
|
+
return iter.next();
|
|
2302
|
+
},
|
|
2303
|
+
[Symbol.asyncIterator]() {
|
|
2304
|
+
return this;
|
|
2305
|
+
},
|
|
2306
|
+
byPage: (settings) => {
|
|
2307
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2308
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2309
|
+
}
|
|
2310
|
+
return this.listGenerateCveListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
|
|
2311
|
+
}
|
|
2312
|
+
};
|
|
2313
|
+
}
|
|
2314
|
+
listGenerateCveListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
|
|
2315
|
+
return tslib.__asyncGenerator(this, arguments, function* listGenerateCveListPagingPage_1() {
|
|
2316
|
+
let result;
|
|
2317
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2318
|
+
if (!continuationToken) {
|
|
2319
|
+
result = yield tslib.__await(this._listGenerateCveList(resourceGroupName, workspaceName, firmwareId, options));
|
|
2320
|
+
let page = result.value || [];
|
|
2321
|
+
continuationToken = result.nextLink;
|
|
2322
|
+
setContinuationToken(page, continuationToken);
|
|
2323
|
+
yield yield tslib.__await(page);
|
|
2324
|
+
}
|
|
2325
|
+
while (continuationToken) {
|
|
2326
|
+
result = yield tslib.__await(this._listGenerateCveListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
|
|
2327
|
+
continuationToken = result.nextLink;
|
|
2328
|
+
let page = result.value || [];
|
|
2329
|
+
setContinuationToken(page, continuationToken);
|
|
2330
|
+
yield yield tslib.__await(page);
|
|
2331
|
+
}
|
|
2332
|
+
});
|
|
2333
|
+
}
|
|
2334
|
+
listGenerateCveListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2335
|
+
return tslib.__asyncGenerator(this, arguments, function* listGenerateCveListPagingAll_1() {
|
|
2336
|
+
var _a, e_5, _b, _c;
|
|
2337
|
+
try {
|
|
2338
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listGenerateCveListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2339
|
+
_c = _f.value;
|
|
2340
|
+
_d = false;
|
|
2341
|
+
try {
|
|
2342
|
+
const page = _c;
|
|
2343
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2344
|
+
}
|
|
2345
|
+
finally {
|
|
2346
|
+
_d = true;
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
}
|
|
2350
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
2351
|
+
finally {
|
|
2352
|
+
try {
|
|
2353
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2354
|
+
}
|
|
2355
|
+
finally { if (e_5) throw e_5.error; }
|
|
2356
|
+
}
|
|
2357
|
+
});
|
|
2358
|
+
}
|
|
2359
|
+
/**
|
|
2360
|
+
* The operation to list all crypto certificates for a firmware.
|
|
2361
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2362
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2363
|
+
* @param firmwareId The id of the firmware.
|
|
2364
|
+
* @param options The options parameters.
|
|
2365
|
+
*/
|
|
2366
|
+
listGenerateCryptoCertificateList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2367
|
+
const iter = this.listGenerateCryptoCertificateListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
|
|
2368
|
+
return {
|
|
2369
|
+
next() {
|
|
2370
|
+
return iter.next();
|
|
2371
|
+
},
|
|
2372
|
+
[Symbol.asyncIterator]() {
|
|
2373
|
+
return this;
|
|
2374
|
+
},
|
|
2375
|
+
byPage: (settings) => {
|
|
2376
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2377
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2378
|
+
}
|
|
2379
|
+
return this.listGenerateCryptoCertificateListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
|
|
2380
|
+
}
|
|
2381
|
+
};
|
|
2382
|
+
}
|
|
2383
|
+
listGenerateCryptoCertificateListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
|
|
2384
|
+
return tslib.__asyncGenerator(this, arguments, function* listGenerateCryptoCertificateListPagingPage_1() {
|
|
2385
|
+
let result;
|
|
2386
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2387
|
+
if (!continuationToken) {
|
|
2388
|
+
result = yield tslib.__await(this._listGenerateCryptoCertificateList(resourceGroupName, workspaceName, firmwareId, options));
|
|
2389
|
+
let page = result.value || [];
|
|
2390
|
+
continuationToken = result.nextLink;
|
|
2391
|
+
setContinuationToken(page, continuationToken);
|
|
2392
|
+
yield yield tslib.__await(page);
|
|
2393
|
+
}
|
|
2394
|
+
while (continuationToken) {
|
|
2395
|
+
result = yield tslib.__await(this._listGenerateCryptoCertificateListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
|
|
2396
|
+
continuationToken = result.nextLink;
|
|
2397
|
+
let page = result.value || [];
|
|
2398
|
+
setContinuationToken(page, continuationToken);
|
|
2399
|
+
yield yield tslib.__await(page);
|
|
2400
|
+
}
|
|
2401
|
+
});
|
|
2402
|
+
}
|
|
2403
|
+
listGenerateCryptoCertificateListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2404
|
+
return tslib.__asyncGenerator(this, arguments, function* listGenerateCryptoCertificateListPagingAll_1() {
|
|
2405
|
+
var _a, e_6, _b, _c;
|
|
2406
|
+
try {
|
|
2407
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listGenerateCryptoCertificateListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2408
|
+
_c = _f.value;
|
|
2409
|
+
_d = false;
|
|
2410
|
+
try {
|
|
2411
|
+
const page = _c;
|
|
2412
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2413
|
+
}
|
|
2414
|
+
finally {
|
|
2415
|
+
_d = true;
|
|
2416
|
+
}
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
2420
|
+
finally {
|
|
2421
|
+
try {
|
|
2422
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2423
|
+
}
|
|
2424
|
+
finally { if (e_6) throw e_6.error; }
|
|
2425
|
+
}
|
|
2426
|
+
});
|
|
2427
|
+
}
|
|
2428
|
+
/**
|
|
2429
|
+
* The operation to list all crypto keys for a firmware.
|
|
2430
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2431
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2432
|
+
* @param firmwareId The id of the firmware.
|
|
2433
|
+
* @param options The options parameters.
|
|
2434
|
+
*/
|
|
2435
|
+
listGenerateCryptoKeyList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2436
|
+
const iter = this.listGenerateCryptoKeyListPagingAll(resourceGroupName, workspaceName, firmwareId, options);
|
|
2437
|
+
return {
|
|
2438
|
+
next() {
|
|
2439
|
+
return iter.next();
|
|
2440
|
+
},
|
|
2441
|
+
[Symbol.asyncIterator]() {
|
|
2442
|
+
return this;
|
|
2443
|
+
},
|
|
2444
|
+
byPage: (settings) => {
|
|
2445
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2446
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2447
|
+
}
|
|
2448
|
+
return this.listGenerateCryptoKeyListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings);
|
|
2449
|
+
}
|
|
2450
|
+
};
|
|
2451
|
+
}
|
|
2452
|
+
listGenerateCryptoKeyListPagingPage(resourceGroupName, workspaceName, firmwareId, options, settings) {
|
|
2453
|
+
return tslib.__asyncGenerator(this, arguments, function* listGenerateCryptoKeyListPagingPage_1() {
|
|
2454
|
+
let result;
|
|
2455
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2456
|
+
if (!continuationToken) {
|
|
2457
|
+
result = yield tslib.__await(this._listGenerateCryptoKeyList(resourceGroupName, workspaceName, firmwareId, options));
|
|
2458
|
+
let page = result.value || [];
|
|
2459
|
+
continuationToken = result.nextLink;
|
|
2460
|
+
setContinuationToken(page, continuationToken);
|
|
2461
|
+
yield yield tslib.__await(page);
|
|
2462
|
+
}
|
|
2463
|
+
while (continuationToken) {
|
|
2464
|
+
result = yield tslib.__await(this._listGenerateCryptoKeyListNext(resourceGroupName, workspaceName, firmwareId, continuationToken, options));
|
|
2465
|
+
continuationToken = result.nextLink;
|
|
2466
|
+
let page = result.value || [];
|
|
2467
|
+
setContinuationToken(page, continuationToken);
|
|
2468
|
+
yield yield tslib.__await(page);
|
|
2469
|
+
}
|
|
2470
|
+
});
|
|
2471
|
+
}
|
|
2472
|
+
listGenerateCryptoKeyListPagingAll(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2473
|
+
return tslib.__asyncGenerator(this, arguments, function* listGenerateCryptoKeyListPagingAll_1() {
|
|
2474
|
+
var _a, e_7, _b, _c;
|
|
2475
|
+
try {
|
|
2476
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listGenerateCryptoKeyListPagingPage(resourceGroupName, workspaceName, firmwareId, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2477
|
+
_c = _f.value;
|
|
2478
|
+
_d = false;
|
|
2479
|
+
try {
|
|
2480
|
+
const page = _c;
|
|
2481
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2482
|
+
}
|
|
2483
|
+
finally {
|
|
2484
|
+
_d = true;
|
|
2485
|
+
}
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
2489
|
+
finally {
|
|
2490
|
+
try {
|
|
2491
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2492
|
+
}
|
|
2493
|
+
finally { if (e_7) throw e_7.error; }
|
|
2494
|
+
}
|
|
2495
|
+
});
|
|
2496
|
+
}
|
|
2497
|
+
/**
|
|
2498
|
+
* Lists all of firmwares inside a workspace.
|
|
2499
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2500
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2501
|
+
* @param options The options parameters.
|
|
2502
|
+
*/
|
|
2503
|
+
_listByWorkspace(resourceGroupName, workspaceName, options) {
|
|
2504
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, listByWorkspaceOperationSpec);
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
* The operation to create a firmware.
|
|
2508
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2509
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2510
|
+
* @param firmwareId The id of the firmware.
|
|
2511
|
+
* @param firmware Details of the firmware being created or updated.
|
|
2512
|
+
* @param options The options parameters.
|
|
2513
|
+
*/
|
|
2514
|
+
create(resourceGroupName, workspaceName, firmwareId, firmware, options) {
|
|
2515
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, firmware, options }, createOperationSpec$1);
|
|
2516
|
+
}
|
|
2517
|
+
/**
|
|
2518
|
+
* The operation to update firmware.
|
|
2519
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2520
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2521
|
+
* @param firmwareId The id of the firmware.
|
|
2522
|
+
* @param firmware Details of the firmware being created or updated.
|
|
2523
|
+
* @param options The options parameters.
|
|
2524
|
+
*/
|
|
2525
|
+
update(resourceGroupName, workspaceName, firmwareId, firmware, options) {
|
|
2526
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, firmware, options }, updateOperationSpec$1);
|
|
2527
|
+
}
|
|
2528
|
+
/**
|
|
2529
|
+
* The operation to delete a firmware.
|
|
2530
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2531
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2532
|
+
* @param firmwareId The id of the firmware.
|
|
2533
|
+
* @param options The options parameters.
|
|
2534
|
+
*/
|
|
2535
|
+
delete(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2536
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, deleteOperationSpec$1);
|
|
2537
|
+
}
|
|
2538
|
+
/**
|
|
2539
|
+
* Get firmware.
|
|
2540
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2541
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2542
|
+
* @param firmwareId The id of the firmware.
|
|
2543
|
+
* @param options The options parameters.
|
|
2544
|
+
*/
|
|
2545
|
+
get(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2546
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, getOperationSpec$1);
|
|
2547
|
+
}
|
|
2548
|
+
/**
|
|
2549
|
+
* The operation to a url for file download.
|
|
2550
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2551
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2552
|
+
* @param firmwareId The id of the firmware.
|
|
2553
|
+
* @param options The options parameters.
|
|
2554
|
+
*/
|
|
2555
|
+
generateDownloadUrl(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2556
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateDownloadUrlOperationSpec);
|
|
2557
|
+
}
|
|
2558
|
+
/**
|
|
2559
|
+
* The operation to a url for tar file download.
|
|
2560
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2561
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2562
|
+
* @param firmwareId The id of the firmware.
|
|
2563
|
+
* @param options The options parameters.
|
|
2564
|
+
*/
|
|
2565
|
+
generateFilesystemDownloadUrl(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2566
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateFilesystemDownloadUrlOperationSpec);
|
|
2567
|
+
}
|
|
2568
|
+
/**
|
|
2569
|
+
* The operation to get a scan summary.
|
|
2570
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2571
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2572
|
+
* @param firmwareId The id of the firmware.
|
|
2573
|
+
* @param options The options parameters.
|
|
2574
|
+
*/
|
|
2575
|
+
generateSummary(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2576
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateSummaryOperationSpec);
|
|
2577
|
+
}
|
|
2578
|
+
/**
|
|
2579
|
+
* The operation to list all components result for a firmware.
|
|
2580
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2581
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2582
|
+
* @param firmwareId The id of the firmware.
|
|
2583
|
+
* @param options The options parameters.
|
|
2584
|
+
*/
|
|
2585
|
+
_listGenerateComponentList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2586
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGenerateComponentListOperationSpec);
|
|
2587
|
+
}
|
|
2588
|
+
/**
|
|
2589
|
+
* The operation to get component details for a firmware.
|
|
2590
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2591
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2592
|
+
* @param firmwareId The id of the firmware.
|
|
2593
|
+
* @param options The options parameters.
|
|
2594
|
+
*/
|
|
2595
|
+
generateComponentDetails(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2596
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateComponentDetailsOperationSpec);
|
|
2597
|
+
}
|
|
2598
|
+
/**
|
|
2599
|
+
* The operation to list all binary hardening result for a firmware.
|
|
2600
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2601
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2602
|
+
* @param firmwareId The id of the firmware.
|
|
2603
|
+
* @param options The options parameters.
|
|
2604
|
+
*/
|
|
2605
|
+
_listGenerateBinaryHardeningList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2606
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGenerateBinaryHardeningListOperationSpec);
|
|
2607
|
+
}
|
|
2608
|
+
/**
|
|
2609
|
+
* The operation to list the binary hardening summary percentages for a firmware.
|
|
2610
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2611
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2612
|
+
* @param firmwareId The id of the firmware.
|
|
2613
|
+
* @param options The options parameters.
|
|
2614
|
+
*/
|
|
2615
|
+
generateBinaryHardeningSummary(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2616
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateBinaryHardeningSummaryOperationSpec);
|
|
2617
|
+
}
|
|
2618
|
+
/**
|
|
2619
|
+
* The operation to get binary hardening details for a firmware.
|
|
2620
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2621
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2622
|
+
* @param firmwareId The id of the firmware.
|
|
2623
|
+
* @param options The options parameters.
|
|
2624
|
+
*/
|
|
2625
|
+
generateBinaryHardeningDetails(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2626
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateBinaryHardeningDetailsOperationSpec);
|
|
2627
|
+
}
|
|
2628
|
+
/**
|
|
2629
|
+
* The operation to list all password hashes for a firmware.
|
|
2630
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2631
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2632
|
+
* @param firmwareId The id of the firmware.
|
|
2633
|
+
* @param options The options parameters.
|
|
2634
|
+
*/
|
|
2635
|
+
_listGeneratePasswordHashList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2636
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGeneratePasswordHashListOperationSpec);
|
|
2637
|
+
}
|
|
2638
|
+
/**
|
|
2639
|
+
* The operation to list all cve results for a firmware.
|
|
2640
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2641
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2642
|
+
* @param firmwareId The id of the firmware.
|
|
2643
|
+
* @param options The options parameters.
|
|
2644
|
+
*/
|
|
2645
|
+
_listGenerateCveList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2646
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGenerateCveListOperationSpec);
|
|
2647
|
+
}
|
|
2648
|
+
/**
|
|
2649
|
+
* The operation to provide a high level summary of the CVEs reported for the firmware image.
|
|
2650
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2651
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2652
|
+
* @param firmwareId The id of the firmware.
|
|
2653
|
+
* @param options The options parameters.
|
|
2654
|
+
*/
|
|
2655
|
+
generateCveSummary(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2656
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateCveSummaryOperationSpec);
|
|
2657
|
+
}
|
|
2658
|
+
/**
|
|
2659
|
+
* The operation to provide a high level summary of the discovered cryptographic certificates reported
|
|
2660
|
+
* for the firmware image.
|
|
2661
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2662
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2663
|
+
* @param firmwareId The id of the firmware.
|
|
2664
|
+
* @param options The options parameters.
|
|
2665
|
+
*/
|
|
2666
|
+
generateCryptoCertificateSummary(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2667
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateCryptoCertificateSummaryOperationSpec);
|
|
2668
|
+
}
|
|
2669
|
+
/**
|
|
2670
|
+
* The operation to provide a high level summary of the discovered cryptographic keys reported for the
|
|
2671
|
+
* firmware image.
|
|
2672
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2673
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2674
|
+
* @param firmwareId The id of the firmware.
|
|
2675
|
+
* @param options The options parameters.
|
|
2676
|
+
*/
|
|
2677
|
+
generateCryptoKeySummary(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2678
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, generateCryptoKeySummaryOperationSpec);
|
|
2679
|
+
}
|
|
2680
|
+
/**
|
|
2681
|
+
* The operation to list all crypto certificates for a firmware.
|
|
2682
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2683
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2684
|
+
* @param firmwareId The id of the firmware.
|
|
2685
|
+
* @param options The options parameters.
|
|
2686
|
+
*/
|
|
2687
|
+
_listGenerateCryptoCertificateList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2688
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGenerateCryptoCertificateListOperationSpec);
|
|
2689
|
+
}
|
|
2690
|
+
/**
|
|
2691
|
+
* The operation to list all crypto keys for a firmware.
|
|
2692
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2693
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2694
|
+
* @param firmwareId The id of the firmware.
|
|
2695
|
+
* @param options The options parameters.
|
|
2696
|
+
*/
|
|
2697
|
+
_listGenerateCryptoKeyList(resourceGroupName, workspaceName, firmwareId, options) {
|
|
2698
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, options }, listGenerateCryptoKeyListOperationSpec);
|
|
2699
|
+
}
|
|
2700
|
+
/**
|
|
2701
|
+
* ListByWorkspaceNext
|
|
2702
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2703
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2704
|
+
* @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.
|
|
2705
|
+
* @param options The options parameters.
|
|
2706
|
+
*/
|
|
2707
|
+
_listByWorkspaceNext(resourceGroupName, workspaceName, nextLink, options) {
|
|
2708
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, nextLink, options }, listByWorkspaceNextOperationSpec);
|
|
2709
|
+
}
|
|
2710
|
+
/**
|
|
2711
|
+
* ListGenerateComponentListNext
|
|
2712
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2713
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2714
|
+
* @param firmwareId The id of the firmware.
|
|
2715
|
+
* @param nextLink The nextLink from the previous successful call to the ListGenerateComponentList
|
|
2716
|
+
* method.
|
|
2717
|
+
* @param options The options parameters.
|
|
2718
|
+
*/
|
|
2719
|
+
_listGenerateComponentListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
|
|
2720
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGenerateComponentListNextOperationSpec);
|
|
2721
|
+
}
|
|
2722
|
+
/**
|
|
2723
|
+
* ListGenerateBinaryHardeningListNext
|
|
2724
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2725
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2726
|
+
* @param firmwareId The id of the firmware.
|
|
2727
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
2728
|
+
* ListGenerateBinaryHardeningList method.
|
|
2729
|
+
* @param options The options parameters.
|
|
2730
|
+
*/
|
|
2731
|
+
_listGenerateBinaryHardeningListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
|
|
2732
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGenerateBinaryHardeningListNextOperationSpec);
|
|
2733
|
+
}
|
|
2734
|
+
/**
|
|
2735
|
+
* ListGeneratePasswordHashListNext
|
|
2736
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2737
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2738
|
+
* @param firmwareId The id of the firmware.
|
|
2739
|
+
* @param nextLink The nextLink from the previous successful call to the ListGeneratePasswordHashList
|
|
2740
|
+
* method.
|
|
2741
|
+
* @param options The options parameters.
|
|
2742
|
+
*/
|
|
2743
|
+
_listGeneratePasswordHashListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
|
|
2744
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGeneratePasswordHashListNextOperationSpec);
|
|
2745
|
+
}
|
|
2746
|
+
/**
|
|
2747
|
+
* ListGenerateCveListNext
|
|
2748
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2749
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2750
|
+
* @param firmwareId The id of the firmware.
|
|
2751
|
+
* @param nextLink The nextLink from the previous successful call to the ListGenerateCveList method.
|
|
2752
|
+
* @param options The options parameters.
|
|
2753
|
+
*/
|
|
2754
|
+
_listGenerateCveListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
|
|
2755
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGenerateCveListNextOperationSpec);
|
|
2756
|
+
}
|
|
2757
|
+
/**
|
|
2758
|
+
* ListGenerateCryptoCertificateListNext
|
|
2759
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2760
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2761
|
+
* @param firmwareId The id of the firmware.
|
|
2762
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
2763
|
+
* ListGenerateCryptoCertificateList method.
|
|
2764
|
+
* @param options The options parameters.
|
|
2765
|
+
*/
|
|
2766
|
+
_listGenerateCryptoCertificateListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
|
|
2767
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGenerateCryptoCertificateListNextOperationSpec);
|
|
2768
|
+
}
|
|
2769
|
+
/**
|
|
2770
|
+
* ListGenerateCryptoKeyListNext
|
|
2771
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2772
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
2773
|
+
* @param firmwareId The id of the firmware.
|
|
2774
|
+
* @param nextLink The nextLink from the previous successful call to the ListGenerateCryptoKeyList
|
|
2775
|
+
* method.
|
|
2776
|
+
* @param options The options parameters.
|
|
2777
|
+
*/
|
|
2778
|
+
_listGenerateCryptoKeyListNext(resourceGroupName, workspaceName, firmwareId, nextLink, options) {
|
|
2779
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, firmwareId, nextLink, options }, listGenerateCryptoKeyListNextOperationSpec);
|
|
2780
|
+
}
|
|
2781
|
+
}
|
|
2782
|
+
// Operation Specifications
|
|
2783
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2784
|
+
const listByWorkspaceOperationSpec = {
|
|
2785
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares",
|
|
2786
|
+
httpMethod: "GET",
|
|
2787
|
+
responses: {
|
|
2788
|
+
200: {
|
|
2789
|
+
bodyMapper: FirmwareList
|
|
2790
|
+
},
|
|
2791
|
+
default: {
|
|
2792
|
+
bodyMapper: ErrorResponse
|
|
2793
|
+
}
|
|
2794
|
+
},
|
|
2795
|
+
queryParameters: [apiVersion],
|
|
2796
|
+
urlParameters: [
|
|
2797
|
+
$host,
|
|
2798
|
+
subscriptionId,
|
|
2799
|
+
resourceGroupName,
|
|
2800
|
+
workspaceName
|
|
2801
|
+
],
|
|
2802
|
+
headerParameters: [accept],
|
|
2803
|
+
serializer: serializer$2
|
|
2804
|
+
};
|
|
2805
|
+
const createOperationSpec$1 = {
|
|
2806
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
|
|
2807
|
+
httpMethod: "PUT",
|
|
2808
|
+
responses: {
|
|
2809
|
+
200: {
|
|
2810
|
+
bodyMapper: Firmware
|
|
2811
|
+
},
|
|
2812
|
+
201: {
|
|
2813
|
+
bodyMapper: Firmware
|
|
2814
|
+
},
|
|
2815
|
+
default: {
|
|
2816
|
+
bodyMapper: ErrorResponse
|
|
2817
|
+
}
|
|
2818
|
+
},
|
|
2819
|
+
requestBody: firmware,
|
|
2820
|
+
queryParameters: [apiVersion],
|
|
2821
|
+
urlParameters: [
|
|
2822
|
+
$host,
|
|
2823
|
+
subscriptionId,
|
|
2824
|
+
resourceGroupName,
|
|
2825
|
+
workspaceName,
|
|
2826
|
+
firmwareId
|
|
2827
|
+
],
|
|
2828
|
+
headerParameters: [accept, contentType],
|
|
2829
|
+
mediaType: "json",
|
|
2830
|
+
serializer: serializer$2
|
|
2831
|
+
};
|
|
2832
|
+
const updateOperationSpec$1 = {
|
|
2833
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
|
|
2834
|
+
httpMethod: "PATCH",
|
|
2835
|
+
responses: {
|
|
2836
|
+
200: {
|
|
2837
|
+
bodyMapper: Firmware
|
|
2838
|
+
},
|
|
2839
|
+
201: {
|
|
2840
|
+
bodyMapper: Firmware
|
|
2841
|
+
},
|
|
2842
|
+
default: {
|
|
2843
|
+
bodyMapper: ErrorResponse
|
|
2844
|
+
}
|
|
2845
|
+
},
|
|
2846
|
+
requestBody: firmware1,
|
|
2847
|
+
queryParameters: [apiVersion],
|
|
2848
|
+
urlParameters: [
|
|
2849
|
+
$host,
|
|
2850
|
+
subscriptionId,
|
|
2851
|
+
resourceGroupName,
|
|
2852
|
+
workspaceName,
|
|
2853
|
+
firmwareId
|
|
2854
|
+
],
|
|
2855
|
+
headerParameters: [accept, contentType],
|
|
2856
|
+
mediaType: "json",
|
|
2857
|
+
serializer: serializer$2
|
|
2858
|
+
};
|
|
2859
|
+
const deleteOperationSpec$1 = {
|
|
2860
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
|
|
2861
|
+
httpMethod: "DELETE",
|
|
2862
|
+
responses: {
|
|
2863
|
+
200: {},
|
|
2864
|
+
204: {},
|
|
2865
|
+
default: {
|
|
2866
|
+
bodyMapper: ErrorResponse
|
|
2867
|
+
}
|
|
2868
|
+
},
|
|
2869
|
+
queryParameters: [apiVersion],
|
|
2870
|
+
urlParameters: [
|
|
2871
|
+
$host,
|
|
2872
|
+
subscriptionId,
|
|
2873
|
+
resourceGroupName,
|
|
2874
|
+
workspaceName,
|
|
2875
|
+
firmwareId
|
|
2876
|
+
],
|
|
2877
|
+
headerParameters: [accept],
|
|
2878
|
+
serializer: serializer$2
|
|
2879
|
+
};
|
|
2880
|
+
const getOperationSpec$1 = {
|
|
2881
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}",
|
|
2882
|
+
httpMethod: "GET",
|
|
2883
|
+
responses: {
|
|
2884
|
+
200: {
|
|
2885
|
+
bodyMapper: Firmware
|
|
2886
|
+
},
|
|
2887
|
+
default: {
|
|
2888
|
+
bodyMapper: ErrorResponse
|
|
2889
|
+
}
|
|
2890
|
+
},
|
|
2891
|
+
queryParameters: [apiVersion],
|
|
2892
|
+
urlParameters: [
|
|
2893
|
+
$host,
|
|
2894
|
+
subscriptionId,
|
|
2895
|
+
resourceGroupName,
|
|
2896
|
+
workspaceName,
|
|
2897
|
+
firmwareId
|
|
2898
|
+
],
|
|
2899
|
+
headerParameters: [accept],
|
|
2900
|
+
serializer: serializer$2
|
|
2901
|
+
};
|
|
2902
|
+
const generateDownloadUrlOperationSpec = {
|
|
2903
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateDownloadUrl",
|
|
2904
|
+
httpMethod: "POST",
|
|
2905
|
+
responses: {
|
|
2906
|
+
200: {
|
|
2907
|
+
bodyMapper: UrlToken
|
|
2908
|
+
},
|
|
2909
|
+
default: {
|
|
2910
|
+
bodyMapper: ErrorResponse
|
|
2911
|
+
}
|
|
2912
|
+
},
|
|
2913
|
+
queryParameters: [apiVersion],
|
|
2914
|
+
urlParameters: [
|
|
2915
|
+
$host,
|
|
2916
|
+
subscriptionId,
|
|
2917
|
+
resourceGroupName,
|
|
2918
|
+
workspaceName,
|
|
2919
|
+
firmwareId
|
|
2920
|
+
],
|
|
2921
|
+
headerParameters: [accept],
|
|
2922
|
+
serializer: serializer$2
|
|
2923
|
+
};
|
|
2924
|
+
const generateFilesystemDownloadUrlOperationSpec = {
|
|
2925
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateFilesystemDownloadUrl",
|
|
2926
|
+
httpMethod: "POST",
|
|
2927
|
+
responses: {
|
|
2928
|
+
200: {
|
|
2929
|
+
bodyMapper: UrlToken
|
|
2930
|
+
},
|
|
2931
|
+
default: {
|
|
2932
|
+
bodyMapper: ErrorResponse
|
|
2933
|
+
}
|
|
2934
|
+
},
|
|
2935
|
+
queryParameters: [apiVersion],
|
|
2936
|
+
urlParameters: [
|
|
2937
|
+
$host,
|
|
2938
|
+
subscriptionId,
|
|
2939
|
+
resourceGroupName,
|
|
2940
|
+
workspaceName,
|
|
2941
|
+
firmwareId
|
|
2942
|
+
],
|
|
2943
|
+
headerParameters: [accept],
|
|
2944
|
+
serializer: serializer$2
|
|
2945
|
+
};
|
|
2946
|
+
const generateSummaryOperationSpec = {
|
|
2947
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateSummary",
|
|
2948
|
+
httpMethod: "POST",
|
|
2949
|
+
responses: {
|
|
2950
|
+
200: {
|
|
2951
|
+
bodyMapper: FirmwareSummary
|
|
2952
|
+
},
|
|
2953
|
+
default: {
|
|
2954
|
+
bodyMapper: ErrorResponse
|
|
2955
|
+
}
|
|
2956
|
+
},
|
|
2957
|
+
queryParameters: [apiVersion],
|
|
2958
|
+
urlParameters: [
|
|
2959
|
+
$host,
|
|
2960
|
+
subscriptionId,
|
|
2961
|
+
resourceGroupName,
|
|
2962
|
+
workspaceName,
|
|
2963
|
+
firmwareId
|
|
2964
|
+
],
|
|
2965
|
+
headerParameters: [accept],
|
|
2966
|
+
serializer: serializer$2
|
|
2967
|
+
};
|
|
2968
|
+
const listGenerateComponentListOperationSpec = {
|
|
2969
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateComponentList",
|
|
2970
|
+
httpMethod: "POST",
|
|
2971
|
+
responses: {
|
|
2972
|
+
200: {
|
|
2973
|
+
bodyMapper: ComponentList
|
|
2974
|
+
},
|
|
2975
|
+
default: {
|
|
2976
|
+
bodyMapper: ErrorResponse
|
|
2977
|
+
}
|
|
2978
|
+
},
|
|
2979
|
+
queryParameters: [apiVersion],
|
|
2980
|
+
urlParameters: [
|
|
2981
|
+
$host,
|
|
2982
|
+
subscriptionId,
|
|
2983
|
+
resourceGroupName,
|
|
2984
|
+
workspaceName,
|
|
2985
|
+
firmwareId
|
|
2986
|
+
],
|
|
2987
|
+
headerParameters: [accept],
|
|
2988
|
+
serializer: serializer$2
|
|
2989
|
+
};
|
|
2990
|
+
const generateComponentDetailsOperationSpec = {
|
|
2991
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateComponentDetails",
|
|
2992
|
+
httpMethod: "POST",
|
|
2993
|
+
responses: {
|
|
2994
|
+
200: {
|
|
2995
|
+
bodyMapper: Component
|
|
2996
|
+
},
|
|
2997
|
+
default: {
|
|
2998
|
+
bodyMapper: ErrorResponse
|
|
2999
|
+
}
|
|
3000
|
+
},
|
|
3001
|
+
queryParameters: [apiVersion],
|
|
3002
|
+
urlParameters: [
|
|
3003
|
+
$host,
|
|
3004
|
+
subscriptionId,
|
|
3005
|
+
resourceGroupName,
|
|
3006
|
+
workspaceName,
|
|
3007
|
+
firmwareId
|
|
3008
|
+
],
|
|
3009
|
+
headerParameters: [accept],
|
|
3010
|
+
serializer: serializer$2
|
|
3011
|
+
};
|
|
3012
|
+
const listGenerateBinaryHardeningListOperationSpec = {
|
|
3013
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningList",
|
|
3014
|
+
httpMethod: "POST",
|
|
3015
|
+
responses: {
|
|
3016
|
+
200: {
|
|
3017
|
+
bodyMapper: BinaryHardeningList
|
|
3018
|
+
},
|
|
3019
|
+
default: {
|
|
3020
|
+
bodyMapper: ErrorResponse
|
|
3021
|
+
}
|
|
3022
|
+
},
|
|
3023
|
+
queryParameters: [apiVersion],
|
|
3024
|
+
urlParameters: [
|
|
3025
|
+
$host,
|
|
3026
|
+
subscriptionId,
|
|
3027
|
+
resourceGroupName,
|
|
3028
|
+
workspaceName,
|
|
3029
|
+
firmwareId
|
|
3030
|
+
],
|
|
3031
|
+
headerParameters: [accept],
|
|
3032
|
+
serializer: serializer$2
|
|
3033
|
+
};
|
|
3034
|
+
const generateBinaryHardeningSummaryOperationSpec = {
|
|
3035
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningSummary",
|
|
3036
|
+
httpMethod: "POST",
|
|
3037
|
+
responses: {
|
|
3038
|
+
200: {
|
|
3039
|
+
bodyMapper: BinaryHardeningSummary
|
|
3040
|
+
},
|
|
3041
|
+
default: {
|
|
3042
|
+
bodyMapper: ErrorResponse
|
|
3043
|
+
}
|
|
3044
|
+
},
|
|
3045
|
+
queryParameters: [apiVersion],
|
|
3046
|
+
urlParameters: [
|
|
3047
|
+
$host,
|
|
3048
|
+
subscriptionId,
|
|
3049
|
+
resourceGroupName,
|
|
3050
|
+
workspaceName,
|
|
3051
|
+
firmwareId
|
|
3052
|
+
],
|
|
3053
|
+
headerParameters: [accept],
|
|
3054
|
+
serializer: serializer$2
|
|
3055
|
+
};
|
|
3056
|
+
const generateBinaryHardeningDetailsOperationSpec = {
|
|
3057
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateBinaryHardeningDetails",
|
|
3058
|
+
httpMethod: "POST",
|
|
3059
|
+
responses: {
|
|
3060
|
+
200: {
|
|
3061
|
+
bodyMapper: BinaryHardening
|
|
3062
|
+
},
|
|
3063
|
+
default: {
|
|
3064
|
+
bodyMapper: ErrorResponse
|
|
3065
|
+
}
|
|
3066
|
+
},
|
|
3067
|
+
queryParameters: [apiVersion],
|
|
3068
|
+
urlParameters: [
|
|
3069
|
+
$host,
|
|
3070
|
+
subscriptionId,
|
|
3071
|
+
resourceGroupName,
|
|
3072
|
+
workspaceName,
|
|
3073
|
+
firmwareId
|
|
3074
|
+
],
|
|
3075
|
+
headerParameters: [accept],
|
|
3076
|
+
serializer: serializer$2
|
|
3077
|
+
};
|
|
3078
|
+
const listGeneratePasswordHashListOperationSpec = {
|
|
3079
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generatePasswordHashList",
|
|
3080
|
+
httpMethod: "POST",
|
|
3081
|
+
responses: {
|
|
3082
|
+
200: {
|
|
3083
|
+
bodyMapper: PasswordHashList
|
|
3084
|
+
},
|
|
3085
|
+
default: {
|
|
3086
|
+
bodyMapper: ErrorResponse
|
|
3087
|
+
}
|
|
3088
|
+
},
|
|
3089
|
+
queryParameters: [apiVersion],
|
|
3090
|
+
urlParameters: [
|
|
3091
|
+
$host,
|
|
3092
|
+
subscriptionId,
|
|
3093
|
+
resourceGroupName,
|
|
3094
|
+
workspaceName,
|
|
3095
|
+
firmwareId
|
|
3096
|
+
],
|
|
3097
|
+
headerParameters: [accept],
|
|
3098
|
+
serializer: serializer$2
|
|
3099
|
+
};
|
|
3100
|
+
const listGenerateCveListOperationSpec = {
|
|
3101
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCveList",
|
|
3102
|
+
httpMethod: "POST",
|
|
3103
|
+
responses: {
|
|
3104
|
+
200: {
|
|
3105
|
+
bodyMapper: CveList
|
|
3106
|
+
},
|
|
3107
|
+
default: {
|
|
3108
|
+
bodyMapper: ErrorResponse
|
|
3109
|
+
}
|
|
3110
|
+
},
|
|
3111
|
+
queryParameters: [apiVersion],
|
|
3112
|
+
urlParameters: [
|
|
3113
|
+
$host,
|
|
3114
|
+
subscriptionId,
|
|
3115
|
+
resourceGroupName,
|
|
3116
|
+
workspaceName,
|
|
3117
|
+
firmwareId
|
|
3118
|
+
],
|
|
3119
|
+
headerParameters: [accept],
|
|
3120
|
+
serializer: serializer$2
|
|
3121
|
+
};
|
|
3122
|
+
const generateCveSummaryOperationSpec = {
|
|
3123
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCveSummary",
|
|
3124
|
+
httpMethod: "POST",
|
|
3125
|
+
responses: {
|
|
3126
|
+
200: {
|
|
3127
|
+
bodyMapper: CveSummary
|
|
3128
|
+
},
|
|
3129
|
+
default: {
|
|
3130
|
+
bodyMapper: ErrorResponse
|
|
3131
|
+
}
|
|
3132
|
+
},
|
|
3133
|
+
queryParameters: [apiVersion],
|
|
3134
|
+
urlParameters: [
|
|
3135
|
+
$host,
|
|
3136
|
+
subscriptionId,
|
|
3137
|
+
resourceGroupName,
|
|
3138
|
+
workspaceName,
|
|
3139
|
+
firmwareId
|
|
3140
|
+
],
|
|
3141
|
+
headerParameters: [accept],
|
|
3142
|
+
serializer: serializer$2
|
|
3143
|
+
};
|
|
3144
|
+
const generateCryptoCertificateSummaryOperationSpec = {
|
|
3145
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoCertificateSummary",
|
|
3146
|
+
httpMethod: "POST",
|
|
3147
|
+
responses: {
|
|
3148
|
+
200: {
|
|
3149
|
+
bodyMapper: CryptoCertificateSummary
|
|
3150
|
+
},
|
|
3151
|
+
default: {
|
|
3152
|
+
bodyMapper: ErrorResponse
|
|
3153
|
+
}
|
|
3154
|
+
},
|
|
3155
|
+
queryParameters: [apiVersion],
|
|
3156
|
+
urlParameters: [
|
|
3157
|
+
$host,
|
|
3158
|
+
subscriptionId,
|
|
3159
|
+
resourceGroupName,
|
|
3160
|
+
workspaceName,
|
|
3161
|
+
firmwareId
|
|
3162
|
+
],
|
|
3163
|
+
headerParameters: [accept],
|
|
3164
|
+
serializer: serializer$2
|
|
3165
|
+
};
|
|
3166
|
+
const generateCryptoKeySummaryOperationSpec = {
|
|
3167
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoKeySummary",
|
|
3168
|
+
httpMethod: "POST",
|
|
3169
|
+
responses: {
|
|
3170
|
+
200: {
|
|
3171
|
+
bodyMapper: CryptoKeySummary
|
|
3172
|
+
},
|
|
3173
|
+
default: {
|
|
3174
|
+
bodyMapper: ErrorResponse
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
queryParameters: [apiVersion],
|
|
3178
|
+
urlParameters: [
|
|
3179
|
+
$host,
|
|
3180
|
+
subscriptionId,
|
|
3181
|
+
resourceGroupName,
|
|
3182
|
+
workspaceName,
|
|
3183
|
+
firmwareId
|
|
3184
|
+
],
|
|
3185
|
+
headerParameters: [accept],
|
|
3186
|
+
serializer: serializer$2
|
|
3187
|
+
};
|
|
3188
|
+
const listGenerateCryptoCertificateListOperationSpec = {
|
|
3189
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoCertificateList",
|
|
3190
|
+
httpMethod: "POST",
|
|
3191
|
+
responses: {
|
|
3192
|
+
200: {
|
|
3193
|
+
bodyMapper: CryptoCertificateList
|
|
3194
|
+
},
|
|
3195
|
+
default: {
|
|
3196
|
+
bodyMapper: ErrorResponse
|
|
3197
|
+
}
|
|
3198
|
+
},
|
|
3199
|
+
queryParameters: [apiVersion],
|
|
3200
|
+
urlParameters: [
|
|
3201
|
+
$host,
|
|
3202
|
+
subscriptionId,
|
|
3203
|
+
resourceGroupName,
|
|
3204
|
+
workspaceName,
|
|
3205
|
+
firmwareId
|
|
3206
|
+
],
|
|
3207
|
+
headerParameters: [accept],
|
|
3208
|
+
serializer: serializer$2
|
|
3209
|
+
};
|
|
3210
|
+
const listGenerateCryptoKeyListOperationSpec = {
|
|
3211
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/firmwares/{firmwareId}/generateCryptoKeyList",
|
|
3212
|
+
httpMethod: "POST",
|
|
3213
|
+
responses: {
|
|
3214
|
+
200: {
|
|
3215
|
+
bodyMapper: CryptoKeyList
|
|
3216
|
+
},
|
|
3217
|
+
default: {
|
|
3218
|
+
bodyMapper: ErrorResponse
|
|
3219
|
+
}
|
|
3220
|
+
},
|
|
3221
|
+
queryParameters: [apiVersion],
|
|
3222
|
+
urlParameters: [
|
|
3223
|
+
$host,
|
|
3224
|
+
subscriptionId,
|
|
3225
|
+
resourceGroupName,
|
|
3226
|
+
workspaceName,
|
|
3227
|
+
firmwareId
|
|
3228
|
+
],
|
|
3229
|
+
headerParameters: [accept],
|
|
3230
|
+
serializer: serializer$2
|
|
3231
|
+
};
|
|
3232
|
+
const listByWorkspaceNextOperationSpec = {
|
|
3233
|
+
path: "{nextLink}",
|
|
3234
|
+
httpMethod: "GET",
|
|
3235
|
+
responses: {
|
|
3236
|
+
200: {
|
|
3237
|
+
bodyMapper: FirmwareList
|
|
3238
|
+
},
|
|
3239
|
+
default: {
|
|
3240
|
+
bodyMapper: ErrorResponse
|
|
3241
|
+
}
|
|
3242
|
+
},
|
|
3243
|
+
urlParameters: [
|
|
3244
|
+
$host,
|
|
3245
|
+
subscriptionId,
|
|
3246
|
+
resourceGroupName,
|
|
3247
|
+
workspaceName,
|
|
3248
|
+
nextLink
|
|
3249
|
+
],
|
|
3250
|
+
headerParameters: [accept],
|
|
3251
|
+
serializer: serializer$2
|
|
3252
|
+
};
|
|
3253
|
+
const listGenerateComponentListNextOperationSpec = {
|
|
3254
|
+
path: "{nextLink}",
|
|
3255
|
+
httpMethod: "GET",
|
|
3256
|
+
responses: {
|
|
3257
|
+
200: {
|
|
3258
|
+
bodyMapper: ComponentList
|
|
3259
|
+
},
|
|
3260
|
+
default: {
|
|
3261
|
+
bodyMapper: ErrorResponse
|
|
3262
|
+
}
|
|
3263
|
+
},
|
|
3264
|
+
urlParameters: [
|
|
3265
|
+
$host,
|
|
3266
|
+
subscriptionId,
|
|
3267
|
+
resourceGroupName,
|
|
3268
|
+
workspaceName,
|
|
3269
|
+
firmwareId,
|
|
3270
|
+
nextLink
|
|
3271
|
+
],
|
|
3272
|
+
headerParameters: [accept],
|
|
3273
|
+
serializer: serializer$2
|
|
3274
|
+
};
|
|
3275
|
+
const listGenerateBinaryHardeningListNextOperationSpec = {
|
|
3276
|
+
path: "{nextLink}",
|
|
3277
|
+
httpMethod: "GET",
|
|
3278
|
+
responses: {
|
|
3279
|
+
200: {
|
|
3280
|
+
bodyMapper: BinaryHardeningList
|
|
3281
|
+
},
|
|
3282
|
+
default: {
|
|
3283
|
+
bodyMapper: ErrorResponse
|
|
3284
|
+
}
|
|
3285
|
+
},
|
|
3286
|
+
urlParameters: [
|
|
3287
|
+
$host,
|
|
3288
|
+
subscriptionId,
|
|
3289
|
+
resourceGroupName,
|
|
3290
|
+
workspaceName,
|
|
3291
|
+
firmwareId,
|
|
3292
|
+
nextLink
|
|
3293
|
+
],
|
|
3294
|
+
headerParameters: [accept],
|
|
3295
|
+
serializer: serializer$2
|
|
3296
|
+
};
|
|
3297
|
+
const listGeneratePasswordHashListNextOperationSpec = {
|
|
3298
|
+
path: "{nextLink}",
|
|
3299
|
+
httpMethod: "GET",
|
|
3300
|
+
responses: {
|
|
3301
|
+
200: {
|
|
3302
|
+
bodyMapper: PasswordHashList
|
|
3303
|
+
},
|
|
3304
|
+
default: {
|
|
3305
|
+
bodyMapper: ErrorResponse
|
|
3306
|
+
}
|
|
3307
|
+
},
|
|
3308
|
+
urlParameters: [
|
|
3309
|
+
$host,
|
|
3310
|
+
subscriptionId,
|
|
3311
|
+
resourceGroupName,
|
|
3312
|
+
workspaceName,
|
|
3313
|
+
firmwareId,
|
|
3314
|
+
nextLink
|
|
3315
|
+
],
|
|
3316
|
+
headerParameters: [accept],
|
|
3317
|
+
serializer: serializer$2
|
|
3318
|
+
};
|
|
3319
|
+
const listGenerateCveListNextOperationSpec = {
|
|
3320
|
+
path: "{nextLink}",
|
|
3321
|
+
httpMethod: "GET",
|
|
3322
|
+
responses: {
|
|
3323
|
+
200: {
|
|
3324
|
+
bodyMapper: CveList
|
|
3325
|
+
},
|
|
3326
|
+
default: {
|
|
3327
|
+
bodyMapper: ErrorResponse
|
|
3328
|
+
}
|
|
3329
|
+
},
|
|
3330
|
+
urlParameters: [
|
|
3331
|
+
$host,
|
|
3332
|
+
subscriptionId,
|
|
3333
|
+
resourceGroupName,
|
|
3334
|
+
workspaceName,
|
|
3335
|
+
firmwareId,
|
|
3336
|
+
nextLink
|
|
3337
|
+
],
|
|
3338
|
+
headerParameters: [accept],
|
|
3339
|
+
serializer: serializer$2
|
|
3340
|
+
};
|
|
3341
|
+
const listGenerateCryptoCertificateListNextOperationSpec = {
|
|
3342
|
+
path: "{nextLink}",
|
|
3343
|
+
httpMethod: "GET",
|
|
3344
|
+
responses: {
|
|
3345
|
+
200: {
|
|
3346
|
+
bodyMapper: CryptoCertificateList
|
|
3347
|
+
},
|
|
3348
|
+
default: {
|
|
3349
|
+
bodyMapper: ErrorResponse
|
|
3350
|
+
}
|
|
3351
|
+
},
|
|
3352
|
+
urlParameters: [
|
|
3353
|
+
$host,
|
|
3354
|
+
subscriptionId,
|
|
3355
|
+
resourceGroupName,
|
|
3356
|
+
workspaceName,
|
|
3357
|
+
firmwareId,
|
|
3358
|
+
nextLink
|
|
3359
|
+
],
|
|
3360
|
+
headerParameters: [accept],
|
|
3361
|
+
serializer: serializer$2
|
|
3362
|
+
};
|
|
3363
|
+
const listGenerateCryptoKeyListNextOperationSpec = {
|
|
3364
|
+
path: "{nextLink}",
|
|
3365
|
+
httpMethod: "GET",
|
|
3366
|
+
responses: {
|
|
3367
|
+
200: {
|
|
3368
|
+
bodyMapper: CryptoKeyList
|
|
3369
|
+
},
|
|
3370
|
+
default: {
|
|
3371
|
+
bodyMapper: ErrorResponse
|
|
3372
|
+
}
|
|
3373
|
+
},
|
|
3374
|
+
urlParameters: [
|
|
3375
|
+
$host,
|
|
3376
|
+
subscriptionId,
|
|
3377
|
+
resourceGroupName,
|
|
3378
|
+
workspaceName,
|
|
3379
|
+
firmwareId,
|
|
3380
|
+
nextLink
|
|
3381
|
+
],
|
|
3382
|
+
headerParameters: [accept],
|
|
3383
|
+
serializer: serializer$2
|
|
3384
|
+
};
|
|
3385
|
+
|
|
3386
|
+
/*
|
|
3387
|
+
* Copyright (c) Microsoft Corporation.
|
|
3388
|
+
* Licensed under the MIT License.
|
|
3389
|
+
*
|
|
3390
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3391
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3392
|
+
*/
|
|
3393
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3394
|
+
/** Class containing Workspaces operations. */
|
|
3395
|
+
class WorkspacesImpl {
|
|
3396
|
+
/**
|
|
3397
|
+
* Initialize a new instance of the class Workspaces class.
|
|
3398
|
+
* @param client Reference to the service client
|
|
3399
|
+
*/
|
|
3400
|
+
constructor(client) {
|
|
3401
|
+
this.client = client;
|
|
3402
|
+
}
|
|
3403
|
+
/**
|
|
3404
|
+
* Lists all of the firmware analysis workspaces in the specified subscription.
|
|
3405
|
+
* @param options The options parameters.
|
|
3406
|
+
*/
|
|
3407
|
+
listBySubscription(options) {
|
|
3408
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
3409
|
+
return {
|
|
3410
|
+
next() {
|
|
3411
|
+
return iter.next();
|
|
3412
|
+
},
|
|
3413
|
+
[Symbol.asyncIterator]() {
|
|
3414
|
+
return this;
|
|
3415
|
+
},
|
|
3416
|
+
byPage: (settings) => {
|
|
3417
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3418
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3419
|
+
}
|
|
3420
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3421
|
+
}
|
|
3422
|
+
};
|
|
3423
|
+
}
|
|
3424
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3425
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3426
|
+
let result;
|
|
3427
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3428
|
+
if (!continuationToken) {
|
|
3429
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3430
|
+
let page = result.value || [];
|
|
3431
|
+
continuationToken = result.nextLink;
|
|
3432
|
+
setContinuationToken(page, continuationToken);
|
|
3433
|
+
yield yield tslib.__await(page);
|
|
3434
|
+
}
|
|
3435
|
+
while (continuationToken) {
|
|
3436
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3437
|
+
continuationToken = result.nextLink;
|
|
3438
|
+
let page = result.value || [];
|
|
3439
|
+
setContinuationToken(page, continuationToken);
|
|
3440
|
+
yield yield tslib.__await(page);
|
|
3441
|
+
}
|
|
3442
|
+
});
|
|
3443
|
+
}
|
|
3444
|
+
listBySubscriptionPagingAll(options) {
|
|
3445
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
3446
|
+
var _a, e_1, _b, _c;
|
|
3447
|
+
try {
|
|
3448
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3449
|
+
_c = _f.value;
|
|
3450
|
+
_d = false;
|
|
3451
|
+
try {
|
|
3452
|
+
const page = _c;
|
|
3453
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3454
|
+
}
|
|
3455
|
+
finally {
|
|
3456
|
+
_d = true;
|
|
3457
|
+
}
|
|
3458
|
+
}
|
|
3459
|
+
}
|
|
3460
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3461
|
+
finally {
|
|
3462
|
+
try {
|
|
3463
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3464
|
+
}
|
|
3465
|
+
finally { if (e_1) throw e_1.error; }
|
|
3466
|
+
}
|
|
3467
|
+
});
|
|
3468
|
+
}
|
|
3469
|
+
/**
|
|
3470
|
+
* Lists all of the firmware analysis workspaces in the specified resource group.
|
|
3471
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3472
|
+
* @param options The options parameters.
|
|
3473
|
+
*/
|
|
3474
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
3475
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
3476
|
+
return {
|
|
3477
|
+
next() {
|
|
3478
|
+
return iter.next();
|
|
3479
|
+
},
|
|
3480
|
+
[Symbol.asyncIterator]() {
|
|
3481
|
+
return this;
|
|
3482
|
+
},
|
|
3483
|
+
byPage: (settings) => {
|
|
3484
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3485
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3486
|
+
}
|
|
3487
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3488
|
+
}
|
|
3489
|
+
};
|
|
3490
|
+
}
|
|
3491
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3492
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3493
|
+
let result;
|
|
3494
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3495
|
+
if (!continuationToken) {
|
|
3496
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3497
|
+
let page = result.value || [];
|
|
3498
|
+
continuationToken = result.nextLink;
|
|
3499
|
+
setContinuationToken(page, continuationToken);
|
|
3500
|
+
yield yield tslib.__await(page);
|
|
3501
|
+
}
|
|
3502
|
+
while (continuationToken) {
|
|
3503
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3504
|
+
continuationToken = result.nextLink;
|
|
3505
|
+
let page = result.value || [];
|
|
3506
|
+
setContinuationToken(page, continuationToken);
|
|
3507
|
+
yield yield tslib.__await(page);
|
|
3508
|
+
}
|
|
3509
|
+
});
|
|
3510
|
+
}
|
|
3511
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
3512
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
3513
|
+
var _a, e_2, _b, _c;
|
|
3514
|
+
try {
|
|
3515
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3516
|
+
_c = _f.value;
|
|
3517
|
+
_d = false;
|
|
3518
|
+
try {
|
|
3519
|
+
const page = _c;
|
|
3520
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3521
|
+
}
|
|
3522
|
+
finally {
|
|
3523
|
+
_d = true;
|
|
3524
|
+
}
|
|
3525
|
+
}
|
|
3526
|
+
}
|
|
3527
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
3528
|
+
finally {
|
|
3529
|
+
try {
|
|
3530
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3531
|
+
}
|
|
3532
|
+
finally { if (e_2) throw e_2.error; }
|
|
3533
|
+
}
|
|
3534
|
+
});
|
|
3535
|
+
}
|
|
3536
|
+
/**
|
|
3537
|
+
* Lists all of the firmware analysis workspaces in the specified subscription.
|
|
3538
|
+
* @param options The options parameters.
|
|
3539
|
+
*/
|
|
3540
|
+
_listBySubscription(options) {
|
|
3541
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
3542
|
+
}
|
|
3543
|
+
/**
|
|
3544
|
+
* Lists all of the firmware analysis workspaces in the specified resource group.
|
|
3545
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3546
|
+
* @param options The options parameters.
|
|
3547
|
+
*/
|
|
3548
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
3549
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
3550
|
+
}
|
|
3551
|
+
/**
|
|
3552
|
+
* The operation to create or update a firmware analysis workspace.
|
|
3553
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3554
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
3555
|
+
* @param workspace Parameters when creating a firmware analysis workspace.
|
|
3556
|
+
* @param options The options parameters.
|
|
3557
|
+
*/
|
|
3558
|
+
create(resourceGroupName, workspaceName, workspace, options) {
|
|
3559
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, workspace, options }, createOperationSpec);
|
|
3560
|
+
}
|
|
3561
|
+
/**
|
|
3562
|
+
* The operation to update a firmware analysis workspaces.
|
|
3563
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3564
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
3565
|
+
* @param workspace Parameters when updating a firmware analysis workspace.
|
|
3566
|
+
* @param options The options parameters.
|
|
3567
|
+
*/
|
|
3568
|
+
update(resourceGroupName, workspaceName, workspace, options) {
|
|
3569
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, workspace, options }, updateOperationSpec);
|
|
3570
|
+
}
|
|
3571
|
+
/**
|
|
3572
|
+
* The operation to delete a firmware analysis workspace.
|
|
3573
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3574
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
3575
|
+
* @param options The options parameters.
|
|
3576
|
+
*/
|
|
3577
|
+
delete(resourceGroupName, workspaceName, options) {
|
|
3578
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, deleteOperationSpec);
|
|
3579
|
+
}
|
|
3580
|
+
/**
|
|
3581
|
+
* Get firmware analysis workspace.
|
|
3582
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3583
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
3584
|
+
* @param options The options parameters.
|
|
3585
|
+
*/
|
|
3586
|
+
get(resourceGroupName, workspaceName, options) {
|
|
3587
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, options }, getOperationSpec);
|
|
3588
|
+
}
|
|
3589
|
+
/**
|
|
3590
|
+
* The operation to get a url for file upload.
|
|
3591
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3592
|
+
* @param workspaceName The name of the firmware analysis workspace.
|
|
3593
|
+
* @param generateUploadUrl Parameters when requesting a URL to upload firmware.
|
|
3594
|
+
* @param options The options parameters.
|
|
3595
|
+
*/
|
|
3596
|
+
generateUploadUrl(resourceGroupName, workspaceName, generateUploadUrl, options) {
|
|
3597
|
+
return this.client.sendOperationRequest({ resourceGroupName, workspaceName, generateUploadUrl, options }, generateUploadUrlOperationSpec);
|
|
3598
|
+
}
|
|
3599
|
+
/**
|
|
3600
|
+
* ListBySubscriptionNext
|
|
3601
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
3602
|
+
* @param options The options parameters.
|
|
3603
|
+
*/
|
|
3604
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
3605
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
3606
|
+
}
|
|
3607
|
+
/**
|
|
3608
|
+
* ListByResourceGroupNext
|
|
3609
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
3610
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
3611
|
+
* @param options The options parameters.
|
|
3612
|
+
*/
|
|
3613
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
3614
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
3615
|
+
}
|
|
3616
|
+
}
|
|
3617
|
+
// Operation Specifications
|
|
3618
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3619
|
+
const listBySubscriptionOperationSpec = {
|
|
3620
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.IoTFirmwareDefense/workspaces",
|
|
3621
|
+
httpMethod: "GET",
|
|
3622
|
+
responses: {
|
|
3623
|
+
200: {
|
|
3624
|
+
bodyMapper: WorkspaceList
|
|
3625
|
+
},
|
|
3626
|
+
default: {
|
|
3627
|
+
bodyMapper: ErrorResponse
|
|
3628
|
+
}
|
|
3629
|
+
},
|
|
3630
|
+
queryParameters: [apiVersion],
|
|
3631
|
+
urlParameters: [$host, subscriptionId],
|
|
3632
|
+
headerParameters: [accept],
|
|
3633
|
+
serializer: serializer$1
|
|
3634
|
+
};
|
|
3635
|
+
const listByResourceGroupOperationSpec = {
|
|
3636
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces",
|
|
3637
|
+
httpMethod: "GET",
|
|
3638
|
+
responses: {
|
|
3639
|
+
200: {
|
|
3640
|
+
bodyMapper: WorkspaceList
|
|
3641
|
+
},
|
|
3642
|
+
default: {
|
|
3643
|
+
bodyMapper: ErrorResponse
|
|
3644
|
+
}
|
|
3645
|
+
},
|
|
3646
|
+
queryParameters: [apiVersion],
|
|
3647
|
+
urlParameters: [
|
|
3648
|
+
$host,
|
|
3649
|
+
subscriptionId,
|
|
3650
|
+
resourceGroupName
|
|
3651
|
+
],
|
|
3652
|
+
headerParameters: [accept],
|
|
3653
|
+
serializer: serializer$1
|
|
3654
|
+
};
|
|
3655
|
+
const createOperationSpec = {
|
|
3656
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}",
|
|
3657
|
+
httpMethod: "PUT",
|
|
3658
|
+
responses: {
|
|
3659
|
+
200: {
|
|
3660
|
+
bodyMapper: Workspace
|
|
3661
|
+
},
|
|
3662
|
+
201: {
|
|
3663
|
+
bodyMapper: Workspace
|
|
3664
|
+
},
|
|
3665
|
+
default: {
|
|
3666
|
+
bodyMapper: ErrorResponse
|
|
3667
|
+
}
|
|
3668
|
+
},
|
|
3669
|
+
requestBody: workspace,
|
|
3670
|
+
queryParameters: [apiVersion],
|
|
3671
|
+
urlParameters: [
|
|
3672
|
+
$host,
|
|
3673
|
+
subscriptionId,
|
|
3674
|
+
resourceGroupName,
|
|
3675
|
+
workspaceName
|
|
3676
|
+
],
|
|
3677
|
+
headerParameters: [accept, contentType],
|
|
3678
|
+
mediaType: "json",
|
|
3679
|
+
serializer: serializer$1
|
|
3680
|
+
};
|
|
3681
|
+
const updateOperationSpec = {
|
|
3682
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}",
|
|
3683
|
+
httpMethod: "PATCH",
|
|
3684
|
+
responses: {
|
|
3685
|
+
200: {
|
|
3686
|
+
bodyMapper: Workspace
|
|
3687
|
+
},
|
|
3688
|
+
201: {
|
|
3689
|
+
bodyMapper: Workspace
|
|
3690
|
+
},
|
|
3691
|
+
default: {
|
|
3692
|
+
bodyMapper: ErrorResponse
|
|
3693
|
+
}
|
|
3694
|
+
},
|
|
3695
|
+
requestBody: workspace1,
|
|
3696
|
+
queryParameters: [apiVersion],
|
|
3697
|
+
urlParameters: [
|
|
3698
|
+
$host,
|
|
3699
|
+
subscriptionId,
|
|
3700
|
+
resourceGroupName,
|
|
3701
|
+
workspaceName
|
|
3702
|
+
],
|
|
3703
|
+
headerParameters: [accept, contentType],
|
|
3704
|
+
mediaType: "json",
|
|
3705
|
+
serializer: serializer$1
|
|
3706
|
+
};
|
|
3707
|
+
const deleteOperationSpec = {
|
|
3708
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}",
|
|
3709
|
+
httpMethod: "DELETE",
|
|
3710
|
+
responses: {
|
|
3711
|
+
200: {},
|
|
3712
|
+
204: {},
|
|
3713
|
+
default: {
|
|
3714
|
+
bodyMapper: ErrorResponse
|
|
3715
|
+
}
|
|
3716
|
+
},
|
|
3717
|
+
queryParameters: [apiVersion],
|
|
3718
|
+
urlParameters: [
|
|
3719
|
+
$host,
|
|
3720
|
+
subscriptionId,
|
|
3721
|
+
resourceGroupName,
|
|
3722
|
+
workspaceName
|
|
3723
|
+
],
|
|
3724
|
+
headerParameters: [accept],
|
|
3725
|
+
serializer: serializer$1
|
|
3726
|
+
};
|
|
3727
|
+
const getOperationSpec = {
|
|
3728
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}",
|
|
3729
|
+
httpMethod: "GET",
|
|
3730
|
+
responses: {
|
|
3731
|
+
200: {
|
|
3732
|
+
bodyMapper: Workspace
|
|
3733
|
+
},
|
|
3734
|
+
304: {},
|
|
3735
|
+
default: {
|
|
3736
|
+
bodyMapper: ErrorResponse
|
|
3737
|
+
}
|
|
3738
|
+
},
|
|
3739
|
+
queryParameters: [apiVersion],
|
|
3740
|
+
urlParameters: [
|
|
3741
|
+
$host,
|
|
3742
|
+
subscriptionId,
|
|
3743
|
+
resourceGroupName,
|
|
3744
|
+
workspaceName
|
|
3745
|
+
],
|
|
3746
|
+
headerParameters: [accept],
|
|
3747
|
+
serializer: serializer$1
|
|
3748
|
+
};
|
|
3749
|
+
const generateUploadUrlOperationSpec = {
|
|
3750
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTFirmwareDefense/workspaces/{workspaceName}/generateUploadUrl",
|
|
3751
|
+
httpMethod: "POST",
|
|
3752
|
+
responses: {
|
|
3753
|
+
200: {
|
|
3754
|
+
bodyMapper: UrlToken
|
|
3755
|
+
},
|
|
3756
|
+
default: {
|
|
3757
|
+
bodyMapper: ErrorResponse
|
|
3758
|
+
}
|
|
3759
|
+
},
|
|
3760
|
+
requestBody: generateUploadUrl,
|
|
3761
|
+
queryParameters: [apiVersion],
|
|
3762
|
+
urlParameters: [
|
|
3763
|
+
$host,
|
|
3764
|
+
subscriptionId,
|
|
3765
|
+
resourceGroupName,
|
|
3766
|
+
workspaceName
|
|
3767
|
+
],
|
|
3768
|
+
headerParameters: [accept, contentType],
|
|
3769
|
+
mediaType: "json",
|
|
3770
|
+
serializer: serializer$1
|
|
3771
|
+
};
|
|
3772
|
+
const listBySubscriptionNextOperationSpec = {
|
|
3773
|
+
path: "{nextLink}",
|
|
3774
|
+
httpMethod: "GET",
|
|
3775
|
+
responses: {
|
|
3776
|
+
200: {
|
|
3777
|
+
bodyMapper: WorkspaceList
|
|
3778
|
+
},
|
|
3779
|
+
default: {
|
|
3780
|
+
bodyMapper: ErrorResponse
|
|
3781
|
+
}
|
|
3782
|
+
},
|
|
3783
|
+
urlParameters: [
|
|
3784
|
+
$host,
|
|
3785
|
+
subscriptionId,
|
|
3786
|
+
nextLink
|
|
3787
|
+
],
|
|
3788
|
+
headerParameters: [accept],
|
|
3789
|
+
serializer: serializer$1
|
|
3790
|
+
};
|
|
3791
|
+
const listByResourceGroupNextOperationSpec = {
|
|
3792
|
+
path: "{nextLink}",
|
|
3793
|
+
httpMethod: "GET",
|
|
3794
|
+
responses: {
|
|
3795
|
+
200: {
|
|
3796
|
+
bodyMapper: WorkspaceList
|
|
3797
|
+
},
|
|
3798
|
+
default: {
|
|
3799
|
+
bodyMapper: ErrorResponse
|
|
3800
|
+
}
|
|
3801
|
+
},
|
|
3802
|
+
urlParameters: [
|
|
3803
|
+
$host,
|
|
3804
|
+
subscriptionId,
|
|
3805
|
+
resourceGroupName,
|
|
3806
|
+
nextLink
|
|
3807
|
+
],
|
|
3808
|
+
headerParameters: [accept],
|
|
3809
|
+
serializer: serializer$1
|
|
3810
|
+
};
|
|
3811
|
+
|
|
3812
|
+
/*
|
|
3813
|
+
* Copyright (c) Microsoft Corporation.
|
|
3814
|
+
* Licensed under the MIT License.
|
|
3815
|
+
*
|
|
3816
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3817
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3818
|
+
*/
|
|
3819
|
+
/// <reference lib="esnext.asynciterable" />
|
|
3820
|
+
/** Class containing Operations operations. */
|
|
3821
|
+
class OperationsImpl {
|
|
3822
|
+
/**
|
|
3823
|
+
* Initialize a new instance of the class Operations class.
|
|
3824
|
+
* @param client Reference to the service client
|
|
3825
|
+
*/
|
|
3826
|
+
constructor(client) {
|
|
3827
|
+
this.client = client;
|
|
3828
|
+
}
|
|
3829
|
+
/**
|
|
3830
|
+
* Lists the operations for this resource provider
|
|
3831
|
+
* @param options The options parameters.
|
|
3832
|
+
*/
|
|
3833
|
+
list(options) {
|
|
3834
|
+
const iter = this.listPagingAll(options);
|
|
3835
|
+
return {
|
|
3836
|
+
next() {
|
|
3837
|
+
return iter.next();
|
|
3838
|
+
},
|
|
3839
|
+
[Symbol.asyncIterator]() {
|
|
3840
|
+
return this;
|
|
3841
|
+
},
|
|
3842
|
+
byPage: (settings) => {
|
|
3843
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3844
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3845
|
+
}
|
|
3846
|
+
return this.listPagingPage(options, settings);
|
|
3847
|
+
}
|
|
3848
|
+
};
|
|
3849
|
+
}
|
|
3850
|
+
listPagingPage(options, settings) {
|
|
3851
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3852
|
+
let result;
|
|
3853
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3854
|
+
if (!continuationToken) {
|
|
3855
|
+
result = yield tslib.__await(this._list(options));
|
|
3856
|
+
let page = result.value || [];
|
|
3857
|
+
continuationToken = result.nextLink;
|
|
3858
|
+
setContinuationToken(page, continuationToken);
|
|
3859
|
+
yield yield tslib.__await(page);
|
|
3860
|
+
}
|
|
3861
|
+
while (continuationToken) {
|
|
3862
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
3863
|
+
continuationToken = result.nextLink;
|
|
3864
|
+
let page = result.value || [];
|
|
3865
|
+
setContinuationToken(page, continuationToken);
|
|
3866
|
+
yield yield tslib.__await(page);
|
|
3867
|
+
}
|
|
3868
|
+
});
|
|
3869
|
+
}
|
|
3870
|
+
listPagingAll(options) {
|
|
3871
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
3872
|
+
var _a, e_1, _b, _c;
|
|
3873
|
+
try {
|
|
3874
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
3875
|
+
_c = _f.value;
|
|
3876
|
+
_d = false;
|
|
3877
|
+
try {
|
|
3878
|
+
const page = _c;
|
|
3879
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
3880
|
+
}
|
|
3881
|
+
finally {
|
|
3882
|
+
_d = true;
|
|
3883
|
+
}
|
|
3884
|
+
}
|
|
3885
|
+
}
|
|
3886
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
3887
|
+
finally {
|
|
3888
|
+
try {
|
|
3889
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
3890
|
+
}
|
|
3891
|
+
finally { if (e_1) throw e_1.error; }
|
|
3892
|
+
}
|
|
3893
|
+
});
|
|
3894
|
+
}
|
|
3895
|
+
/**
|
|
3896
|
+
* Lists the operations for this resource provider
|
|
3897
|
+
* @param options The options parameters.
|
|
3898
|
+
*/
|
|
3899
|
+
_list(options) {
|
|
3900
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
3901
|
+
}
|
|
3902
|
+
/**
|
|
3903
|
+
* ListNext
|
|
3904
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
3905
|
+
* @param options The options parameters.
|
|
3906
|
+
*/
|
|
3907
|
+
_listNext(nextLink, options) {
|
|
3908
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
3909
|
+
}
|
|
3910
|
+
}
|
|
3911
|
+
// Operation Specifications
|
|
3912
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3913
|
+
const listOperationSpec = {
|
|
3914
|
+
path: "/providers/Microsoft.IoTFirmwareDefense/operations",
|
|
3915
|
+
httpMethod: "GET",
|
|
3916
|
+
responses: {
|
|
3917
|
+
200: {
|
|
3918
|
+
bodyMapper: OperationListResult
|
|
3919
|
+
},
|
|
3920
|
+
default: {
|
|
3921
|
+
bodyMapper: ErrorResponse
|
|
3922
|
+
}
|
|
3923
|
+
},
|
|
3924
|
+
queryParameters: [apiVersion],
|
|
3925
|
+
urlParameters: [$host],
|
|
3926
|
+
headerParameters: [accept],
|
|
3927
|
+
serializer
|
|
3928
|
+
};
|
|
3929
|
+
const listNextOperationSpec = {
|
|
3930
|
+
path: "{nextLink}",
|
|
3931
|
+
httpMethod: "GET",
|
|
3932
|
+
responses: {
|
|
3933
|
+
200: {
|
|
3934
|
+
bodyMapper: OperationListResult
|
|
3935
|
+
},
|
|
3936
|
+
default: {
|
|
3937
|
+
bodyMapper: ErrorResponse
|
|
3938
|
+
}
|
|
3939
|
+
},
|
|
3940
|
+
urlParameters: [$host, nextLink],
|
|
3941
|
+
headerParameters: [accept],
|
|
3942
|
+
serializer
|
|
3943
|
+
};
|
|
3944
|
+
|
|
3945
|
+
/*
|
|
3946
|
+
* Copyright (c) Microsoft Corporation.
|
|
3947
|
+
* Licensed under the MIT License.
|
|
3948
|
+
*
|
|
3949
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3950
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3951
|
+
*/
|
|
3952
|
+
class IoTFirmwareDefenseClient extends coreClient__namespace.ServiceClient {
|
|
3953
|
+
/**
|
|
3954
|
+
* Initializes a new instance of the IoTFirmwareDefenseClient class.
|
|
3955
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
3956
|
+
* @param subscriptionId The ID of the target subscription.
|
|
3957
|
+
* @param options The parameter options
|
|
3958
|
+
*/
|
|
3959
|
+
constructor(credentials, subscriptionId, options) {
|
|
3960
|
+
var _a, _b, _c;
|
|
3961
|
+
if (credentials === undefined) {
|
|
3962
|
+
throw new Error("'credentials' cannot be null");
|
|
3963
|
+
}
|
|
3964
|
+
if (subscriptionId === undefined) {
|
|
3965
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
3966
|
+
}
|
|
3967
|
+
// Initializing default values for options
|
|
3968
|
+
if (!options) {
|
|
3969
|
+
options = {};
|
|
3970
|
+
}
|
|
3971
|
+
const defaults = {
|
|
3972
|
+
requestContentType: "application/json; charset=utf-8",
|
|
3973
|
+
credential: credentials
|
|
3974
|
+
};
|
|
3975
|
+
const packageDetails = `azsdk-js-arm-iotfirmwaredefense/1.0.0-beta.1`;
|
|
3976
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3977
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3978
|
+
: `${packageDetails}`;
|
|
3979
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3980
|
+
userAgentPrefix
|
|
3981
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3982
|
+
super(optionsWithDefaults);
|
|
3983
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
3984
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3985
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3986
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3987
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3988
|
+
}
|
|
3989
|
+
if (!options ||
|
|
3990
|
+
!options.pipeline ||
|
|
3991
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
3992
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
3993
|
+
this.pipeline.removePolicy({
|
|
3994
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3995
|
+
});
|
|
3996
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3997
|
+
credential: credentials,
|
|
3998
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
3999
|
+
challengeCallbacks: {
|
|
4000
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
4001
|
+
}
|
|
4002
|
+
}));
|
|
4003
|
+
}
|
|
4004
|
+
// Parameter assignments
|
|
4005
|
+
this.subscriptionId = subscriptionId;
|
|
4006
|
+
// Assigning values to Constant parameters
|
|
4007
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
4008
|
+
this.apiVersion = options.apiVersion || "2023-02-08-preview";
|
|
4009
|
+
this.firmwareOperations = new FirmwareOperationsImpl(this);
|
|
4010
|
+
this.workspaces = new WorkspacesImpl(this);
|
|
4011
|
+
this.operations = new OperationsImpl(this);
|
|
4012
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
4013
|
+
}
|
|
4014
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
4015
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
4016
|
+
if (!apiVersion) {
|
|
4017
|
+
return;
|
|
4018
|
+
}
|
|
4019
|
+
const apiVersionPolicy = {
|
|
4020
|
+
name: "CustomApiVersionPolicy",
|
|
4021
|
+
sendRequest(request, next) {
|
|
4022
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4023
|
+
const param = request.url.split("?");
|
|
4024
|
+
if (param.length > 1) {
|
|
4025
|
+
const newParams = param[1].split("&").map((item) => {
|
|
4026
|
+
if (item.indexOf("api-version") > -1) {
|
|
4027
|
+
return "api-version=" + apiVersion;
|
|
4028
|
+
}
|
|
4029
|
+
else {
|
|
4030
|
+
return item;
|
|
4031
|
+
}
|
|
4032
|
+
});
|
|
4033
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
4034
|
+
}
|
|
4035
|
+
return next(request);
|
|
4036
|
+
});
|
|
4037
|
+
}
|
|
4038
|
+
};
|
|
4039
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
4040
|
+
}
|
|
4041
|
+
}
|
|
4042
|
+
|
|
4043
|
+
exports.IoTFirmwareDefenseClient = IoTFirmwareDefenseClient;
|
|
4044
|
+
exports.getContinuationToken = getContinuationToken;
|
|
4045
|
+
//# sourceMappingURL=index.js.map
|