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