@azure/arm-azurestackhci 1.1.1 → 2.0.1-alpha.20220119.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 +21 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +2369 -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/src/azureStackHCIClient.d.ts +21 -0
- package/dist-esm/src/azureStackHCIClient.d.ts.map +1 -0
- package/dist-esm/src/azureStackHCIClient.js +54 -0
- package/dist-esm/src/azureStackHCIClient.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 +864 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +135 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +23 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +881 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +16 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +137 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/arcSettings.d.ts +72 -0
- package/dist-esm/src/operations/arcSettings.d.ts.map +1 -0
- package/dist-esm/src/operations/arcSettings.js +281 -0
- package/dist-esm/src/operations/arcSettings.js.map +1 -0
- package/dist-esm/src/operations/clusters.d.ts +83 -0
- package/dist-esm/src/operations/clusters.d.ts.map +1 -0
- package/dist-esm/src/operations/clusters.js +356 -0
- package/dist-esm/src/operations/clusters.js.map +1 -0
- package/dist-esm/src/operations/extensions.d.ts +109 -0
- package/dist-esm/src/operations/extensions.d.ts.map +1 -0
- package/dist-esm/src/operations/extensions.js +462 -0
- package/dist-esm/src/operations/extensions.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +5 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +12 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.js +9 -0
- package/dist-esm/src/operationsInterfaces/arcSettings.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/clusters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/clusters.js +9 -0
- package/dist-esm/src/operationsInterfaces/clusters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/extensions.js +9 -0
- package/dist-esm/src/operationsInterfaces/extensions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -22
- package/review/arm-azurestackhci.api.md +650 -0
- package/rollup.config.js +181 -30
- package/src/azureStackHCIClient.ts +78 -37
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +775 -366
- package/src/models/mappers.ts +635 -239
- package/src/models/parameters.ts +112 -35
- package/src/operations/arcSettings.ts +394 -0
- package/src/operations/clusters.ts +279 -309
- package/src/operations/extensions.ts +672 -0
- package/src/operations/index.ts +6 -6
- package/src/operations/operations.ts +30 -45
- package/src/operationsInterfaces/arcSettings.ts +89 -0
- package/src/operationsInterfaces/clusters.ts +91 -0
- package/src/operationsInterfaces/extensions.ts +162 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/tsconfig.json +3 -3
- package/types/arm-azurestackhci.d.ts +1146 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-azurestackhci.js +0 -1151
- package/dist/arm-azurestackhci.js.map +0 -1
- package/dist/arm-azurestackhci.min.js +0 -1
- package/dist/arm-azurestackhci.min.js.map +0 -1
- package/esm/azureStackHCIClient.d.ts +0 -25
- package/esm/azureStackHCIClient.d.ts.map +0 -1
- package/esm/azureStackHCIClient.js +0 -39
- package/esm/azureStackHCIClient.js.map +0 -1
- package/esm/azureStackHCIClientContext.d.ts +0 -22
- package/esm/azureStackHCIClientContext.d.ts.map +0 -1
- package/esm/azureStackHCIClientContext.js +0 -61
- package/esm/azureStackHCIClientContext.js.map +0 -1
- package/esm/models/clustersMappers.d.ts +0 -2
- package/esm/models/clustersMappers.d.ts.map +0 -1
- package/esm/models/clustersMappers.js +0 -9
- package/esm/models/clustersMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -509
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -19
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -527
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -8
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -82
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/clusters.d.ts +0 -169
- package/esm/operations/clusters.d.ts.map +0 -1
- package/esm/operations/clusters.js +0 -273
- package/esm/operations/clusters.js.map +0 -1
- package/esm/operations/index.d.ts +0 -3
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -12
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -51
- package/esm/operations/operations.js.map +0 -1
- package/src/azureStackHCIClientContext.ts +0 -68
- package/src/models/clustersMappers.ts +0 -23
- package/src/models/operationsMappers.ts +0 -16
package/dist/index.js
ADDED
|
@@ -0,0 +1,2369 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
var coreLro = require('@azure/core-lro');
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright (c) Microsoft Corporation.
|
|
11
|
+
* Licensed under the MIT License.
|
|
12
|
+
*
|
|
13
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
14
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
15
|
+
*/
|
|
16
|
+
(function (KnownCreatedByType) {
|
|
17
|
+
KnownCreatedByType["User"] = "User";
|
|
18
|
+
KnownCreatedByType["Application"] = "Application";
|
|
19
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
20
|
+
KnownCreatedByType["Key"] = "Key";
|
|
21
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
22
|
+
(function (KnownProvisioningState) {
|
|
23
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
24
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
25
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
26
|
+
KnownProvisioningState["Accepted"] = "Accepted";
|
|
27
|
+
KnownProvisioningState["Provisioning"] = "Provisioning";
|
|
28
|
+
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
29
|
+
(function (KnownArcSettingAggregateState) {
|
|
30
|
+
KnownArcSettingAggregateState["NotSpecified"] = "NotSpecified";
|
|
31
|
+
KnownArcSettingAggregateState["Error"] = "Error";
|
|
32
|
+
KnownArcSettingAggregateState["Succeeded"] = "Succeeded";
|
|
33
|
+
KnownArcSettingAggregateState["Canceled"] = "Canceled";
|
|
34
|
+
KnownArcSettingAggregateState["Failed"] = "Failed";
|
|
35
|
+
KnownArcSettingAggregateState["Connected"] = "Connected";
|
|
36
|
+
KnownArcSettingAggregateState["Disconnected"] = "Disconnected";
|
|
37
|
+
KnownArcSettingAggregateState["Deleted"] = "Deleted";
|
|
38
|
+
KnownArcSettingAggregateState["Creating"] = "Creating";
|
|
39
|
+
KnownArcSettingAggregateState["Updating"] = "Updating";
|
|
40
|
+
KnownArcSettingAggregateState["Deleting"] = "Deleting";
|
|
41
|
+
KnownArcSettingAggregateState["Moving"] = "Moving";
|
|
42
|
+
KnownArcSettingAggregateState["PartiallySucceeded"] = "PartiallySucceeded";
|
|
43
|
+
KnownArcSettingAggregateState["PartiallyConnected"] = "PartiallyConnected";
|
|
44
|
+
KnownArcSettingAggregateState["InProgress"] = "InProgress";
|
|
45
|
+
})(exports.KnownArcSettingAggregateState || (exports.KnownArcSettingAggregateState = {}));
|
|
46
|
+
(function (KnownNodeArcState) {
|
|
47
|
+
KnownNodeArcState["NotSpecified"] = "NotSpecified";
|
|
48
|
+
KnownNodeArcState["Error"] = "Error";
|
|
49
|
+
KnownNodeArcState["Succeeded"] = "Succeeded";
|
|
50
|
+
KnownNodeArcState["Canceled"] = "Canceled";
|
|
51
|
+
KnownNodeArcState["Failed"] = "Failed";
|
|
52
|
+
KnownNodeArcState["Connected"] = "Connected";
|
|
53
|
+
KnownNodeArcState["Disconnected"] = "Disconnected";
|
|
54
|
+
KnownNodeArcState["Deleted"] = "Deleted";
|
|
55
|
+
KnownNodeArcState["Creating"] = "Creating";
|
|
56
|
+
KnownNodeArcState["Updating"] = "Updating";
|
|
57
|
+
KnownNodeArcState["Deleting"] = "Deleting";
|
|
58
|
+
KnownNodeArcState["Moving"] = "Moving";
|
|
59
|
+
})(exports.KnownNodeArcState || (exports.KnownNodeArcState = {}));
|
|
60
|
+
(function (KnownStatus) {
|
|
61
|
+
KnownStatus["NotYetRegistered"] = "NotYetRegistered";
|
|
62
|
+
KnownStatus["ConnectedRecently"] = "ConnectedRecently";
|
|
63
|
+
KnownStatus["NotConnectedRecently"] = "NotConnectedRecently";
|
|
64
|
+
KnownStatus["Disconnected"] = "Disconnected";
|
|
65
|
+
KnownStatus["Error"] = "Error";
|
|
66
|
+
})(exports.KnownStatus || (exports.KnownStatus = {}));
|
|
67
|
+
(function (KnownWindowsServerSubscription) {
|
|
68
|
+
KnownWindowsServerSubscription["Disabled"] = "Disabled";
|
|
69
|
+
KnownWindowsServerSubscription["Enabled"] = "Enabled";
|
|
70
|
+
})(exports.KnownWindowsServerSubscription || (exports.KnownWindowsServerSubscription = {}));
|
|
71
|
+
(function (KnownDiagnosticLevel) {
|
|
72
|
+
KnownDiagnosticLevel["Off"] = "Off";
|
|
73
|
+
KnownDiagnosticLevel["Basic"] = "Basic";
|
|
74
|
+
KnownDiagnosticLevel["Enhanced"] = "Enhanced";
|
|
75
|
+
})(exports.KnownDiagnosticLevel || (exports.KnownDiagnosticLevel = {}));
|
|
76
|
+
(function (KnownImdsAttestation) {
|
|
77
|
+
KnownImdsAttestation["Disabled"] = "Disabled";
|
|
78
|
+
KnownImdsAttestation["Enabled"] = "Enabled";
|
|
79
|
+
})(exports.KnownImdsAttestation || (exports.KnownImdsAttestation = {}));
|
|
80
|
+
(function (KnownExtensionAggregateState) {
|
|
81
|
+
KnownExtensionAggregateState["NotSpecified"] = "NotSpecified";
|
|
82
|
+
KnownExtensionAggregateState["Error"] = "Error";
|
|
83
|
+
KnownExtensionAggregateState["Succeeded"] = "Succeeded";
|
|
84
|
+
KnownExtensionAggregateState["Canceled"] = "Canceled";
|
|
85
|
+
KnownExtensionAggregateState["Failed"] = "Failed";
|
|
86
|
+
KnownExtensionAggregateState["Connected"] = "Connected";
|
|
87
|
+
KnownExtensionAggregateState["Disconnected"] = "Disconnected";
|
|
88
|
+
KnownExtensionAggregateState["Deleted"] = "Deleted";
|
|
89
|
+
KnownExtensionAggregateState["Creating"] = "Creating";
|
|
90
|
+
KnownExtensionAggregateState["Updating"] = "Updating";
|
|
91
|
+
KnownExtensionAggregateState["Deleting"] = "Deleting";
|
|
92
|
+
KnownExtensionAggregateState["Moving"] = "Moving";
|
|
93
|
+
KnownExtensionAggregateState["PartiallySucceeded"] = "PartiallySucceeded";
|
|
94
|
+
KnownExtensionAggregateState["PartiallyConnected"] = "PartiallyConnected";
|
|
95
|
+
KnownExtensionAggregateState["InProgress"] = "InProgress";
|
|
96
|
+
})(exports.KnownExtensionAggregateState || (exports.KnownExtensionAggregateState = {}));
|
|
97
|
+
(function (KnownNodeExtensionState) {
|
|
98
|
+
KnownNodeExtensionState["NotSpecified"] = "NotSpecified";
|
|
99
|
+
KnownNodeExtensionState["Error"] = "Error";
|
|
100
|
+
KnownNodeExtensionState["Succeeded"] = "Succeeded";
|
|
101
|
+
KnownNodeExtensionState["Canceled"] = "Canceled";
|
|
102
|
+
KnownNodeExtensionState["Failed"] = "Failed";
|
|
103
|
+
KnownNodeExtensionState["Connected"] = "Connected";
|
|
104
|
+
KnownNodeExtensionState["Disconnected"] = "Disconnected";
|
|
105
|
+
KnownNodeExtensionState["Deleted"] = "Deleted";
|
|
106
|
+
KnownNodeExtensionState["Creating"] = "Creating";
|
|
107
|
+
KnownNodeExtensionState["Updating"] = "Updating";
|
|
108
|
+
KnownNodeExtensionState["Deleting"] = "Deleting";
|
|
109
|
+
KnownNodeExtensionState["Moving"] = "Moving";
|
|
110
|
+
})(exports.KnownNodeExtensionState || (exports.KnownNodeExtensionState = {}));
|
|
111
|
+
(function (KnownOrigin) {
|
|
112
|
+
KnownOrigin["User"] = "user";
|
|
113
|
+
KnownOrigin["System"] = "system";
|
|
114
|
+
KnownOrigin["UserSystem"] = "user,system";
|
|
115
|
+
})(exports.KnownOrigin || (exports.KnownOrigin = {}));
|
|
116
|
+
(function (KnownActionType) {
|
|
117
|
+
KnownActionType["Internal"] = "Internal";
|
|
118
|
+
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
119
|
+
|
|
120
|
+
/*
|
|
121
|
+
* Copyright (c) Microsoft Corporation.
|
|
122
|
+
* Licensed under the MIT License.
|
|
123
|
+
*
|
|
124
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
125
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
126
|
+
*/
|
|
127
|
+
const ArcSettingList = {
|
|
128
|
+
type: {
|
|
129
|
+
name: "Composite",
|
|
130
|
+
className: "ArcSettingList",
|
|
131
|
+
modelProperties: {
|
|
132
|
+
value: {
|
|
133
|
+
serializedName: "value",
|
|
134
|
+
readOnly: true,
|
|
135
|
+
type: {
|
|
136
|
+
name: "Sequence",
|
|
137
|
+
element: {
|
|
138
|
+
type: {
|
|
139
|
+
name: "Composite",
|
|
140
|
+
className: "ArcSetting"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
nextLink: {
|
|
146
|
+
serializedName: "nextLink",
|
|
147
|
+
readOnly: true,
|
|
148
|
+
type: {
|
|
149
|
+
name: "String"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
const PerNodeState = {
|
|
156
|
+
type: {
|
|
157
|
+
name: "Composite",
|
|
158
|
+
className: "PerNodeState",
|
|
159
|
+
modelProperties: {
|
|
160
|
+
name: {
|
|
161
|
+
serializedName: "name",
|
|
162
|
+
readOnly: true,
|
|
163
|
+
type: {
|
|
164
|
+
name: "String"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
arcInstance: {
|
|
168
|
+
serializedName: "arcInstance",
|
|
169
|
+
readOnly: true,
|
|
170
|
+
type: {
|
|
171
|
+
name: "String"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
state: {
|
|
175
|
+
serializedName: "state",
|
|
176
|
+
readOnly: true,
|
|
177
|
+
type: {
|
|
178
|
+
name: "String"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
const Resource = {
|
|
185
|
+
type: {
|
|
186
|
+
name: "Composite",
|
|
187
|
+
className: "Resource",
|
|
188
|
+
modelProperties: {
|
|
189
|
+
id: {
|
|
190
|
+
serializedName: "id",
|
|
191
|
+
readOnly: true,
|
|
192
|
+
type: {
|
|
193
|
+
name: "String"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
name: {
|
|
197
|
+
serializedName: "name",
|
|
198
|
+
readOnly: true,
|
|
199
|
+
type: {
|
|
200
|
+
name: "String"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
type: {
|
|
204
|
+
serializedName: "type",
|
|
205
|
+
readOnly: true,
|
|
206
|
+
type: {
|
|
207
|
+
name: "String"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
const ErrorResponse = {
|
|
214
|
+
type: {
|
|
215
|
+
name: "Composite",
|
|
216
|
+
className: "ErrorResponse",
|
|
217
|
+
modelProperties: {
|
|
218
|
+
error: {
|
|
219
|
+
serializedName: "error",
|
|
220
|
+
type: {
|
|
221
|
+
name: "Composite",
|
|
222
|
+
className: "ErrorDetail"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
};
|
|
228
|
+
const ErrorDetail = {
|
|
229
|
+
type: {
|
|
230
|
+
name: "Composite",
|
|
231
|
+
className: "ErrorDetail",
|
|
232
|
+
modelProperties: {
|
|
233
|
+
code: {
|
|
234
|
+
serializedName: "code",
|
|
235
|
+
readOnly: true,
|
|
236
|
+
type: {
|
|
237
|
+
name: "String"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
message: {
|
|
241
|
+
serializedName: "message",
|
|
242
|
+
readOnly: true,
|
|
243
|
+
type: {
|
|
244
|
+
name: "String"
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
target: {
|
|
248
|
+
serializedName: "target",
|
|
249
|
+
readOnly: true,
|
|
250
|
+
type: {
|
|
251
|
+
name: "String"
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
details: {
|
|
255
|
+
serializedName: "details",
|
|
256
|
+
readOnly: true,
|
|
257
|
+
type: {
|
|
258
|
+
name: "Sequence",
|
|
259
|
+
element: {
|
|
260
|
+
type: {
|
|
261
|
+
name: "Composite",
|
|
262
|
+
className: "ErrorDetail"
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
additionalInfo: {
|
|
268
|
+
serializedName: "additionalInfo",
|
|
269
|
+
readOnly: true,
|
|
270
|
+
type: {
|
|
271
|
+
name: "Sequence",
|
|
272
|
+
element: {
|
|
273
|
+
type: {
|
|
274
|
+
name: "Composite",
|
|
275
|
+
className: "ErrorAdditionalInfo"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
const ErrorAdditionalInfo = {
|
|
284
|
+
type: {
|
|
285
|
+
name: "Composite",
|
|
286
|
+
className: "ErrorAdditionalInfo",
|
|
287
|
+
modelProperties: {
|
|
288
|
+
type: {
|
|
289
|
+
serializedName: "type",
|
|
290
|
+
readOnly: true,
|
|
291
|
+
type: {
|
|
292
|
+
name: "String"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
info: {
|
|
296
|
+
serializedName: "info",
|
|
297
|
+
readOnly: true,
|
|
298
|
+
type: {
|
|
299
|
+
name: "Dictionary",
|
|
300
|
+
value: { type: { name: "any" } }
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
const ClusterList = {
|
|
307
|
+
type: {
|
|
308
|
+
name: "Composite",
|
|
309
|
+
className: "ClusterList",
|
|
310
|
+
modelProperties: {
|
|
311
|
+
value: {
|
|
312
|
+
serializedName: "value",
|
|
313
|
+
type: {
|
|
314
|
+
name: "Sequence",
|
|
315
|
+
element: {
|
|
316
|
+
type: {
|
|
317
|
+
name: "Composite",
|
|
318
|
+
className: "Cluster"
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
nextLink: {
|
|
324
|
+
serializedName: "nextLink",
|
|
325
|
+
readOnly: true,
|
|
326
|
+
type: {
|
|
327
|
+
name: "String"
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
const ClusterDesiredProperties = {
|
|
334
|
+
type: {
|
|
335
|
+
name: "Composite",
|
|
336
|
+
className: "ClusterDesiredProperties",
|
|
337
|
+
modelProperties: {
|
|
338
|
+
windowsServerSubscription: {
|
|
339
|
+
serializedName: "windowsServerSubscription",
|
|
340
|
+
type: {
|
|
341
|
+
name: "String"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
diagnosticLevel: {
|
|
345
|
+
serializedName: "diagnosticLevel",
|
|
346
|
+
type: {
|
|
347
|
+
name: "String"
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
const ClusterReportedProperties = {
|
|
354
|
+
type: {
|
|
355
|
+
name: "Composite",
|
|
356
|
+
className: "ClusterReportedProperties",
|
|
357
|
+
modelProperties: {
|
|
358
|
+
clusterName: {
|
|
359
|
+
serializedName: "clusterName",
|
|
360
|
+
readOnly: true,
|
|
361
|
+
type: {
|
|
362
|
+
name: "String"
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
clusterId: {
|
|
366
|
+
serializedName: "clusterId",
|
|
367
|
+
readOnly: true,
|
|
368
|
+
type: {
|
|
369
|
+
name: "String"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
clusterVersion: {
|
|
373
|
+
serializedName: "clusterVersion",
|
|
374
|
+
readOnly: true,
|
|
375
|
+
type: {
|
|
376
|
+
name: "String"
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
nodes: {
|
|
380
|
+
serializedName: "nodes",
|
|
381
|
+
readOnly: true,
|
|
382
|
+
type: {
|
|
383
|
+
name: "Sequence",
|
|
384
|
+
element: {
|
|
385
|
+
type: {
|
|
386
|
+
name: "Composite",
|
|
387
|
+
className: "ClusterNode"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
lastUpdated: {
|
|
393
|
+
serializedName: "lastUpdated",
|
|
394
|
+
readOnly: true,
|
|
395
|
+
type: {
|
|
396
|
+
name: "DateTime"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
imdsAttestation: {
|
|
400
|
+
serializedName: "imdsAttestation",
|
|
401
|
+
readOnly: true,
|
|
402
|
+
type: {
|
|
403
|
+
name: "String"
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
diagnosticLevel: {
|
|
407
|
+
serializedName: "diagnosticLevel",
|
|
408
|
+
type: {
|
|
409
|
+
name: "String"
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
const ClusterNode = {
|
|
416
|
+
type: {
|
|
417
|
+
name: "Composite",
|
|
418
|
+
className: "ClusterNode",
|
|
419
|
+
modelProperties: {
|
|
420
|
+
name: {
|
|
421
|
+
serializedName: "name",
|
|
422
|
+
readOnly: true,
|
|
423
|
+
type: {
|
|
424
|
+
name: "String"
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
id: {
|
|
428
|
+
serializedName: "id",
|
|
429
|
+
readOnly: true,
|
|
430
|
+
type: {
|
|
431
|
+
name: "Number"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
windowsServerSubscription: {
|
|
435
|
+
serializedName: "windowsServerSubscription",
|
|
436
|
+
readOnly: true,
|
|
437
|
+
type: {
|
|
438
|
+
name: "String"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
manufacturer: {
|
|
442
|
+
serializedName: "manufacturer",
|
|
443
|
+
readOnly: true,
|
|
444
|
+
type: {
|
|
445
|
+
name: "String"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
model: {
|
|
449
|
+
serializedName: "model",
|
|
450
|
+
readOnly: true,
|
|
451
|
+
type: {
|
|
452
|
+
name: "String"
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
osName: {
|
|
456
|
+
serializedName: "osName",
|
|
457
|
+
readOnly: true,
|
|
458
|
+
type: {
|
|
459
|
+
name: "String"
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
osVersion: {
|
|
463
|
+
serializedName: "osVersion",
|
|
464
|
+
readOnly: true,
|
|
465
|
+
type: {
|
|
466
|
+
name: "String"
|
|
467
|
+
}
|
|
468
|
+
},
|
|
469
|
+
serialNumber: {
|
|
470
|
+
serializedName: "serialNumber",
|
|
471
|
+
readOnly: true,
|
|
472
|
+
type: {
|
|
473
|
+
name: "String"
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
coreCount: {
|
|
477
|
+
serializedName: "coreCount",
|
|
478
|
+
readOnly: true,
|
|
479
|
+
type: {
|
|
480
|
+
name: "Number"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
memoryInGiB: {
|
|
484
|
+
serializedName: "memoryInGiB",
|
|
485
|
+
readOnly: true,
|
|
486
|
+
type: {
|
|
487
|
+
name: "Number"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
const ClusterPatch = {
|
|
494
|
+
type: {
|
|
495
|
+
name: "Composite",
|
|
496
|
+
className: "ClusterPatch",
|
|
497
|
+
modelProperties: {
|
|
498
|
+
tags: {
|
|
499
|
+
serializedName: "tags",
|
|
500
|
+
type: {
|
|
501
|
+
name: "Dictionary",
|
|
502
|
+
value: { type: { name: "String" } }
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
cloudManagementEndpoint: {
|
|
506
|
+
serializedName: "properties.cloudManagementEndpoint",
|
|
507
|
+
type: {
|
|
508
|
+
name: "String"
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
aadClientId: {
|
|
512
|
+
serializedName: "properties.aadClientId",
|
|
513
|
+
type: {
|
|
514
|
+
name: "String"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
aadTenantId: {
|
|
518
|
+
serializedName: "properties.aadTenantId",
|
|
519
|
+
type: {
|
|
520
|
+
name: "String"
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
desiredProperties: {
|
|
524
|
+
serializedName: "properties.desiredProperties",
|
|
525
|
+
type: {
|
|
526
|
+
name: "Composite",
|
|
527
|
+
className: "ClusterDesiredProperties"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
const ExtensionList = {
|
|
534
|
+
type: {
|
|
535
|
+
name: "Composite",
|
|
536
|
+
className: "ExtensionList",
|
|
537
|
+
modelProperties: {
|
|
538
|
+
value: {
|
|
539
|
+
serializedName: "value",
|
|
540
|
+
readOnly: true,
|
|
541
|
+
type: {
|
|
542
|
+
name: "Sequence",
|
|
543
|
+
element: {
|
|
544
|
+
type: {
|
|
545
|
+
name: "Composite",
|
|
546
|
+
className: "Extension"
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
nextLink: {
|
|
552
|
+
serializedName: "nextLink",
|
|
553
|
+
readOnly: true,
|
|
554
|
+
type: {
|
|
555
|
+
name: "String"
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
};
|
|
561
|
+
const PerNodeExtensionState = {
|
|
562
|
+
type: {
|
|
563
|
+
name: "Composite",
|
|
564
|
+
className: "PerNodeExtensionState",
|
|
565
|
+
modelProperties: {
|
|
566
|
+
name: {
|
|
567
|
+
serializedName: "name",
|
|
568
|
+
readOnly: true,
|
|
569
|
+
type: {
|
|
570
|
+
name: "String"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
extension: {
|
|
574
|
+
serializedName: "extension",
|
|
575
|
+
readOnly: true,
|
|
576
|
+
type: {
|
|
577
|
+
name: "String"
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
state: {
|
|
581
|
+
serializedName: "state",
|
|
582
|
+
readOnly: true,
|
|
583
|
+
type: {
|
|
584
|
+
name: "String"
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
const OperationListResult = {
|
|
591
|
+
type: {
|
|
592
|
+
name: "Composite",
|
|
593
|
+
className: "OperationListResult",
|
|
594
|
+
modelProperties: {
|
|
595
|
+
value: {
|
|
596
|
+
serializedName: "value",
|
|
597
|
+
readOnly: true,
|
|
598
|
+
type: {
|
|
599
|
+
name: "Sequence",
|
|
600
|
+
element: {
|
|
601
|
+
type: {
|
|
602
|
+
name: "Composite",
|
|
603
|
+
className: "Operation"
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
nextLink: {
|
|
609
|
+
serializedName: "nextLink",
|
|
610
|
+
readOnly: true,
|
|
611
|
+
type: {
|
|
612
|
+
name: "String"
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
const Operation = {
|
|
619
|
+
type: {
|
|
620
|
+
name: "Composite",
|
|
621
|
+
className: "Operation",
|
|
622
|
+
modelProperties: {
|
|
623
|
+
name: {
|
|
624
|
+
serializedName: "name",
|
|
625
|
+
readOnly: true,
|
|
626
|
+
type: {
|
|
627
|
+
name: "String"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
isDataAction: {
|
|
631
|
+
serializedName: "isDataAction",
|
|
632
|
+
readOnly: true,
|
|
633
|
+
type: {
|
|
634
|
+
name: "Boolean"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
display: {
|
|
638
|
+
serializedName: "display",
|
|
639
|
+
type: {
|
|
640
|
+
name: "Composite",
|
|
641
|
+
className: "OperationDisplay"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
origin: {
|
|
645
|
+
serializedName: "origin",
|
|
646
|
+
readOnly: true,
|
|
647
|
+
type: {
|
|
648
|
+
name: "String"
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
actionType: {
|
|
652
|
+
serializedName: "actionType",
|
|
653
|
+
readOnly: true,
|
|
654
|
+
type: {
|
|
655
|
+
name: "String"
|
|
656
|
+
}
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
};
|
|
661
|
+
const OperationDisplay = {
|
|
662
|
+
type: {
|
|
663
|
+
name: "Composite",
|
|
664
|
+
className: "OperationDisplay",
|
|
665
|
+
modelProperties: {
|
|
666
|
+
provider: {
|
|
667
|
+
serializedName: "provider",
|
|
668
|
+
readOnly: true,
|
|
669
|
+
type: {
|
|
670
|
+
name: "String"
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
resource: {
|
|
674
|
+
serializedName: "resource",
|
|
675
|
+
readOnly: true,
|
|
676
|
+
type: {
|
|
677
|
+
name: "String"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
operation: {
|
|
681
|
+
serializedName: "operation",
|
|
682
|
+
readOnly: true,
|
|
683
|
+
type: {
|
|
684
|
+
name: "String"
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
description: {
|
|
688
|
+
serializedName: "description",
|
|
689
|
+
readOnly: true,
|
|
690
|
+
type: {
|
|
691
|
+
name: "String"
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
const ProxyResource = {
|
|
698
|
+
type: {
|
|
699
|
+
name: "Composite",
|
|
700
|
+
className: "ProxyResource",
|
|
701
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
702
|
+
}
|
|
703
|
+
};
|
|
704
|
+
const TrackedResource = {
|
|
705
|
+
type: {
|
|
706
|
+
name: "Composite",
|
|
707
|
+
className: "TrackedResource",
|
|
708
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
709
|
+
serializedName: "tags",
|
|
710
|
+
type: {
|
|
711
|
+
name: "Dictionary",
|
|
712
|
+
value: { type: { name: "String" } }
|
|
713
|
+
}
|
|
714
|
+
}, location: {
|
|
715
|
+
serializedName: "location",
|
|
716
|
+
required: true,
|
|
717
|
+
type: {
|
|
718
|
+
name: "String"
|
|
719
|
+
}
|
|
720
|
+
} })
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
const ArcSetting = {
|
|
724
|
+
type: {
|
|
725
|
+
name: "Composite",
|
|
726
|
+
className: "ArcSetting",
|
|
727
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
|
|
728
|
+
serializedName: "properties.provisioningState",
|
|
729
|
+
readOnly: true,
|
|
730
|
+
type: {
|
|
731
|
+
name: "String"
|
|
732
|
+
}
|
|
733
|
+
}, arcInstanceResourceGroup: {
|
|
734
|
+
serializedName: "properties.arcInstanceResourceGroup",
|
|
735
|
+
readOnly: true,
|
|
736
|
+
type: {
|
|
737
|
+
name: "String"
|
|
738
|
+
}
|
|
739
|
+
}, aggregateState: {
|
|
740
|
+
serializedName: "properties.aggregateState",
|
|
741
|
+
readOnly: true,
|
|
742
|
+
type: {
|
|
743
|
+
name: "String"
|
|
744
|
+
}
|
|
745
|
+
}, perNodeDetails: {
|
|
746
|
+
serializedName: "properties.perNodeDetails",
|
|
747
|
+
readOnly: true,
|
|
748
|
+
type: {
|
|
749
|
+
name: "Sequence",
|
|
750
|
+
element: {
|
|
751
|
+
type: {
|
|
752
|
+
name: "Composite",
|
|
753
|
+
className: "PerNodeState"
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}, createdBy: {
|
|
758
|
+
serializedName: "systemData.createdBy",
|
|
759
|
+
type: {
|
|
760
|
+
name: "String"
|
|
761
|
+
}
|
|
762
|
+
}, createdByType: {
|
|
763
|
+
serializedName: "systemData.createdByType",
|
|
764
|
+
type: {
|
|
765
|
+
name: "String"
|
|
766
|
+
}
|
|
767
|
+
}, createdAt: {
|
|
768
|
+
serializedName: "systemData.createdAt",
|
|
769
|
+
type: {
|
|
770
|
+
name: "DateTime"
|
|
771
|
+
}
|
|
772
|
+
}, lastModifiedBy: {
|
|
773
|
+
serializedName: "systemData.lastModifiedBy",
|
|
774
|
+
type: {
|
|
775
|
+
name: "String"
|
|
776
|
+
}
|
|
777
|
+
}, lastModifiedByType: {
|
|
778
|
+
serializedName: "systemData.lastModifiedByType",
|
|
779
|
+
type: {
|
|
780
|
+
name: "String"
|
|
781
|
+
}
|
|
782
|
+
}, lastModifiedAt: {
|
|
783
|
+
serializedName: "systemData.lastModifiedAt",
|
|
784
|
+
type: {
|
|
785
|
+
name: "DateTime"
|
|
786
|
+
}
|
|
787
|
+
} })
|
|
788
|
+
}
|
|
789
|
+
};
|
|
790
|
+
const Extension = {
|
|
791
|
+
type: {
|
|
792
|
+
name: "Composite",
|
|
793
|
+
className: "Extension",
|
|
794
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { provisioningState: {
|
|
795
|
+
serializedName: "properties.provisioningState",
|
|
796
|
+
readOnly: true,
|
|
797
|
+
type: {
|
|
798
|
+
name: "String"
|
|
799
|
+
}
|
|
800
|
+
}, aggregateState: {
|
|
801
|
+
serializedName: "properties.aggregateState",
|
|
802
|
+
readOnly: true,
|
|
803
|
+
type: {
|
|
804
|
+
name: "String"
|
|
805
|
+
}
|
|
806
|
+
}, perNodeExtensionDetails: {
|
|
807
|
+
serializedName: "properties.perNodeExtensionDetails",
|
|
808
|
+
readOnly: true,
|
|
809
|
+
type: {
|
|
810
|
+
name: "Sequence",
|
|
811
|
+
element: {
|
|
812
|
+
type: {
|
|
813
|
+
name: "Composite",
|
|
814
|
+
className: "PerNodeExtensionState"
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
}, forceUpdateTag: {
|
|
819
|
+
serializedName: "properties.extensionParameters.forceUpdateTag",
|
|
820
|
+
type: {
|
|
821
|
+
name: "String"
|
|
822
|
+
}
|
|
823
|
+
}, publisher: {
|
|
824
|
+
serializedName: "properties.extensionParameters.publisher",
|
|
825
|
+
type: {
|
|
826
|
+
name: "String"
|
|
827
|
+
}
|
|
828
|
+
}, typePropertiesExtensionParametersType: {
|
|
829
|
+
serializedName: "properties.extensionParameters.type",
|
|
830
|
+
type: {
|
|
831
|
+
name: "String"
|
|
832
|
+
}
|
|
833
|
+
}, typeHandlerVersion: {
|
|
834
|
+
serializedName: "properties.extensionParameters.typeHandlerVersion",
|
|
835
|
+
type: {
|
|
836
|
+
name: "String"
|
|
837
|
+
}
|
|
838
|
+
}, autoUpgradeMinorVersion: {
|
|
839
|
+
serializedName: "properties.extensionParameters.autoUpgradeMinorVersion",
|
|
840
|
+
type: {
|
|
841
|
+
name: "Boolean"
|
|
842
|
+
}
|
|
843
|
+
}, settings: {
|
|
844
|
+
serializedName: "properties.extensionParameters.settings",
|
|
845
|
+
type: {
|
|
846
|
+
name: "Dictionary",
|
|
847
|
+
value: { type: { name: "any" } }
|
|
848
|
+
}
|
|
849
|
+
}, protectedSettings: {
|
|
850
|
+
serializedName: "properties.extensionParameters.protectedSettings",
|
|
851
|
+
type: {
|
|
852
|
+
name: "Dictionary",
|
|
853
|
+
value: { type: { name: "any" } }
|
|
854
|
+
}
|
|
855
|
+
}, createdBy: {
|
|
856
|
+
serializedName: "systemData.createdBy",
|
|
857
|
+
type: {
|
|
858
|
+
name: "String"
|
|
859
|
+
}
|
|
860
|
+
}, createdByType: {
|
|
861
|
+
serializedName: "systemData.createdByType",
|
|
862
|
+
type: {
|
|
863
|
+
name: "String"
|
|
864
|
+
}
|
|
865
|
+
}, createdAt: {
|
|
866
|
+
serializedName: "systemData.createdAt",
|
|
867
|
+
type: {
|
|
868
|
+
name: "DateTime"
|
|
869
|
+
}
|
|
870
|
+
}, lastModifiedBy: {
|
|
871
|
+
serializedName: "systemData.lastModifiedBy",
|
|
872
|
+
type: {
|
|
873
|
+
name: "String"
|
|
874
|
+
}
|
|
875
|
+
}, lastModifiedByType: {
|
|
876
|
+
serializedName: "systemData.lastModifiedByType",
|
|
877
|
+
type: {
|
|
878
|
+
name: "String"
|
|
879
|
+
}
|
|
880
|
+
}, lastModifiedAt: {
|
|
881
|
+
serializedName: "systemData.lastModifiedAt",
|
|
882
|
+
type: {
|
|
883
|
+
name: "DateTime"
|
|
884
|
+
}
|
|
885
|
+
} })
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
const Cluster = {
|
|
889
|
+
type: {
|
|
890
|
+
name: "Composite",
|
|
891
|
+
className: "Cluster",
|
|
892
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { provisioningState: {
|
|
893
|
+
serializedName: "properties.provisioningState",
|
|
894
|
+
readOnly: true,
|
|
895
|
+
type: {
|
|
896
|
+
name: "String"
|
|
897
|
+
}
|
|
898
|
+
}, status: {
|
|
899
|
+
serializedName: "properties.status",
|
|
900
|
+
readOnly: true,
|
|
901
|
+
type: {
|
|
902
|
+
name: "String"
|
|
903
|
+
}
|
|
904
|
+
}, cloudId: {
|
|
905
|
+
serializedName: "properties.cloudId",
|
|
906
|
+
readOnly: true,
|
|
907
|
+
type: {
|
|
908
|
+
name: "String"
|
|
909
|
+
}
|
|
910
|
+
}, cloudManagementEndpoint: {
|
|
911
|
+
serializedName: "properties.cloudManagementEndpoint",
|
|
912
|
+
type: {
|
|
913
|
+
name: "String"
|
|
914
|
+
}
|
|
915
|
+
}, aadClientId: {
|
|
916
|
+
serializedName: "properties.aadClientId",
|
|
917
|
+
type: {
|
|
918
|
+
name: "String"
|
|
919
|
+
}
|
|
920
|
+
}, aadTenantId: {
|
|
921
|
+
serializedName: "properties.aadTenantId",
|
|
922
|
+
type: {
|
|
923
|
+
name: "String"
|
|
924
|
+
}
|
|
925
|
+
}, desiredProperties: {
|
|
926
|
+
serializedName: "properties.desiredProperties",
|
|
927
|
+
type: {
|
|
928
|
+
name: "Composite",
|
|
929
|
+
className: "ClusterDesiredProperties"
|
|
930
|
+
}
|
|
931
|
+
}, reportedProperties: {
|
|
932
|
+
serializedName: "properties.reportedProperties",
|
|
933
|
+
type: {
|
|
934
|
+
name: "Composite",
|
|
935
|
+
className: "ClusterReportedProperties"
|
|
936
|
+
}
|
|
937
|
+
}, trialDaysRemaining: {
|
|
938
|
+
serializedName: "properties.trialDaysRemaining",
|
|
939
|
+
readOnly: true,
|
|
940
|
+
type: {
|
|
941
|
+
name: "Number"
|
|
942
|
+
}
|
|
943
|
+
}, billingModel: {
|
|
944
|
+
serializedName: "properties.billingModel",
|
|
945
|
+
readOnly: true,
|
|
946
|
+
type: {
|
|
947
|
+
name: "String"
|
|
948
|
+
}
|
|
949
|
+
}, registrationTimestamp: {
|
|
950
|
+
serializedName: "properties.registrationTimestamp",
|
|
951
|
+
readOnly: true,
|
|
952
|
+
type: {
|
|
953
|
+
name: "DateTime"
|
|
954
|
+
}
|
|
955
|
+
}, lastSyncTimestamp: {
|
|
956
|
+
serializedName: "properties.lastSyncTimestamp",
|
|
957
|
+
readOnly: true,
|
|
958
|
+
type: {
|
|
959
|
+
name: "DateTime"
|
|
960
|
+
}
|
|
961
|
+
}, lastBillingTimestamp: {
|
|
962
|
+
serializedName: "properties.lastBillingTimestamp",
|
|
963
|
+
readOnly: true,
|
|
964
|
+
type: {
|
|
965
|
+
name: "DateTime"
|
|
966
|
+
}
|
|
967
|
+
}, createdBy: {
|
|
968
|
+
serializedName: "systemData.createdBy",
|
|
969
|
+
type: {
|
|
970
|
+
name: "String"
|
|
971
|
+
}
|
|
972
|
+
}, createdByType: {
|
|
973
|
+
serializedName: "systemData.createdByType",
|
|
974
|
+
type: {
|
|
975
|
+
name: "String"
|
|
976
|
+
}
|
|
977
|
+
}, createdAt: {
|
|
978
|
+
serializedName: "systemData.createdAt",
|
|
979
|
+
type: {
|
|
980
|
+
name: "DateTime"
|
|
981
|
+
}
|
|
982
|
+
}, lastModifiedBy: {
|
|
983
|
+
serializedName: "systemData.lastModifiedBy",
|
|
984
|
+
type: {
|
|
985
|
+
name: "String"
|
|
986
|
+
}
|
|
987
|
+
}, lastModifiedByType: {
|
|
988
|
+
serializedName: "systemData.lastModifiedByType",
|
|
989
|
+
type: {
|
|
990
|
+
name: "String"
|
|
991
|
+
}
|
|
992
|
+
}, lastModifiedAt: {
|
|
993
|
+
serializedName: "systemData.lastModifiedAt",
|
|
994
|
+
type: {
|
|
995
|
+
name: "DateTime"
|
|
996
|
+
}
|
|
997
|
+
} })
|
|
998
|
+
}
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1002
|
+
__proto__: null,
|
|
1003
|
+
ArcSettingList: ArcSettingList,
|
|
1004
|
+
PerNodeState: PerNodeState,
|
|
1005
|
+
Resource: Resource,
|
|
1006
|
+
ErrorResponse: ErrorResponse,
|
|
1007
|
+
ErrorDetail: ErrorDetail,
|
|
1008
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1009
|
+
ClusterList: ClusterList,
|
|
1010
|
+
ClusterDesiredProperties: ClusterDesiredProperties,
|
|
1011
|
+
ClusterReportedProperties: ClusterReportedProperties,
|
|
1012
|
+
ClusterNode: ClusterNode,
|
|
1013
|
+
ClusterPatch: ClusterPatch,
|
|
1014
|
+
ExtensionList: ExtensionList,
|
|
1015
|
+
PerNodeExtensionState: PerNodeExtensionState,
|
|
1016
|
+
OperationListResult: OperationListResult,
|
|
1017
|
+
Operation: Operation,
|
|
1018
|
+
OperationDisplay: OperationDisplay,
|
|
1019
|
+
ProxyResource: ProxyResource,
|
|
1020
|
+
TrackedResource: TrackedResource,
|
|
1021
|
+
ArcSetting: ArcSetting,
|
|
1022
|
+
Extension: Extension,
|
|
1023
|
+
Cluster: Cluster
|
|
1024
|
+
});
|
|
1025
|
+
|
|
1026
|
+
/*
|
|
1027
|
+
* Copyright (c) Microsoft Corporation.
|
|
1028
|
+
* Licensed under the MIT License.
|
|
1029
|
+
*
|
|
1030
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1031
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1032
|
+
*/
|
|
1033
|
+
const accept = {
|
|
1034
|
+
parameterPath: "accept",
|
|
1035
|
+
mapper: {
|
|
1036
|
+
defaultValue: "application/json",
|
|
1037
|
+
isConstant: true,
|
|
1038
|
+
serializedName: "Accept",
|
|
1039
|
+
type: {
|
|
1040
|
+
name: "String"
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
const $host = {
|
|
1045
|
+
parameterPath: "$host",
|
|
1046
|
+
mapper: {
|
|
1047
|
+
serializedName: "$host",
|
|
1048
|
+
required: true,
|
|
1049
|
+
type: {
|
|
1050
|
+
name: "String"
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
skipEncoding: true
|
|
1054
|
+
};
|
|
1055
|
+
const subscriptionId = {
|
|
1056
|
+
parameterPath: "subscriptionId",
|
|
1057
|
+
mapper: {
|
|
1058
|
+
constraints: {
|
|
1059
|
+
MinLength: 1
|
|
1060
|
+
},
|
|
1061
|
+
serializedName: "subscriptionId",
|
|
1062
|
+
required: true,
|
|
1063
|
+
type: {
|
|
1064
|
+
name: "String"
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
const resourceGroupName = {
|
|
1069
|
+
parameterPath: "resourceGroupName",
|
|
1070
|
+
mapper: {
|
|
1071
|
+
constraints: {
|
|
1072
|
+
MaxLength: 90,
|
|
1073
|
+
MinLength: 1
|
|
1074
|
+
},
|
|
1075
|
+
serializedName: "resourceGroupName",
|
|
1076
|
+
required: true,
|
|
1077
|
+
type: {
|
|
1078
|
+
name: "String"
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
};
|
|
1082
|
+
const clusterName = {
|
|
1083
|
+
parameterPath: "clusterName",
|
|
1084
|
+
mapper: {
|
|
1085
|
+
serializedName: "clusterName",
|
|
1086
|
+
required: true,
|
|
1087
|
+
type: {
|
|
1088
|
+
name: "String"
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
};
|
|
1092
|
+
const apiVersion = {
|
|
1093
|
+
parameterPath: "apiVersion",
|
|
1094
|
+
mapper: {
|
|
1095
|
+
defaultValue: "2021-09-01",
|
|
1096
|
+
isConstant: true,
|
|
1097
|
+
serializedName: "api-version",
|
|
1098
|
+
type: {
|
|
1099
|
+
name: "String"
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
};
|
|
1103
|
+
const arcSettingName = {
|
|
1104
|
+
parameterPath: "arcSettingName",
|
|
1105
|
+
mapper: {
|
|
1106
|
+
serializedName: "arcSettingName",
|
|
1107
|
+
required: true,
|
|
1108
|
+
type: {
|
|
1109
|
+
name: "String"
|
|
1110
|
+
}
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
const contentType = {
|
|
1114
|
+
parameterPath: ["options", "contentType"],
|
|
1115
|
+
mapper: {
|
|
1116
|
+
defaultValue: "application/json",
|
|
1117
|
+
isConstant: true,
|
|
1118
|
+
serializedName: "Content-Type",
|
|
1119
|
+
type: {
|
|
1120
|
+
name: "String"
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
};
|
|
1124
|
+
const arcSetting = {
|
|
1125
|
+
parameterPath: "arcSetting",
|
|
1126
|
+
mapper: ArcSetting
|
|
1127
|
+
};
|
|
1128
|
+
const nextLink = {
|
|
1129
|
+
parameterPath: "nextLink",
|
|
1130
|
+
mapper: {
|
|
1131
|
+
serializedName: "nextLink",
|
|
1132
|
+
required: true,
|
|
1133
|
+
type: {
|
|
1134
|
+
name: "String"
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
skipEncoding: true
|
|
1138
|
+
};
|
|
1139
|
+
const cluster = {
|
|
1140
|
+
parameterPath: "cluster",
|
|
1141
|
+
mapper: Cluster
|
|
1142
|
+
};
|
|
1143
|
+
const cluster1 = {
|
|
1144
|
+
parameterPath: "cluster",
|
|
1145
|
+
mapper: ClusterPatch
|
|
1146
|
+
};
|
|
1147
|
+
const extensionName = {
|
|
1148
|
+
parameterPath: "extensionName",
|
|
1149
|
+
mapper: {
|
|
1150
|
+
serializedName: "extensionName",
|
|
1151
|
+
required: true,
|
|
1152
|
+
type: {
|
|
1153
|
+
name: "String"
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
};
|
|
1157
|
+
const extension = {
|
|
1158
|
+
parameterPath: "extension",
|
|
1159
|
+
mapper: Extension
|
|
1160
|
+
};
|
|
1161
|
+
|
|
1162
|
+
/*
|
|
1163
|
+
* Copyright (c) Microsoft Corporation.
|
|
1164
|
+
* Licensed under the MIT License.
|
|
1165
|
+
*
|
|
1166
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1167
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1168
|
+
*/
|
|
1169
|
+
class LroImpl {
|
|
1170
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
1171
|
+
this.sendOperationFn = sendOperationFn;
|
|
1172
|
+
this.args = args;
|
|
1173
|
+
this.spec = spec;
|
|
1174
|
+
this.requestPath = requestPath;
|
|
1175
|
+
this.requestMethod = requestMethod;
|
|
1176
|
+
}
|
|
1177
|
+
sendInitialRequest() {
|
|
1178
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1179
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
sendPollRequest(path) {
|
|
1183
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1184
|
+
const _a = this.spec, restSpec = tslib.__rest(_a, ["requestBody"]);
|
|
1185
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
/*
|
|
1191
|
+
* Copyright (c) Microsoft Corporation.
|
|
1192
|
+
* Licensed under the MIT License.
|
|
1193
|
+
*
|
|
1194
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1195
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1196
|
+
*/
|
|
1197
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1198
|
+
/** Class containing ArcSettings operations. */
|
|
1199
|
+
class ArcSettingsImpl {
|
|
1200
|
+
/**
|
|
1201
|
+
* Initialize a new instance of the class ArcSettings class.
|
|
1202
|
+
* @param client Reference to the service client
|
|
1203
|
+
*/
|
|
1204
|
+
constructor(client) {
|
|
1205
|
+
this.client = client;
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Get ArcSetting resources of HCI Cluster.
|
|
1209
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1210
|
+
* @param clusterName The name of the cluster.
|
|
1211
|
+
* @param options The options parameters.
|
|
1212
|
+
*/
|
|
1213
|
+
listByCluster(resourceGroupName, clusterName, options) {
|
|
1214
|
+
const iter = this.listByClusterPagingAll(resourceGroupName, clusterName, options);
|
|
1215
|
+
return {
|
|
1216
|
+
next() {
|
|
1217
|
+
return iter.next();
|
|
1218
|
+
},
|
|
1219
|
+
[Symbol.asyncIterator]() {
|
|
1220
|
+
return this;
|
|
1221
|
+
},
|
|
1222
|
+
byPage: () => {
|
|
1223
|
+
return this.listByClusterPagingPage(resourceGroupName, clusterName, options);
|
|
1224
|
+
}
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
listByClusterPagingPage(resourceGroupName, clusterName, options) {
|
|
1228
|
+
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingPage_1() {
|
|
1229
|
+
let result = yield tslib.__await(this._listByCluster(resourceGroupName, clusterName, options));
|
|
1230
|
+
yield yield tslib.__await(result.value || []);
|
|
1231
|
+
let continuationToken = result.nextLink;
|
|
1232
|
+
while (continuationToken) {
|
|
1233
|
+
result = yield tslib.__await(this._listByClusterNext(resourceGroupName, clusterName, continuationToken, options));
|
|
1234
|
+
continuationToken = result.nextLink;
|
|
1235
|
+
yield yield tslib.__await(result.value || []);
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
listByClusterPagingAll(resourceGroupName, clusterName, options) {
|
|
1240
|
+
return tslib.__asyncGenerator(this, arguments, function* listByClusterPagingAll_1() {
|
|
1241
|
+
var e_1, _a;
|
|
1242
|
+
try {
|
|
1243
|
+
for (var _b = tslib.__asyncValues(this.listByClusterPagingPage(resourceGroupName, clusterName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1244
|
+
const page = _c.value;
|
|
1245
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1249
|
+
finally {
|
|
1250
|
+
try {
|
|
1251
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1252
|
+
}
|
|
1253
|
+
finally { if (e_1) throw e_1.error; }
|
|
1254
|
+
}
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
/**
|
|
1258
|
+
* Get ArcSetting resources of HCI Cluster.
|
|
1259
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1260
|
+
* @param clusterName The name of the cluster.
|
|
1261
|
+
* @param options The options parameters.
|
|
1262
|
+
*/
|
|
1263
|
+
_listByCluster(resourceGroupName, clusterName, options) {
|
|
1264
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, listByClusterOperationSpec);
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* Get ArcSetting resource details of HCI Cluster.
|
|
1268
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1269
|
+
* @param clusterName The name of the cluster.
|
|
1270
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
1271
|
+
* @param options The options parameters.
|
|
1272
|
+
*/
|
|
1273
|
+
get(resourceGroupName, clusterName, arcSettingName, options) {
|
|
1274
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, arcSettingName, options }, getOperationSpec);
|
|
1275
|
+
}
|
|
1276
|
+
/**
|
|
1277
|
+
* Create ArcSetting for HCI cluster.
|
|
1278
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1279
|
+
* @param clusterName The name of the cluster.
|
|
1280
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
1281
|
+
* @param arcSetting Parameters supplied to the Create ArcSetting resource for this HCI cluster.
|
|
1282
|
+
* @param options The options parameters.
|
|
1283
|
+
*/
|
|
1284
|
+
create(resourceGroupName, clusterName, arcSettingName, arcSetting, options) {
|
|
1285
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, arcSettingName, arcSetting, options }, createOperationSpec);
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* Delete ArcSetting resource details of HCI Cluster.
|
|
1289
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1290
|
+
* @param clusterName The name of the cluster.
|
|
1291
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
1292
|
+
* @param options The options parameters.
|
|
1293
|
+
*/
|
|
1294
|
+
beginDelete(resourceGroupName, clusterName, arcSettingName, options) {
|
|
1295
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1296
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1297
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1298
|
+
});
|
|
1299
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1300
|
+
var _a;
|
|
1301
|
+
let currentRawResponse = undefined;
|
|
1302
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1303
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1304
|
+
currentRawResponse = rawResponse;
|
|
1305
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1306
|
+
};
|
|
1307
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1308
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1309
|
+
return {
|
|
1310
|
+
flatResponse,
|
|
1311
|
+
rawResponse: {
|
|
1312
|
+
statusCode: currentRawResponse.status,
|
|
1313
|
+
body: currentRawResponse.parsedBody,
|
|
1314
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1315
|
+
}
|
|
1316
|
+
};
|
|
1317
|
+
});
|
|
1318
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, clusterName, arcSettingName, options }, deleteOperationSpec);
|
|
1319
|
+
return new coreLro.LroEngine(lro, {
|
|
1320
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1321
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1322
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
1323
|
+
});
|
|
1324
|
+
});
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Delete ArcSetting resource details of HCI Cluster.
|
|
1328
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1329
|
+
* @param clusterName The name of the cluster.
|
|
1330
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
1331
|
+
* @param options The options parameters.
|
|
1332
|
+
*/
|
|
1333
|
+
beginDeleteAndWait(resourceGroupName, clusterName, arcSettingName, options) {
|
|
1334
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1335
|
+
const poller = yield this.beginDelete(resourceGroupName, clusterName, arcSettingName, options);
|
|
1336
|
+
return poller.pollUntilDone();
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
/**
|
|
1340
|
+
* ListByClusterNext
|
|
1341
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1342
|
+
* @param clusterName The name of the cluster.
|
|
1343
|
+
* @param nextLink The nextLink from the previous successful call to the ListByCluster method.
|
|
1344
|
+
* @param options The options parameters.
|
|
1345
|
+
*/
|
|
1346
|
+
_listByClusterNext(resourceGroupName, clusterName, nextLink, options) {
|
|
1347
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, nextLink, options }, listByClusterNextOperationSpec);
|
|
1348
|
+
}
|
|
1349
|
+
}
|
|
1350
|
+
// Operation Specifications
|
|
1351
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1352
|
+
const listByClusterOperationSpec = {
|
|
1353
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings",
|
|
1354
|
+
httpMethod: "GET",
|
|
1355
|
+
responses: {
|
|
1356
|
+
200: {
|
|
1357
|
+
bodyMapper: ArcSettingList
|
|
1358
|
+
},
|
|
1359
|
+
default: {
|
|
1360
|
+
bodyMapper: ErrorResponse
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
queryParameters: [apiVersion],
|
|
1364
|
+
urlParameters: [
|
|
1365
|
+
$host,
|
|
1366
|
+
subscriptionId,
|
|
1367
|
+
resourceGroupName,
|
|
1368
|
+
clusterName
|
|
1369
|
+
],
|
|
1370
|
+
headerParameters: [accept],
|
|
1371
|
+
serializer
|
|
1372
|
+
};
|
|
1373
|
+
const getOperationSpec = {
|
|
1374
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}",
|
|
1375
|
+
httpMethod: "GET",
|
|
1376
|
+
responses: {
|
|
1377
|
+
200: {
|
|
1378
|
+
bodyMapper: ArcSetting
|
|
1379
|
+
},
|
|
1380
|
+
default: {
|
|
1381
|
+
bodyMapper: ErrorResponse
|
|
1382
|
+
}
|
|
1383
|
+
},
|
|
1384
|
+
queryParameters: [apiVersion],
|
|
1385
|
+
urlParameters: [
|
|
1386
|
+
$host,
|
|
1387
|
+
subscriptionId,
|
|
1388
|
+
resourceGroupName,
|
|
1389
|
+
clusterName,
|
|
1390
|
+
arcSettingName
|
|
1391
|
+
],
|
|
1392
|
+
headerParameters: [accept],
|
|
1393
|
+
serializer
|
|
1394
|
+
};
|
|
1395
|
+
const createOperationSpec = {
|
|
1396
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}",
|
|
1397
|
+
httpMethod: "PUT",
|
|
1398
|
+
responses: {
|
|
1399
|
+
200: {
|
|
1400
|
+
bodyMapper: ArcSetting
|
|
1401
|
+
},
|
|
1402
|
+
default: {
|
|
1403
|
+
bodyMapper: ErrorResponse
|
|
1404
|
+
}
|
|
1405
|
+
},
|
|
1406
|
+
requestBody: arcSetting,
|
|
1407
|
+
queryParameters: [apiVersion],
|
|
1408
|
+
urlParameters: [
|
|
1409
|
+
$host,
|
|
1410
|
+
subscriptionId,
|
|
1411
|
+
resourceGroupName,
|
|
1412
|
+
clusterName,
|
|
1413
|
+
arcSettingName
|
|
1414
|
+
],
|
|
1415
|
+
headerParameters: [accept, contentType],
|
|
1416
|
+
mediaType: "json",
|
|
1417
|
+
serializer
|
|
1418
|
+
};
|
|
1419
|
+
const deleteOperationSpec = {
|
|
1420
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}",
|
|
1421
|
+
httpMethod: "DELETE",
|
|
1422
|
+
responses: {
|
|
1423
|
+
200: {},
|
|
1424
|
+
201: {},
|
|
1425
|
+
202: {},
|
|
1426
|
+
204: {},
|
|
1427
|
+
default: {
|
|
1428
|
+
bodyMapper: ErrorResponse
|
|
1429
|
+
}
|
|
1430
|
+
},
|
|
1431
|
+
queryParameters: [apiVersion],
|
|
1432
|
+
urlParameters: [
|
|
1433
|
+
$host,
|
|
1434
|
+
subscriptionId,
|
|
1435
|
+
resourceGroupName,
|
|
1436
|
+
clusterName,
|
|
1437
|
+
arcSettingName
|
|
1438
|
+
],
|
|
1439
|
+
headerParameters: [accept],
|
|
1440
|
+
serializer
|
|
1441
|
+
};
|
|
1442
|
+
const listByClusterNextOperationSpec = {
|
|
1443
|
+
path: "{nextLink}",
|
|
1444
|
+
httpMethod: "GET",
|
|
1445
|
+
responses: {
|
|
1446
|
+
200: {
|
|
1447
|
+
bodyMapper: ArcSettingList
|
|
1448
|
+
},
|
|
1449
|
+
default: {
|
|
1450
|
+
bodyMapper: ErrorResponse
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
queryParameters: [apiVersion],
|
|
1454
|
+
urlParameters: [
|
|
1455
|
+
$host,
|
|
1456
|
+
subscriptionId,
|
|
1457
|
+
resourceGroupName,
|
|
1458
|
+
clusterName,
|
|
1459
|
+
nextLink
|
|
1460
|
+
],
|
|
1461
|
+
headerParameters: [accept],
|
|
1462
|
+
serializer
|
|
1463
|
+
};
|
|
1464
|
+
|
|
1465
|
+
/*
|
|
1466
|
+
* Copyright (c) Microsoft Corporation.
|
|
1467
|
+
* Licensed under the MIT License.
|
|
1468
|
+
*
|
|
1469
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1470
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1471
|
+
*/
|
|
1472
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1473
|
+
/** Class containing Clusters operations. */
|
|
1474
|
+
class ClustersImpl {
|
|
1475
|
+
/**
|
|
1476
|
+
* Initialize a new instance of the class Clusters class.
|
|
1477
|
+
* @param client Reference to the service client
|
|
1478
|
+
*/
|
|
1479
|
+
constructor(client) {
|
|
1480
|
+
this.client = client;
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
* List all HCI clusters in a subscription.
|
|
1484
|
+
* @param options The options parameters.
|
|
1485
|
+
*/
|
|
1486
|
+
listBySubscription(options) {
|
|
1487
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
1488
|
+
return {
|
|
1489
|
+
next() {
|
|
1490
|
+
return iter.next();
|
|
1491
|
+
},
|
|
1492
|
+
[Symbol.asyncIterator]() {
|
|
1493
|
+
return this;
|
|
1494
|
+
},
|
|
1495
|
+
byPage: () => {
|
|
1496
|
+
return this.listBySubscriptionPagingPage(options);
|
|
1497
|
+
}
|
|
1498
|
+
};
|
|
1499
|
+
}
|
|
1500
|
+
listBySubscriptionPagingPage(options) {
|
|
1501
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1502
|
+
let result = yield tslib.__await(this._listBySubscription(options));
|
|
1503
|
+
yield yield tslib.__await(result.value || []);
|
|
1504
|
+
let continuationToken = result.nextLink;
|
|
1505
|
+
while (continuationToken) {
|
|
1506
|
+
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1507
|
+
continuationToken = result.nextLink;
|
|
1508
|
+
yield yield tslib.__await(result.value || []);
|
|
1509
|
+
}
|
|
1510
|
+
});
|
|
1511
|
+
}
|
|
1512
|
+
listBySubscriptionPagingAll(options) {
|
|
1513
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1514
|
+
var e_1, _a;
|
|
1515
|
+
try {
|
|
1516
|
+
for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1517
|
+
const page = _c.value;
|
|
1518
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1522
|
+
finally {
|
|
1523
|
+
try {
|
|
1524
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1525
|
+
}
|
|
1526
|
+
finally { if (e_1) throw e_1.error; }
|
|
1527
|
+
}
|
|
1528
|
+
});
|
|
1529
|
+
}
|
|
1530
|
+
/**
|
|
1531
|
+
* List all HCI clusters in a resource group.
|
|
1532
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1533
|
+
* @param options The options parameters.
|
|
1534
|
+
*/
|
|
1535
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1536
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1537
|
+
return {
|
|
1538
|
+
next() {
|
|
1539
|
+
return iter.next();
|
|
1540
|
+
},
|
|
1541
|
+
[Symbol.asyncIterator]() {
|
|
1542
|
+
return this;
|
|
1543
|
+
},
|
|
1544
|
+
byPage: () => {
|
|
1545
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1546
|
+
}
|
|
1547
|
+
};
|
|
1548
|
+
}
|
|
1549
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1550
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1551
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1552
|
+
yield yield tslib.__await(result.value || []);
|
|
1553
|
+
let continuationToken = result.nextLink;
|
|
1554
|
+
while (continuationToken) {
|
|
1555
|
+
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1556
|
+
continuationToken = result.nextLink;
|
|
1557
|
+
yield yield tslib.__await(result.value || []);
|
|
1558
|
+
}
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1562
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1563
|
+
var e_2, _a;
|
|
1564
|
+
try {
|
|
1565
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1566
|
+
const page = _c.value;
|
|
1567
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1571
|
+
finally {
|
|
1572
|
+
try {
|
|
1573
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1574
|
+
}
|
|
1575
|
+
finally { if (e_2) throw e_2.error; }
|
|
1576
|
+
}
|
|
1577
|
+
});
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
* List all HCI clusters in a subscription.
|
|
1581
|
+
* @param options The options parameters.
|
|
1582
|
+
*/
|
|
1583
|
+
_listBySubscription(options) {
|
|
1584
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
* List all HCI clusters in a resource group.
|
|
1588
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1589
|
+
* @param options The options parameters.
|
|
1590
|
+
*/
|
|
1591
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1592
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* Get HCI cluster.
|
|
1596
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1597
|
+
* @param clusterName The name of the cluster.
|
|
1598
|
+
* @param options The options parameters.
|
|
1599
|
+
*/
|
|
1600
|
+
get(resourceGroupName, clusterName, options) {
|
|
1601
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, getOperationSpec$1);
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* Create an HCI cluster.
|
|
1605
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1606
|
+
* @param clusterName The name of the cluster.
|
|
1607
|
+
* @param cluster Details of the HCI cluster.
|
|
1608
|
+
* @param options The options parameters.
|
|
1609
|
+
*/
|
|
1610
|
+
create(resourceGroupName, clusterName, cluster, options) {
|
|
1611
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, cluster, options }, createOperationSpec$1);
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Update an HCI cluster.
|
|
1615
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1616
|
+
* @param clusterName The name of the cluster.
|
|
1617
|
+
* @param cluster Details of the HCI cluster.
|
|
1618
|
+
* @param options The options parameters.
|
|
1619
|
+
*/
|
|
1620
|
+
update(resourceGroupName, clusterName, cluster, options) {
|
|
1621
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, cluster, options }, updateOperationSpec);
|
|
1622
|
+
}
|
|
1623
|
+
/**
|
|
1624
|
+
* Delete an HCI cluster.
|
|
1625
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1626
|
+
* @param clusterName The name of the cluster.
|
|
1627
|
+
* @param options The options parameters.
|
|
1628
|
+
*/
|
|
1629
|
+
delete(resourceGroupName, clusterName, options) {
|
|
1630
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, options }, deleteOperationSpec$1);
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* ListBySubscriptionNext
|
|
1634
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
1635
|
+
* @param options The options parameters.
|
|
1636
|
+
*/
|
|
1637
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
1638
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
* ListByResourceGroupNext
|
|
1642
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1643
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
1644
|
+
* @param options The options parameters.
|
|
1645
|
+
*/
|
|
1646
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
1647
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
// Operation Specifications
|
|
1651
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1652
|
+
const listBySubscriptionOperationSpec = {
|
|
1653
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/clusters",
|
|
1654
|
+
httpMethod: "GET",
|
|
1655
|
+
responses: {
|
|
1656
|
+
200: {
|
|
1657
|
+
bodyMapper: ClusterList
|
|
1658
|
+
},
|
|
1659
|
+
default: {
|
|
1660
|
+
bodyMapper: ErrorResponse
|
|
1661
|
+
}
|
|
1662
|
+
},
|
|
1663
|
+
queryParameters: [apiVersion],
|
|
1664
|
+
urlParameters: [$host, subscriptionId],
|
|
1665
|
+
headerParameters: [accept],
|
|
1666
|
+
serializer: serializer$1
|
|
1667
|
+
};
|
|
1668
|
+
const listByResourceGroupOperationSpec = {
|
|
1669
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters",
|
|
1670
|
+
httpMethod: "GET",
|
|
1671
|
+
responses: {
|
|
1672
|
+
200: {
|
|
1673
|
+
bodyMapper: ClusterList
|
|
1674
|
+
},
|
|
1675
|
+
default: {
|
|
1676
|
+
bodyMapper: ErrorResponse
|
|
1677
|
+
}
|
|
1678
|
+
},
|
|
1679
|
+
queryParameters: [apiVersion],
|
|
1680
|
+
urlParameters: [
|
|
1681
|
+
$host,
|
|
1682
|
+
subscriptionId,
|
|
1683
|
+
resourceGroupName
|
|
1684
|
+
],
|
|
1685
|
+
headerParameters: [accept],
|
|
1686
|
+
serializer: serializer$1
|
|
1687
|
+
};
|
|
1688
|
+
const getOperationSpec$1 = {
|
|
1689
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
1690
|
+
httpMethod: "GET",
|
|
1691
|
+
responses: {
|
|
1692
|
+
200: {
|
|
1693
|
+
bodyMapper: Cluster
|
|
1694
|
+
},
|
|
1695
|
+
default: {
|
|
1696
|
+
bodyMapper: ErrorResponse
|
|
1697
|
+
}
|
|
1698
|
+
},
|
|
1699
|
+
queryParameters: [apiVersion],
|
|
1700
|
+
urlParameters: [
|
|
1701
|
+
$host,
|
|
1702
|
+
subscriptionId,
|
|
1703
|
+
resourceGroupName,
|
|
1704
|
+
clusterName
|
|
1705
|
+
],
|
|
1706
|
+
headerParameters: [accept],
|
|
1707
|
+
serializer: serializer$1
|
|
1708
|
+
};
|
|
1709
|
+
const createOperationSpec$1 = {
|
|
1710
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
1711
|
+
httpMethod: "PUT",
|
|
1712
|
+
responses: {
|
|
1713
|
+
200: {
|
|
1714
|
+
bodyMapper: Cluster
|
|
1715
|
+
},
|
|
1716
|
+
default: {
|
|
1717
|
+
bodyMapper: ErrorResponse
|
|
1718
|
+
}
|
|
1719
|
+
},
|
|
1720
|
+
requestBody: cluster,
|
|
1721
|
+
queryParameters: [apiVersion],
|
|
1722
|
+
urlParameters: [
|
|
1723
|
+
$host,
|
|
1724
|
+
subscriptionId,
|
|
1725
|
+
resourceGroupName,
|
|
1726
|
+
clusterName
|
|
1727
|
+
],
|
|
1728
|
+
headerParameters: [accept, contentType],
|
|
1729
|
+
mediaType: "json",
|
|
1730
|
+
serializer: serializer$1
|
|
1731
|
+
};
|
|
1732
|
+
const updateOperationSpec = {
|
|
1733
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
1734
|
+
httpMethod: "PATCH",
|
|
1735
|
+
responses: {
|
|
1736
|
+
200: {
|
|
1737
|
+
bodyMapper: Cluster
|
|
1738
|
+
},
|
|
1739
|
+
default: {
|
|
1740
|
+
bodyMapper: ErrorResponse
|
|
1741
|
+
}
|
|
1742
|
+
},
|
|
1743
|
+
requestBody: cluster1,
|
|
1744
|
+
queryParameters: [apiVersion],
|
|
1745
|
+
urlParameters: [
|
|
1746
|
+
$host,
|
|
1747
|
+
subscriptionId,
|
|
1748
|
+
resourceGroupName,
|
|
1749
|
+
clusterName
|
|
1750
|
+
],
|
|
1751
|
+
headerParameters: [accept, contentType],
|
|
1752
|
+
mediaType: "json",
|
|
1753
|
+
serializer: serializer$1
|
|
1754
|
+
};
|
|
1755
|
+
const deleteOperationSpec$1 = {
|
|
1756
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}",
|
|
1757
|
+
httpMethod: "DELETE",
|
|
1758
|
+
responses: {
|
|
1759
|
+
200: {},
|
|
1760
|
+
204: {},
|
|
1761
|
+
default: {
|
|
1762
|
+
bodyMapper: ErrorResponse
|
|
1763
|
+
}
|
|
1764
|
+
},
|
|
1765
|
+
queryParameters: [apiVersion],
|
|
1766
|
+
urlParameters: [
|
|
1767
|
+
$host,
|
|
1768
|
+
subscriptionId,
|
|
1769
|
+
resourceGroupName,
|
|
1770
|
+
clusterName
|
|
1771
|
+
],
|
|
1772
|
+
headerParameters: [accept],
|
|
1773
|
+
serializer: serializer$1
|
|
1774
|
+
};
|
|
1775
|
+
const listBySubscriptionNextOperationSpec = {
|
|
1776
|
+
path: "{nextLink}",
|
|
1777
|
+
httpMethod: "GET",
|
|
1778
|
+
responses: {
|
|
1779
|
+
200: {
|
|
1780
|
+
bodyMapper: ClusterList
|
|
1781
|
+
},
|
|
1782
|
+
default: {
|
|
1783
|
+
bodyMapper: ErrorResponse
|
|
1784
|
+
}
|
|
1785
|
+
},
|
|
1786
|
+
queryParameters: [apiVersion],
|
|
1787
|
+
urlParameters: [
|
|
1788
|
+
$host,
|
|
1789
|
+
subscriptionId,
|
|
1790
|
+
nextLink
|
|
1791
|
+
],
|
|
1792
|
+
headerParameters: [accept],
|
|
1793
|
+
serializer: serializer$1
|
|
1794
|
+
};
|
|
1795
|
+
const listByResourceGroupNextOperationSpec = {
|
|
1796
|
+
path: "{nextLink}",
|
|
1797
|
+
httpMethod: "GET",
|
|
1798
|
+
responses: {
|
|
1799
|
+
200: {
|
|
1800
|
+
bodyMapper: ClusterList
|
|
1801
|
+
},
|
|
1802
|
+
default: {
|
|
1803
|
+
bodyMapper: ErrorResponse
|
|
1804
|
+
}
|
|
1805
|
+
},
|
|
1806
|
+
queryParameters: [apiVersion],
|
|
1807
|
+
urlParameters: [
|
|
1808
|
+
$host,
|
|
1809
|
+
subscriptionId,
|
|
1810
|
+
resourceGroupName,
|
|
1811
|
+
nextLink
|
|
1812
|
+
],
|
|
1813
|
+
headerParameters: [accept],
|
|
1814
|
+
serializer: serializer$1
|
|
1815
|
+
};
|
|
1816
|
+
|
|
1817
|
+
/*
|
|
1818
|
+
* Copyright (c) Microsoft Corporation.
|
|
1819
|
+
* Licensed under the MIT License.
|
|
1820
|
+
*
|
|
1821
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1822
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1823
|
+
*/
|
|
1824
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1825
|
+
/** Class containing Extensions operations. */
|
|
1826
|
+
class ExtensionsImpl {
|
|
1827
|
+
/**
|
|
1828
|
+
* Initialize a new instance of the class Extensions class.
|
|
1829
|
+
* @param client Reference to the service client
|
|
1830
|
+
*/
|
|
1831
|
+
constructor(client) {
|
|
1832
|
+
this.client = client;
|
|
1833
|
+
}
|
|
1834
|
+
/**
|
|
1835
|
+
* List all Extensions under ArcSetting resource.
|
|
1836
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1837
|
+
* @param clusterName The name of the cluster.
|
|
1838
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
1839
|
+
* @param options The options parameters.
|
|
1840
|
+
*/
|
|
1841
|
+
listByArcSetting(resourceGroupName, clusterName, arcSettingName, options) {
|
|
1842
|
+
const iter = this.listByArcSettingPagingAll(resourceGroupName, clusterName, arcSettingName, options);
|
|
1843
|
+
return {
|
|
1844
|
+
next() {
|
|
1845
|
+
return iter.next();
|
|
1846
|
+
},
|
|
1847
|
+
[Symbol.asyncIterator]() {
|
|
1848
|
+
return this;
|
|
1849
|
+
},
|
|
1850
|
+
byPage: () => {
|
|
1851
|
+
return this.listByArcSettingPagingPage(resourceGroupName, clusterName, arcSettingName, options);
|
|
1852
|
+
}
|
|
1853
|
+
};
|
|
1854
|
+
}
|
|
1855
|
+
listByArcSettingPagingPage(resourceGroupName, clusterName, arcSettingName, options) {
|
|
1856
|
+
return tslib.__asyncGenerator(this, arguments, function* listByArcSettingPagingPage_1() {
|
|
1857
|
+
let result = yield tslib.__await(this._listByArcSetting(resourceGroupName, clusterName, arcSettingName, options));
|
|
1858
|
+
yield yield tslib.__await(result.value || []);
|
|
1859
|
+
let continuationToken = result.nextLink;
|
|
1860
|
+
while (continuationToken) {
|
|
1861
|
+
result = yield tslib.__await(this._listByArcSettingNext(resourceGroupName, clusterName, arcSettingName, continuationToken, options));
|
|
1862
|
+
continuationToken = result.nextLink;
|
|
1863
|
+
yield yield tslib.__await(result.value || []);
|
|
1864
|
+
}
|
|
1865
|
+
});
|
|
1866
|
+
}
|
|
1867
|
+
listByArcSettingPagingAll(resourceGroupName, clusterName, arcSettingName, options) {
|
|
1868
|
+
return tslib.__asyncGenerator(this, arguments, function* listByArcSettingPagingAll_1() {
|
|
1869
|
+
var e_1, _a;
|
|
1870
|
+
try {
|
|
1871
|
+
for (var _b = tslib.__asyncValues(this.listByArcSettingPagingPage(resourceGroupName, clusterName, arcSettingName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1872
|
+
const page = _c.value;
|
|
1873
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1874
|
+
}
|
|
1875
|
+
}
|
|
1876
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1877
|
+
finally {
|
|
1878
|
+
try {
|
|
1879
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1880
|
+
}
|
|
1881
|
+
finally { if (e_1) throw e_1.error; }
|
|
1882
|
+
}
|
|
1883
|
+
});
|
|
1884
|
+
}
|
|
1885
|
+
/**
|
|
1886
|
+
* List all Extensions under ArcSetting resource.
|
|
1887
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1888
|
+
* @param clusterName The name of the cluster.
|
|
1889
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
1890
|
+
* @param options The options parameters.
|
|
1891
|
+
*/
|
|
1892
|
+
_listByArcSetting(resourceGroupName, clusterName, arcSettingName, options) {
|
|
1893
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, arcSettingName, options }, listByArcSettingOperationSpec);
|
|
1894
|
+
}
|
|
1895
|
+
/**
|
|
1896
|
+
* Get particular Arc Extension of HCI Cluster.
|
|
1897
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1898
|
+
* @param clusterName The name of the cluster.
|
|
1899
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
1900
|
+
* @param extensionName The name of the machine extension.
|
|
1901
|
+
* @param options The options parameters.
|
|
1902
|
+
*/
|
|
1903
|
+
get(resourceGroupName, clusterName, arcSettingName, extensionName, options) {
|
|
1904
|
+
return this.client.sendOperationRequest({
|
|
1905
|
+
resourceGroupName,
|
|
1906
|
+
clusterName,
|
|
1907
|
+
arcSettingName,
|
|
1908
|
+
extensionName,
|
|
1909
|
+
options
|
|
1910
|
+
}, getOperationSpec$2);
|
|
1911
|
+
}
|
|
1912
|
+
/**
|
|
1913
|
+
* Create Extension for HCI cluster.
|
|
1914
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1915
|
+
* @param clusterName The name of the cluster.
|
|
1916
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
1917
|
+
* @param extensionName The name of the machine extension.
|
|
1918
|
+
* @param extension Details of the Machine Extension to be created.
|
|
1919
|
+
* @param options The options parameters.
|
|
1920
|
+
*/
|
|
1921
|
+
beginCreate(resourceGroupName, clusterName, arcSettingName, extensionName, extension, options) {
|
|
1922
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1923
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1924
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1925
|
+
});
|
|
1926
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1927
|
+
var _a;
|
|
1928
|
+
let currentRawResponse = undefined;
|
|
1929
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1930
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1931
|
+
currentRawResponse = rawResponse;
|
|
1932
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1933
|
+
};
|
|
1934
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1935
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1936
|
+
return {
|
|
1937
|
+
flatResponse,
|
|
1938
|
+
rawResponse: {
|
|
1939
|
+
statusCode: currentRawResponse.status,
|
|
1940
|
+
body: currentRawResponse.parsedBody,
|
|
1941
|
+
headers: currentRawResponse.headers.toJSON()
|
|
1942
|
+
}
|
|
1943
|
+
};
|
|
1944
|
+
});
|
|
1945
|
+
const lro = new LroImpl(sendOperation, {
|
|
1946
|
+
resourceGroupName,
|
|
1947
|
+
clusterName,
|
|
1948
|
+
arcSettingName,
|
|
1949
|
+
extensionName,
|
|
1950
|
+
extension,
|
|
1951
|
+
options
|
|
1952
|
+
}, createOperationSpec$2);
|
|
1953
|
+
return new coreLro.LroEngine(lro, {
|
|
1954
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
1955
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
1956
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
1957
|
+
});
|
|
1958
|
+
});
|
|
1959
|
+
}
|
|
1960
|
+
/**
|
|
1961
|
+
* Create Extension for HCI cluster.
|
|
1962
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1963
|
+
* @param clusterName The name of the cluster.
|
|
1964
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
1965
|
+
* @param extensionName The name of the machine extension.
|
|
1966
|
+
* @param extension Details of the Machine Extension to be created.
|
|
1967
|
+
* @param options The options parameters.
|
|
1968
|
+
*/
|
|
1969
|
+
beginCreateAndWait(resourceGroupName, clusterName, arcSettingName, extensionName, extension, options) {
|
|
1970
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1971
|
+
const poller = yield this.beginCreate(resourceGroupName, clusterName, arcSettingName, extensionName, extension, options);
|
|
1972
|
+
return poller.pollUntilDone();
|
|
1973
|
+
});
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* Update Extension for HCI cluster.
|
|
1977
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1978
|
+
* @param clusterName The name of the cluster.
|
|
1979
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
1980
|
+
* @param extensionName The name of the machine extension.
|
|
1981
|
+
* @param extension Details of the Machine Extension to be created.
|
|
1982
|
+
* @param options The options parameters.
|
|
1983
|
+
*/
|
|
1984
|
+
beginUpdate(resourceGroupName, clusterName, arcSettingName, extensionName, extension, options) {
|
|
1985
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1986
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1987
|
+
return this.client.sendOperationRequest(args, spec);
|
|
1988
|
+
});
|
|
1989
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1990
|
+
var _a;
|
|
1991
|
+
let currentRawResponse = undefined;
|
|
1992
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
1993
|
+
const callback = (rawResponse, flatResponse) => {
|
|
1994
|
+
currentRawResponse = rawResponse;
|
|
1995
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
1996
|
+
};
|
|
1997
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
1998
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
1999
|
+
return {
|
|
2000
|
+
flatResponse,
|
|
2001
|
+
rawResponse: {
|
|
2002
|
+
statusCode: currentRawResponse.status,
|
|
2003
|
+
body: currentRawResponse.parsedBody,
|
|
2004
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2005
|
+
}
|
|
2006
|
+
};
|
|
2007
|
+
});
|
|
2008
|
+
const lro = new LroImpl(sendOperation, {
|
|
2009
|
+
resourceGroupName,
|
|
2010
|
+
clusterName,
|
|
2011
|
+
arcSettingName,
|
|
2012
|
+
extensionName,
|
|
2013
|
+
extension,
|
|
2014
|
+
options
|
|
2015
|
+
}, updateOperationSpec$1);
|
|
2016
|
+
return new coreLro.LroEngine(lro, {
|
|
2017
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2018
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2019
|
+
lroResourceLocationConfig: "original-uri"
|
|
2020
|
+
});
|
|
2021
|
+
});
|
|
2022
|
+
}
|
|
2023
|
+
/**
|
|
2024
|
+
* Update Extension for HCI cluster.
|
|
2025
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2026
|
+
* @param clusterName The name of the cluster.
|
|
2027
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
2028
|
+
* @param extensionName The name of the machine extension.
|
|
2029
|
+
* @param extension Details of the Machine Extension to be created.
|
|
2030
|
+
* @param options The options parameters.
|
|
2031
|
+
*/
|
|
2032
|
+
beginUpdateAndWait(resourceGroupName, clusterName, arcSettingName, extensionName, extension, options) {
|
|
2033
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2034
|
+
const poller = yield this.beginUpdate(resourceGroupName, clusterName, arcSettingName, extensionName, extension, options);
|
|
2035
|
+
return poller.pollUntilDone();
|
|
2036
|
+
});
|
|
2037
|
+
}
|
|
2038
|
+
/**
|
|
2039
|
+
* Delete particular Arc Extension of HCI Cluster.
|
|
2040
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2041
|
+
* @param clusterName The name of the cluster.
|
|
2042
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
2043
|
+
* @param extensionName The name of the machine extension.
|
|
2044
|
+
* @param options The options parameters.
|
|
2045
|
+
*/
|
|
2046
|
+
beginDelete(resourceGroupName, clusterName, arcSettingName, extensionName, options) {
|
|
2047
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2048
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2049
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2050
|
+
});
|
|
2051
|
+
const sendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2052
|
+
var _a;
|
|
2053
|
+
let currentRawResponse = undefined;
|
|
2054
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2055
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2056
|
+
currentRawResponse = rawResponse;
|
|
2057
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2058
|
+
};
|
|
2059
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2060
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2061
|
+
return {
|
|
2062
|
+
flatResponse,
|
|
2063
|
+
rawResponse: {
|
|
2064
|
+
statusCode: currentRawResponse.status,
|
|
2065
|
+
body: currentRawResponse.parsedBody,
|
|
2066
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2067
|
+
}
|
|
2068
|
+
};
|
|
2069
|
+
});
|
|
2070
|
+
const lro = new LroImpl(sendOperation, {
|
|
2071
|
+
resourceGroupName,
|
|
2072
|
+
clusterName,
|
|
2073
|
+
arcSettingName,
|
|
2074
|
+
extensionName,
|
|
2075
|
+
options
|
|
2076
|
+
}, deleteOperationSpec$2);
|
|
2077
|
+
return new coreLro.LroEngine(lro, {
|
|
2078
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2079
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2080
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
2081
|
+
});
|
|
2082
|
+
});
|
|
2083
|
+
}
|
|
2084
|
+
/**
|
|
2085
|
+
* Delete particular Arc Extension of HCI Cluster.
|
|
2086
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2087
|
+
* @param clusterName The name of the cluster.
|
|
2088
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
2089
|
+
* @param extensionName The name of the machine extension.
|
|
2090
|
+
* @param options The options parameters.
|
|
2091
|
+
*/
|
|
2092
|
+
beginDeleteAndWait(resourceGroupName, clusterName, arcSettingName, extensionName, options) {
|
|
2093
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2094
|
+
const poller = yield this.beginDelete(resourceGroupName, clusterName, arcSettingName, extensionName, options);
|
|
2095
|
+
return poller.pollUntilDone();
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* ListByArcSettingNext
|
|
2100
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
2101
|
+
* @param clusterName The name of the cluster.
|
|
2102
|
+
* @param arcSettingName The name of the proxy resource holding details of HCI ArcSetting information.
|
|
2103
|
+
* @param nextLink The nextLink from the previous successful call to the ListByArcSetting method.
|
|
2104
|
+
* @param options The options parameters.
|
|
2105
|
+
*/
|
|
2106
|
+
_listByArcSettingNext(resourceGroupName, clusterName, arcSettingName, nextLink, options) {
|
|
2107
|
+
return this.client.sendOperationRequest({ resourceGroupName, clusterName, arcSettingName, nextLink, options }, listByArcSettingNextOperationSpec);
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
// Operation Specifications
|
|
2111
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2112
|
+
const listByArcSettingOperationSpec = {
|
|
2113
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions",
|
|
2114
|
+
httpMethod: "GET",
|
|
2115
|
+
responses: {
|
|
2116
|
+
200: {
|
|
2117
|
+
bodyMapper: ExtensionList
|
|
2118
|
+
},
|
|
2119
|
+
default: {
|
|
2120
|
+
bodyMapper: ErrorResponse
|
|
2121
|
+
}
|
|
2122
|
+
},
|
|
2123
|
+
queryParameters: [apiVersion],
|
|
2124
|
+
urlParameters: [
|
|
2125
|
+
$host,
|
|
2126
|
+
subscriptionId,
|
|
2127
|
+
resourceGroupName,
|
|
2128
|
+
clusterName,
|
|
2129
|
+
arcSettingName
|
|
2130
|
+
],
|
|
2131
|
+
headerParameters: [accept],
|
|
2132
|
+
serializer: serializer$2
|
|
2133
|
+
};
|
|
2134
|
+
const getOperationSpec$2 = {
|
|
2135
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}",
|
|
2136
|
+
httpMethod: "GET",
|
|
2137
|
+
responses: {
|
|
2138
|
+
200: {
|
|
2139
|
+
bodyMapper: Extension
|
|
2140
|
+
},
|
|
2141
|
+
default: {
|
|
2142
|
+
bodyMapper: ErrorResponse
|
|
2143
|
+
}
|
|
2144
|
+
},
|
|
2145
|
+
queryParameters: [apiVersion],
|
|
2146
|
+
urlParameters: [
|
|
2147
|
+
$host,
|
|
2148
|
+
subscriptionId,
|
|
2149
|
+
resourceGroupName,
|
|
2150
|
+
clusterName,
|
|
2151
|
+
arcSettingName,
|
|
2152
|
+
extensionName
|
|
2153
|
+
],
|
|
2154
|
+
headerParameters: [accept],
|
|
2155
|
+
serializer: serializer$2
|
|
2156
|
+
};
|
|
2157
|
+
const createOperationSpec$2 = {
|
|
2158
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}",
|
|
2159
|
+
httpMethod: "PUT",
|
|
2160
|
+
responses: {
|
|
2161
|
+
200: {
|
|
2162
|
+
bodyMapper: Extension
|
|
2163
|
+
},
|
|
2164
|
+
201: {
|
|
2165
|
+
bodyMapper: Extension
|
|
2166
|
+
},
|
|
2167
|
+
202: {
|
|
2168
|
+
bodyMapper: Extension
|
|
2169
|
+
},
|
|
2170
|
+
204: {
|
|
2171
|
+
bodyMapper: Extension
|
|
2172
|
+
},
|
|
2173
|
+
default: {
|
|
2174
|
+
bodyMapper: ErrorResponse
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
requestBody: extension,
|
|
2178
|
+
queryParameters: [apiVersion],
|
|
2179
|
+
urlParameters: [
|
|
2180
|
+
$host,
|
|
2181
|
+
subscriptionId,
|
|
2182
|
+
resourceGroupName,
|
|
2183
|
+
clusterName,
|
|
2184
|
+
arcSettingName,
|
|
2185
|
+
extensionName
|
|
2186
|
+
],
|
|
2187
|
+
headerParameters: [accept, contentType],
|
|
2188
|
+
mediaType: "json",
|
|
2189
|
+
serializer: serializer$2
|
|
2190
|
+
};
|
|
2191
|
+
const updateOperationSpec$1 = {
|
|
2192
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}",
|
|
2193
|
+
httpMethod: "PATCH",
|
|
2194
|
+
responses: {
|
|
2195
|
+
200: {
|
|
2196
|
+
bodyMapper: Extension
|
|
2197
|
+
},
|
|
2198
|
+
201: {
|
|
2199
|
+
bodyMapper: Extension
|
|
2200
|
+
},
|
|
2201
|
+
202: {
|
|
2202
|
+
bodyMapper: Extension
|
|
2203
|
+
},
|
|
2204
|
+
204: {
|
|
2205
|
+
bodyMapper: Extension
|
|
2206
|
+
},
|
|
2207
|
+
default: {
|
|
2208
|
+
bodyMapper: ErrorResponse
|
|
2209
|
+
}
|
|
2210
|
+
},
|
|
2211
|
+
requestBody: extension,
|
|
2212
|
+
queryParameters: [apiVersion],
|
|
2213
|
+
urlParameters: [
|
|
2214
|
+
$host,
|
|
2215
|
+
subscriptionId,
|
|
2216
|
+
resourceGroupName,
|
|
2217
|
+
clusterName,
|
|
2218
|
+
arcSettingName,
|
|
2219
|
+
extensionName
|
|
2220
|
+
],
|
|
2221
|
+
headerParameters: [accept, contentType],
|
|
2222
|
+
mediaType: "json",
|
|
2223
|
+
serializer: serializer$2
|
|
2224
|
+
};
|
|
2225
|
+
const deleteOperationSpec$2 = {
|
|
2226
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName}",
|
|
2227
|
+
httpMethod: "DELETE",
|
|
2228
|
+
responses: {
|
|
2229
|
+
200: {},
|
|
2230
|
+
201: {},
|
|
2231
|
+
202: {},
|
|
2232
|
+
204: {},
|
|
2233
|
+
default: {
|
|
2234
|
+
bodyMapper: ErrorResponse
|
|
2235
|
+
}
|
|
2236
|
+
},
|
|
2237
|
+
queryParameters: [apiVersion],
|
|
2238
|
+
urlParameters: [
|
|
2239
|
+
$host,
|
|
2240
|
+
subscriptionId,
|
|
2241
|
+
resourceGroupName,
|
|
2242
|
+
clusterName,
|
|
2243
|
+
arcSettingName,
|
|
2244
|
+
extensionName
|
|
2245
|
+
],
|
|
2246
|
+
headerParameters: [accept],
|
|
2247
|
+
serializer: serializer$2
|
|
2248
|
+
};
|
|
2249
|
+
const listByArcSettingNextOperationSpec = {
|
|
2250
|
+
path: "{nextLink}",
|
|
2251
|
+
httpMethod: "GET",
|
|
2252
|
+
responses: {
|
|
2253
|
+
200: {
|
|
2254
|
+
bodyMapper: ExtensionList
|
|
2255
|
+
},
|
|
2256
|
+
default: {
|
|
2257
|
+
bodyMapper: ErrorResponse
|
|
2258
|
+
}
|
|
2259
|
+
},
|
|
2260
|
+
queryParameters: [apiVersion],
|
|
2261
|
+
urlParameters: [
|
|
2262
|
+
$host,
|
|
2263
|
+
subscriptionId,
|
|
2264
|
+
resourceGroupName,
|
|
2265
|
+
clusterName,
|
|
2266
|
+
arcSettingName,
|
|
2267
|
+
nextLink
|
|
2268
|
+
],
|
|
2269
|
+
headerParameters: [accept],
|
|
2270
|
+
serializer: serializer$2
|
|
2271
|
+
};
|
|
2272
|
+
|
|
2273
|
+
/*
|
|
2274
|
+
* Copyright (c) Microsoft Corporation.
|
|
2275
|
+
* Licensed under the MIT License.
|
|
2276
|
+
*
|
|
2277
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2278
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2279
|
+
*/
|
|
2280
|
+
/** Class containing Operations operations. */
|
|
2281
|
+
class OperationsImpl {
|
|
2282
|
+
/**
|
|
2283
|
+
* Initialize a new instance of the class Operations class.
|
|
2284
|
+
* @param client Reference to the service client
|
|
2285
|
+
*/
|
|
2286
|
+
constructor(client) {
|
|
2287
|
+
this.client = client;
|
|
2288
|
+
}
|
|
2289
|
+
/**
|
|
2290
|
+
* List all available Microsoft.AzureStackHCI provider operations
|
|
2291
|
+
* @param options The options parameters.
|
|
2292
|
+
*/
|
|
2293
|
+
list(options) {
|
|
2294
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
2295
|
+
}
|
|
2296
|
+
}
|
|
2297
|
+
// Operation Specifications
|
|
2298
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
2299
|
+
const listOperationSpec = {
|
|
2300
|
+
path: "/providers/Microsoft.AzureStackHCI/operations",
|
|
2301
|
+
httpMethod: "GET",
|
|
2302
|
+
responses: {
|
|
2303
|
+
200: {
|
|
2304
|
+
bodyMapper: OperationListResult
|
|
2305
|
+
},
|
|
2306
|
+
default: {
|
|
2307
|
+
bodyMapper: ErrorResponse
|
|
2308
|
+
}
|
|
2309
|
+
},
|
|
2310
|
+
queryParameters: [apiVersion],
|
|
2311
|
+
urlParameters: [$host],
|
|
2312
|
+
headerParameters: [accept],
|
|
2313
|
+
serializer: serializer$3
|
|
2314
|
+
};
|
|
2315
|
+
|
|
2316
|
+
/*
|
|
2317
|
+
* Copyright (c) Microsoft Corporation.
|
|
2318
|
+
* Licensed under the MIT License.
|
|
2319
|
+
*
|
|
2320
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2321
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2322
|
+
*/
|
|
2323
|
+
class AzureStackHCIClient extends coreClient.ServiceClient {
|
|
2324
|
+
/**
|
|
2325
|
+
* Initializes a new instance of the AzureStackHCIClient class.
|
|
2326
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2327
|
+
* @param subscriptionId The ID of the target subscription.
|
|
2328
|
+
* @param options The parameter options
|
|
2329
|
+
*/
|
|
2330
|
+
constructor(credentials, subscriptionId, options) {
|
|
2331
|
+
if (credentials === undefined) {
|
|
2332
|
+
throw new Error("'credentials' cannot be null");
|
|
2333
|
+
}
|
|
2334
|
+
if (subscriptionId === undefined) {
|
|
2335
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
2336
|
+
}
|
|
2337
|
+
// Initializing default values for options
|
|
2338
|
+
if (!options) {
|
|
2339
|
+
options = {};
|
|
2340
|
+
}
|
|
2341
|
+
const defaults = {
|
|
2342
|
+
requestContentType: "application/json; charset=utf-8",
|
|
2343
|
+
credential: credentials
|
|
2344
|
+
};
|
|
2345
|
+
const packageDetails = `azsdk-js-arm-azurestackhci/2.0.0`;
|
|
2346
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2347
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2348
|
+
: `${packageDetails}`;
|
|
2349
|
+
if (!options.credentialScopes) {
|
|
2350
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
2351
|
+
}
|
|
2352
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2353
|
+
userAgentPrefix
|
|
2354
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
2355
|
+
super(optionsWithDefaults);
|
|
2356
|
+
// Parameter assignments
|
|
2357
|
+
this.subscriptionId = subscriptionId;
|
|
2358
|
+
// Assigning values to Constant parameters
|
|
2359
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
2360
|
+
this.apiVersion = options.apiVersion || "2021-09-01";
|
|
2361
|
+
this.arcSettings = new ArcSettingsImpl(this);
|
|
2362
|
+
this.clusters = new ClustersImpl(this);
|
|
2363
|
+
this.extensions = new ExtensionsImpl(this);
|
|
2364
|
+
this.operations = new OperationsImpl(this);
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
|
|
2368
|
+
exports.AzureStackHCIClient = AzureStackHCIClient;
|
|
2369
|
+
//# sourceMappingURL=index.js.map
|