@azure/arm-resourceconnector 1.0.0-alpha.20241118.1 → 1.0.0-alpha.20250219.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/LICENSE +4 -4
- package/README.md +26 -17
- package/dist/browser/index.d.ts +5 -0
- package/{dist-esm/src → dist/browser}/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/lroImpl.js +0 -7
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/appliances.d.ts +3 -3
- package/dist/browser/operations/appliances.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/appliances.js +79 -87
- package/dist/browser/operations/appliances.js.map +1 -0
- package/dist/browser/operations/index.d.ts +2 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +1 -1
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/appliances.d.ts +1 -1
- package/dist/browser/operationsInterfaces/appliances.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/appliances.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +2 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +1 -1
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/{dist-esm/src → dist/browser}/resourceConnectorManagementClient.d.ts +2 -2
- package/dist/browser/resourceConnectorManagementClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/resourceConnectorManagementClient.js +15 -18
- package/dist/browser/resourceConnectorManagementClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +17 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-resourceconnector.d.ts → dist/commonjs/models/index.d.ts} +715 -911
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +135 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +28 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +774 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +13 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +127 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/appliances.d.ts +149 -0
- package/dist/commonjs/operations/appliances.d.ts.map +1 -0
- package/dist/commonjs/operations/appliances.js +715 -0
- package/dist/commonjs/operations/appliances.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +2 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +12 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/appliances.d.ts +98 -0
- package/dist/commonjs/operationsInterfaces/appliances.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/appliances.js +10 -0
- package/dist/commonjs/operationsInterfaces/appliances.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/dist/commonjs/resourceConnectorManagementClient.d.ts +21 -0
- package/dist/commonjs/resourceConnectorManagementClient.d.ts.map +1 -0
- package/dist/commonjs/resourceConnectorManagementClient.js +100 -0
- package/dist/commonjs/resourceConnectorManagementClient.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +14 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +715 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +132 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +28 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +771 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +13 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +124 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/appliances.d.ts +149 -0
- package/dist/esm/operations/appliances.d.ts.map +1 -0
- package/dist/esm/operations/appliances.js +711 -0
- package/dist/esm/operations/appliances.js.map +1 -0
- package/dist/esm/operations/index.d.ts +2 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +9 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/appliances.d.ts +98 -0
- package/dist/esm/operationsInterfaces/appliances.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/appliances.js} +2 -2
- package/dist/esm/operationsInterfaces/appliances.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +9 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/esm/resourceConnectorManagementClient.d.ts +21 -0
- package/dist/esm/resourceConnectorManagementClient.d.ts.map +1 -0
- package/dist/esm/resourceConnectorManagementClient.js +95 -0
- package/dist/esm/resourceConnectorManagementClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +14 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +715 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +132 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +28 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +771 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +13 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +124 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/appliances.d.ts +149 -0
- package/dist/react-native/operations/appliances.d.ts.map +1 -0
- package/dist/react-native/operations/appliances.js +711 -0
- package/dist/react-native/operations/appliances.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +2 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +9 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/appliances.d.ts +98 -0
- package/dist/react-native/operationsInterfaces/appliances.d.ts.map +1 -0
- package/{src/operationsInterfaces/index.ts → dist/react-native/operationsInterfaces/appliances.js} +2 -2
- package/dist/react-native/operationsInterfaces/appliances.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +9 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/dist/react-native/resourceConnectorManagementClient.d.ts +21 -0
- package/dist/react-native/resourceConnectorManagementClient.d.ts.map +1 -0
- package/dist/react-native/resourceConnectorManagementClient.js +95 -0
- package/dist/react-native/resourceConnectorManagementClient.js.map +1 -0
- package/package.json +68 -37
- package/dist/index.js +0 -1942
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js +0 -44
- package/dist-esm/samples-dev/appliancesCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesDeleteSample.js +0 -39
- package/dist-esm/samples-dev/appliancesDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesGetSample.js +0 -39
- package/dist-esm/samples-dev/appliancesGetSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js +0 -37
- package/dist-esm/samples-dev/appliancesGetTelemetryConfigSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js +0 -40
- package/dist-esm/samples-dev/appliancesGetUpgradeGraphSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js +0 -54
- package/dist-esm/samples-dev/appliancesListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js +0 -53
- package/dist-esm/samples-dev/appliancesListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js +0 -39
- package/dist-esm/samples-dev/appliancesListClusterUserCredentialSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesListKeysSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListKeysSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListKeysSample.js +0 -39
- package/dist-esm/samples-dev/appliancesListKeysSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesListOperationsSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesListOperationsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesListOperationsSample.js +0 -51
- package/dist-esm/samples-dev/appliancesListOperationsSample.js.map +0 -1
- package/dist-esm/samples-dev/appliancesUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/appliancesUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/appliancesUpdateSample.js +0 -41
- package/dist-esm/samples-dev/appliancesUpdateSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -5
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/appliances.d.ts.map +0 -1
- package/dist-esm/src/operations/appliances.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -2
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/appliances.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/appliances.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -2
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/src/resourceConnectorManagementClient.d.ts.map +0 -1
- package/dist-esm/src/resourceConnectorManagementClient.js.map +0 -1
- package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts +0 -4
- package/dist-esm/test/resourceconnnector__operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/resourceconnnector__operations_test.spec.js +0 -117
- package/dist-esm/test/resourceconnnector__operations_test.spec.js.map +0 -1
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -786
- package/src/models/mappers.ts +0 -811
- package/src/models/parameters.ts +0 -145
- package/src/operations/appliances.ts +0 -916
- package/src/operationsInterfaces/appliances.ts +0 -181
- package/src/pagingHelper.ts +0 -39
- package/src/resourceConnectorManagementClient.ts +0 -156
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/appliances.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
package/dist/index.js
DELETED
|
@@ -1,1942 +0,0 @@
|
|
|
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
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespaceDefault(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__*/_interopNamespaceDefault(coreClient);
|
|
28
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(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 ResourceIdentityType} that the service accepts. */
|
|
70
|
-
exports.KnownResourceIdentityType = void 0;
|
|
71
|
-
(function (KnownResourceIdentityType) {
|
|
72
|
-
/** SystemAssigned */
|
|
73
|
-
KnownResourceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
74
|
-
/** None */
|
|
75
|
-
KnownResourceIdentityType["None"] = "None";
|
|
76
|
-
})(exports.KnownResourceIdentityType || (exports.KnownResourceIdentityType = {}));
|
|
77
|
-
/** Known values of {@link Distro} that the service accepts. */
|
|
78
|
-
exports.KnownDistro = void 0;
|
|
79
|
-
(function (KnownDistro) {
|
|
80
|
-
/** AKSEdge */
|
|
81
|
-
KnownDistro["AKSEdge"] = "AKSEdge";
|
|
82
|
-
})(exports.KnownDistro || (exports.KnownDistro = {}));
|
|
83
|
-
/** Known values of {@link Provider} that the service accepts. */
|
|
84
|
-
exports.KnownProvider = void 0;
|
|
85
|
-
(function (KnownProvider) {
|
|
86
|
-
/** VMWare */
|
|
87
|
-
KnownProvider["VMWare"] = "VMWare";
|
|
88
|
-
/** HCI */
|
|
89
|
-
KnownProvider["HCI"] = "HCI";
|
|
90
|
-
/** Scvmm */
|
|
91
|
-
KnownProvider["Scvmm"] = "SCVMM";
|
|
92
|
-
/** KubeVirt */
|
|
93
|
-
KnownProvider["KubeVirt"] = "KubeVirt";
|
|
94
|
-
/** OpenStack */
|
|
95
|
-
KnownProvider["OpenStack"] = "OpenStack";
|
|
96
|
-
})(exports.KnownProvider || (exports.KnownProvider = {}));
|
|
97
|
-
/** Known values of {@link Status} that the service accepts. */
|
|
98
|
-
exports.KnownStatus = void 0;
|
|
99
|
-
(function (KnownStatus) {
|
|
100
|
-
/** WaitingForHeartbeat */
|
|
101
|
-
KnownStatus["WaitingForHeartbeat"] = "WaitingForHeartbeat";
|
|
102
|
-
/** Validating */
|
|
103
|
-
KnownStatus["Validating"] = "Validating";
|
|
104
|
-
/** Connecting */
|
|
105
|
-
KnownStatus["Connecting"] = "Connecting";
|
|
106
|
-
/** Connected */
|
|
107
|
-
KnownStatus["Connected"] = "Connected";
|
|
108
|
-
/** Running */
|
|
109
|
-
KnownStatus["Running"] = "Running";
|
|
110
|
-
/** PreparingForUpgrade */
|
|
111
|
-
KnownStatus["PreparingForUpgrade"] = "PreparingForUpgrade";
|
|
112
|
-
/** UpgradePrerequisitesCompleted */
|
|
113
|
-
KnownStatus["UpgradePrerequisitesCompleted"] = "UpgradePrerequisitesCompleted";
|
|
114
|
-
/** PreUpgrade */
|
|
115
|
-
KnownStatus["PreUpgrade"] = "PreUpgrade";
|
|
116
|
-
/** UpgradingKvaio */
|
|
117
|
-
KnownStatus["UpgradingKvaio"] = "UpgradingKVAIO";
|
|
118
|
-
/** WaitingForKvaio */
|
|
119
|
-
KnownStatus["WaitingForKvaio"] = "WaitingForKVAIO";
|
|
120
|
-
/** ImagePending */
|
|
121
|
-
KnownStatus["ImagePending"] = "ImagePending";
|
|
122
|
-
/** ImageProvisioning */
|
|
123
|
-
KnownStatus["ImageProvisioning"] = "ImageProvisioning";
|
|
124
|
-
/** ImageProvisioned */
|
|
125
|
-
KnownStatus["ImageProvisioned"] = "ImageProvisioned";
|
|
126
|
-
/** ImageDownloading */
|
|
127
|
-
KnownStatus["ImageDownloading"] = "ImageDownloading";
|
|
128
|
-
/** ImageDownloaded */
|
|
129
|
-
KnownStatus["ImageDownloaded"] = "ImageDownloaded";
|
|
130
|
-
/** ImageDeprovisioning */
|
|
131
|
-
KnownStatus["ImageDeprovisioning"] = "ImageDeprovisioning";
|
|
132
|
-
/** ImageUnknown */
|
|
133
|
-
KnownStatus["ImageUnknown"] = "ImageUnknown";
|
|
134
|
-
/** UpdatingCloudOperator */
|
|
135
|
-
KnownStatus["UpdatingCloudOperator"] = "UpdatingCloudOperator";
|
|
136
|
-
/** WaitingForCloudOperator */
|
|
137
|
-
KnownStatus["WaitingForCloudOperator"] = "WaitingForCloudOperator";
|
|
138
|
-
/** UpdatingCapi */
|
|
139
|
-
KnownStatus["UpdatingCapi"] = "UpdatingCAPI";
|
|
140
|
-
/** UpdatingCluster */
|
|
141
|
-
KnownStatus["UpdatingCluster"] = "UpdatingCluster";
|
|
142
|
-
/** PostUpgrade */
|
|
143
|
-
KnownStatus["PostUpgrade"] = "PostUpgrade";
|
|
144
|
-
/** UpgradeComplete */
|
|
145
|
-
KnownStatus["UpgradeComplete"] = "UpgradeComplete";
|
|
146
|
-
/** UpgradeClusterExtensionFailedToDelete */
|
|
147
|
-
KnownStatus["UpgradeClusterExtensionFailedToDelete"] = "UpgradeClusterExtensionFailedToDelete";
|
|
148
|
-
/** UpgradeFailed */
|
|
149
|
-
KnownStatus["UpgradeFailed"] = "UpgradeFailed";
|
|
150
|
-
/** Offline */
|
|
151
|
-
KnownStatus["Offline"] = "Offline";
|
|
152
|
-
/** None */
|
|
153
|
-
KnownStatus["None"] = "None";
|
|
154
|
-
})(exports.KnownStatus || (exports.KnownStatus = {}));
|
|
155
|
-
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
156
|
-
exports.KnownCreatedByType = void 0;
|
|
157
|
-
(function (KnownCreatedByType) {
|
|
158
|
-
/** User */
|
|
159
|
-
KnownCreatedByType["User"] = "User";
|
|
160
|
-
/** Application */
|
|
161
|
-
KnownCreatedByType["Application"] = "Application";
|
|
162
|
-
/** ManagedIdentity */
|
|
163
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
164
|
-
/** Key */
|
|
165
|
-
KnownCreatedByType["Key"] = "Key";
|
|
166
|
-
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
167
|
-
/** Known values of {@link AccessProfileType} that the service accepts. */
|
|
168
|
-
exports.KnownAccessProfileType = void 0;
|
|
169
|
-
(function (KnownAccessProfileType) {
|
|
170
|
-
/** ClusterUser */
|
|
171
|
-
KnownAccessProfileType["ClusterUser"] = "clusterUser";
|
|
172
|
-
/** ClusterCustomerUser */
|
|
173
|
-
KnownAccessProfileType["ClusterCustomerUser"] = "clusterCustomerUser";
|
|
174
|
-
})(exports.KnownAccessProfileType || (exports.KnownAccessProfileType = {}));
|
|
175
|
-
/** Known values of {@link ArtifactType} that the service accepts. */
|
|
176
|
-
exports.KnownArtifactType = void 0;
|
|
177
|
-
(function (KnownArtifactType) {
|
|
178
|
-
/** LogsArtifactType */
|
|
179
|
-
KnownArtifactType["LogsArtifactType"] = "LogsArtifactType";
|
|
180
|
-
})(exports.KnownArtifactType || (exports.KnownArtifactType = {}));
|
|
181
|
-
/** Known values of {@link SSHKeyType} that the service accepts. */
|
|
182
|
-
exports.KnownSSHKeyType = void 0;
|
|
183
|
-
(function (KnownSSHKeyType) {
|
|
184
|
-
/** SSHCustomerUser */
|
|
185
|
-
KnownSSHKeyType["SSHCustomerUser"] = "SSHCustomerUser";
|
|
186
|
-
/** ManagementCAKey */
|
|
187
|
-
KnownSSHKeyType["ManagementCAKey"] = "ManagementCAKey";
|
|
188
|
-
/** LogsKey */
|
|
189
|
-
KnownSSHKeyType["LogsKey"] = "LogsKey";
|
|
190
|
-
/** ScopedAccessKey */
|
|
191
|
-
KnownSSHKeyType["ScopedAccessKey"] = "ScopedAccessKey";
|
|
192
|
-
})(exports.KnownSSHKeyType || (exports.KnownSSHKeyType = {}));
|
|
193
|
-
|
|
194
|
-
/*
|
|
195
|
-
* Copyright (c) Microsoft Corporation.
|
|
196
|
-
* Licensed under the MIT License.
|
|
197
|
-
*
|
|
198
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
199
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
200
|
-
*/
|
|
201
|
-
const ApplianceOperationsList = {
|
|
202
|
-
type: {
|
|
203
|
-
name: "Composite",
|
|
204
|
-
className: "ApplianceOperationsList",
|
|
205
|
-
modelProperties: {
|
|
206
|
-
nextLink: {
|
|
207
|
-
serializedName: "nextLink",
|
|
208
|
-
type: {
|
|
209
|
-
name: "String"
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
value: {
|
|
213
|
-
serializedName: "value",
|
|
214
|
-
required: true,
|
|
215
|
-
type: {
|
|
216
|
-
name: "Sequence",
|
|
217
|
-
element: {
|
|
218
|
-
type: {
|
|
219
|
-
name: "Composite",
|
|
220
|
-
className: "ApplianceOperation"
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
const ApplianceOperation = {
|
|
229
|
-
type: {
|
|
230
|
-
name: "Composite",
|
|
231
|
-
className: "ApplianceOperation",
|
|
232
|
-
modelProperties: {
|
|
233
|
-
isDataAction: {
|
|
234
|
-
serializedName: "isDataAction",
|
|
235
|
-
readOnly: true,
|
|
236
|
-
type: {
|
|
237
|
-
name: "Boolean"
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
name: {
|
|
241
|
-
serializedName: "name",
|
|
242
|
-
readOnly: true,
|
|
243
|
-
type: {
|
|
244
|
-
name: "String"
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
origin: {
|
|
248
|
-
serializedName: "origin",
|
|
249
|
-
readOnly: true,
|
|
250
|
-
type: {
|
|
251
|
-
name: "String"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
description: {
|
|
255
|
-
serializedName: "display.description",
|
|
256
|
-
readOnly: true,
|
|
257
|
-
type: {
|
|
258
|
-
name: "String"
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
operation: {
|
|
262
|
-
serializedName: "display.operation",
|
|
263
|
-
readOnly: true,
|
|
264
|
-
type: {
|
|
265
|
-
name: "String"
|
|
266
|
-
}
|
|
267
|
-
},
|
|
268
|
-
provider: {
|
|
269
|
-
serializedName: "display.provider",
|
|
270
|
-
readOnly: true,
|
|
271
|
-
type: {
|
|
272
|
-
name: "String"
|
|
273
|
-
}
|
|
274
|
-
},
|
|
275
|
-
resource: {
|
|
276
|
-
serializedName: "display.resource",
|
|
277
|
-
readOnly: true,
|
|
278
|
-
type: {
|
|
279
|
-
name: "String"
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
const ErrorResponse = {
|
|
286
|
-
type: {
|
|
287
|
-
name: "Composite",
|
|
288
|
-
className: "ErrorResponse",
|
|
289
|
-
modelProperties: {
|
|
290
|
-
error: {
|
|
291
|
-
serializedName: "error",
|
|
292
|
-
type: {
|
|
293
|
-
name: "Composite",
|
|
294
|
-
className: "ErrorDetail"
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
const ErrorDetail = {
|
|
301
|
-
type: {
|
|
302
|
-
name: "Composite",
|
|
303
|
-
className: "ErrorDetail",
|
|
304
|
-
modelProperties: {
|
|
305
|
-
code: {
|
|
306
|
-
serializedName: "code",
|
|
307
|
-
readOnly: true,
|
|
308
|
-
type: {
|
|
309
|
-
name: "String"
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
|
-
message: {
|
|
313
|
-
serializedName: "message",
|
|
314
|
-
readOnly: true,
|
|
315
|
-
type: {
|
|
316
|
-
name: "String"
|
|
317
|
-
}
|
|
318
|
-
},
|
|
319
|
-
target: {
|
|
320
|
-
serializedName: "target",
|
|
321
|
-
readOnly: true,
|
|
322
|
-
type: {
|
|
323
|
-
name: "String"
|
|
324
|
-
}
|
|
325
|
-
},
|
|
326
|
-
details: {
|
|
327
|
-
serializedName: "details",
|
|
328
|
-
readOnly: true,
|
|
329
|
-
type: {
|
|
330
|
-
name: "Sequence",
|
|
331
|
-
element: {
|
|
332
|
-
type: {
|
|
333
|
-
name: "Composite",
|
|
334
|
-
className: "ErrorDetail"
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
additionalInfo: {
|
|
340
|
-
serializedName: "additionalInfo",
|
|
341
|
-
readOnly: true,
|
|
342
|
-
type: {
|
|
343
|
-
name: "Sequence",
|
|
344
|
-
element: {
|
|
345
|
-
type: {
|
|
346
|
-
name: "Composite",
|
|
347
|
-
className: "ErrorAdditionalInfo"
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
};
|
|
355
|
-
const ErrorAdditionalInfo = {
|
|
356
|
-
type: {
|
|
357
|
-
name: "Composite",
|
|
358
|
-
className: "ErrorAdditionalInfo",
|
|
359
|
-
modelProperties: {
|
|
360
|
-
type: {
|
|
361
|
-
serializedName: "type",
|
|
362
|
-
readOnly: true,
|
|
363
|
-
type: {
|
|
364
|
-
name: "String"
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
info: {
|
|
368
|
-
serializedName: "info",
|
|
369
|
-
readOnly: true,
|
|
370
|
-
type: {
|
|
371
|
-
name: "Dictionary",
|
|
372
|
-
value: { type: { name: "any" } }
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
};
|
|
378
|
-
const ApplianceListResult = {
|
|
379
|
-
type: {
|
|
380
|
-
name: "Composite",
|
|
381
|
-
className: "ApplianceListResult",
|
|
382
|
-
modelProperties: {
|
|
383
|
-
nextLink: {
|
|
384
|
-
serializedName: "nextLink",
|
|
385
|
-
readOnly: true,
|
|
386
|
-
type: {
|
|
387
|
-
name: "String"
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
value: {
|
|
391
|
-
serializedName: "value",
|
|
392
|
-
readOnly: true,
|
|
393
|
-
type: {
|
|
394
|
-
name: "Sequence",
|
|
395
|
-
element: {
|
|
396
|
-
type: {
|
|
397
|
-
name: "Composite",
|
|
398
|
-
className: "Appliance"
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
const Identity = {
|
|
407
|
-
type: {
|
|
408
|
-
name: "Composite",
|
|
409
|
-
className: "Identity",
|
|
410
|
-
modelProperties: {
|
|
411
|
-
principalId: {
|
|
412
|
-
serializedName: "principalId",
|
|
413
|
-
readOnly: true,
|
|
414
|
-
type: {
|
|
415
|
-
name: "String"
|
|
416
|
-
}
|
|
417
|
-
},
|
|
418
|
-
tenantId: {
|
|
419
|
-
serializedName: "tenantId",
|
|
420
|
-
readOnly: true,
|
|
421
|
-
type: {
|
|
422
|
-
name: "String"
|
|
423
|
-
}
|
|
424
|
-
},
|
|
425
|
-
type: {
|
|
426
|
-
serializedName: "type",
|
|
427
|
-
type: {
|
|
428
|
-
name: "String"
|
|
429
|
-
}
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
};
|
|
434
|
-
const AppliancePropertiesInfrastructureConfig = {
|
|
435
|
-
type: {
|
|
436
|
-
name: "Composite",
|
|
437
|
-
className: "AppliancePropertiesInfrastructureConfig",
|
|
438
|
-
modelProperties: {
|
|
439
|
-
provider: {
|
|
440
|
-
serializedName: "provider",
|
|
441
|
-
type: {
|
|
442
|
-
name: "String"
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
const Resource = {
|
|
449
|
-
type: {
|
|
450
|
-
name: "Composite",
|
|
451
|
-
className: "Resource",
|
|
452
|
-
modelProperties: {
|
|
453
|
-
id: {
|
|
454
|
-
serializedName: "id",
|
|
455
|
-
readOnly: true,
|
|
456
|
-
type: {
|
|
457
|
-
name: "String"
|
|
458
|
-
}
|
|
459
|
-
},
|
|
460
|
-
name: {
|
|
461
|
-
serializedName: "name",
|
|
462
|
-
readOnly: true,
|
|
463
|
-
type: {
|
|
464
|
-
name: "String"
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
type: {
|
|
468
|
-
serializedName: "type",
|
|
469
|
-
readOnly: true,
|
|
470
|
-
type: {
|
|
471
|
-
name: "String"
|
|
472
|
-
}
|
|
473
|
-
},
|
|
474
|
-
systemData: {
|
|
475
|
-
serializedName: "systemData",
|
|
476
|
-
type: {
|
|
477
|
-
name: "Composite",
|
|
478
|
-
className: "SystemData"
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
const SystemData = {
|
|
485
|
-
type: {
|
|
486
|
-
name: "Composite",
|
|
487
|
-
className: "SystemData",
|
|
488
|
-
modelProperties: {
|
|
489
|
-
createdBy: {
|
|
490
|
-
serializedName: "createdBy",
|
|
491
|
-
type: {
|
|
492
|
-
name: "String"
|
|
493
|
-
}
|
|
494
|
-
},
|
|
495
|
-
createdByType: {
|
|
496
|
-
serializedName: "createdByType",
|
|
497
|
-
type: {
|
|
498
|
-
name: "String"
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
createdAt: {
|
|
502
|
-
serializedName: "createdAt",
|
|
503
|
-
type: {
|
|
504
|
-
name: "DateTime"
|
|
505
|
-
}
|
|
506
|
-
},
|
|
507
|
-
lastModifiedBy: {
|
|
508
|
-
serializedName: "lastModifiedBy",
|
|
509
|
-
type: {
|
|
510
|
-
name: "String"
|
|
511
|
-
}
|
|
512
|
-
},
|
|
513
|
-
lastModifiedByType: {
|
|
514
|
-
serializedName: "lastModifiedByType",
|
|
515
|
-
type: {
|
|
516
|
-
name: "String"
|
|
517
|
-
}
|
|
518
|
-
},
|
|
519
|
-
lastModifiedAt: {
|
|
520
|
-
serializedName: "lastModifiedAt",
|
|
521
|
-
type: {
|
|
522
|
-
name: "DateTime"
|
|
523
|
-
}
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
};
|
|
528
|
-
const ApplianceGetTelemetryConfigResult = {
|
|
529
|
-
type: {
|
|
530
|
-
name: "Composite",
|
|
531
|
-
className: "ApplianceGetTelemetryConfigResult",
|
|
532
|
-
modelProperties: {
|
|
533
|
-
telemetryInstrumentationKey: {
|
|
534
|
-
serializedName: "telemetryInstrumentationKey",
|
|
535
|
-
readOnly: true,
|
|
536
|
-
type: {
|
|
537
|
-
name: "String"
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
};
|
|
543
|
-
const PatchableAppliance = {
|
|
544
|
-
type: {
|
|
545
|
-
name: "Composite",
|
|
546
|
-
className: "PatchableAppliance",
|
|
547
|
-
modelProperties: {
|
|
548
|
-
tags: {
|
|
549
|
-
serializedName: "tags",
|
|
550
|
-
type: {
|
|
551
|
-
name: "Dictionary",
|
|
552
|
-
value: { type: { name: "String" } }
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
};
|
|
558
|
-
const ApplianceListCredentialResults = {
|
|
559
|
-
type: {
|
|
560
|
-
name: "Composite",
|
|
561
|
-
className: "ApplianceListCredentialResults",
|
|
562
|
-
modelProperties: {
|
|
563
|
-
hybridConnectionConfig: {
|
|
564
|
-
serializedName: "hybridConnectionConfig",
|
|
565
|
-
type: {
|
|
566
|
-
name: "Composite",
|
|
567
|
-
className: "HybridConnectionConfig"
|
|
568
|
-
}
|
|
569
|
-
},
|
|
570
|
-
kubeconfigs: {
|
|
571
|
-
serializedName: "kubeconfigs",
|
|
572
|
-
readOnly: true,
|
|
573
|
-
type: {
|
|
574
|
-
name: "Sequence",
|
|
575
|
-
element: {
|
|
576
|
-
type: {
|
|
577
|
-
name: "Composite",
|
|
578
|
-
className: "ApplianceCredentialKubeconfig"
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
const HybridConnectionConfig = {
|
|
587
|
-
type: {
|
|
588
|
-
name: "Composite",
|
|
589
|
-
className: "HybridConnectionConfig",
|
|
590
|
-
modelProperties: {
|
|
591
|
-
expirationTime: {
|
|
592
|
-
serializedName: "expirationTime",
|
|
593
|
-
readOnly: true,
|
|
594
|
-
type: {
|
|
595
|
-
name: "Number"
|
|
596
|
-
}
|
|
597
|
-
},
|
|
598
|
-
hybridConnectionName: {
|
|
599
|
-
serializedName: "hybridConnectionName",
|
|
600
|
-
readOnly: true,
|
|
601
|
-
type: {
|
|
602
|
-
name: "String"
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
relay: {
|
|
606
|
-
serializedName: "relay",
|
|
607
|
-
readOnly: true,
|
|
608
|
-
type: {
|
|
609
|
-
name: "String"
|
|
610
|
-
}
|
|
611
|
-
},
|
|
612
|
-
token: {
|
|
613
|
-
serializedName: "token",
|
|
614
|
-
readOnly: true,
|
|
615
|
-
type: {
|
|
616
|
-
name: "String"
|
|
617
|
-
}
|
|
618
|
-
}
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
};
|
|
622
|
-
const ApplianceCredentialKubeconfig = {
|
|
623
|
-
type: {
|
|
624
|
-
name: "Composite",
|
|
625
|
-
className: "ApplianceCredentialKubeconfig",
|
|
626
|
-
modelProperties: {
|
|
627
|
-
name: {
|
|
628
|
-
serializedName: "name",
|
|
629
|
-
readOnly: true,
|
|
630
|
-
type: {
|
|
631
|
-
name: "String"
|
|
632
|
-
}
|
|
633
|
-
},
|
|
634
|
-
value: {
|
|
635
|
-
serializedName: "value",
|
|
636
|
-
readOnly: true,
|
|
637
|
-
type: {
|
|
638
|
-
name: "String"
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
}
|
|
643
|
-
};
|
|
644
|
-
const ApplianceListKeysResults = {
|
|
645
|
-
type: {
|
|
646
|
-
name: "Composite",
|
|
647
|
-
className: "ApplianceListKeysResults",
|
|
648
|
-
modelProperties: {
|
|
649
|
-
artifactProfiles: {
|
|
650
|
-
serializedName: "artifactProfiles",
|
|
651
|
-
readOnly: true,
|
|
652
|
-
type: {
|
|
653
|
-
name: "Dictionary",
|
|
654
|
-
value: { type: { name: "Composite", className: "ArtifactProfile" } }
|
|
655
|
-
}
|
|
656
|
-
},
|
|
657
|
-
kubeconfigs: {
|
|
658
|
-
serializedName: "kubeconfigs",
|
|
659
|
-
readOnly: true,
|
|
660
|
-
type: {
|
|
661
|
-
name: "Sequence",
|
|
662
|
-
element: {
|
|
663
|
-
type: {
|
|
664
|
-
name: "Composite",
|
|
665
|
-
className: "ApplianceCredentialKubeconfig"
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
sshKeys: {
|
|
671
|
-
serializedName: "sshKeys",
|
|
672
|
-
readOnly: true,
|
|
673
|
-
type: {
|
|
674
|
-
name: "Dictionary",
|
|
675
|
-
value: { type: { name: "Composite", className: "SSHKey" } }
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
};
|
|
681
|
-
const ArtifactProfile = {
|
|
682
|
-
type: {
|
|
683
|
-
name: "Composite",
|
|
684
|
-
className: "ArtifactProfile",
|
|
685
|
-
modelProperties: {
|
|
686
|
-
endpoint: {
|
|
687
|
-
serializedName: "endpoint",
|
|
688
|
-
readOnly: true,
|
|
689
|
-
type: {
|
|
690
|
-
name: "String"
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
};
|
|
696
|
-
const SSHKey = {
|
|
697
|
-
type: {
|
|
698
|
-
name: "Composite",
|
|
699
|
-
className: "SSHKey",
|
|
700
|
-
modelProperties: {
|
|
701
|
-
certificate: {
|
|
702
|
-
serializedName: "certificate",
|
|
703
|
-
readOnly: true,
|
|
704
|
-
type: {
|
|
705
|
-
name: "String"
|
|
706
|
-
}
|
|
707
|
-
},
|
|
708
|
-
creationTimeStamp: {
|
|
709
|
-
serializedName: "creationTimeStamp",
|
|
710
|
-
readOnly: true,
|
|
711
|
-
type: {
|
|
712
|
-
name: "Number"
|
|
713
|
-
}
|
|
714
|
-
},
|
|
715
|
-
expirationTimeStamp: {
|
|
716
|
-
serializedName: "expirationTimeStamp",
|
|
717
|
-
readOnly: true,
|
|
718
|
-
type: {
|
|
719
|
-
name: "Number"
|
|
720
|
-
}
|
|
721
|
-
},
|
|
722
|
-
privateKey: {
|
|
723
|
-
serializedName: "privateKey",
|
|
724
|
-
readOnly: true,
|
|
725
|
-
type: {
|
|
726
|
-
name: "String"
|
|
727
|
-
}
|
|
728
|
-
},
|
|
729
|
-
publicKey: {
|
|
730
|
-
serializedName: "publicKey",
|
|
731
|
-
readOnly: true,
|
|
732
|
-
type: {
|
|
733
|
-
name: "String"
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
const UpgradeGraph = {
|
|
740
|
-
type: {
|
|
741
|
-
name: "Composite",
|
|
742
|
-
className: "UpgradeGraph",
|
|
743
|
-
modelProperties: {
|
|
744
|
-
id: {
|
|
745
|
-
serializedName: "id",
|
|
746
|
-
readOnly: true,
|
|
747
|
-
type: {
|
|
748
|
-
name: "String"
|
|
749
|
-
}
|
|
750
|
-
},
|
|
751
|
-
name: {
|
|
752
|
-
serializedName: "name",
|
|
753
|
-
readOnly: true,
|
|
754
|
-
type: {
|
|
755
|
-
name: "String"
|
|
756
|
-
}
|
|
757
|
-
},
|
|
758
|
-
properties: {
|
|
759
|
-
serializedName: "properties",
|
|
760
|
-
type: {
|
|
761
|
-
name: "Composite",
|
|
762
|
-
className: "UpgradeGraphProperties"
|
|
763
|
-
}
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
}
|
|
767
|
-
};
|
|
768
|
-
const UpgradeGraphProperties = {
|
|
769
|
-
type: {
|
|
770
|
-
name: "Composite",
|
|
771
|
-
className: "UpgradeGraphProperties",
|
|
772
|
-
modelProperties: {
|
|
773
|
-
applianceVersion: {
|
|
774
|
-
serializedName: "applianceVersion",
|
|
775
|
-
readOnly: true,
|
|
776
|
-
type: {
|
|
777
|
-
name: "String"
|
|
778
|
-
}
|
|
779
|
-
},
|
|
780
|
-
supportedVersions: {
|
|
781
|
-
serializedName: "supportedVersions",
|
|
782
|
-
readOnly: true,
|
|
783
|
-
type: {
|
|
784
|
-
name: "Sequence",
|
|
785
|
-
element: {
|
|
786
|
-
type: {
|
|
787
|
-
name: "Composite",
|
|
788
|
-
className: "SupportedVersion"
|
|
789
|
-
}
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
};
|
|
796
|
-
const SupportedVersion = {
|
|
797
|
-
type: {
|
|
798
|
-
name: "Composite",
|
|
799
|
-
className: "SupportedVersion",
|
|
800
|
-
modelProperties: {
|
|
801
|
-
metadata: {
|
|
802
|
-
serializedName: "metadata",
|
|
803
|
-
type: {
|
|
804
|
-
name: "Composite",
|
|
805
|
-
className: "SupportedVersionMetadata"
|
|
806
|
-
}
|
|
807
|
-
},
|
|
808
|
-
version: {
|
|
809
|
-
serializedName: "version",
|
|
810
|
-
readOnly: true,
|
|
811
|
-
type: {
|
|
812
|
-
name: "String"
|
|
813
|
-
}
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
}
|
|
817
|
-
};
|
|
818
|
-
const SupportedVersionMetadata = {
|
|
819
|
-
type: {
|
|
820
|
-
name: "Composite",
|
|
821
|
-
className: "SupportedVersionMetadata",
|
|
822
|
-
modelProperties: {
|
|
823
|
-
catalogVersion: {
|
|
824
|
-
serializedName: "catalogVersion",
|
|
825
|
-
type: {
|
|
826
|
-
name: "Composite",
|
|
827
|
-
className: "SupportedVersionCatalogVersion"
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
};
|
|
833
|
-
const SupportedVersionCatalogVersion = {
|
|
834
|
-
type: {
|
|
835
|
-
name: "Composite",
|
|
836
|
-
className: "SupportedVersionCatalogVersion",
|
|
837
|
-
modelProperties: {
|
|
838
|
-
data: {
|
|
839
|
-
serializedName: "data",
|
|
840
|
-
type: {
|
|
841
|
-
name: "Composite",
|
|
842
|
-
className: "SupportedVersionCatalogVersionData"
|
|
843
|
-
}
|
|
844
|
-
},
|
|
845
|
-
name: {
|
|
846
|
-
serializedName: "name",
|
|
847
|
-
readOnly: true,
|
|
848
|
-
type: {
|
|
849
|
-
name: "String"
|
|
850
|
-
}
|
|
851
|
-
},
|
|
852
|
-
namespace: {
|
|
853
|
-
serializedName: "namespace",
|
|
854
|
-
readOnly: true,
|
|
855
|
-
type: {
|
|
856
|
-
name: "String"
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
};
|
|
862
|
-
const SupportedVersionCatalogVersionData = {
|
|
863
|
-
type: {
|
|
864
|
-
name: "Composite",
|
|
865
|
-
className: "SupportedVersionCatalogVersionData",
|
|
866
|
-
modelProperties: {
|
|
867
|
-
audience: {
|
|
868
|
-
serializedName: "audience",
|
|
869
|
-
readOnly: true,
|
|
870
|
-
type: {
|
|
871
|
-
name: "String"
|
|
872
|
-
}
|
|
873
|
-
},
|
|
874
|
-
catalog: {
|
|
875
|
-
serializedName: "catalog",
|
|
876
|
-
readOnly: true,
|
|
877
|
-
type: {
|
|
878
|
-
name: "String"
|
|
879
|
-
}
|
|
880
|
-
},
|
|
881
|
-
offer: {
|
|
882
|
-
serializedName: "offer",
|
|
883
|
-
readOnly: true,
|
|
884
|
-
type: {
|
|
885
|
-
name: "String"
|
|
886
|
-
}
|
|
887
|
-
},
|
|
888
|
-
version: {
|
|
889
|
-
serializedName: "version",
|
|
890
|
-
readOnly: true,
|
|
891
|
-
type: {
|
|
892
|
-
name: "String"
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
};
|
|
898
|
-
const TrackedResource = {
|
|
899
|
-
type: {
|
|
900
|
-
name: "Composite",
|
|
901
|
-
className: "TrackedResource",
|
|
902
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
903
|
-
serializedName: "tags",
|
|
904
|
-
type: {
|
|
905
|
-
name: "Dictionary",
|
|
906
|
-
value: { type: { name: "String" } }
|
|
907
|
-
}
|
|
908
|
-
}, location: {
|
|
909
|
-
serializedName: "location",
|
|
910
|
-
required: true,
|
|
911
|
-
type: {
|
|
912
|
-
name: "String"
|
|
913
|
-
}
|
|
914
|
-
} })
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
const Appliance = {
|
|
918
|
-
type: {
|
|
919
|
-
name: "Composite",
|
|
920
|
-
className: "Appliance",
|
|
921
|
-
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { identity: {
|
|
922
|
-
serializedName: "identity",
|
|
923
|
-
type: {
|
|
924
|
-
name: "Composite",
|
|
925
|
-
className: "Identity"
|
|
926
|
-
}
|
|
927
|
-
}, distro: {
|
|
928
|
-
defaultValue: "AKSEdge",
|
|
929
|
-
serializedName: "properties.distro",
|
|
930
|
-
type: {
|
|
931
|
-
name: "String"
|
|
932
|
-
}
|
|
933
|
-
}, infrastructureConfig: {
|
|
934
|
-
serializedName: "properties.infrastructureConfig",
|
|
935
|
-
type: {
|
|
936
|
-
name: "Composite",
|
|
937
|
-
className: "AppliancePropertiesInfrastructureConfig"
|
|
938
|
-
}
|
|
939
|
-
}, provisioningState: {
|
|
940
|
-
serializedName: "properties.provisioningState",
|
|
941
|
-
readOnly: true,
|
|
942
|
-
type: {
|
|
943
|
-
name: "String"
|
|
944
|
-
}
|
|
945
|
-
}, publicKey: {
|
|
946
|
-
serializedName: "properties.publicKey",
|
|
947
|
-
type: {
|
|
948
|
-
name: "String"
|
|
949
|
-
}
|
|
950
|
-
}, status: {
|
|
951
|
-
serializedName: "properties.status",
|
|
952
|
-
readOnly: true,
|
|
953
|
-
type: {
|
|
954
|
-
name: "String"
|
|
955
|
-
}
|
|
956
|
-
}, version: {
|
|
957
|
-
serializedName: "properties.version",
|
|
958
|
-
type: {
|
|
959
|
-
name: "String"
|
|
960
|
-
}
|
|
961
|
-
} })
|
|
962
|
-
}
|
|
963
|
-
};
|
|
964
|
-
|
|
965
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
966
|
-
__proto__: null,
|
|
967
|
-
Appliance: Appliance,
|
|
968
|
-
ApplianceCredentialKubeconfig: ApplianceCredentialKubeconfig,
|
|
969
|
-
ApplianceGetTelemetryConfigResult: ApplianceGetTelemetryConfigResult,
|
|
970
|
-
ApplianceListCredentialResults: ApplianceListCredentialResults,
|
|
971
|
-
ApplianceListKeysResults: ApplianceListKeysResults,
|
|
972
|
-
ApplianceListResult: ApplianceListResult,
|
|
973
|
-
ApplianceOperation: ApplianceOperation,
|
|
974
|
-
ApplianceOperationsList: ApplianceOperationsList,
|
|
975
|
-
AppliancePropertiesInfrastructureConfig: AppliancePropertiesInfrastructureConfig,
|
|
976
|
-
ArtifactProfile: ArtifactProfile,
|
|
977
|
-
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
978
|
-
ErrorDetail: ErrorDetail,
|
|
979
|
-
ErrorResponse: ErrorResponse,
|
|
980
|
-
HybridConnectionConfig: HybridConnectionConfig,
|
|
981
|
-
Identity: Identity,
|
|
982
|
-
PatchableAppliance: PatchableAppliance,
|
|
983
|
-
Resource: Resource,
|
|
984
|
-
SSHKey: SSHKey,
|
|
985
|
-
SupportedVersion: SupportedVersion,
|
|
986
|
-
SupportedVersionCatalogVersion: SupportedVersionCatalogVersion,
|
|
987
|
-
SupportedVersionCatalogVersionData: SupportedVersionCatalogVersionData,
|
|
988
|
-
SupportedVersionMetadata: SupportedVersionMetadata,
|
|
989
|
-
SystemData: SystemData,
|
|
990
|
-
TrackedResource: TrackedResource,
|
|
991
|
-
UpgradeGraph: UpgradeGraph,
|
|
992
|
-
UpgradeGraphProperties: UpgradeGraphProperties
|
|
993
|
-
});
|
|
994
|
-
|
|
995
|
-
/*
|
|
996
|
-
* Copyright (c) Microsoft Corporation.
|
|
997
|
-
* Licensed under the MIT License.
|
|
998
|
-
*
|
|
999
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1000
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1001
|
-
*/
|
|
1002
|
-
const accept = {
|
|
1003
|
-
parameterPath: "accept",
|
|
1004
|
-
mapper: {
|
|
1005
|
-
defaultValue: "application/json",
|
|
1006
|
-
isConstant: true,
|
|
1007
|
-
serializedName: "Accept",
|
|
1008
|
-
type: {
|
|
1009
|
-
name: "String"
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
};
|
|
1013
|
-
const $host = {
|
|
1014
|
-
parameterPath: "$host",
|
|
1015
|
-
mapper: {
|
|
1016
|
-
serializedName: "$host",
|
|
1017
|
-
required: true,
|
|
1018
|
-
type: {
|
|
1019
|
-
name: "String"
|
|
1020
|
-
}
|
|
1021
|
-
},
|
|
1022
|
-
skipEncoding: true
|
|
1023
|
-
};
|
|
1024
|
-
const apiVersion = {
|
|
1025
|
-
parameterPath: "apiVersion",
|
|
1026
|
-
mapper: {
|
|
1027
|
-
defaultValue: "2022-10-27",
|
|
1028
|
-
isConstant: true,
|
|
1029
|
-
serializedName: "api-version",
|
|
1030
|
-
type: {
|
|
1031
|
-
name: "String"
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
|
-
const subscriptionId = {
|
|
1036
|
-
parameterPath: "subscriptionId",
|
|
1037
|
-
mapper: {
|
|
1038
|
-
constraints: {
|
|
1039
|
-
MinLength: 1
|
|
1040
|
-
},
|
|
1041
|
-
serializedName: "subscriptionId",
|
|
1042
|
-
required: true,
|
|
1043
|
-
type: {
|
|
1044
|
-
name: "String"
|
|
1045
|
-
}
|
|
1046
|
-
}
|
|
1047
|
-
};
|
|
1048
|
-
const resourceGroupName = {
|
|
1049
|
-
parameterPath: "resourceGroupName",
|
|
1050
|
-
mapper: {
|
|
1051
|
-
constraints: {
|
|
1052
|
-
MaxLength: 90,
|
|
1053
|
-
MinLength: 1
|
|
1054
|
-
},
|
|
1055
|
-
serializedName: "resourceGroupName",
|
|
1056
|
-
required: true,
|
|
1057
|
-
type: {
|
|
1058
|
-
name: "String"
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
};
|
|
1062
|
-
const resourceName = {
|
|
1063
|
-
parameterPath: "resourceName",
|
|
1064
|
-
mapper: {
|
|
1065
|
-
constraints: {
|
|
1066
|
-
Pattern: new RegExp("^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$"),
|
|
1067
|
-
MaxLength: 63,
|
|
1068
|
-
MinLength: 1
|
|
1069
|
-
},
|
|
1070
|
-
serializedName: "resourceName",
|
|
1071
|
-
required: true,
|
|
1072
|
-
type: {
|
|
1073
|
-
name: "String"
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
};
|
|
1077
|
-
const contentType = {
|
|
1078
|
-
parameterPath: ["options", "contentType"],
|
|
1079
|
-
mapper: {
|
|
1080
|
-
defaultValue: "application/json",
|
|
1081
|
-
isConstant: true,
|
|
1082
|
-
serializedName: "Content-Type",
|
|
1083
|
-
type: {
|
|
1084
|
-
name: "String"
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
};
|
|
1088
|
-
const parameters = {
|
|
1089
|
-
parameterPath: "parameters",
|
|
1090
|
-
mapper: Appliance
|
|
1091
|
-
};
|
|
1092
|
-
const upgradeGraph = {
|
|
1093
|
-
parameterPath: "upgradeGraph",
|
|
1094
|
-
mapper: {
|
|
1095
|
-
serializedName: "upgradeGraph",
|
|
1096
|
-
required: true,
|
|
1097
|
-
type: {
|
|
1098
|
-
name: "String"
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
};
|
|
1102
|
-
const nextLink = {
|
|
1103
|
-
parameterPath: "nextLink",
|
|
1104
|
-
mapper: {
|
|
1105
|
-
serializedName: "nextLink",
|
|
1106
|
-
required: true,
|
|
1107
|
-
type: {
|
|
1108
|
-
name: "String"
|
|
1109
|
-
}
|
|
1110
|
-
},
|
|
1111
|
-
skipEncoding: true
|
|
1112
|
-
};
|
|
1113
|
-
|
|
1114
|
-
/*
|
|
1115
|
-
* Copyright (c) Microsoft Corporation.
|
|
1116
|
-
* Licensed under the MIT License.
|
|
1117
|
-
*
|
|
1118
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1119
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1120
|
-
*/
|
|
1121
|
-
function createLroSpec(inputs) {
|
|
1122
|
-
const { args, spec, sendOperationFn } = inputs;
|
|
1123
|
-
return {
|
|
1124
|
-
requestMethod: spec.httpMethod,
|
|
1125
|
-
requestPath: spec.path,
|
|
1126
|
-
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
1127
|
-
sendPollRequest: (path, options) => {
|
|
1128
|
-
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
1129
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
1130
|
-
}
|
|
1131
|
-
};
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
/*
|
|
1135
|
-
* Copyright (c) Microsoft Corporation.
|
|
1136
|
-
* Licensed under the MIT License.
|
|
1137
|
-
*
|
|
1138
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1139
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1140
|
-
*/
|
|
1141
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1142
|
-
/** Class containing Appliances operations. */
|
|
1143
|
-
class AppliancesImpl {
|
|
1144
|
-
/**
|
|
1145
|
-
* Initialize a new instance of the class Appliances class.
|
|
1146
|
-
* @param client Reference to the service client
|
|
1147
|
-
*/
|
|
1148
|
-
constructor(client) {
|
|
1149
|
-
this.client = client;
|
|
1150
|
-
}
|
|
1151
|
-
/**
|
|
1152
|
-
* Lists all available Appliances operations.
|
|
1153
|
-
* @param options The options parameters.
|
|
1154
|
-
*/
|
|
1155
|
-
listOperations(options) {
|
|
1156
|
-
const iter = this.listOperationsPagingAll(options);
|
|
1157
|
-
return {
|
|
1158
|
-
next() {
|
|
1159
|
-
return iter.next();
|
|
1160
|
-
},
|
|
1161
|
-
[Symbol.asyncIterator]() {
|
|
1162
|
-
return this;
|
|
1163
|
-
},
|
|
1164
|
-
byPage: (settings) => {
|
|
1165
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1166
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1167
|
-
}
|
|
1168
|
-
return this.listOperationsPagingPage(options, settings);
|
|
1169
|
-
}
|
|
1170
|
-
};
|
|
1171
|
-
}
|
|
1172
|
-
listOperationsPagingPage(options, settings) {
|
|
1173
|
-
return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
|
|
1174
|
-
let result;
|
|
1175
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1176
|
-
if (!continuationToken) {
|
|
1177
|
-
result = yield tslib.__await(this._listOperations(options));
|
|
1178
|
-
let page = result.value || [];
|
|
1179
|
-
continuationToken = result.nextLink;
|
|
1180
|
-
setContinuationToken(page, continuationToken);
|
|
1181
|
-
yield yield tslib.__await(page);
|
|
1182
|
-
}
|
|
1183
|
-
while (continuationToken) {
|
|
1184
|
-
result = yield tslib.__await(this._listOperationsNext(continuationToken, options));
|
|
1185
|
-
continuationToken = result.nextLink;
|
|
1186
|
-
let page = result.value || [];
|
|
1187
|
-
setContinuationToken(page, continuationToken);
|
|
1188
|
-
yield yield tslib.__await(page);
|
|
1189
|
-
}
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
listOperationsPagingAll(options) {
|
|
1193
|
-
return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
|
|
1194
|
-
var _a, e_1, _b, _c;
|
|
1195
|
-
try {
|
|
1196
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listOperationsPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1197
|
-
_c = _f.value;
|
|
1198
|
-
_d = false;
|
|
1199
|
-
const page = _c;
|
|
1200
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1204
|
-
finally {
|
|
1205
|
-
try {
|
|
1206
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1207
|
-
}
|
|
1208
|
-
finally { if (e_1) throw e_1.error; }
|
|
1209
|
-
}
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
/**
|
|
1213
|
-
* Gets a list of Appliances in the specified subscription. The operation returns properties of each
|
|
1214
|
-
* Appliance
|
|
1215
|
-
* @param options The options parameters.
|
|
1216
|
-
*/
|
|
1217
|
-
listBySubscription(options) {
|
|
1218
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
1219
|
-
return {
|
|
1220
|
-
next() {
|
|
1221
|
-
return iter.next();
|
|
1222
|
-
},
|
|
1223
|
-
[Symbol.asyncIterator]() {
|
|
1224
|
-
return this;
|
|
1225
|
-
},
|
|
1226
|
-
byPage: (settings) => {
|
|
1227
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1228
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1229
|
-
}
|
|
1230
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
|
1231
|
-
}
|
|
1232
|
-
};
|
|
1233
|
-
}
|
|
1234
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
1235
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1236
|
-
let result;
|
|
1237
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1238
|
-
if (!continuationToken) {
|
|
1239
|
-
result = yield tslib.__await(this._listBySubscription(options));
|
|
1240
|
-
let page = result.value || [];
|
|
1241
|
-
continuationToken = result.nextLink;
|
|
1242
|
-
setContinuationToken(page, continuationToken);
|
|
1243
|
-
yield yield tslib.__await(page);
|
|
1244
|
-
}
|
|
1245
|
-
while (continuationToken) {
|
|
1246
|
-
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1247
|
-
continuationToken = result.nextLink;
|
|
1248
|
-
let page = result.value || [];
|
|
1249
|
-
setContinuationToken(page, continuationToken);
|
|
1250
|
-
yield yield tslib.__await(page);
|
|
1251
|
-
}
|
|
1252
|
-
});
|
|
1253
|
-
}
|
|
1254
|
-
listBySubscriptionPagingAll(options) {
|
|
1255
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1256
|
-
var _a, e_2, _b, _c;
|
|
1257
|
-
try {
|
|
1258
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1259
|
-
_c = _f.value;
|
|
1260
|
-
_d = false;
|
|
1261
|
-
const page = _c;
|
|
1262
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1263
|
-
}
|
|
1264
|
-
}
|
|
1265
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1266
|
-
finally {
|
|
1267
|
-
try {
|
|
1268
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1269
|
-
}
|
|
1270
|
-
finally { if (e_2) throw e_2.error; }
|
|
1271
|
-
}
|
|
1272
|
-
});
|
|
1273
|
-
}
|
|
1274
|
-
/**
|
|
1275
|
-
* Gets a list of Appliances in the specified subscription and resource group. The operation returns
|
|
1276
|
-
* properties of each Appliance.
|
|
1277
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1278
|
-
* @param options The options parameters.
|
|
1279
|
-
*/
|
|
1280
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
1281
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1282
|
-
return {
|
|
1283
|
-
next() {
|
|
1284
|
-
return iter.next();
|
|
1285
|
-
},
|
|
1286
|
-
[Symbol.asyncIterator]() {
|
|
1287
|
-
return this;
|
|
1288
|
-
},
|
|
1289
|
-
byPage: (settings) => {
|
|
1290
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1291
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1292
|
-
}
|
|
1293
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
}
|
|
1297
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1298
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1299
|
-
let result;
|
|
1300
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1301
|
-
if (!continuationToken) {
|
|
1302
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1303
|
-
let page = result.value || [];
|
|
1304
|
-
continuationToken = result.nextLink;
|
|
1305
|
-
setContinuationToken(page, continuationToken);
|
|
1306
|
-
yield yield tslib.__await(page);
|
|
1307
|
-
}
|
|
1308
|
-
while (continuationToken) {
|
|
1309
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1310
|
-
continuationToken = result.nextLink;
|
|
1311
|
-
let page = result.value || [];
|
|
1312
|
-
setContinuationToken(page, continuationToken);
|
|
1313
|
-
yield yield tslib.__await(page);
|
|
1314
|
-
}
|
|
1315
|
-
});
|
|
1316
|
-
}
|
|
1317
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1318
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1319
|
-
var _a, e_3, _b, _c;
|
|
1320
|
-
try {
|
|
1321
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1322
|
-
_c = _f.value;
|
|
1323
|
-
_d = false;
|
|
1324
|
-
const page = _c;
|
|
1325
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1329
|
-
finally {
|
|
1330
|
-
try {
|
|
1331
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1332
|
-
}
|
|
1333
|
-
finally { if (e_3) throw e_3.error; }
|
|
1334
|
-
}
|
|
1335
|
-
});
|
|
1336
|
-
}
|
|
1337
|
-
/**
|
|
1338
|
-
* Lists all available Appliances operations.
|
|
1339
|
-
* @param options The options parameters.
|
|
1340
|
-
*/
|
|
1341
|
-
_listOperations(options) {
|
|
1342
|
-
return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
|
|
1343
|
-
}
|
|
1344
|
-
/**
|
|
1345
|
-
* Gets a list of Appliances in the specified subscription. The operation returns properties of each
|
|
1346
|
-
* Appliance
|
|
1347
|
-
* @param options The options parameters.
|
|
1348
|
-
*/
|
|
1349
|
-
_listBySubscription(options) {
|
|
1350
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1351
|
-
}
|
|
1352
|
-
/**
|
|
1353
|
-
* Gets the telemetry config.
|
|
1354
|
-
* @param options The options parameters.
|
|
1355
|
-
*/
|
|
1356
|
-
getTelemetryConfig(options) {
|
|
1357
|
-
return this.client.sendOperationRequest({ options }, getTelemetryConfigOperationSpec);
|
|
1358
|
-
}
|
|
1359
|
-
/**
|
|
1360
|
-
* Gets a list of Appliances in the specified subscription and resource group. The operation returns
|
|
1361
|
-
* properties of each Appliance.
|
|
1362
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1363
|
-
* @param options The options parameters.
|
|
1364
|
-
*/
|
|
1365
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
1366
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1367
|
-
}
|
|
1368
|
-
/**
|
|
1369
|
-
* Gets the details of an Appliance with a specified resource group and name.
|
|
1370
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1371
|
-
* @param resourceName Appliances name.
|
|
1372
|
-
* @param options The options parameters.
|
|
1373
|
-
*/
|
|
1374
|
-
get(resourceGroupName, resourceName, options) {
|
|
1375
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec);
|
|
1376
|
-
}
|
|
1377
|
-
/**
|
|
1378
|
-
* Creates or updates an Appliance in the specified Subscription and Resource Group.
|
|
1379
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1380
|
-
* @param resourceName Appliances name.
|
|
1381
|
-
* @param parameters Parameters supplied to create or update an Appliance.
|
|
1382
|
-
* @param options The options parameters.
|
|
1383
|
-
*/
|
|
1384
|
-
beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options) {
|
|
1385
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1386
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1387
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1388
|
-
});
|
|
1389
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1390
|
-
var _a;
|
|
1391
|
-
let currentRawResponse = undefined;
|
|
1392
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1393
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1394
|
-
currentRawResponse = rawResponse;
|
|
1395
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1396
|
-
};
|
|
1397
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1398
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1399
|
-
return {
|
|
1400
|
-
flatResponse,
|
|
1401
|
-
rawResponse: {
|
|
1402
|
-
statusCode: currentRawResponse.status,
|
|
1403
|
-
body: currentRawResponse.parsedBody,
|
|
1404
|
-
headers: currentRawResponse.headers.toJSON()
|
|
1405
|
-
}
|
|
1406
|
-
};
|
|
1407
|
-
});
|
|
1408
|
-
const lro = createLroSpec({
|
|
1409
|
-
sendOperationFn,
|
|
1410
|
-
args: { resourceGroupName, resourceName, parameters, options },
|
|
1411
|
-
spec: createOrUpdateOperationSpec
|
|
1412
|
-
});
|
|
1413
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1414
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1415
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1416
|
-
resourceLocationConfig: "azure-async-operation"
|
|
1417
|
-
});
|
|
1418
|
-
yield poller.poll();
|
|
1419
|
-
return poller;
|
|
1420
|
-
});
|
|
1421
|
-
}
|
|
1422
|
-
/**
|
|
1423
|
-
* Creates or updates an Appliance in the specified Subscription and Resource Group.
|
|
1424
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1425
|
-
* @param resourceName Appliances name.
|
|
1426
|
-
* @param parameters Parameters supplied to create or update an Appliance.
|
|
1427
|
-
* @param options The options parameters.
|
|
1428
|
-
*/
|
|
1429
|
-
beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
|
|
1430
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1431
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options);
|
|
1432
|
-
return poller.pollUntilDone();
|
|
1433
|
-
});
|
|
1434
|
-
}
|
|
1435
|
-
/**
|
|
1436
|
-
* Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
|
|
1437
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1438
|
-
* @param resourceName Appliances name.
|
|
1439
|
-
* @param options The options parameters.
|
|
1440
|
-
*/
|
|
1441
|
-
beginDelete(resourceGroupName, resourceName, options) {
|
|
1442
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1443
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1444
|
-
return this.client.sendOperationRequest(args, spec);
|
|
1445
|
-
});
|
|
1446
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1447
|
-
var _a;
|
|
1448
|
-
let currentRawResponse = undefined;
|
|
1449
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1450
|
-
const callback = (rawResponse, flatResponse) => {
|
|
1451
|
-
currentRawResponse = rawResponse;
|
|
1452
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1453
|
-
};
|
|
1454
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1455
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1456
|
-
return {
|
|
1457
|
-
flatResponse,
|
|
1458
|
-
rawResponse: {
|
|
1459
|
-
statusCode: currentRawResponse.status,
|
|
1460
|
-
body: currentRawResponse.parsedBody,
|
|
1461
|
-
headers: currentRawResponse.headers.toJSON()
|
|
1462
|
-
}
|
|
1463
|
-
};
|
|
1464
|
-
});
|
|
1465
|
-
const lro = createLroSpec({
|
|
1466
|
-
sendOperationFn,
|
|
1467
|
-
args: { resourceGroupName, resourceName, options },
|
|
1468
|
-
spec: deleteOperationSpec
|
|
1469
|
-
});
|
|
1470
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1471
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1472
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1473
|
-
resourceLocationConfig: "azure-async-operation"
|
|
1474
|
-
});
|
|
1475
|
-
yield poller.poll();
|
|
1476
|
-
return poller;
|
|
1477
|
-
});
|
|
1478
|
-
}
|
|
1479
|
-
/**
|
|
1480
|
-
* Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
|
|
1481
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1482
|
-
* @param resourceName Appliances name.
|
|
1483
|
-
* @param options The options parameters.
|
|
1484
|
-
*/
|
|
1485
|
-
beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
|
1486
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1487
|
-
const poller = yield this.beginDelete(resourceGroupName, resourceName, options);
|
|
1488
|
-
return poller.pollUntilDone();
|
|
1489
|
-
});
|
|
1490
|
-
}
|
|
1491
|
-
/**
|
|
1492
|
-
* Updates an Appliance with the specified Resource Name in the specified Resource Group and
|
|
1493
|
-
* Subscription.
|
|
1494
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1495
|
-
* @param resourceName Appliances name.
|
|
1496
|
-
* @param options The options parameters.
|
|
1497
|
-
*/
|
|
1498
|
-
update(resourceGroupName, resourceName, options) {
|
|
1499
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec);
|
|
1500
|
-
}
|
|
1501
|
-
/**
|
|
1502
|
-
* Returns the cluster user credentials for the dedicated appliance.
|
|
1503
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1504
|
-
* @param resourceName Appliances name.
|
|
1505
|
-
* @param options The options parameters.
|
|
1506
|
-
*/
|
|
1507
|
-
listClusterUserCredential(resourceGroupName, resourceName, options) {
|
|
1508
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listClusterUserCredentialOperationSpec);
|
|
1509
|
-
}
|
|
1510
|
-
/**
|
|
1511
|
-
* Returns the cluster customer credentials for the dedicated appliance.
|
|
1512
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1513
|
-
* @param resourceName Appliances name.
|
|
1514
|
-
* @param options The options parameters.
|
|
1515
|
-
*/
|
|
1516
|
-
listKeys(resourceGroupName, resourceName, options) {
|
|
1517
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listKeysOperationSpec);
|
|
1518
|
-
}
|
|
1519
|
-
/**
|
|
1520
|
-
* Gets the upgrade graph of an Appliance with a specified resource group and name and specific release
|
|
1521
|
-
* train.
|
|
1522
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1523
|
-
* @param resourceName Appliances name.
|
|
1524
|
-
* @param upgradeGraph Upgrade graph version, ex - stable
|
|
1525
|
-
* @param options The options parameters.
|
|
1526
|
-
*/
|
|
1527
|
-
getUpgradeGraph(resourceGroupName, resourceName, upgradeGraph, options) {
|
|
1528
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, upgradeGraph, options }, getUpgradeGraphOperationSpec);
|
|
1529
|
-
}
|
|
1530
|
-
/**
|
|
1531
|
-
* ListOperationsNext
|
|
1532
|
-
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
|
|
1533
|
-
* @param options The options parameters.
|
|
1534
|
-
*/
|
|
1535
|
-
_listOperationsNext(nextLink, options) {
|
|
1536
|
-
return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
|
|
1537
|
-
}
|
|
1538
|
-
/**
|
|
1539
|
-
* ListBySubscriptionNext
|
|
1540
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1541
|
-
* @param options The options parameters.
|
|
1542
|
-
*/
|
|
1543
|
-
_listBySubscriptionNext(nextLink, options) {
|
|
1544
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1545
|
-
}
|
|
1546
|
-
/**
|
|
1547
|
-
* ListByResourceGroupNext
|
|
1548
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1549
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1550
|
-
* @param options The options parameters.
|
|
1551
|
-
*/
|
|
1552
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1553
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1554
|
-
}
|
|
1555
|
-
}
|
|
1556
|
-
// Operation Specifications
|
|
1557
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1558
|
-
const listOperationsOperationSpec = {
|
|
1559
|
-
path: "/providers/Microsoft.ResourceConnector/operations",
|
|
1560
|
-
httpMethod: "GET",
|
|
1561
|
-
responses: {
|
|
1562
|
-
200: {
|
|
1563
|
-
bodyMapper: ApplianceOperationsList
|
|
1564
|
-
},
|
|
1565
|
-
default: {
|
|
1566
|
-
bodyMapper: ErrorResponse
|
|
1567
|
-
}
|
|
1568
|
-
},
|
|
1569
|
-
queryParameters: [apiVersion],
|
|
1570
|
-
urlParameters: [$host],
|
|
1571
|
-
headerParameters: [accept],
|
|
1572
|
-
serializer
|
|
1573
|
-
};
|
|
1574
|
-
const listBySubscriptionOperationSpec = {
|
|
1575
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/appliances",
|
|
1576
|
-
httpMethod: "GET",
|
|
1577
|
-
responses: {
|
|
1578
|
-
200: {
|
|
1579
|
-
bodyMapper: ApplianceListResult
|
|
1580
|
-
},
|
|
1581
|
-
default: {
|
|
1582
|
-
bodyMapper: ErrorResponse
|
|
1583
|
-
}
|
|
1584
|
-
},
|
|
1585
|
-
queryParameters: [apiVersion],
|
|
1586
|
-
urlParameters: [$host, subscriptionId],
|
|
1587
|
-
headerParameters: [accept],
|
|
1588
|
-
serializer
|
|
1589
|
-
};
|
|
1590
|
-
const getTelemetryConfigOperationSpec = {
|
|
1591
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/telemetryconfig",
|
|
1592
|
-
httpMethod: "GET",
|
|
1593
|
-
responses: {
|
|
1594
|
-
200: {
|
|
1595
|
-
bodyMapper: ApplianceGetTelemetryConfigResult
|
|
1596
|
-
},
|
|
1597
|
-
default: {
|
|
1598
|
-
bodyMapper: ErrorResponse
|
|
1599
|
-
}
|
|
1600
|
-
},
|
|
1601
|
-
queryParameters: [apiVersion],
|
|
1602
|
-
urlParameters: [$host, subscriptionId],
|
|
1603
|
-
headerParameters: [accept],
|
|
1604
|
-
serializer
|
|
1605
|
-
};
|
|
1606
|
-
const listByResourceGroupOperationSpec = {
|
|
1607
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances",
|
|
1608
|
-
httpMethod: "GET",
|
|
1609
|
-
responses: {
|
|
1610
|
-
200: {
|
|
1611
|
-
bodyMapper: ApplianceListResult
|
|
1612
|
-
},
|
|
1613
|
-
default: {
|
|
1614
|
-
bodyMapper: ErrorResponse
|
|
1615
|
-
}
|
|
1616
|
-
},
|
|
1617
|
-
queryParameters: [apiVersion],
|
|
1618
|
-
urlParameters: [
|
|
1619
|
-
$host,
|
|
1620
|
-
subscriptionId,
|
|
1621
|
-
resourceGroupName
|
|
1622
|
-
],
|
|
1623
|
-
headerParameters: [accept],
|
|
1624
|
-
serializer
|
|
1625
|
-
};
|
|
1626
|
-
const getOperationSpec = {
|
|
1627
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
|
|
1628
|
-
httpMethod: "GET",
|
|
1629
|
-
responses: {
|
|
1630
|
-
200: {
|
|
1631
|
-
bodyMapper: Appliance
|
|
1632
|
-
},
|
|
1633
|
-
default: {
|
|
1634
|
-
bodyMapper: ErrorResponse
|
|
1635
|
-
}
|
|
1636
|
-
},
|
|
1637
|
-
queryParameters: [apiVersion],
|
|
1638
|
-
urlParameters: [
|
|
1639
|
-
$host,
|
|
1640
|
-
subscriptionId,
|
|
1641
|
-
resourceGroupName,
|
|
1642
|
-
resourceName
|
|
1643
|
-
],
|
|
1644
|
-
headerParameters: [accept],
|
|
1645
|
-
serializer
|
|
1646
|
-
};
|
|
1647
|
-
const createOrUpdateOperationSpec = {
|
|
1648
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
|
|
1649
|
-
httpMethod: "PUT",
|
|
1650
|
-
responses: {
|
|
1651
|
-
200: {
|
|
1652
|
-
bodyMapper: Appliance
|
|
1653
|
-
},
|
|
1654
|
-
201: {
|
|
1655
|
-
bodyMapper: Appliance
|
|
1656
|
-
},
|
|
1657
|
-
202: {
|
|
1658
|
-
bodyMapper: Appliance
|
|
1659
|
-
},
|
|
1660
|
-
204: {
|
|
1661
|
-
bodyMapper: Appliance
|
|
1662
|
-
},
|
|
1663
|
-
default: {
|
|
1664
|
-
bodyMapper: ErrorResponse
|
|
1665
|
-
}
|
|
1666
|
-
},
|
|
1667
|
-
requestBody: parameters,
|
|
1668
|
-
queryParameters: [apiVersion],
|
|
1669
|
-
urlParameters: [
|
|
1670
|
-
$host,
|
|
1671
|
-
subscriptionId,
|
|
1672
|
-
resourceGroupName,
|
|
1673
|
-
resourceName
|
|
1674
|
-
],
|
|
1675
|
-
headerParameters: [accept, contentType],
|
|
1676
|
-
mediaType: "json",
|
|
1677
|
-
serializer
|
|
1678
|
-
};
|
|
1679
|
-
const deleteOperationSpec = {
|
|
1680
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
|
|
1681
|
-
httpMethod: "DELETE",
|
|
1682
|
-
responses: {
|
|
1683
|
-
200: {},
|
|
1684
|
-
201: {},
|
|
1685
|
-
202: {},
|
|
1686
|
-
204: {},
|
|
1687
|
-
default: {
|
|
1688
|
-
bodyMapper: ErrorResponse
|
|
1689
|
-
}
|
|
1690
|
-
},
|
|
1691
|
-
queryParameters: [apiVersion],
|
|
1692
|
-
urlParameters: [
|
|
1693
|
-
$host,
|
|
1694
|
-
subscriptionId,
|
|
1695
|
-
resourceGroupName,
|
|
1696
|
-
resourceName
|
|
1697
|
-
],
|
|
1698
|
-
headerParameters: [accept],
|
|
1699
|
-
serializer
|
|
1700
|
-
};
|
|
1701
|
-
const updateOperationSpec = {
|
|
1702
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
|
|
1703
|
-
httpMethod: "PATCH",
|
|
1704
|
-
responses: {
|
|
1705
|
-
200: {
|
|
1706
|
-
bodyMapper: Appliance
|
|
1707
|
-
},
|
|
1708
|
-
default: {
|
|
1709
|
-
bodyMapper: ErrorResponse
|
|
1710
|
-
}
|
|
1711
|
-
},
|
|
1712
|
-
requestBody: {
|
|
1713
|
-
parameterPath: { tags: ["options", "tags"] },
|
|
1714
|
-
mapper: Object.assign(Object.assign({}, PatchableAppliance), { required: true })
|
|
1715
|
-
},
|
|
1716
|
-
queryParameters: [apiVersion],
|
|
1717
|
-
urlParameters: [
|
|
1718
|
-
$host,
|
|
1719
|
-
subscriptionId,
|
|
1720
|
-
resourceGroupName,
|
|
1721
|
-
resourceName
|
|
1722
|
-
],
|
|
1723
|
-
headerParameters: [accept, contentType],
|
|
1724
|
-
mediaType: "json",
|
|
1725
|
-
serializer
|
|
1726
|
-
};
|
|
1727
|
-
const listClusterUserCredentialOperationSpec = {
|
|
1728
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential",
|
|
1729
|
-
httpMethod: "POST",
|
|
1730
|
-
responses: {
|
|
1731
|
-
200: {
|
|
1732
|
-
bodyMapper: ApplianceListCredentialResults
|
|
1733
|
-
},
|
|
1734
|
-
default: {
|
|
1735
|
-
bodyMapper: ErrorResponse
|
|
1736
|
-
}
|
|
1737
|
-
},
|
|
1738
|
-
queryParameters: [apiVersion],
|
|
1739
|
-
urlParameters: [
|
|
1740
|
-
$host,
|
|
1741
|
-
subscriptionId,
|
|
1742
|
-
resourceGroupName,
|
|
1743
|
-
resourceName
|
|
1744
|
-
],
|
|
1745
|
-
headerParameters: [accept],
|
|
1746
|
-
serializer
|
|
1747
|
-
};
|
|
1748
|
-
const listKeysOperationSpec = {
|
|
1749
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listkeys",
|
|
1750
|
-
httpMethod: "POST",
|
|
1751
|
-
responses: {
|
|
1752
|
-
200: {
|
|
1753
|
-
bodyMapper: ApplianceListKeysResults
|
|
1754
|
-
},
|
|
1755
|
-
default: {
|
|
1756
|
-
bodyMapper: ErrorResponse
|
|
1757
|
-
}
|
|
1758
|
-
},
|
|
1759
|
-
queryParameters: [apiVersion],
|
|
1760
|
-
urlParameters: [
|
|
1761
|
-
$host,
|
|
1762
|
-
subscriptionId,
|
|
1763
|
-
resourceGroupName,
|
|
1764
|
-
resourceName
|
|
1765
|
-
],
|
|
1766
|
-
headerParameters: [accept],
|
|
1767
|
-
serializer
|
|
1768
|
-
};
|
|
1769
|
-
const getUpgradeGraphOperationSpec = {
|
|
1770
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/upgradeGraphs/{upgradeGraph}",
|
|
1771
|
-
httpMethod: "GET",
|
|
1772
|
-
responses: {
|
|
1773
|
-
200: {
|
|
1774
|
-
bodyMapper: UpgradeGraph
|
|
1775
|
-
},
|
|
1776
|
-
default: {
|
|
1777
|
-
bodyMapper: ErrorResponse
|
|
1778
|
-
}
|
|
1779
|
-
},
|
|
1780
|
-
queryParameters: [apiVersion],
|
|
1781
|
-
urlParameters: [
|
|
1782
|
-
$host,
|
|
1783
|
-
subscriptionId,
|
|
1784
|
-
resourceGroupName,
|
|
1785
|
-
resourceName,
|
|
1786
|
-
upgradeGraph
|
|
1787
|
-
],
|
|
1788
|
-
headerParameters: [accept],
|
|
1789
|
-
serializer
|
|
1790
|
-
};
|
|
1791
|
-
const listOperationsNextOperationSpec = {
|
|
1792
|
-
path: "{nextLink}",
|
|
1793
|
-
httpMethod: "GET",
|
|
1794
|
-
responses: {
|
|
1795
|
-
200: {
|
|
1796
|
-
bodyMapper: ApplianceOperationsList
|
|
1797
|
-
},
|
|
1798
|
-
default: {
|
|
1799
|
-
bodyMapper: ErrorResponse
|
|
1800
|
-
}
|
|
1801
|
-
},
|
|
1802
|
-
urlParameters: [$host, nextLink],
|
|
1803
|
-
headerParameters: [accept],
|
|
1804
|
-
serializer
|
|
1805
|
-
};
|
|
1806
|
-
const listBySubscriptionNextOperationSpec = {
|
|
1807
|
-
path: "{nextLink}",
|
|
1808
|
-
httpMethod: "GET",
|
|
1809
|
-
responses: {
|
|
1810
|
-
200: {
|
|
1811
|
-
bodyMapper: ApplianceListResult
|
|
1812
|
-
},
|
|
1813
|
-
default: {
|
|
1814
|
-
bodyMapper: ErrorResponse
|
|
1815
|
-
}
|
|
1816
|
-
},
|
|
1817
|
-
urlParameters: [
|
|
1818
|
-
$host,
|
|
1819
|
-
subscriptionId,
|
|
1820
|
-
nextLink
|
|
1821
|
-
],
|
|
1822
|
-
headerParameters: [accept],
|
|
1823
|
-
serializer
|
|
1824
|
-
};
|
|
1825
|
-
const listByResourceGroupNextOperationSpec = {
|
|
1826
|
-
path: "{nextLink}",
|
|
1827
|
-
httpMethod: "GET",
|
|
1828
|
-
responses: {
|
|
1829
|
-
200: {
|
|
1830
|
-
bodyMapper: ApplianceListResult
|
|
1831
|
-
},
|
|
1832
|
-
default: {
|
|
1833
|
-
bodyMapper: ErrorResponse
|
|
1834
|
-
}
|
|
1835
|
-
},
|
|
1836
|
-
urlParameters: [
|
|
1837
|
-
$host,
|
|
1838
|
-
subscriptionId,
|
|
1839
|
-
resourceGroupName,
|
|
1840
|
-
nextLink
|
|
1841
|
-
],
|
|
1842
|
-
headerParameters: [accept],
|
|
1843
|
-
serializer
|
|
1844
|
-
};
|
|
1845
|
-
|
|
1846
|
-
/*
|
|
1847
|
-
* Copyright (c) Microsoft Corporation.
|
|
1848
|
-
* Licensed under the MIT License.
|
|
1849
|
-
*
|
|
1850
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1851
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1852
|
-
*/
|
|
1853
|
-
class ResourceConnectorManagementClient extends coreClient__namespace.ServiceClient {
|
|
1854
|
-
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
1855
|
-
var _a, _b, _c;
|
|
1856
|
-
if (credentials === undefined) {
|
|
1857
|
-
throw new Error("'credentials' cannot be null");
|
|
1858
|
-
}
|
|
1859
|
-
let subscriptionId;
|
|
1860
|
-
if (typeof subscriptionIdOrOptions === "string") {
|
|
1861
|
-
subscriptionId = subscriptionIdOrOptions;
|
|
1862
|
-
}
|
|
1863
|
-
else if (typeof subscriptionIdOrOptions === "object") {
|
|
1864
|
-
options = subscriptionIdOrOptions;
|
|
1865
|
-
}
|
|
1866
|
-
// Initializing default values for options
|
|
1867
|
-
if (!options) {
|
|
1868
|
-
options = {};
|
|
1869
|
-
}
|
|
1870
|
-
const defaults = {
|
|
1871
|
-
requestContentType: "application/json; charset=utf-8",
|
|
1872
|
-
credential: credentials
|
|
1873
|
-
};
|
|
1874
|
-
const packageDetails = `azsdk-js-arm-resourceconnector/1.0.0`;
|
|
1875
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1876
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1877
|
-
: `${packageDetails}`;
|
|
1878
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1879
|
-
userAgentPrefix
|
|
1880
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1881
|
-
super(optionsWithDefaults);
|
|
1882
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
1883
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1884
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1885
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1886
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1887
|
-
}
|
|
1888
|
-
if (!options ||
|
|
1889
|
-
!options.pipeline ||
|
|
1890
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
1891
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
1892
|
-
this.pipeline.removePolicy({
|
|
1893
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1894
|
-
});
|
|
1895
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1896
|
-
credential: credentials,
|
|
1897
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
1898
|
-
challengeCallbacks: {
|
|
1899
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1900
|
-
}
|
|
1901
|
-
}));
|
|
1902
|
-
}
|
|
1903
|
-
// Parameter assignments
|
|
1904
|
-
this.subscriptionId = subscriptionId;
|
|
1905
|
-
// Assigning values to Constant parameters
|
|
1906
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
1907
|
-
this.apiVersion = options.apiVersion || "2022-10-27";
|
|
1908
|
-
this.appliances = new AppliancesImpl(this);
|
|
1909
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1910
|
-
}
|
|
1911
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
1912
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
1913
|
-
if (!apiVersion) {
|
|
1914
|
-
return;
|
|
1915
|
-
}
|
|
1916
|
-
const apiVersionPolicy = {
|
|
1917
|
-
name: "CustomApiVersionPolicy",
|
|
1918
|
-
sendRequest(request, next) {
|
|
1919
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1920
|
-
const param = request.url.split("?");
|
|
1921
|
-
if (param.length > 1) {
|
|
1922
|
-
const newParams = param[1].split("&").map((item) => {
|
|
1923
|
-
if (item.indexOf("api-version") > -1) {
|
|
1924
|
-
return "api-version=" + apiVersion;
|
|
1925
|
-
}
|
|
1926
|
-
else {
|
|
1927
|
-
return item;
|
|
1928
|
-
}
|
|
1929
|
-
});
|
|
1930
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
1931
|
-
}
|
|
1932
|
-
return next(request);
|
|
1933
|
-
});
|
|
1934
|
-
}
|
|
1935
|
-
};
|
|
1936
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
1937
|
-
}
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
|
-
exports.ResourceConnectorManagementClient = ResourceConnectorManagementClient;
|
|
1941
|
-
exports.getContinuationToken = getContinuationToken;
|
|
1942
|
-
//# sourceMappingURL=index.js.map
|