@azure/arm-resourceconnector 1.0.0-alpha.20241118.1 → 1.0.0-alpha.20250220.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
|
@@ -0,0 +1,715 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.AppliancesImpl = void 0;
|
|
11
|
+
const tslib_1 = require("tslib");
|
|
12
|
+
const pagingHelper_js_1 = require("../pagingHelper.js");
|
|
13
|
+
const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
14
|
+
const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
15
|
+
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
|
+
const core_lro_1 = require("@azure/core-lro");
|
|
17
|
+
const lroImpl_js_1 = require("../lroImpl.js");
|
|
18
|
+
/// <reference lib="esnext.asynciterable" />
|
|
19
|
+
/** Class containing Appliances operations. */
|
|
20
|
+
class AppliancesImpl {
|
|
21
|
+
/**
|
|
22
|
+
* Initialize a new instance of the class Appliances class.
|
|
23
|
+
* @param client Reference to the service client
|
|
24
|
+
*/
|
|
25
|
+
constructor(client) {
|
|
26
|
+
this.client = client;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Lists all available Appliances operations.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
listOperations(options) {
|
|
33
|
+
const iter = this.listOperationsPagingAll(options);
|
|
34
|
+
return {
|
|
35
|
+
next() {
|
|
36
|
+
return iter.next();
|
|
37
|
+
},
|
|
38
|
+
[Symbol.asyncIterator]() {
|
|
39
|
+
return this;
|
|
40
|
+
},
|
|
41
|
+
byPage: (settings) => {
|
|
42
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
43
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
|
+
}
|
|
45
|
+
return this.listOperationsPagingPage(options, settings);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
listOperationsPagingPage(options, settings) {
|
|
50
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = yield tslib_1.__await(this._listOperations(options));
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield yield tslib_1.__await(page);
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = yield tslib_1.__await(this._listOperationsNext(continuationToken, options));
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield yield tslib_1.__await(page);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
listOperationsPagingAll(options) {
|
|
70
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
|
|
71
|
+
var _a, e_1, _b, _c;
|
|
72
|
+
try {
|
|
73
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listOperationsPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
+
_c = _f.value;
|
|
75
|
+
_d = false;
|
|
76
|
+
const page = _c;
|
|
77
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
+
finally {
|
|
82
|
+
try {
|
|
83
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
+
}
|
|
85
|
+
finally { if (e_1) throw e_1.error; }
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Gets a list of Appliances in the specified subscription. The operation returns properties of each
|
|
91
|
+
* Appliance
|
|
92
|
+
* @param options The options parameters.
|
|
93
|
+
*/
|
|
94
|
+
listBySubscription(options) {
|
|
95
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
96
|
+
return {
|
|
97
|
+
next() {
|
|
98
|
+
return iter.next();
|
|
99
|
+
},
|
|
100
|
+
[Symbol.asyncIterator]() {
|
|
101
|
+
return this;
|
|
102
|
+
},
|
|
103
|
+
byPage: (settings) => {
|
|
104
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
105
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
|
+
}
|
|
107
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
112
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
113
|
+
let result;
|
|
114
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
115
|
+
if (!continuationToken) {
|
|
116
|
+
result = yield tslib_1.__await(this._listBySubscription(options));
|
|
117
|
+
let page = result.value || [];
|
|
118
|
+
continuationToken = result.nextLink;
|
|
119
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
120
|
+
yield yield tslib_1.__await(page);
|
|
121
|
+
}
|
|
122
|
+
while (continuationToken) {
|
|
123
|
+
result = yield tslib_1.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
124
|
+
continuationToken = result.nextLink;
|
|
125
|
+
let page = result.value || [];
|
|
126
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
127
|
+
yield yield tslib_1.__await(page);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
listBySubscriptionPagingAll(options) {
|
|
132
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
133
|
+
var _a, e_2, _b, _c;
|
|
134
|
+
try {
|
|
135
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
136
|
+
_c = _f.value;
|
|
137
|
+
_d = false;
|
|
138
|
+
const page = _c;
|
|
139
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
+
finally {
|
|
144
|
+
try {
|
|
145
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
146
|
+
}
|
|
147
|
+
finally { if (e_2) throw e_2.error; }
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Gets a list of Appliances in the specified subscription and resource group. The operation returns
|
|
153
|
+
* properties of each Appliance.
|
|
154
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
155
|
+
* @param options The options parameters.
|
|
156
|
+
*/
|
|
157
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
158
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
159
|
+
return {
|
|
160
|
+
next() {
|
|
161
|
+
return iter.next();
|
|
162
|
+
},
|
|
163
|
+
[Symbol.asyncIterator]() {
|
|
164
|
+
return this;
|
|
165
|
+
},
|
|
166
|
+
byPage: (settings) => {
|
|
167
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
168
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
169
|
+
}
|
|
170
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
175
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
176
|
+
let result;
|
|
177
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
178
|
+
if (!continuationToken) {
|
|
179
|
+
result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
180
|
+
let page = result.value || [];
|
|
181
|
+
continuationToken = result.nextLink;
|
|
182
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
183
|
+
yield yield tslib_1.__await(page);
|
|
184
|
+
}
|
|
185
|
+
while (continuationToken) {
|
|
186
|
+
result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
187
|
+
continuationToken = result.nextLink;
|
|
188
|
+
let page = result.value || [];
|
|
189
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
190
|
+
yield yield tslib_1.__await(page);
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
195
|
+
return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
196
|
+
var _a, e_3, _b, _c;
|
|
197
|
+
try {
|
|
198
|
+
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
199
|
+
_c = _f.value;
|
|
200
|
+
_d = false;
|
|
201
|
+
const page = _c;
|
|
202
|
+
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
206
|
+
finally {
|
|
207
|
+
try {
|
|
208
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
209
|
+
}
|
|
210
|
+
finally { if (e_3) throw e_3.error; }
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Lists all available Appliances operations.
|
|
216
|
+
* @param options The options parameters.
|
|
217
|
+
*/
|
|
218
|
+
_listOperations(options) {
|
|
219
|
+
return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Gets a list of Appliances in the specified subscription. The operation returns properties of each
|
|
223
|
+
* Appliance
|
|
224
|
+
* @param options The options parameters.
|
|
225
|
+
*/
|
|
226
|
+
_listBySubscription(options) {
|
|
227
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Gets the telemetry config.
|
|
231
|
+
* @param options The options parameters.
|
|
232
|
+
*/
|
|
233
|
+
getTelemetryConfig(options) {
|
|
234
|
+
return this.client.sendOperationRequest({ options }, getTelemetryConfigOperationSpec);
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Gets a list of Appliances in the specified subscription and resource group. The operation returns
|
|
238
|
+
* properties of each Appliance.
|
|
239
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
240
|
+
* @param options The options parameters.
|
|
241
|
+
*/
|
|
242
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
243
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Gets the details of an Appliance with a specified resource group and name.
|
|
247
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
248
|
+
* @param resourceName Appliances name.
|
|
249
|
+
* @param options The options parameters.
|
|
250
|
+
*/
|
|
251
|
+
get(resourceGroupName, resourceName, options) {
|
|
252
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec);
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Creates or updates an Appliance in the specified Subscription and Resource Group.
|
|
256
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
257
|
+
* @param resourceName Appliances name.
|
|
258
|
+
* @param parameters Parameters supplied to create or update an Appliance.
|
|
259
|
+
* @param options The options parameters.
|
|
260
|
+
*/
|
|
261
|
+
async beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options) {
|
|
262
|
+
const directSendOperation = async (args, spec) => {
|
|
263
|
+
return this.client.sendOperationRequest(args, spec);
|
|
264
|
+
};
|
|
265
|
+
const sendOperationFn = async (args, spec) => {
|
|
266
|
+
var _a;
|
|
267
|
+
let currentRawResponse = undefined;
|
|
268
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
269
|
+
const callback = (rawResponse, flatResponse) => {
|
|
270
|
+
currentRawResponse = rawResponse;
|
|
271
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
272
|
+
};
|
|
273
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
274
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
275
|
+
return {
|
|
276
|
+
flatResponse,
|
|
277
|
+
rawResponse: {
|
|
278
|
+
statusCode: currentRawResponse.status,
|
|
279
|
+
body: currentRawResponse.parsedBody,
|
|
280
|
+
headers: currentRawResponse.headers.toJSON()
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
285
|
+
sendOperationFn,
|
|
286
|
+
args: { resourceGroupName, resourceName, parameters, options },
|
|
287
|
+
spec: createOrUpdateOperationSpec
|
|
288
|
+
});
|
|
289
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
290
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
291
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
292
|
+
resourceLocationConfig: "azure-async-operation"
|
|
293
|
+
});
|
|
294
|
+
await poller.poll();
|
|
295
|
+
return poller;
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Creates or updates an Appliance in the specified Subscription and Resource Group.
|
|
299
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
300
|
+
* @param resourceName Appliances name.
|
|
301
|
+
* @param parameters Parameters supplied to create or update an Appliance.
|
|
302
|
+
* @param options The options parameters.
|
|
303
|
+
*/
|
|
304
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, resourceName, parameters, options) {
|
|
305
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, resourceName, parameters, options);
|
|
306
|
+
return poller.pollUntilDone();
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
|
|
310
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
311
|
+
* @param resourceName Appliances name.
|
|
312
|
+
* @param options The options parameters.
|
|
313
|
+
*/
|
|
314
|
+
async beginDelete(resourceGroupName, resourceName, options) {
|
|
315
|
+
const directSendOperation = async (args, spec) => {
|
|
316
|
+
return this.client.sendOperationRequest(args, spec);
|
|
317
|
+
};
|
|
318
|
+
const sendOperationFn = async (args, spec) => {
|
|
319
|
+
var _a;
|
|
320
|
+
let currentRawResponse = undefined;
|
|
321
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
322
|
+
const callback = (rawResponse, flatResponse) => {
|
|
323
|
+
currentRawResponse = rawResponse;
|
|
324
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
325
|
+
};
|
|
326
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
327
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
328
|
+
return {
|
|
329
|
+
flatResponse,
|
|
330
|
+
rawResponse: {
|
|
331
|
+
statusCode: currentRawResponse.status,
|
|
332
|
+
body: currentRawResponse.parsedBody,
|
|
333
|
+
headers: currentRawResponse.headers.toJSON()
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
const lro = (0, lroImpl_js_1.createLroSpec)({
|
|
338
|
+
sendOperationFn,
|
|
339
|
+
args: { resourceGroupName, resourceName, options },
|
|
340
|
+
spec: deleteOperationSpec
|
|
341
|
+
});
|
|
342
|
+
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
343
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
344
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
345
|
+
resourceLocationConfig: "azure-async-operation"
|
|
346
|
+
});
|
|
347
|
+
await poller.poll();
|
|
348
|
+
return poller;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
|
|
352
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
353
|
+
* @param resourceName Appliances name.
|
|
354
|
+
* @param options The options parameters.
|
|
355
|
+
*/
|
|
356
|
+
async beginDeleteAndWait(resourceGroupName, resourceName, options) {
|
|
357
|
+
const poller = await this.beginDelete(resourceGroupName, resourceName, options);
|
|
358
|
+
return poller.pollUntilDone();
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Updates an Appliance with the specified Resource Name in the specified Resource Group and
|
|
362
|
+
* Subscription.
|
|
363
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
364
|
+
* @param resourceName Appliances name.
|
|
365
|
+
* @param options The options parameters.
|
|
366
|
+
*/
|
|
367
|
+
update(resourceGroupName, resourceName, options) {
|
|
368
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec);
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Returns the cluster user credentials for the dedicated appliance.
|
|
372
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
373
|
+
* @param resourceName Appliances name.
|
|
374
|
+
* @param options The options parameters.
|
|
375
|
+
*/
|
|
376
|
+
listClusterUserCredential(resourceGroupName, resourceName, options) {
|
|
377
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listClusterUserCredentialOperationSpec);
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* Returns the cluster customer credentials for the dedicated appliance.
|
|
381
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
382
|
+
* @param resourceName Appliances name.
|
|
383
|
+
* @param options The options parameters.
|
|
384
|
+
*/
|
|
385
|
+
listKeys(resourceGroupName, resourceName, options) {
|
|
386
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listKeysOperationSpec);
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Gets the upgrade graph of an Appliance with a specified resource group and name and specific release
|
|
390
|
+
* train.
|
|
391
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
392
|
+
* @param resourceName Appliances name.
|
|
393
|
+
* @param upgradeGraph Upgrade graph version, ex - stable
|
|
394
|
+
* @param options The options parameters.
|
|
395
|
+
*/
|
|
396
|
+
getUpgradeGraph(resourceGroupName, resourceName, upgradeGraph, options) {
|
|
397
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, upgradeGraph, options }, getUpgradeGraphOperationSpec);
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* ListOperationsNext
|
|
401
|
+
* @param nextLink The nextLink from the previous successful call to the ListOperations method.
|
|
402
|
+
* @param options The options parameters.
|
|
403
|
+
*/
|
|
404
|
+
_listOperationsNext(nextLink, options) {
|
|
405
|
+
return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* ListBySubscriptionNext
|
|
409
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
410
|
+
* @param options The options parameters.
|
|
411
|
+
*/
|
|
412
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
413
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
414
|
+
}
|
|
415
|
+
/**
|
|
416
|
+
* ListByResourceGroupNext
|
|
417
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
418
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
419
|
+
* @param options The options parameters.
|
|
420
|
+
*/
|
|
421
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
422
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
exports.AppliancesImpl = AppliancesImpl;
|
|
426
|
+
// Operation Specifications
|
|
427
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
428
|
+
const listOperationsOperationSpec = {
|
|
429
|
+
path: "/providers/Microsoft.ResourceConnector/operations",
|
|
430
|
+
httpMethod: "GET",
|
|
431
|
+
responses: {
|
|
432
|
+
200: {
|
|
433
|
+
bodyMapper: Mappers.ApplianceOperationsList
|
|
434
|
+
},
|
|
435
|
+
default: {
|
|
436
|
+
bodyMapper: Mappers.ErrorResponse
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
queryParameters: [Parameters.apiVersion],
|
|
440
|
+
urlParameters: [Parameters.$host],
|
|
441
|
+
headerParameters: [Parameters.accept],
|
|
442
|
+
serializer
|
|
443
|
+
};
|
|
444
|
+
const listBySubscriptionOperationSpec = {
|
|
445
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/appliances",
|
|
446
|
+
httpMethod: "GET",
|
|
447
|
+
responses: {
|
|
448
|
+
200: {
|
|
449
|
+
bodyMapper: Mappers.ApplianceListResult
|
|
450
|
+
},
|
|
451
|
+
default: {
|
|
452
|
+
bodyMapper: Mappers.ErrorResponse
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
queryParameters: [Parameters.apiVersion],
|
|
456
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
457
|
+
headerParameters: [Parameters.accept],
|
|
458
|
+
serializer
|
|
459
|
+
};
|
|
460
|
+
const getTelemetryConfigOperationSpec = {
|
|
461
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.ResourceConnector/telemetryconfig",
|
|
462
|
+
httpMethod: "GET",
|
|
463
|
+
responses: {
|
|
464
|
+
200: {
|
|
465
|
+
bodyMapper: Mappers.ApplianceGetTelemetryConfigResult
|
|
466
|
+
},
|
|
467
|
+
default: {
|
|
468
|
+
bodyMapper: Mappers.ErrorResponse
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
queryParameters: [Parameters.apiVersion],
|
|
472
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
473
|
+
headerParameters: [Parameters.accept],
|
|
474
|
+
serializer
|
|
475
|
+
};
|
|
476
|
+
const listByResourceGroupOperationSpec = {
|
|
477
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances",
|
|
478
|
+
httpMethod: "GET",
|
|
479
|
+
responses: {
|
|
480
|
+
200: {
|
|
481
|
+
bodyMapper: Mappers.ApplianceListResult
|
|
482
|
+
},
|
|
483
|
+
default: {
|
|
484
|
+
bodyMapper: Mappers.ErrorResponse
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
queryParameters: [Parameters.apiVersion],
|
|
488
|
+
urlParameters: [
|
|
489
|
+
Parameters.$host,
|
|
490
|
+
Parameters.subscriptionId,
|
|
491
|
+
Parameters.resourceGroupName
|
|
492
|
+
],
|
|
493
|
+
headerParameters: [Parameters.accept],
|
|
494
|
+
serializer
|
|
495
|
+
};
|
|
496
|
+
const getOperationSpec = {
|
|
497
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
|
|
498
|
+
httpMethod: "GET",
|
|
499
|
+
responses: {
|
|
500
|
+
200: {
|
|
501
|
+
bodyMapper: Mappers.Appliance
|
|
502
|
+
},
|
|
503
|
+
default: {
|
|
504
|
+
bodyMapper: Mappers.ErrorResponse
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
queryParameters: [Parameters.apiVersion],
|
|
508
|
+
urlParameters: [
|
|
509
|
+
Parameters.$host,
|
|
510
|
+
Parameters.subscriptionId,
|
|
511
|
+
Parameters.resourceGroupName,
|
|
512
|
+
Parameters.resourceName
|
|
513
|
+
],
|
|
514
|
+
headerParameters: [Parameters.accept],
|
|
515
|
+
serializer
|
|
516
|
+
};
|
|
517
|
+
const createOrUpdateOperationSpec = {
|
|
518
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
|
|
519
|
+
httpMethod: "PUT",
|
|
520
|
+
responses: {
|
|
521
|
+
200: {
|
|
522
|
+
bodyMapper: Mappers.Appliance
|
|
523
|
+
},
|
|
524
|
+
201: {
|
|
525
|
+
bodyMapper: Mappers.Appliance
|
|
526
|
+
},
|
|
527
|
+
202: {
|
|
528
|
+
bodyMapper: Mappers.Appliance
|
|
529
|
+
},
|
|
530
|
+
204: {
|
|
531
|
+
bodyMapper: Mappers.Appliance
|
|
532
|
+
},
|
|
533
|
+
default: {
|
|
534
|
+
bodyMapper: Mappers.ErrorResponse
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
requestBody: Parameters.parameters,
|
|
538
|
+
queryParameters: [Parameters.apiVersion],
|
|
539
|
+
urlParameters: [
|
|
540
|
+
Parameters.$host,
|
|
541
|
+
Parameters.subscriptionId,
|
|
542
|
+
Parameters.resourceGroupName,
|
|
543
|
+
Parameters.resourceName
|
|
544
|
+
],
|
|
545
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
546
|
+
mediaType: "json",
|
|
547
|
+
serializer
|
|
548
|
+
};
|
|
549
|
+
const deleteOperationSpec = {
|
|
550
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
|
|
551
|
+
httpMethod: "DELETE",
|
|
552
|
+
responses: {
|
|
553
|
+
200: {},
|
|
554
|
+
201: {},
|
|
555
|
+
202: {},
|
|
556
|
+
204: {},
|
|
557
|
+
default: {
|
|
558
|
+
bodyMapper: Mappers.ErrorResponse
|
|
559
|
+
}
|
|
560
|
+
},
|
|
561
|
+
queryParameters: [Parameters.apiVersion],
|
|
562
|
+
urlParameters: [
|
|
563
|
+
Parameters.$host,
|
|
564
|
+
Parameters.subscriptionId,
|
|
565
|
+
Parameters.resourceGroupName,
|
|
566
|
+
Parameters.resourceName
|
|
567
|
+
],
|
|
568
|
+
headerParameters: [Parameters.accept],
|
|
569
|
+
serializer
|
|
570
|
+
};
|
|
571
|
+
const updateOperationSpec = {
|
|
572
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}",
|
|
573
|
+
httpMethod: "PATCH",
|
|
574
|
+
responses: {
|
|
575
|
+
200: {
|
|
576
|
+
bodyMapper: Mappers.Appliance
|
|
577
|
+
},
|
|
578
|
+
default: {
|
|
579
|
+
bodyMapper: Mappers.ErrorResponse
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
requestBody: {
|
|
583
|
+
parameterPath: { tags: ["options", "tags"] },
|
|
584
|
+
mapper: Object.assign(Object.assign({}, Mappers.PatchableAppliance), { required: true })
|
|
585
|
+
},
|
|
586
|
+
queryParameters: [Parameters.apiVersion],
|
|
587
|
+
urlParameters: [
|
|
588
|
+
Parameters.$host,
|
|
589
|
+
Parameters.subscriptionId,
|
|
590
|
+
Parameters.resourceGroupName,
|
|
591
|
+
Parameters.resourceName
|
|
592
|
+
],
|
|
593
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
594
|
+
mediaType: "json",
|
|
595
|
+
serializer
|
|
596
|
+
};
|
|
597
|
+
const listClusterUserCredentialOperationSpec = {
|
|
598
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listClusterUserCredential",
|
|
599
|
+
httpMethod: "POST",
|
|
600
|
+
responses: {
|
|
601
|
+
200: {
|
|
602
|
+
bodyMapper: Mappers.ApplianceListCredentialResults
|
|
603
|
+
},
|
|
604
|
+
default: {
|
|
605
|
+
bodyMapper: Mappers.ErrorResponse
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
queryParameters: [Parameters.apiVersion],
|
|
609
|
+
urlParameters: [
|
|
610
|
+
Parameters.$host,
|
|
611
|
+
Parameters.subscriptionId,
|
|
612
|
+
Parameters.resourceGroupName,
|
|
613
|
+
Parameters.resourceName
|
|
614
|
+
],
|
|
615
|
+
headerParameters: [Parameters.accept],
|
|
616
|
+
serializer
|
|
617
|
+
};
|
|
618
|
+
const listKeysOperationSpec = {
|
|
619
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/listkeys",
|
|
620
|
+
httpMethod: "POST",
|
|
621
|
+
responses: {
|
|
622
|
+
200: {
|
|
623
|
+
bodyMapper: Mappers.ApplianceListKeysResults
|
|
624
|
+
},
|
|
625
|
+
default: {
|
|
626
|
+
bodyMapper: Mappers.ErrorResponse
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
queryParameters: [Parameters.apiVersion],
|
|
630
|
+
urlParameters: [
|
|
631
|
+
Parameters.$host,
|
|
632
|
+
Parameters.subscriptionId,
|
|
633
|
+
Parameters.resourceGroupName,
|
|
634
|
+
Parameters.resourceName
|
|
635
|
+
],
|
|
636
|
+
headerParameters: [Parameters.accept],
|
|
637
|
+
serializer
|
|
638
|
+
};
|
|
639
|
+
const getUpgradeGraphOperationSpec = {
|
|
640
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceConnector/appliances/{resourceName}/upgradeGraphs/{upgradeGraph}",
|
|
641
|
+
httpMethod: "GET",
|
|
642
|
+
responses: {
|
|
643
|
+
200: {
|
|
644
|
+
bodyMapper: Mappers.UpgradeGraph
|
|
645
|
+
},
|
|
646
|
+
default: {
|
|
647
|
+
bodyMapper: Mappers.ErrorResponse
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
queryParameters: [Parameters.apiVersion],
|
|
651
|
+
urlParameters: [
|
|
652
|
+
Parameters.$host,
|
|
653
|
+
Parameters.subscriptionId,
|
|
654
|
+
Parameters.resourceGroupName,
|
|
655
|
+
Parameters.resourceName,
|
|
656
|
+
Parameters.upgradeGraph
|
|
657
|
+
],
|
|
658
|
+
headerParameters: [Parameters.accept],
|
|
659
|
+
serializer
|
|
660
|
+
};
|
|
661
|
+
const listOperationsNextOperationSpec = {
|
|
662
|
+
path: "{nextLink}",
|
|
663
|
+
httpMethod: "GET",
|
|
664
|
+
responses: {
|
|
665
|
+
200: {
|
|
666
|
+
bodyMapper: Mappers.ApplianceOperationsList
|
|
667
|
+
},
|
|
668
|
+
default: {
|
|
669
|
+
bodyMapper: Mappers.ErrorResponse
|
|
670
|
+
}
|
|
671
|
+
},
|
|
672
|
+
urlParameters: [Parameters.$host, Parameters.nextLink],
|
|
673
|
+
headerParameters: [Parameters.accept],
|
|
674
|
+
serializer
|
|
675
|
+
};
|
|
676
|
+
const listBySubscriptionNextOperationSpec = {
|
|
677
|
+
path: "{nextLink}",
|
|
678
|
+
httpMethod: "GET",
|
|
679
|
+
responses: {
|
|
680
|
+
200: {
|
|
681
|
+
bodyMapper: Mappers.ApplianceListResult
|
|
682
|
+
},
|
|
683
|
+
default: {
|
|
684
|
+
bodyMapper: Mappers.ErrorResponse
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
urlParameters: [
|
|
688
|
+
Parameters.$host,
|
|
689
|
+
Parameters.subscriptionId,
|
|
690
|
+
Parameters.nextLink
|
|
691
|
+
],
|
|
692
|
+
headerParameters: [Parameters.accept],
|
|
693
|
+
serializer
|
|
694
|
+
};
|
|
695
|
+
const listByResourceGroupNextOperationSpec = {
|
|
696
|
+
path: "{nextLink}",
|
|
697
|
+
httpMethod: "GET",
|
|
698
|
+
responses: {
|
|
699
|
+
200: {
|
|
700
|
+
bodyMapper: Mappers.ApplianceListResult
|
|
701
|
+
},
|
|
702
|
+
default: {
|
|
703
|
+
bodyMapper: Mappers.ErrorResponse
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
urlParameters: [
|
|
707
|
+
Parameters.$host,
|
|
708
|
+
Parameters.subscriptionId,
|
|
709
|
+
Parameters.resourceGroupName,
|
|
710
|
+
Parameters.nextLink
|
|
711
|
+
],
|
|
712
|
+
headerParameters: [Parameters.accept],
|
|
713
|
+
serializer
|
|
714
|
+
};
|
|
715
|
+
//# sourceMappingURL=appliances.js.map
|