@azure/arm-selfhelp 1.0.1-alpha.20231023.1 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +92 -8
- package/README.md +2 -2
- package/dist/index.js +2043 -379
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityPostSample.d.ts +2 -0
- package/dist-esm/samples-dev/checkNameAvailabilityPostSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{diagnosticsCheckNameAvailabilitySample.js → checkNameAvailabilityPostSample.js} +9 -9
- package/dist-esm/samples-dev/checkNameAvailabilityPostSample.js.map +1 -0
- package/dist-esm/samples-dev/diagnosticsCreateSample.js +5 -14
- package/dist-esm/samples-dev/diagnosticsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticsGetSample.js +2 -2
- package/dist-esm/samples-dev/discoverySolutionListSample.js +42 -6
- package/dist-esm/samples-dev/discoverySolutionListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/solutionCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionCreateSample.js +46 -0
- package/dist-esm/samples-dev/solutionCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionGetSample.js +37 -0
- package/dist-esm/samples-dev/solutionGetSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionUpdateSample.js +37 -0
- package/dist-esm/samples-dev/solutionUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/troubleshootersContinueSample.d.ts +2 -0
- package/dist-esm/samples-dev/troubleshootersContinueSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/troubleshootersContinueSample.js +50 -0
- package/dist-esm/samples-dev/troubleshootersContinueSample.js.map +1 -0
- package/dist-esm/samples-dev/troubleshootersCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/troubleshootersCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/troubleshootersCreateSample.js +46 -0
- package/dist-esm/samples-dev/troubleshootersCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/troubleshootersEndSample.d.ts +2 -0
- package/dist-esm/samples-dev/troubleshootersEndSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/troubleshootersEndSample.js +37 -0
- package/dist-esm/samples-dev/troubleshootersEndSample.js.map +1 -0
- package/dist-esm/samples-dev/troubleshootersGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/troubleshootersGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/troubleshootersGetSample.js +37 -0
- package/dist-esm/samples-dev/troubleshootersGetSample.js.map +1 -0
- package/dist-esm/samples-dev/troubleshootersRestartSample.d.ts +2 -0
- package/dist-esm/samples-dev/troubleshootersRestartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/troubleshootersRestartSample.js +37 -0
- package/dist-esm/samples-dev/troubleshootersRestartSample.js.map +1 -0
- package/dist-esm/src/helpRP.d.ts +4 -1
- package/dist-esm/src/helpRP.d.ts.map +1 -1
- package/dist-esm/src/helpRP.js +6 -3
- package/dist-esm/src/helpRP.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +641 -22
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +140 -8
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +30 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +988 -13
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +48 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.d.ts +21 -0
- package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -0
- package/dist-esm/src/operations/checkNameAvailability.js +51 -0
- package/dist-esm/src/operations/checkNameAvailability.js.map +1 -0
- package/dist-esm/src/operations/diagnostics.d.ts +11 -18
- package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
- package/dist-esm/src/operations/diagnostics.js +10 -37
- package/dist-esm/src/operations/diagnostics.js.map +1 -1
- package/dist-esm/src/operations/discoverySolution.d.ts +20 -14
- package/dist-esm/src/operations/discoverySolution.d.ts.map +1 -1
- package/dist-esm/src/operations/discoverySolution.js +20 -14
- package/dist-esm/src/operations/discoverySolution.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +3 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +3 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/solution.d.ts +78 -0
- package/dist-esm/src/operations/solution.d.ts.map +1 -0
- package/dist-esm/src/operations/solution.js +262 -0
- package/dist-esm/src/operations/solution.js.map +1 -0
- package/dist-esm/src/operations/troubleshooters.d.ts +70 -0
- package/dist-esm/src/operations/troubleshooters.d.ts.map +1 -0
- package/dist-esm/src/operations/troubleshooters.js +198 -0
- package/dist-esm/src/operations/troubleshooters.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.js +9 -0
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/diagnostics.d.ts +11 -18
- package/dist-esm/src/operationsInterfaces/diagnostics.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts +10 -7
- package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +3 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/solution.d.ts +70 -0
- package/dist-esm/src/operationsInterfaces/solution.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/solution.js +9 -0
- package/dist-esm/src/operationsInterfaces/solution.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/troubleshooters.js +9 -0
- package/dist-esm/src/operationsInterfaces/troubleshooters.js.map +1 -0
- package/dist-esm/test/selfhelp_operations_test.spec.js +2 -12
- package/dist-esm/test/selfhelp_operations_test.spec.js.map +1 -1
- package/package.json +6 -6
- package/review/arm-selfhelp.api.md +469 -17
- package/src/helpRP.ts +16 -4
- package/src/models/index.ts +712 -22
- package/src/models/mappers.ts +1024 -13
- package/src/models/parameters.ts +58 -2
- package/src/operations/checkNameAvailability.ts +68 -0
- package/src/operations/diagnostics.ts +10 -46
- package/src/operations/discoverySolution.ts +20 -14
- package/src/operations/index.ts +3 -0
- package/src/operations/solution.ts +349 -0
- package/src/operations/troubleshooters.ts +261 -0
- package/src/operationsInterfaces/checkNameAvailability.ts +27 -0
- package/src/operationsInterfaces/diagnostics.ts +10 -22
- package/src/operationsInterfaces/discoverySolution.ts +10 -7
- package/src/operationsInterfaces/index.ts +3 -0
- package/src/operationsInterfaces/solution.ts +115 -0
- package/src/operationsInterfaces/troubleshooters.ts +101 -0
- package/types/arm-selfhelp.d.ts +892 -63
- package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.d.ts +0 -2
- package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -80,18 +80,18 @@ exports.KnownActionType = void 0;
|
|
|
80
80
|
/** Internal */
|
|
81
81
|
KnownActionType["Internal"] = "Internal";
|
|
82
82
|
})(exports.KnownActionType || (exports.KnownActionType = {}));
|
|
83
|
-
/** Known values of {@link
|
|
84
|
-
exports.
|
|
85
|
-
(function (
|
|
83
|
+
/** Known values of {@link DiagnosticProvisioningState} that the service accepts. */
|
|
84
|
+
exports.KnownDiagnosticProvisioningState = void 0;
|
|
85
|
+
(function (KnownDiagnosticProvisioningState) {
|
|
86
86
|
/** All Diagnostics in the Batch succeeded. */
|
|
87
|
-
|
|
87
|
+
KnownDiagnosticProvisioningState["Succeeded"] = "Succeeded";
|
|
88
88
|
/** Some Diagnostics are still running or failed. */
|
|
89
|
-
|
|
89
|
+
KnownDiagnosticProvisioningState["PartialComplete"] = "PartialComplete";
|
|
90
90
|
/** All Diagnostics failed to run. */
|
|
91
|
-
|
|
91
|
+
KnownDiagnosticProvisioningState["Failed"] = "Failed";
|
|
92
92
|
/** When Diagnostic request gets canceled. */
|
|
93
|
-
|
|
94
|
-
})(exports.
|
|
93
|
+
KnownDiagnosticProvisioningState["Canceled"] = "Canceled";
|
|
94
|
+
})(exports.KnownDiagnosticProvisioningState || (exports.KnownDiagnosticProvisioningState = {}));
|
|
95
95
|
/** Known values of {@link Status} that the service accepts. */
|
|
96
96
|
exports.KnownStatus = void 0;
|
|
97
97
|
(function (KnownStatus) {
|
|
@@ -128,6 +128,138 @@ exports.KnownCreatedByType = void 0;
|
|
|
128
128
|
/** Key */
|
|
129
129
|
KnownCreatedByType["Key"] = "Key";
|
|
130
130
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
131
|
+
/** Known values of {@link SolutionType} that the service accepts. */
|
|
132
|
+
exports.KnownSolutionType = void 0;
|
|
133
|
+
(function (KnownSolutionType) {
|
|
134
|
+
/** Diagnostics resource type. */
|
|
135
|
+
KnownSolutionType["Diagnostics"] = "Diagnostics";
|
|
136
|
+
/** Solutions resource type. */
|
|
137
|
+
KnownSolutionType["Solutions"] = "Solutions";
|
|
138
|
+
})(exports.KnownSolutionType || (exports.KnownSolutionType = {}));
|
|
139
|
+
/** Known values of {@link Name} that the service accepts. */
|
|
140
|
+
exports.KnownName = void 0;
|
|
141
|
+
(function (KnownName) {
|
|
142
|
+
/** SolutionId */
|
|
143
|
+
KnownName["SolutionId"] = "SolutionId";
|
|
144
|
+
/** ProblemClassificationId */
|
|
145
|
+
KnownName["ProblemClassificationId"] = "ProblemClassificationId";
|
|
146
|
+
/** ReplacementKey */
|
|
147
|
+
KnownName["ReplacementKey"] = "ReplacementKey";
|
|
148
|
+
})(exports.KnownName || (exports.KnownName = {}));
|
|
149
|
+
/** Known values of {@link SolutionProvisioningState} that the service accepts. */
|
|
150
|
+
exports.KnownSolutionProvisioningState = void 0;
|
|
151
|
+
(function (KnownSolutionProvisioningState) {
|
|
152
|
+
/** Succeeded */
|
|
153
|
+
KnownSolutionProvisioningState["Succeeded"] = "Succeeded";
|
|
154
|
+
/** Failed */
|
|
155
|
+
KnownSolutionProvisioningState["Failed"] = "Failed";
|
|
156
|
+
/** Canceled */
|
|
157
|
+
KnownSolutionProvisioningState["Canceled"] = "Canceled";
|
|
158
|
+
})(exports.KnownSolutionProvisioningState || (exports.KnownSolutionProvisioningState = {}));
|
|
159
|
+
/** Known values of {@link Confidence} that the service accepts. */
|
|
160
|
+
exports.KnownConfidence = void 0;
|
|
161
|
+
(function (KnownConfidence) {
|
|
162
|
+
/** Low */
|
|
163
|
+
KnownConfidence["Low"] = "Low";
|
|
164
|
+
/** Medium */
|
|
165
|
+
KnownConfidence["Medium"] = "Medium";
|
|
166
|
+
/** High */
|
|
167
|
+
KnownConfidence["High"] = "High";
|
|
168
|
+
})(exports.KnownConfidence || (exports.KnownConfidence = {}));
|
|
169
|
+
/** Known values of {@link ResultType} that the service accepts. */
|
|
170
|
+
exports.KnownResultType = void 0;
|
|
171
|
+
(function (KnownResultType) {
|
|
172
|
+
/** Community */
|
|
173
|
+
KnownResultType["Community"] = "Community";
|
|
174
|
+
/** Documentation */
|
|
175
|
+
KnownResultType["Documentation"] = "Documentation";
|
|
176
|
+
})(exports.KnownResultType || (exports.KnownResultType = {}));
|
|
177
|
+
/** Known values of {@link AggregationType} that the service accepts. */
|
|
178
|
+
exports.KnownAggregationType = void 0;
|
|
179
|
+
(function (KnownAggregationType) {
|
|
180
|
+
/** Sum */
|
|
181
|
+
KnownAggregationType["Sum"] = "Sum";
|
|
182
|
+
/** Avg */
|
|
183
|
+
KnownAggregationType["Avg"] = "Avg";
|
|
184
|
+
/** Count */
|
|
185
|
+
KnownAggregationType["Count"] = "Count";
|
|
186
|
+
/** Min */
|
|
187
|
+
KnownAggregationType["Min"] = "Min";
|
|
188
|
+
/** Max */
|
|
189
|
+
KnownAggregationType["Max"] = "Max";
|
|
190
|
+
})(exports.KnownAggregationType || (exports.KnownAggregationType = {}));
|
|
191
|
+
/** Known values of {@link TroubleshooterProvisioningState} that the service accepts. */
|
|
192
|
+
exports.KnownTroubleshooterProvisioningState = void 0;
|
|
193
|
+
(function (KnownTroubleshooterProvisioningState) {
|
|
194
|
+
/** Succeeded */
|
|
195
|
+
KnownTroubleshooterProvisioningState["Succeeded"] = "Succeeded";
|
|
196
|
+
/** Failed */
|
|
197
|
+
KnownTroubleshooterProvisioningState["Failed"] = "Failed";
|
|
198
|
+
/** Canceled */
|
|
199
|
+
KnownTroubleshooterProvisioningState["Canceled"] = "Canceled";
|
|
200
|
+
/** Running */
|
|
201
|
+
KnownTroubleshooterProvisioningState["Running"] = "Running";
|
|
202
|
+
/** AutoContinue */
|
|
203
|
+
KnownTroubleshooterProvisioningState["AutoContinue"] = "AutoContinue";
|
|
204
|
+
})(exports.KnownTroubleshooterProvisioningState || (exports.KnownTroubleshooterProvisioningState = {}));
|
|
205
|
+
/** Known values of {@link ExecutionStatus} that the service accepts. */
|
|
206
|
+
exports.KnownExecutionStatus = void 0;
|
|
207
|
+
(function (KnownExecutionStatus) {
|
|
208
|
+
/** Success */
|
|
209
|
+
KnownExecutionStatus["Success"] = "Success";
|
|
210
|
+
/** Running */
|
|
211
|
+
KnownExecutionStatus["Running"] = "Running";
|
|
212
|
+
/** Failed */
|
|
213
|
+
KnownExecutionStatus["Failed"] = "Failed";
|
|
214
|
+
/** Warning */
|
|
215
|
+
KnownExecutionStatus["Warning"] = "Warning";
|
|
216
|
+
})(exports.KnownExecutionStatus || (exports.KnownExecutionStatus = {}));
|
|
217
|
+
/** Known values of {@link Type} that the service accepts. */
|
|
218
|
+
exports.KnownType = void 0;
|
|
219
|
+
(function (KnownType) {
|
|
220
|
+
/** Decision */
|
|
221
|
+
KnownType["Decision"] = "Decision";
|
|
222
|
+
/** Solution */
|
|
223
|
+
KnownType["Solution"] = "Solution";
|
|
224
|
+
/** Insight */
|
|
225
|
+
KnownType["Insight"] = "Insight";
|
|
226
|
+
/** AutomatedCheck */
|
|
227
|
+
KnownType["AutomatedCheck"] = "AutomatedCheck";
|
|
228
|
+
})(exports.KnownType || (exports.KnownType = {}));
|
|
229
|
+
/** Known values of {@link QuestionContentType} that the service accepts. */
|
|
230
|
+
exports.KnownQuestionContentType = void 0;
|
|
231
|
+
(function (KnownQuestionContentType) {
|
|
232
|
+
/** Text */
|
|
233
|
+
KnownQuestionContentType["Text"] = "Text";
|
|
234
|
+
/** Html */
|
|
235
|
+
KnownQuestionContentType["Html"] = "Html";
|
|
236
|
+
/** Markdown */
|
|
237
|
+
KnownQuestionContentType["Markdown"] = "Markdown";
|
|
238
|
+
})(exports.KnownQuestionContentType || (exports.KnownQuestionContentType = {}));
|
|
239
|
+
/** Known values of {@link AutomatedCheckResultType} that the service accepts. */
|
|
240
|
+
exports.KnownAutomatedCheckResultType = void 0;
|
|
241
|
+
(function (KnownAutomatedCheckResultType) {
|
|
242
|
+
/** Success */
|
|
243
|
+
KnownAutomatedCheckResultType["Success"] = "Success";
|
|
244
|
+
/** Warning */
|
|
245
|
+
KnownAutomatedCheckResultType["Warning"] = "Warning";
|
|
246
|
+
/** Error */
|
|
247
|
+
KnownAutomatedCheckResultType["Error"] = "Error";
|
|
248
|
+
/** Information */
|
|
249
|
+
KnownAutomatedCheckResultType["Information"] = "Information";
|
|
250
|
+
})(exports.KnownAutomatedCheckResultType || (exports.KnownAutomatedCheckResultType = {}));
|
|
251
|
+
/** Known values of {@link QuestionType} that the service accepts. */
|
|
252
|
+
exports.KnownQuestionType = void 0;
|
|
253
|
+
(function (KnownQuestionType) {
|
|
254
|
+
/** SingleChoice radio button */
|
|
255
|
+
KnownQuestionType["RadioButton"] = "RadioButton";
|
|
256
|
+
/** SingleChoice dropdown. */
|
|
257
|
+
KnownQuestionType["Dropdown"] = "Dropdown";
|
|
258
|
+
/** Text Input */
|
|
259
|
+
KnownQuestionType["TextInput"] = "TextInput";
|
|
260
|
+
/** MultiLineInfoBox */
|
|
261
|
+
KnownQuestionType["MultiLineInfoBox"] = "MultiLineInfoBox";
|
|
262
|
+
})(exports.KnownQuestionType || (exports.KnownQuestionType = {}));
|
|
131
263
|
|
|
132
264
|
/*
|
|
133
265
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -621,235 +753,1629 @@ const DiscoveryResponse = {
|
|
|
621
753
|
}
|
|
622
754
|
}
|
|
623
755
|
};
|
|
624
|
-
const
|
|
756
|
+
const SolutionMetadataProperties = {
|
|
625
757
|
type: {
|
|
626
758
|
name: "Composite",
|
|
627
|
-
className: "
|
|
628
|
-
modelProperties:
|
|
759
|
+
className: "SolutionMetadataProperties",
|
|
760
|
+
modelProperties: {
|
|
761
|
+
solutionId: {
|
|
762
|
+
serializedName: "solutionId",
|
|
763
|
+
type: {
|
|
764
|
+
name: "String"
|
|
765
|
+
}
|
|
766
|
+
},
|
|
767
|
+
solutionType: {
|
|
768
|
+
serializedName: "solutionType",
|
|
769
|
+
readOnly: true,
|
|
770
|
+
type: {
|
|
771
|
+
name: "String"
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
description: {
|
|
775
|
+
serializedName: "description",
|
|
776
|
+
readOnly: true,
|
|
777
|
+
type: {
|
|
778
|
+
name: "String"
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
requiredInputs: {
|
|
782
|
+
serializedName: "requiredInputs",
|
|
783
|
+
readOnly: true,
|
|
784
|
+
type: {
|
|
785
|
+
name: "Sequence",
|
|
786
|
+
element: {
|
|
787
|
+
type: {
|
|
788
|
+
name: "String"
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
629
794
|
}
|
|
630
795
|
};
|
|
631
|
-
const
|
|
796
|
+
const SolutionResource = {
|
|
632
797
|
type: {
|
|
633
798
|
name: "Composite",
|
|
634
|
-
className: "
|
|
635
|
-
modelProperties:
|
|
636
|
-
|
|
799
|
+
className: "SolutionResource",
|
|
800
|
+
modelProperties: {
|
|
801
|
+
id: {
|
|
802
|
+
serializedName: "id",
|
|
803
|
+
readOnly: true,
|
|
637
804
|
type: {
|
|
638
|
-
name: "
|
|
639
|
-
value: { type: { name: "String" } }
|
|
805
|
+
name: "String"
|
|
640
806
|
}
|
|
641
|
-
},
|
|
642
|
-
|
|
807
|
+
},
|
|
808
|
+
type: {
|
|
809
|
+
serializedName: "type",
|
|
810
|
+
readOnly: true,
|
|
811
|
+
type: {
|
|
812
|
+
name: "String"
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
name: {
|
|
816
|
+
serializedName: "name",
|
|
817
|
+
readOnly: true,
|
|
818
|
+
type: {
|
|
819
|
+
name: "String"
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
properties: {
|
|
823
|
+
serializedName: "properties",
|
|
824
|
+
type: {
|
|
825
|
+
name: "Composite",
|
|
826
|
+
className: "SolutionResourceProperties"
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
};
|
|
832
|
+
const SolutionResourceProperties = {
|
|
833
|
+
type: {
|
|
834
|
+
name: "Composite",
|
|
835
|
+
className: "SolutionResourceProperties",
|
|
836
|
+
modelProperties: {
|
|
837
|
+
triggerCriteria: {
|
|
838
|
+
serializedName: "triggerCriteria",
|
|
643
839
|
type: {
|
|
644
840
|
name: "Sequence",
|
|
645
841
|
element: {
|
|
646
842
|
type: {
|
|
647
843
|
name: "Composite",
|
|
648
|
-
className: "
|
|
844
|
+
className: "TriggerCriterion"
|
|
649
845
|
}
|
|
650
846
|
}
|
|
651
847
|
}
|
|
652
|
-
},
|
|
653
|
-
|
|
654
|
-
|
|
848
|
+
},
|
|
849
|
+
parameters: {
|
|
850
|
+
serializedName: "parameters",
|
|
851
|
+
type: {
|
|
852
|
+
name: "Dictionary",
|
|
853
|
+
value: { type: { name: "String" } }
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
solutionId: {
|
|
857
|
+
serializedName: "solutionId",
|
|
655
858
|
type: {
|
|
656
859
|
name: "String"
|
|
657
860
|
}
|
|
658
|
-
},
|
|
659
|
-
|
|
660
|
-
|
|
861
|
+
},
|
|
862
|
+
provisioningState: {
|
|
863
|
+
serializedName: "provisioningState",
|
|
661
864
|
type: {
|
|
662
865
|
name: "String"
|
|
663
866
|
}
|
|
664
|
-
},
|
|
665
|
-
|
|
666
|
-
|
|
867
|
+
},
|
|
868
|
+
title: {
|
|
869
|
+
serializedName: "title",
|
|
870
|
+
type: {
|
|
871
|
+
name: "String"
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
content: {
|
|
875
|
+
serializedName: "content",
|
|
876
|
+
type: {
|
|
877
|
+
name: "String"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
replacementMaps: {
|
|
881
|
+
serializedName: "replacementMaps",
|
|
882
|
+
type: {
|
|
883
|
+
name: "Composite",
|
|
884
|
+
className: "ReplacementMaps"
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
sections: {
|
|
888
|
+
serializedName: "sections",
|
|
667
889
|
type: {
|
|
668
890
|
name: "Sequence",
|
|
669
891
|
element: {
|
|
670
892
|
type: {
|
|
671
893
|
name: "Composite",
|
|
672
|
-
className: "
|
|
894
|
+
className: "Section"
|
|
673
895
|
}
|
|
674
896
|
}
|
|
675
897
|
}
|
|
676
|
-
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
677
900
|
}
|
|
678
901
|
};
|
|
679
|
-
const
|
|
902
|
+
const TriggerCriterion = {
|
|
680
903
|
type: {
|
|
681
904
|
name: "Composite",
|
|
682
|
-
className: "
|
|
683
|
-
modelProperties:
|
|
684
|
-
|
|
905
|
+
className: "TriggerCriterion",
|
|
906
|
+
modelProperties: {
|
|
907
|
+
name: {
|
|
908
|
+
serializedName: "name",
|
|
685
909
|
type: {
|
|
686
910
|
name: "String"
|
|
687
911
|
}
|
|
688
|
-
},
|
|
689
|
-
|
|
912
|
+
},
|
|
913
|
+
value: {
|
|
914
|
+
serializedName: "value",
|
|
690
915
|
type: {
|
|
691
916
|
name: "String"
|
|
692
917
|
}
|
|
693
|
-
}
|
|
694
|
-
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
const ReplacementMaps = {
|
|
923
|
+
type: {
|
|
924
|
+
name: "Composite",
|
|
925
|
+
className: "ReplacementMaps",
|
|
926
|
+
modelProperties: {
|
|
927
|
+
webResults: {
|
|
928
|
+
serializedName: "webResults",
|
|
695
929
|
type: {
|
|
696
|
-
name: "
|
|
930
|
+
name: "Sequence",
|
|
931
|
+
element: {
|
|
932
|
+
type: {
|
|
933
|
+
name: "Composite",
|
|
934
|
+
className: "WebResult"
|
|
935
|
+
}
|
|
936
|
+
}
|
|
697
937
|
}
|
|
698
|
-
},
|
|
699
|
-
|
|
938
|
+
},
|
|
939
|
+
diagnostics: {
|
|
940
|
+
serializedName: "diagnostics",
|
|
700
941
|
type: {
|
|
701
942
|
name: "Sequence",
|
|
702
943
|
element: {
|
|
703
944
|
type: {
|
|
704
|
-
name: "
|
|
705
|
-
|
|
706
|
-
type: {
|
|
707
|
-
name: "String"
|
|
708
|
-
}
|
|
709
|
-
}
|
|
945
|
+
name: "Composite",
|
|
946
|
+
className: "SolutionsDiagnostic"
|
|
710
947
|
}
|
|
711
948
|
}
|
|
712
949
|
}
|
|
713
|
-
}
|
|
950
|
+
},
|
|
951
|
+
troubleshooters: {
|
|
952
|
+
serializedName: "troubleshooters",
|
|
953
|
+
type: {
|
|
954
|
+
name: "Sequence",
|
|
955
|
+
element: {
|
|
956
|
+
type: {
|
|
957
|
+
name: "Composite",
|
|
958
|
+
className: "SolutionsTroubleshooters"
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
metricsBasedCharts: {
|
|
964
|
+
serializedName: "metricsBasedCharts",
|
|
965
|
+
type: {
|
|
966
|
+
name: "Sequence",
|
|
967
|
+
element: {
|
|
968
|
+
type: {
|
|
969
|
+
name: "Composite",
|
|
970
|
+
className: "MetricsBasedChart"
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
videos: {
|
|
976
|
+
serializedName: "videos",
|
|
977
|
+
type: {
|
|
978
|
+
name: "Sequence",
|
|
979
|
+
element: {
|
|
980
|
+
type: {
|
|
981
|
+
name: "Composite",
|
|
982
|
+
className: "Video"
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
videoGroups: {
|
|
988
|
+
serializedName: "videoGroups",
|
|
989
|
+
type: {
|
|
990
|
+
name: "Sequence",
|
|
991
|
+
element: {
|
|
992
|
+
type: {
|
|
993
|
+
name: "Composite",
|
|
994
|
+
className: "VideoGroup"
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}
|
|
714
1000
|
}
|
|
715
1001
|
};
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
/*
|
|
740
|
-
* Copyright (c) Microsoft Corporation.
|
|
741
|
-
* Licensed under the MIT License.
|
|
742
|
-
*
|
|
743
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
744
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
745
|
-
*/
|
|
746
|
-
const accept = {
|
|
747
|
-
parameterPath: "accept",
|
|
748
|
-
mapper: {
|
|
749
|
-
defaultValue: "application/json",
|
|
750
|
-
isConstant: true,
|
|
751
|
-
serializedName: "Accept",
|
|
752
|
-
type: {
|
|
753
|
-
name: "String"
|
|
1002
|
+
const WebResult = {
|
|
1003
|
+
type: {
|
|
1004
|
+
name: "Composite",
|
|
1005
|
+
className: "WebResult",
|
|
1006
|
+
modelProperties: {
|
|
1007
|
+
replacementKey: {
|
|
1008
|
+
serializedName: "replacementKey",
|
|
1009
|
+
type: {
|
|
1010
|
+
name: "String"
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
searchResults: {
|
|
1014
|
+
serializedName: "searchResults",
|
|
1015
|
+
type: {
|
|
1016
|
+
name: "Sequence",
|
|
1017
|
+
element: {
|
|
1018
|
+
type: {
|
|
1019
|
+
name: "Composite",
|
|
1020
|
+
className: "SearchResult"
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
754
1025
|
}
|
|
755
1026
|
}
|
|
756
|
-
};
|
|
757
|
-
const
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
1027
|
+
};
|
|
1028
|
+
const SearchResult = {
|
|
1029
|
+
type: {
|
|
1030
|
+
name: "Composite",
|
|
1031
|
+
className: "SearchResult",
|
|
1032
|
+
modelProperties: {
|
|
1033
|
+
solutionId: {
|
|
1034
|
+
serializedName: "solutionId",
|
|
1035
|
+
type: {
|
|
1036
|
+
name: "String"
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
content: {
|
|
1040
|
+
serializedName: "content",
|
|
1041
|
+
type: {
|
|
1042
|
+
name: "String"
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
title: {
|
|
1046
|
+
serializedName: "title",
|
|
1047
|
+
type: {
|
|
1048
|
+
name: "String"
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
confidence: {
|
|
1052
|
+
serializedName: "confidence",
|
|
1053
|
+
type: {
|
|
1054
|
+
name: "String"
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
source: {
|
|
1058
|
+
serializedName: "source",
|
|
1059
|
+
type: {
|
|
1060
|
+
name: "String"
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
resultType: {
|
|
1064
|
+
serializedName: "resultType",
|
|
1065
|
+
type: {
|
|
1066
|
+
name: "String"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
rank: {
|
|
1070
|
+
serializedName: "rank",
|
|
1071
|
+
type: {
|
|
1072
|
+
name: "Number"
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
link: {
|
|
1076
|
+
serializedName: "link",
|
|
1077
|
+
type: {
|
|
1078
|
+
name: "String"
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
const SolutionsDiagnostic = {
|
|
1085
|
+
type: {
|
|
1086
|
+
name: "Composite",
|
|
1087
|
+
className: "SolutionsDiagnostic",
|
|
1088
|
+
modelProperties: {
|
|
1089
|
+
solutionId: {
|
|
1090
|
+
serializedName: "solutionId",
|
|
1091
|
+
type: {
|
|
1092
|
+
name: "String"
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
status: {
|
|
1096
|
+
serializedName: "status",
|
|
1097
|
+
type: {
|
|
1098
|
+
name: "String"
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
statusDetails: {
|
|
1102
|
+
serializedName: "statusDetails",
|
|
1103
|
+
type: {
|
|
1104
|
+
name: "String"
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
replacementKey: {
|
|
1108
|
+
serializedName: "replacementKey",
|
|
1109
|
+
type: {
|
|
1110
|
+
name: "String"
|
|
1111
|
+
}
|
|
1112
|
+
},
|
|
1113
|
+
requiredParameters: {
|
|
1114
|
+
serializedName: "requiredParameters",
|
|
1115
|
+
type: {
|
|
1116
|
+
name: "Sequence",
|
|
1117
|
+
element: {
|
|
1118
|
+
type: {
|
|
1119
|
+
name: "String"
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
insights: {
|
|
1125
|
+
serializedName: "insights",
|
|
1126
|
+
type: {
|
|
1127
|
+
name: "Sequence",
|
|
1128
|
+
element: {
|
|
1129
|
+
type: {
|
|
1130
|
+
name: "Composite",
|
|
1131
|
+
className: "Insight"
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
};
|
|
1139
|
+
const SolutionsTroubleshooters = {
|
|
1140
|
+
type: {
|
|
1141
|
+
name: "Composite",
|
|
1142
|
+
className: "SolutionsTroubleshooters",
|
|
1143
|
+
modelProperties: {
|
|
1144
|
+
solutionId: {
|
|
1145
|
+
serializedName: "solutionId",
|
|
1146
|
+
type: {
|
|
1147
|
+
name: "String"
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
title: {
|
|
1151
|
+
serializedName: "title",
|
|
1152
|
+
type: {
|
|
1153
|
+
name: "String"
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1156
|
+
summary: {
|
|
1157
|
+
serializedName: "summary",
|
|
1158
|
+
type: {
|
|
1159
|
+
name: "String"
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
const MetricsBasedChart = {
|
|
1166
|
+
type: {
|
|
1167
|
+
name: "Composite",
|
|
1168
|
+
className: "MetricsBasedChart",
|
|
1169
|
+
modelProperties: {
|
|
1170
|
+
name: {
|
|
1171
|
+
serializedName: "name",
|
|
1172
|
+
type: {
|
|
1173
|
+
name: "String"
|
|
1174
|
+
}
|
|
1175
|
+
},
|
|
1176
|
+
aggregationType: {
|
|
1177
|
+
serializedName: "aggregationType",
|
|
1178
|
+
type: {
|
|
1179
|
+
name: "String"
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
timeSpanDuration: {
|
|
1183
|
+
serializedName: "timeSpanDuration",
|
|
1184
|
+
type: {
|
|
1185
|
+
name: "String"
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
title: {
|
|
1189
|
+
serializedName: "title",
|
|
1190
|
+
type: {
|
|
1191
|
+
name: "String"
|
|
1192
|
+
}
|
|
1193
|
+
},
|
|
1194
|
+
filterGroup: {
|
|
1195
|
+
serializedName: "filterGroup",
|
|
1196
|
+
type: {
|
|
1197
|
+
name: "Composite",
|
|
1198
|
+
className: "FilterGroup"
|
|
1199
|
+
}
|
|
1200
|
+
},
|
|
1201
|
+
replacementKey: {
|
|
1202
|
+
serializedName: "replacementKey",
|
|
1203
|
+
type: {
|
|
1204
|
+
name: "String"
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
};
|
|
1210
|
+
const FilterGroup = {
|
|
1211
|
+
type: {
|
|
1212
|
+
name: "Composite",
|
|
1213
|
+
className: "FilterGroup",
|
|
1214
|
+
modelProperties: {
|
|
1215
|
+
filter: {
|
|
1216
|
+
serializedName: "filter",
|
|
1217
|
+
type: {
|
|
1218
|
+
name: "Sequence",
|
|
1219
|
+
element: {
|
|
1220
|
+
type: {
|
|
1221
|
+
name: "Composite",
|
|
1222
|
+
className: "Filter"
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
const Filter = {
|
|
1231
|
+
type: {
|
|
1232
|
+
name: "Composite",
|
|
1233
|
+
className: "Filter",
|
|
1234
|
+
modelProperties: {
|
|
1235
|
+
name: {
|
|
1236
|
+
serializedName: "name",
|
|
1237
|
+
type: {
|
|
1238
|
+
name: "String"
|
|
1239
|
+
}
|
|
1240
|
+
},
|
|
1241
|
+
values: {
|
|
1242
|
+
serializedName: "values",
|
|
1243
|
+
type: {
|
|
1244
|
+
name: "String"
|
|
1245
|
+
}
|
|
1246
|
+
},
|
|
1247
|
+
operator: {
|
|
1248
|
+
serializedName: "operator",
|
|
1249
|
+
type: {
|
|
1250
|
+
name: "String"
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
};
|
|
1256
|
+
const VideoGroupVideo = {
|
|
1257
|
+
type: {
|
|
1258
|
+
name: "Composite",
|
|
1259
|
+
className: "VideoGroupVideo",
|
|
1260
|
+
modelProperties: {
|
|
1261
|
+
src: {
|
|
1262
|
+
serializedName: "src",
|
|
1263
|
+
type: {
|
|
1264
|
+
name: "String"
|
|
1265
|
+
}
|
|
1266
|
+
},
|
|
1267
|
+
title: {
|
|
1268
|
+
serializedName: "title",
|
|
1269
|
+
type: {
|
|
1270
|
+
name: "String"
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
};
|
|
1276
|
+
const VideoGroup = {
|
|
1277
|
+
type: {
|
|
1278
|
+
name: "Composite",
|
|
1279
|
+
className: "VideoGroup",
|
|
1280
|
+
modelProperties: {
|
|
1281
|
+
videos: {
|
|
1282
|
+
serializedName: "videos",
|
|
1283
|
+
type: {
|
|
1284
|
+
name: "Sequence",
|
|
1285
|
+
element: {
|
|
1286
|
+
type: {
|
|
1287
|
+
name: "Composite",
|
|
1288
|
+
className: "VideoGroupVideo"
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
replacementKey: {
|
|
1294
|
+
serializedName: "replacementKey",
|
|
1295
|
+
type: {
|
|
1296
|
+
name: "String"
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
};
|
|
1302
|
+
const Section = {
|
|
1303
|
+
type: {
|
|
1304
|
+
name: "Composite",
|
|
1305
|
+
className: "Section",
|
|
1306
|
+
modelProperties: {
|
|
1307
|
+
title: {
|
|
1308
|
+
serializedName: "title",
|
|
1309
|
+
type: {
|
|
1310
|
+
name: "String"
|
|
1311
|
+
}
|
|
1312
|
+
},
|
|
1313
|
+
content: {
|
|
1314
|
+
serializedName: "content",
|
|
1315
|
+
type: {
|
|
1316
|
+
name: "String"
|
|
1317
|
+
}
|
|
1318
|
+
},
|
|
1319
|
+
replacementMaps: {
|
|
1320
|
+
serializedName: "replacementMaps",
|
|
1321
|
+
type: {
|
|
1322
|
+
name: "Composite",
|
|
1323
|
+
className: "ReplacementMaps"
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
};
|
|
1329
|
+
const SolutionPatchRequestBody = {
|
|
1330
|
+
type: {
|
|
1331
|
+
name: "Composite",
|
|
1332
|
+
className: "SolutionPatchRequestBody",
|
|
1333
|
+
modelProperties: {
|
|
1334
|
+
properties: {
|
|
1335
|
+
serializedName: "properties",
|
|
1336
|
+
type: {
|
|
1337
|
+
name: "Composite",
|
|
1338
|
+
className: "SolutionResourceProperties"
|
|
1339
|
+
}
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
}
|
|
1343
|
+
};
|
|
1344
|
+
const Step = {
|
|
1345
|
+
type: {
|
|
1346
|
+
name: "Composite",
|
|
1347
|
+
className: "Step",
|
|
1348
|
+
modelProperties: {
|
|
1349
|
+
id: {
|
|
1350
|
+
serializedName: "id",
|
|
1351
|
+
type: {
|
|
1352
|
+
name: "String"
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
title: {
|
|
1356
|
+
serializedName: "title",
|
|
1357
|
+
type: {
|
|
1358
|
+
name: "String"
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
description: {
|
|
1362
|
+
serializedName: "description",
|
|
1363
|
+
type: {
|
|
1364
|
+
name: "String"
|
|
1365
|
+
}
|
|
1366
|
+
},
|
|
1367
|
+
guidance: {
|
|
1368
|
+
serializedName: "guidance",
|
|
1369
|
+
type: {
|
|
1370
|
+
name: "String"
|
|
1371
|
+
}
|
|
1372
|
+
},
|
|
1373
|
+
executionStatus: {
|
|
1374
|
+
serializedName: "executionStatus",
|
|
1375
|
+
type: {
|
|
1376
|
+
name: "String"
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
executionStatusDescription: {
|
|
1380
|
+
serializedName: "executionStatusDescription",
|
|
1381
|
+
type: {
|
|
1382
|
+
name: "String"
|
|
1383
|
+
}
|
|
1384
|
+
},
|
|
1385
|
+
type: {
|
|
1386
|
+
serializedName: "type",
|
|
1387
|
+
type: {
|
|
1388
|
+
name: "String"
|
|
1389
|
+
}
|
|
1390
|
+
},
|
|
1391
|
+
isLastStep: {
|
|
1392
|
+
serializedName: "isLastStep",
|
|
1393
|
+
type: {
|
|
1394
|
+
name: "Boolean"
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
inputs: {
|
|
1398
|
+
serializedName: "inputs",
|
|
1399
|
+
type: {
|
|
1400
|
+
name: "Sequence",
|
|
1401
|
+
element: {
|
|
1402
|
+
type: {
|
|
1403
|
+
name: "Composite",
|
|
1404
|
+
className: "StepInput"
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
},
|
|
1409
|
+
automatedCheckResults: {
|
|
1410
|
+
serializedName: "automatedCheckResults",
|
|
1411
|
+
type: {
|
|
1412
|
+
name: "Composite",
|
|
1413
|
+
className: "AutomatedCheckResult"
|
|
1414
|
+
}
|
|
1415
|
+
},
|
|
1416
|
+
insights: {
|
|
1417
|
+
serializedName: "insights",
|
|
1418
|
+
type: {
|
|
1419
|
+
name: "Sequence",
|
|
1420
|
+
element: {
|
|
1421
|
+
type: {
|
|
1422
|
+
name: "Composite",
|
|
1423
|
+
className: "Insight"
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
error: {
|
|
1429
|
+
serializedName: "error",
|
|
1430
|
+
type: {
|
|
1431
|
+
name: "Composite",
|
|
1432
|
+
className: "ErrorDetail"
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
};
|
|
1438
|
+
const StepInput = {
|
|
1439
|
+
type: {
|
|
1440
|
+
name: "Composite",
|
|
1441
|
+
className: "StepInput",
|
|
1442
|
+
modelProperties: {
|
|
1443
|
+
questionId: {
|
|
1444
|
+
serializedName: "questionId",
|
|
1445
|
+
type: {
|
|
1446
|
+
name: "String"
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1449
|
+
questionType: {
|
|
1450
|
+
serializedName: "questionType",
|
|
1451
|
+
type: {
|
|
1452
|
+
name: "String"
|
|
1453
|
+
}
|
|
1454
|
+
},
|
|
1455
|
+
questionContent: {
|
|
1456
|
+
serializedName: "questionContent",
|
|
1457
|
+
type: {
|
|
1458
|
+
name: "String"
|
|
1459
|
+
}
|
|
1460
|
+
},
|
|
1461
|
+
questionContentType: {
|
|
1462
|
+
serializedName: "questionContentType",
|
|
1463
|
+
type: {
|
|
1464
|
+
name: "String"
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
responseHint: {
|
|
1468
|
+
serializedName: "responseHint",
|
|
1469
|
+
type: {
|
|
1470
|
+
name: "String"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
recommendedOption: {
|
|
1474
|
+
serializedName: "recommendedOption",
|
|
1475
|
+
type: {
|
|
1476
|
+
name: "String"
|
|
1477
|
+
}
|
|
1478
|
+
},
|
|
1479
|
+
selectedOptionValue: {
|
|
1480
|
+
serializedName: "selectedOptionValue",
|
|
1481
|
+
type: {
|
|
1482
|
+
name: "String"
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
responseValidationProperties: {
|
|
1486
|
+
serializedName: "responseValidationProperties",
|
|
1487
|
+
type: {
|
|
1488
|
+
name: "Composite",
|
|
1489
|
+
className: "ResponseValidationProperties"
|
|
1490
|
+
}
|
|
1491
|
+
},
|
|
1492
|
+
responseOptions: {
|
|
1493
|
+
serializedName: "responseOptions",
|
|
1494
|
+
type: {
|
|
1495
|
+
name: "Sequence",
|
|
1496
|
+
element: {
|
|
1497
|
+
type: {
|
|
1498
|
+
name: "Composite",
|
|
1499
|
+
className: "ResponseOption"
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
};
|
|
1507
|
+
const ResponseValidationProperties = {
|
|
1508
|
+
type: {
|
|
1509
|
+
name: "Composite",
|
|
1510
|
+
className: "ResponseValidationProperties",
|
|
1511
|
+
modelProperties: {
|
|
1512
|
+
regex: {
|
|
1513
|
+
serializedName: "regex",
|
|
1514
|
+
type: {
|
|
1515
|
+
name: "String"
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
isRequired: {
|
|
1519
|
+
serializedName: "isRequired",
|
|
1520
|
+
type: {
|
|
1521
|
+
name: "Boolean"
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
validationErrorMessage: {
|
|
1525
|
+
serializedName: "validationErrorMessage",
|
|
1526
|
+
type: {
|
|
1527
|
+
name: "String"
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
maxLength: {
|
|
1531
|
+
serializedName: "maxLength",
|
|
1532
|
+
type: {
|
|
1533
|
+
name: "Number"
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
};
|
|
1539
|
+
const ResponseOption = {
|
|
1540
|
+
type: {
|
|
1541
|
+
name: "Composite",
|
|
1542
|
+
className: "ResponseOption",
|
|
1543
|
+
modelProperties: {
|
|
1544
|
+
key: {
|
|
1545
|
+
serializedName: "key",
|
|
1546
|
+
type: {
|
|
1547
|
+
name: "String"
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
value: {
|
|
1551
|
+
serializedName: "value",
|
|
1552
|
+
type: {
|
|
1553
|
+
name: "String"
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
};
|
|
1559
|
+
const AutomatedCheckResult = {
|
|
1560
|
+
type: {
|
|
1561
|
+
name: "Composite",
|
|
1562
|
+
className: "AutomatedCheckResult",
|
|
1563
|
+
modelProperties: {
|
|
1564
|
+
result: {
|
|
1565
|
+
serializedName: "result",
|
|
1566
|
+
type: {
|
|
1567
|
+
name: "String"
|
|
1568
|
+
}
|
|
1569
|
+
},
|
|
1570
|
+
type: {
|
|
1571
|
+
serializedName: "type",
|
|
1572
|
+
type: {
|
|
1573
|
+
name: "String"
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
};
|
|
1579
|
+
const ContinueRequestBody = {
|
|
1580
|
+
type: {
|
|
1581
|
+
name: "Composite",
|
|
1582
|
+
className: "ContinueRequestBody",
|
|
1583
|
+
modelProperties: {
|
|
1584
|
+
stepId: {
|
|
1585
|
+
serializedName: "stepId",
|
|
1586
|
+
type: {
|
|
1587
|
+
name: "String"
|
|
1588
|
+
}
|
|
1589
|
+
},
|
|
1590
|
+
responses: {
|
|
1591
|
+
serializedName: "responses",
|
|
1592
|
+
type: {
|
|
1593
|
+
name: "Sequence",
|
|
1594
|
+
element: {
|
|
1595
|
+
type: {
|
|
1596
|
+
name: "Composite",
|
|
1597
|
+
className: "TroubleshooterResponse"
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
};
|
|
1605
|
+
const TroubleshooterResponse = {
|
|
1606
|
+
type: {
|
|
1607
|
+
name: "Composite",
|
|
1608
|
+
className: "TroubleshooterResponse",
|
|
1609
|
+
modelProperties: {
|
|
1610
|
+
questionId: {
|
|
1611
|
+
serializedName: "questionId",
|
|
1612
|
+
type: {
|
|
1613
|
+
name: "String"
|
|
1614
|
+
}
|
|
1615
|
+
},
|
|
1616
|
+
questionType: {
|
|
1617
|
+
serializedName: "questionType",
|
|
1618
|
+
type: {
|
|
1619
|
+
name: "String"
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
response: {
|
|
1623
|
+
serializedName: "response",
|
|
1624
|
+
type: {
|
|
1625
|
+
name: "String"
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
};
|
|
1631
|
+
const RestartTroubleshooterResponse = {
|
|
1632
|
+
type: {
|
|
1633
|
+
name: "Composite",
|
|
1634
|
+
className: "RestartTroubleshooterResponse",
|
|
1635
|
+
modelProperties: {
|
|
1636
|
+
troubleshooterResourceName: {
|
|
1637
|
+
serializedName: "troubleshooterResourceName",
|
|
1638
|
+
readOnly: true,
|
|
1639
|
+
type: {
|
|
1640
|
+
name: "String"
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
};
|
|
1646
|
+
const ProxyResource = {
|
|
1647
|
+
type: {
|
|
1648
|
+
name: "Composite",
|
|
1649
|
+
className: "ProxyResource",
|
|
1650
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
1651
|
+
}
|
|
1652
|
+
};
|
|
1653
|
+
const Video = {
|
|
1654
|
+
type: {
|
|
1655
|
+
name: "Composite",
|
|
1656
|
+
className: "Video",
|
|
1657
|
+
modelProperties: Object.assign(Object.assign({}, VideoGroupVideo.type.modelProperties), { replacementKey: {
|
|
1658
|
+
serializedName: "replacementKey",
|
|
1659
|
+
type: {
|
|
1660
|
+
name: "String"
|
|
1661
|
+
}
|
|
1662
|
+
} })
|
|
1663
|
+
}
|
|
1664
|
+
};
|
|
1665
|
+
const DiagnosticResource = {
|
|
1666
|
+
type: {
|
|
1667
|
+
name: "Composite",
|
|
1668
|
+
className: "DiagnosticResource",
|
|
1669
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { globalParameters: {
|
|
1670
|
+
serializedName: "properties.globalParameters",
|
|
1671
|
+
type: {
|
|
1672
|
+
name: "Dictionary",
|
|
1673
|
+
value: { type: { name: "String" } }
|
|
1674
|
+
}
|
|
1675
|
+
}, insights: {
|
|
1676
|
+
serializedName: "properties.insights",
|
|
1677
|
+
type: {
|
|
1678
|
+
name: "Sequence",
|
|
1679
|
+
element: {
|
|
1680
|
+
type: {
|
|
1681
|
+
name: "Composite",
|
|
1682
|
+
className: "DiagnosticInvocation"
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
}, acceptedAt: {
|
|
1687
|
+
serializedName: "properties.acceptedAt",
|
|
1688
|
+
readOnly: true,
|
|
1689
|
+
type: {
|
|
1690
|
+
name: "String"
|
|
1691
|
+
}
|
|
1692
|
+
}, provisioningState: {
|
|
1693
|
+
serializedName: "properties.provisioningState",
|
|
1694
|
+
readOnly: true,
|
|
1695
|
+
type: {
|
|
1696
|
+
name: "String"
|
|
1697
|
+
}
|
|
1698
|
+
}, diagnostics: {
|
|
1699
|
+
serializedName: "properties.diagnostics",
|
|
1700
|
+
readOnly: true,
|
|
1701
|
+
type: {
|
|
1702
|
+
name: "Sequence",
|
|
1703
|
+
element: {
|
|
1704
|
+
type: {
|
|
1705
|
+
name: "Composite",
|
|
1706
|
+
className: "Diagnostic"
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
} })
|
|
1711
|
+
}
|
|
1712
|
+
};
|
|
1713
|
+
const SolutionMetadataResource = {
|
|
1714
|
+
type: {
|
|
1715
|
+
name: "Composite",
|
|
1716
|
+
className: "SolutionMetadataResource",
|
|
1717
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { solutions: {
|
|
1718
|
+
serializedName: "properties.solutions",
|
|
1719
|
+
type: {
|
|
1720
|
+
name: "Sequence",
|
|
1721
|
+
element: {
|
|
1722
|
+
type: {
|
|
1723
|
+
name: "Composite",
|
|
1724
|
+
className: "SolutionMetadataProperties"
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
}
|
|
1728
|
+
} })
|
|
1729
|
+
}
|
|
1730
|
+
};
|
|
1731
|
+
const TroubleshooterResource = {
|
|
1732
|
+
type: {
|
|
1733
|
+
name: "Composite",
|
|
1734
|
+
className: "TroubleshooterResource",
|
|
1735
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { solutionId: {
|
|
1736
|
+
serializedName: "properties.solutionId",
|
|
1737
|
+
type: {
|
|
1738
|
+
name: "String"
|
|
1739
|
+
}
|
|
1740
|
+
}, parameters: {
|
|
1741
|
+
serializedName: "properties.parameters",
|
|
1742
|
+
type: {
|
|
1743
|
+
name: "Dictionary",
|
|
1744
|
+
value: { type: { name: "String" } }
|
|
1745
|
+
}
|
|
1746
|
+
}, provisioningState: {
|
|
1747
|
+
serializedName: "properties.provisioningState",
|
|
1748
|
+
readOnly: true,
|
|
1749
|
+
type: {
|
|
1750
|
+
name: "String"
|
|
1751
|
+
}
|
|
1752
|
+
}, steps: {
|
|
1753
|
+
serializedName: "properties.steps",
|
|
1754
|
+
readOnly: true,
|
|
1755
|
+
type: {
|
|
1756
|
+
name: "Sequence",
|
|
1757
|
+
element: {
|
|
1758
|
+
type: {
|
|
1759
|
+
name: "Composite",
|
|
1760
|
+
className: "Step"
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
}
|
|
1764
|
+
} })
|
|
1765
|
+
}
|
|
1766
|
+
};
|
|
1767
|
+
const SolutionUpdateHeaders = {
|
|
1768
|
+
type: {
|
|
1769
|
+
name: "Composite",
|
|
1770
|
+
className: "SolutionUpdateHeaders",
|
|
1771
|
+
modelProperties: {
|
|
1772
|
+
location: {
|
|
1773
|
+
serializedName: "location",
|
|
1774
|
+
type: {
|
|
1775
|
+
name: "String"
|
|
1776
|
+
}
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
};
|
|
1781
|
+
const TroubleshootersContinueHeaders = {
|
|
1782
|
+
type: {
|
|
1783
|
+
name: "Composite",
|
|
1784
|
+
className: "TroubleshootersContinueHeaders",
|
|
1785
|
+
modelProperties: {
|
|
1786
|
+
location: {
|
|
1787
|
+
serializedName: "location",
|
|
1788
|
+
type: {
|
|
1789
|
+
name: "String"
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
};
|
|
1795
|
+
const TroubleshootersEndHeaders = {
|
|
1796
|
+
type: {
|
|
1797
|
+
name: "Composite",
|
|
1798
|
+
className: "TroubleshootersEndHeaders",
|
|
1799
|
+
modelProperties: {
|
|
1800
|
+
location: {
|
|
1801
|
+
serializedName: "location",
|
|
1802
|
+
type: {
|
|
1803
|
+
name: "String"
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
};
|
|
1809
|
+
const TroubleshootersRestartHeaders = {
|
|
1810
|
+
type: {
|
|
1811
|
+
name: "Composite",
|
|
1812
|
+
className: "TroubleshootersRestartHeaders",
|
|
1813
|
+
modelProperties: {
|
|
1814
|
+
location: {
|
|
1815
|
+
serializedName: "location",
|
|
1816
|
+
type: {
|
|
1817
|
+
name: "String"
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
};
|
|
1823
|
+
|
|
1824
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1825
|
+
__proto__: null,
|
|
1826
|
+
AutomatedCheckResult: AutomatedCheckResult,
|
|
1827
|
+
CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
|
|
1828
|
+
CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
|
|
1829
|
+
ContinueRequestBody: ContinueRequestBody,
|
|
1830
|
+
Diagnostic: Diagnostic,
|
|
1831
|
+
DiagnosticInvocation: DiagnosticInvocation,
|
|
1832
|
+
DiagnosticResource: DiagnosticResource,
|
|
1833
|
+
DiscoveryResponse: DiscoveryResponse,
|
|
1834
|
+
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1835
|
+
ErrorDetail: ErrorDetail,
|
|
1836
|
+
ErrorModel: ErrorModel,
|
|
1837
|
+
ErrorResponse: ErrorResponse,
|
|
1838
|
+
Filter: Filter,
|
|
1839
|
+
FilterGroup: FilterGroup,
|
|
1840
|
+
Insight: Insight,
|
|
1841
|
+
MetricsBasedChart: MetricsBasedChart,
|
|
1842
|
+
Operation: Operation,
|
|
1843
|
+
OperationDisplay: OperationDisplay,
|
|
1844
|
+
OperationListResult: OperationListResult,
|
|
1845
|
+
ProxyResource: ProxyResource,
|
|
1846
|
+
ReplacementMaps: ReplacementMaps,
|
|
1847
|
+
Resource: Resource,
|
|
1848
|
+
ResponseOption: ResponseOption,
|
|
1849
|
+
ResponseValidationProperties: ResponseValidationProperties,
|
|
1850
|
+
RestartTroubleshooterResponse: RestartTroubleshooterResponse,
|
|
1851
|
+
SearchResult: SearchResult,
|
|
1852
|
+
Section: Section,
|
|
1853
|
+
SolutionMetadataProperties: SolutionMetadataProperties,
|
|
1854
|
+
SolutionMetadataResource: SolutionMetadataResource,
|
|
1855
|
+
SolutionPatchRequestBody: SolutionPatchRequestBody,
|
|
1856
|
+
SolutionResource: SolutionResource,
|
|
1857
|
+
SolutionResourceProperties: SolutionResourceProperties,
|
|
1858
|
+
SolutionUpdateHeaders: SolutionUpdateHeaders,
|
|
1859
|
+
SolutionsDiagnostic: SolutionsDiagnostic,
|
|
1860
|
+
SolutionsTroubleshooters: SolutionsTroubleshooters,
|
|
1861
|
+
Step: Step,
|
|
1862
|
+
StepInput: StepInput,
|
|
1863
|
+
SystemData: SystemData,
|
|
1864
|
+
TriggerCriterion: TriggerCriterion,
|
|
1865
|
+
TroubleshooterResource: TroubleshooterResource,
|
|
1866
|
+
TroubleshooterResponse: TroubleshooterResponse,
|
|
1867
|
+
TroubleshootersContinueHeaders: TroubleshootersContinueHeaders,
|
|
1868
|
+
TroubleshootersEndHeaders: TroubleshootersEndHeaders,
|
|
1869
|
+
TroubleshootersRestartHeaders: TroubleshootersRestartHeaders,
|
|
1870
|
+
Video: Video,
|
|
1871
|
+
VideoGroup: VideoGroup,
|
|
1872
|
+
VideoGroupVideo: VideoGroupVideo,
|
|
1873
|
+
WebResult: WebResult
|
|
1874
|
+
});
|
|
1875
|
+
|
|
1876
|
+
/*
|
|
1877
|
+
* Copyright (c) Microsoft Corporation.
|
|
1878
|
+
* Licensed under the MIT License.
|
|
1879
|
+
*
|
|
1880
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1881
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1882
|
+
*/
|
|
1883
|
+
const accept = {
|
|
1884
|
+
parameterPath: "accept",
|
|
1885
|
+
mapper: {
|
|
1886
|
+
defaultValue: "application/json",
|
|
1887
|
+
isConstant: true,
|
|
1888
|
+
serializedName: "Accept",
|
|
1889
|
+
type: {
|
|
1890
|
+
name: "String"
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
};
|
|
1894
|
+
const $host = {
|
|
1895
|
+
parameterPath: "$host",
|
|
1896
|
+
mapper: {
|
|
1897
|
+
serializedName: "$host",
|
|
1898
|
+
required: true,
|
|
1899
|
+
type: {
|
|
1900
|
+
name: "String"
|
|
1901
|
+
}
|
|
1902
|
+
},
|
|
1903
|
+
skipEncoding: true
|
|
1904
|
+
};
|
|
1905
|
+
const apiVersion = {
|
|
1906
|
+
parameterPath: "apiVersion",
|
|
1907
|
+
mapper: {
|
|
1908
|
+
defaultValue: "2023-09-01-preview",
|
|
1909
|
+
isConstant: true,
|
|
1910
|
+
serializedName: "api-version",
|
|
1911
|
+
type: {
|
|
1912
|
+
name: "String"
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
};
|
|
1916
|
+
const nextLink = {
|
|
1917
|
+
parameterPath: "nextLink",
|
|
1918
|
+
mapper: {
|
|
1919
|
+
serializedName: "nextLink",
|
|
1920
|
+
required: true,
|
|
1921
|
+
type: {
|
|
1922
|
+
name: "String"
|
|
1923
|
+
}
|
|
1924
|
+
},
|
|
1925
|
+
skipEncoding: true
|
|
1926
|
+
};
|
|
1927
|
+
const contentType = {
|
|
1928
|
+
parameterPath: ["options", "contentType"],
|
|
1929
|
+
mapper: {
|
|
1930
|
+
defaultValue: "application/json",
|
|
1931
|
+
isConstant: true,
|
|
1932
|
+
serializedName: "Content-Type",
|
|
1933
|
+
type: {
|
|
1934
|
+
name: "String"
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
};
|
|
1938
|
+
const checkNameAvailabilityRequest = {
|
|
1939
|
+
parameterPath: ["options", "checkNameAvailabilityRequest"],
|
|
1940
|
+
mapper: CheckNameAvailabilityRequest
|
|
1941
|
+
};
|
|
1942
|
+
const scope = {
|
|
1943
|
+
parameterPath: "scope",
|
|
1944
|
+
mapper: {
|
|
1945
|
+
serializedName: "scope",
|
|
1946
|
+
required: true,
|
|
1947
|
+
type: {
|
|
1948
|
+
name: "String"
|
|
1949
|
+
}
|
|
1950
|
+
},
|
|
1951
|
+
skipEncoding: true
|
|
1952
|
+
};
|
|
1953
|
+
const diagnosticResourceRequest = {
|
|
1954
|
+
parameterPath: ["options", "diagnosticResourceRequest"],
|
|
1955
|
+
mapper: DiagnosticResource
|
|
1956
|
+
};
|
|
1957
|
+
const diagnosticsResourceName = {
|
|
1958
|
+
parameterPath: "diagnosticsResourceName",
|
|
1959
|
+
mapper: {
|
|
1960
|
+
constraints: {
|
|
1961
|
+
Pattern: new RegExp("^[A-Za-z0-9-+@()_]+$"),
|
|
1962
|
+
MaxLength: 100,
|
|
1963
|
+
MinLength: 1
|
|
1964
|
+
},
|
|
1965
|
+
serializedName: "diagnosticsResourceName",
|
|
1966
|
+
required: true,
|
|
1967
|
+
type: {
|
|
1968
|
+
name: "String"
|
|
1969
|
+
}
|
|
1970
|
+
}
|
|
1971
|
+
};
|
|
1972
|
+
const filter = {
|
|
1973
|
+
parameterPath: ["options", "filter"],
|
|
1974
|
+
mapper: {
|
|
1975
|
+
serializedName: "$filter",
|
|
1976
|
+
type: {
|
|
1977
|
+
name: "String"
|
|
1978
|
+
}
|
|
1979
|
+
},
|
|
1980
|
+
skipEncoding: true
|
|
1981
|
+
};
|
|
1982
|
+
const skiptoken = {
|
|
1983
|
+
parameterPath: ["options", "skiptoken"],
|
|
1984
|
+
mapper: {
|
|
1985
|
+
serializedName: "$skiptoken",
|
|
1986
|
+
type: {
|
|
1987
|
+
name: "String"
|
|
1988
|
+
}
|
|
1989
|
+
}
|
|
1990
|
+
};
|
|
1991
|
+
const solutionRequestBody = {
|
|
1992
|
+
parameterPath: ["options", "solutionRequestBody"],
|
|
1993
|
+
mapper: SolutionResource
|
|
1994
|
+
};
|
|
1995
|
+
const solutionResourceName = {
|
|
1996
|
+
parameterPath: "solutionResourceName",
|
|
1997
|
+
mapper: {
|
|
1998
|
+
constraints: {
|
|
1999
|
+
Pattern: new RegExp("^[A-Za-z0-9-+@()_]+$"),
|
|
2000
|
+
MaxLength: 100,
|
|
2001
|
+
MinLength: 1
|
|
2002
|
+
},
|
|
2003
|
+
serializedName: "solutionResourceName",
|
|
2004
|
+
required: true,
|
|
2005
|
+
type: {
|
|
2006
|
+
name: "String"
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
};
|
|
2010
|
+
const solutionPatchRequestBody = {
|
|
2011
|
+
parameterPath: ["options", "solutionPatchRequestBody"],
|
|
2012
|
+
mapper: SolutionPatchRequestBody
|
|
2013
|
+
};
|
|
2014
|
+
const createTroubleshooterRequestBody = {
|
|
2015
|
+
parameterPath: ["options", "createTroubleshooterRequestBody"],
|
|
2016
|
+
mapper: TroubleshooterResource
|
|
2017
|
+
};
|
|
2018
|
+
const troubleshooterName = {
|
|
2019
|
+
parameterPath: "troubleshooterName",
|
|
2020
|
+
mapper: {
|
|
2021
|
+
constraints: {
|
|
2022
|
+
Pattern: new RegExp("([A-Za-z0-9]+(-[A-Za-z0-9]+)+)"),
|
|
2023
|
+
MaxLength: 100,
|
|
2024
|
+
MinLength: 1
|
|
2025
|
+
},
|
|
2026
|
+
serializedName: "troubleshooterName",
|
|
2027
|
+
required: true,
|
|
2028
|
+
type: {
|
|
2029
|
+
name: "String"
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2033
|
+
const continueRequestBody = {
|
|
2034
|
+
parameterPath: ["options", "continueRequestBody"],
|
|
2035
|
+
mapper: ContinueRequestBody
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
/*
|
|
2039
|
+
* Copyright (c) Microsoft Corporation.
|
|
2040
|
+
* Licensed under the MIT License.
|
|
2041
|
+
*
|
|
2042
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2043
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2044
|
+
*/
|
|
2045
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2046
|
+
/** Class containing Operations operations. */
|
|
2047
|
+
class OperationsImpl {
|
|
2048
|
+
/**
|
|
2049
|
+
* Initialize a new instance of the class Operations class.
|
|
2050
|
+
* @param client Reference to the service client
|
|
2051
|
+
*/
|
|
2052
|
+
constructor(client) {
|
|
2053
|
+
this.client = client;
|
|
2054
|
+
}
|
|
2055
|
+
/**
|
|
2056
|
+
* Returns list of operations.
|
|
2057
|
+
* @param options The options parameters.
|
|
2058
|
+
*/
|
|
2059
|
+
list(options) {
|
|
2060
|
+
const iter = this.listPagingAll(options);
|
|
2061
|
+
return {
|
|
2062
|
+
next() {
|
|
2063
|
+
return iter.next();
|
|
2064
|
+
},
|
|
2065
|
+
[Symbol.asyncIterator]() {
|
|
2066
|
+
return this;
|
|
2067
|
+
},
|
|
2068
|
+
byPage: (settings) => {
|
|
2069
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2070
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2071
|
+
}
|
|
2072
|
+
return this.listPagingPage(options, settings);
|
|
2073
|
+
}
|
|
2074
|
+
};
|
|
2075
|
+
}
|
|
2076
|
+
listPagingPage(options, settings) {
|
|
2077
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2078
|
+
let result;
|
|
2079
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2080
|
+
if (!continuationToken) {
|
|
2081
|
+
result = yield tslib.__await(this._list(options));
|
|
2082
|
+
let page = result.value || [];
|
|
2083
|
+
continuationToken = result.nextLink;
|
|
2084
|
+
setContinuationToken(page, continuationToken);
|
|
2085
|
+
yield yield tslib.__await(page);
|
|
2086
|
+
}
|
|
2087
|
+
while (continuationToken) {
|
|
2088
|
+
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2089
|
+
continuationToken = result.nextLink;
|
|
2090
|
+
let page = result.value || [];
|
|
2091
|
+
setContinuationToken(page, continuationToken);
|
|
2092
|
+
yield yield tslib.__await(page);
|
|
2093
|
+
}
|
|
2094
|
+
});
|
|
2095
|
+
}
|
|
2096
|
+
listPagingAll(options) {
|
|
2097
|
+
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2098
|
+
var _a, e_1, _b, _c;
|
|
2099
|
+
try {
|
|
2100
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2101
|
+
_c = _f.value;
|
|
2102
|
+
_d = false;
|
|
2103
|
+
const page = _c;
|
|
2104
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2108
|
+
finally {
|
|
2109
|
+
try {
|
|
2110
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2111
|
+
}
|
|
2112
|
+
finally { if (e_1) throw e_1.error; }
|
|
2113
|
+
}
|
|
2114
|
+
});
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* Returns list of operations.
|
|
2118
|
+
* @param options The options parameters.
|
|
2119
|
+
*/
|
|
2120
|
+
_list(options) {
|
|
2121
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
2122
|
+
}
|
|
2123
|
+
/**
|
|
2124
|
+
* ListNext
|
|
2125
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
2126
|
+
* @param options The options parameters.
|
|
2127
|
+
*/
|
|
2128
|
+
_listNext(nextLink, options) {
|
|
2129
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
// Operation Specifications
|
|
2133
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2134
|
+
const listOperationSpec$1 = {
|
|
2135
|
+
path: "/providers/Microsoft.Help/operations",
|
|
2136
|
+
httpMethod: "GET",
|
|
2137
|
+
responses: {
|
|
2138
|
+
200: {
|
|
2139
|
+
bodyMapper: OperationListResult
|
|
2140
|
+
},
|
|
2141
|
+
default: {
|
|
2142
|
+
bodyMapper: ErrorResponse
|
|
2143
|
+
}
|
|
2144
|
+
},
|
|
2145
|
+
queryParameters: [apiVersion],
|
|
2146
|
+
urlParameters: [$host],
|
|
2147
|
+
headerParameters: [accept],
|
|
2148
|
+
serializer: serializer$5
|
|
2149
|
+
};
|
|
2150
|
+
const listNextOperationSpec$1 = {
|
|
2151
|
+
path: "{nextLink}",
|
|
2152
|
+
httpMethod: "GET",
|
|
2153
|
+
responses: {
|
|
2154
|
+
200: {
|
|
2155
|
+
bodyMapper: OperationListResult
|
|
2156
|
+
},
|
|
2157
|
+
default: {
|
|
2158
|
+
bodyMapper: ErrorResponse
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
urlParameters: [$host, nextLink],
|
|
2162
|
+
headerParameters: [accept],
|
|
2163
|
+
serializer: serializer$5
|
|
2164
|
+
};
|
|
2165
|
+
|
|
2166
|
+
/*
|
|
2167
|
+
* Copyright (c) Microsoft Corporation.
|
|
2168
|
+
* Licensed under the MIT License.
|
|
2169
|
+
*
|
|
2170
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2171
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2172
|
+
*/
|
|
2173
|
+
/** Class containing CheckNameAvailability operations. */
|
|
2174
|
+
class CheckNameAvailabilityImpl {
|
|
2175
|
+
/**
|
|
2176
|
+
* Initialize a new instance of the class CheckNameAvailability class.
|
|
2177
|
+
* @param client Reference to the service client
|
|
2178
|
+
*/
|
|
2179
|
+
constructor(client) {
|
|
2180
|
+
this.client = client;
|
|
2181
|
+
}
|
|
2182
|
+
/**
|
|
2183
|
+
* This API is used to check the uniqueness of a resource name used for a diagnostic, troubleshooter or
|
|
2184
|
+
* solutions
|
|
2185
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2186
|
+
* at the moment.
|
|
2187
|
+
* @param options The options parameters.
|
|
2188
|
+
*/
|
|
2189
|
+
post(scope, options) {
|
|
2190
|
+
return this.client.sendOperationRequest({ scope, options }, postOperationSpec);
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
// Operation Specifications
|
|
2194
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2195
|
+
const postOperationSpec = {
|
|
2196
|
+
path: "/{scope}/providers/Microsoft.Help/checkNameAvailability",
|
|
2197
|
+
httpMethod: "POST",
|
|
2198
|
+
responses: {
|
|
2199
|
+
200: {
|
|
2200
|
+
bodyMapper: CheckNameAvailabilityResponse
|
|
2201
|
+
},
|
|
2202
|
+
default: {
|
|
2203
|
+
bodyMapper: ErrorResponse
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
2206
|
+
requestBody: checkNameAvailabilityRequest,
|
|
2207
|
+
queryParameters: [apiVersion],
|
|
2208
|
+
urlParameters: [$host, scope],
|
|
2209
|
+
headerParameters: [accept, contentType],
|
|
2210
|
+
mediaType: "json",
|
|
2211
|
+
serializer: serializer$4
|
|
2212
|
+
};
|
|
2213
|
+
|
|
2214
|
+
/*
|
|
2215
|
+
* Copyright (c) Microsoft Corporation.
|
|
2216
|
+
* Licensed under the MIT License.
|
|
2217
|
+
*
|
|
2218
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2219
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2220
|
+
*/
|
|
2221
|
+
function createLroSpec(inputs) {
|
|
2222
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
2223
|
+
return {
|
|
2224
|
+
requestMethod: spec.httpMethod,
|
|
2225
|
+
requestPath: spec.path,
|
|
2226
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2227
|
+
sendPollRequest: (path, options) => {
|
|
2228
|
+
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2229
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
2230
|
+
}
|
|
2231
|
+
};
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
/*
|
|
2235
|
+
* Copyright (c) Microsoft Corporation.
|
|
2236
|
+
* Licensed under the MIT License.
|
|
2237
|
+
*
|
|
2238
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2239
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2240
|
+
*/
|
|
2241
|
+
/** Class containing Diagnostics operations. */
|
|
2242
|
+
class DiagnosticsImpl {
|
|
2243
|
+
/**
|
|
2244
|
+
* Initialize a new instance of the class Diagnostics class.
|
|
2245
|
+
* @param client Reference to the service client
|
|
2246
|
+
*/
|
|
2247
|
+
constructor(client) {
|
|
2248
|
+
this.client = client;
|
|
2249
|
+
}
|
|
2250
|
+
/**
|
|
2251
|
+
* Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery
|
|
2252
|
+
* solutions. <br/>Diagnostics tells you precisely the root cause of the issue and the steps to address
|
|
2253
|
+
* it. You can get diagnostics once you discover the relevant solution for your Azure issue. <br/><br/>
|
|
2254
|
+
* <b>Note: </b> requiredInputs’ from Discovery solutions response must be passed via
|
|
2255
|
+
* ‘additionalParameters’ as an input to Diagnostics API.
|
|
2256
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2257
|
+
* at the moment.
|
|
2258
|
+
* @param diagnosticsResourceName Unique resource name for insight resources
|
|
2259
|
+
* @param options The options parameters.
|
|
2260
|
+
*/
|
|
2261
|
+
beginCreate(scope, diagnosticsResourceName, options) {
|
|
2262
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2263
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2264
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2265
|
+
});
|
|
2266
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2267
|
+
var _a;
|
|
2268
|
+
let currentRawResponse = undefined;
|
|
2269
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2270
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2271
|
+
currentRawResponse = rawResponse;
|
|
2272
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2273
|
+
};
|
|
2274
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2275
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2276
|
+
return {
|
|
2277
|
+
flatResponse,
|
|
2278
|
+
rawResponse: {
|
|
2279
|
+
statusCode: currentRawResponse.status,
|
|
2280
|
+
body: currentRawResponse.parsedBody,
|
|
2281
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2282
|
+
}
|
|
2283
|
+
};
|
|
2284
|
+
});
|
|
2285
|
+
const lro = createLroSpec({
|
|
2286
|
+
sendOperationFn,
|
|
2287
|
+
args: { scope, diagnosticsResourceName, options },
|
|
2288
|
+
spec: createOperationSpec$2
|
|
2289
|
+
});
|
|
2290
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2291
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2292
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2293
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2294
|
+
});
|
|
2295
|
+
yield poller.poll();
|
|
2296
|
+
return poller;
|
|
2297
|
+
});
|
|
2298
|
+
}
|
|
2299
|
+
/**
|
|
2300
|
+
* Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery
|
|
2301
|
+
* solutions. <br/>Diagnostics tells you precisely the root cause of the issue and the steps to address
|
|
2302
|
+
* it. You can get diagnostics once you discover the relevant solution for your Azure issue. <br/><br/>
|
|
2303
|
+
* <b>Note: </b> requiredInputs’ from Discovery solutions response must be passed via
|
|
2304
|
+
* ‘additionalParameters’ as an input to Diagnostics API.
|
|
2305
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2306
|
+
* at the moment.
|
|
2307
|
+
* @param diagnosticsResourceName Unique resource name for insight resources
|
|
2308
|
+
* @param options The options parameters.
|
|
2309
|
+
*/
|
|
2310
|
+
beginCreateAndWait(scope, diagnosticsResourceName, options) {
|
|
2311
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2312
|
+
const poller = yield this.beginCreate(scope, diagnosticsResourceName, options);
|
|
2313
|
+
return poller.pollUntilDone();
|
|
2314
|
+
});
|
|
777
2315
|
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
}
|
|
787
|
-
},
|
|
788
|
-
skipEncoding: true
|
|
789
|
-
};
|
|
790
|
-
const contentType = {
|
|
791
|
-
parameterPath: ["options", "contentType"],
|
|
792
|
-
mapper: {
|
|
793
|
-
defaultValue: "application/json",
|
|
794
|
-
isConstant: true,
|
|
795
|
-
serializedName: "Content-Type",
|
|
796
|
-
type: {
|
|
797
|
-
name: "String"
|
|
798
|
-
}
|
|
2316
|
+
/**
|
|
2317
|
+
* Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
|
|
2318
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2319
|
+
* at the moment.
|
|
2320
|
+
* @param diagnosticsResourceName Unique resource name for insight resources
|
|
2321
|
+
* @param options The options parameters.
|
|
2322
|
+
*/
|
|
2323
|
+
get(scope, diagnosticsResourceName, options) {
|
|
2324
|
+
return this.client.sendOperationRequest({ scope, diagnosticsResourceName, options }, getOperationSpec$2);
|
|
799
2325
|
}
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
2326
|
+
}
|
|
2327
|
+
// Operation Specifications
|
|
2328
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2329
|
+
const createOperationSpec$2 = {
|
|
2330
|
+
path: "/{scope}/providers/Microsoft.Help/diagnostics/{diagnosticsResourceName}",
|
|
2331
|
+
httpMethod: "PUT",
|
|
2332
|
+
responses: {
|
|
2333
|
+
200: {
|
|
2334
|
+
bodyMapper: DiagnosticResource
|
|
2335
|
+
},
|
|
2336
|
+
201: {
|
|
2337
|
+
bodyMapper: DiagnosticResource
|
|
2338
|
+
},
|
|
2339
|
+
202: {
|
|
2340
|
+
bodyMapper: DiagnosticResource
|
|
2341
|
+
},
|
|
2342
|
+
204: {
|
|
2343
|
+
bodyMapper: DiagnosticResource
|
|
2344
|
+
},
|
|
2345
|
+
default: {
|
|
2346
|
+
bodyMapper: ErrorResponse
|
|
812
2347
|
}
|
|
813
2348
|
},
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
2349
|
+
requestBody: diagnosticResourceRequest,
|
|
2350
|
+
queryParameters: [apiVersion],
|
|
2351
|
+
urlParameters: [
|
|
2352
|
+
$host,
|
|
2353
|
+
scope,
|
|
2354
|
+
diagnosticsResourceName
|
|
2355
|
+
],
|
|
2356
|
+
headerParameters: [accept, contentType],
|
|
2357
|
+
mediaType: "json",
|
|
2358
|
+
serializer: serializer$3
|
|
819
2359
|
};
|
|
820
|
-
const
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
MinLength: 1
|
|
2360
|
+
const getOperationSpec$2 = {
|
|
2361
|
+
path: "/{scope}/providers/Microsoft.Help/diagnostics/{diagnosticsResourceName}",
|
|
2362
|
+
httpMethod: "GET",
|
|
2363
|
+
responses: {
|
|
2364
|
+
200: {
|
|
2365
|
+
bodyMapper: DiagnosticResource
|
|
827
2366
|
},
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
type: {
|
|
831
|
-
name: "String"
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
};
|
|
835
|
-
const filter = {
|
|
836
|
-
parameterPath: ["options", "filter"],
|
|
837
|
-
mapper: {
|
|
838
|
-
serializedName: "$filter",
|
|
839
|
-
type: {
|
|
840
|
-
name: "String"
|
|
2367
|
+
default: {
|
|
2368
|
+
bodyMapper: ErrorResponse
|
|
841
2369
|
}
|
|
842
2370
|
},
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
}
|
|
852
|
-
}
|
|
2371
|
+
queryParameters: [apiVersion],
|
|
2372
|
+
urlParameters: [
|
|
2373
|
+
$host,
|
|
2374
|
+
scope,
|
|
2375
|
+
diagnosticsResourceName
|
|
2376
|
+
],
|
|
2377
|
+
headerParameters: [accept],
|
|
2378
|
+
serializer: serializer$3
|
|
853
2379
|
};
|
|
854
2380
|
|
|
855
2381
|
/*
|
|
@@ -860,21 +2386,32 @@ const skiptoken = {
|
|
|
860
2386
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
861
2387
|
*/
|
|
862
2388
|
/// <reference lib="esnext.asynciterable" />
|
|
863
|
-
/** Class containing
|
|
864
|
-
class
|
|
2389
|
+
/** Class containing DiscoverySolution operations. */
|
|
2390
|
+
class DiscoverySolutionImpl {
|
|
865
2391
|
/**
|
|
866
|
-
* Initialize a new instance of the class
|
|
2392
|
+
* Initialize a new instance of the class DiscoverySolution class.
|
|
867
2393
|
* @param client Reference to the service client
|
|
868
2394
|
*/
|
|
869
2395
|
constructor(client) {
|
|
870
2396
|
this.client = client;
|
|
871
2397
|
}
|
|
872
2398
|
/**
|
|
873
|
-
*
|
|
2399
|
+
* Lists the relevant Azure diagnostics and solutions using [problemClassification
|
|
2400
|
+
* API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
|
|
2401
|
+
* resourceUri or resourceType.<br/> Discovery Solutions is the initial entry point within Help API,
|
|
2402
|
+
* which identifies relevant Azure diagnostics and solutions. We will do our best to return the most
|
|
2403
|
+
* effective solutions based on the type of inputs, in the request URL <br/><br/> Mandatory input :
|
|
2404
|
+
* problemClassificationId (Use the [problemClassification
|
|
2405
|
+
* API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
|
|
2406
|
+
* <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
|
|
2407
|
+
* Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
|
|
2408
|
+
* and Solutions API.
|
|
2409
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2410
|
+
* at the moment.
|
|
874
2411
|
* @param options The options parameters.
|
|
875
2412
|
*/
|
|
876
|
-
list(options) {
|
|
877
|
-
const iter = this.listPagingAll(options);
|
|
2413
|
+
list(scope, options) {
|
|
2414
|
+
const iter = this.listPagingAll(scope, options);
|
|
878
2415
|
return {
|
|
879
2416
|
next() {
|
|
880
2417
|
return iter.next();
|
|
@@ -886,23 +2423,23 @@ class OperationsImpl {
|
|
|
886
2423
|
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
887
2424
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
888
2425
|
}
|
|
889
|
-
return this.listPagingPage(options, settings);
|
|
2426
|
+
return this.listPagingPage(scope, options, settings);
|
|
890
2427
|
}
|
|
891
2428
|
};
|
|
892
2429
|
}
|
|
893
|
-
listPagingPage(options, settings) {
|
|
2430
|
+
listPagingPage(scope, options, settings) {
|
|
894
2431
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
895
2432
|
let result;
|
|
896
2433
|
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
897
2434
|
if (!continuationToken) {
|
|
898
|
-
result = yield tslib.__await(this._list(options));
|
|
2435
|
+
result = yield tslib.__await(this._list(scope, options));
|
|
899
2436
|
let page = result.value || [];
|
|
900
2437
|
continuationToken = result.nextLink;
|
|
901
2438
|
setContinuationToken(page, continuationToken);
|
|
902
2439
|
yield yield tslib.__await(page);
|
|
903
2440
|
}
|
|
904
2441
|
while (continuationToken) {
|
|
905
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2442
|
+
result = yield tslib.__await(this._listNext(scope, continuationToken, options));
|
|
906
2443
|
continuationToken = result.nextLink;
|
|
907
2444
|
let page = result.value || [];
|
|
908
2445
|
setContinuationToken(page, continuationToken);
|
|
@@ -910,11 +2447,11 @@ class OperationsImpl {
|
|
|
910
2447
|
}
|
|
911
2448
|
});
|
|
912
2449
|
}
|
|
913
|
-
listPagingAll(options) {
|
|
2450
|
+
listPagingAll(scope, options) {
|
|
914
2451
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
915
2452
|
var _a, e_1, _b, _c;
|
|
916
2453
|
try {
|
|
917
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2454
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(scope, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
918
2455
|
_c = _f.value;
|
|
919
2456
|
_d = false;
|
|
920
2457
|
const page = _c;
|
|
@@ -931,51 +2468,68 @@ class OperationsImpl {
|
|
|
931
2468
|
});
|
|
932
2469
|
}
|
|
933
2470
|
/**
|
|
934
|
-
*
|
|
2471
|
+
* Lists the relevant Azure diagnostics and solutions using [problemClassification
|
|
2472
|
+
* API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
|
|
2473
|
+
* resourceUri or resourceType.<br/> Discovery Solutions is the initial entry point within Help API,
|
|
2474
|
+
* which identifies relevant Azure diagnostics and solutions. We will do our best to return the most
|
|
2475
|
+
* effective solutions based on the type of inputs, in the request URL <br/><br/> Mandatory input :
|
|
2476
|
+
* problemClassificationId (Use the [problemClassification
|
|
2477
|
+
* API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
|
|
2478
|
+
* <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
|
|
2479
|
+
* Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
|
|
2480
|
+
* and Solutions API.
|
|
2481
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2482
|
+
* at the moment.
|
|
935
2483
|
* @param options The options parameters.
|
|
936
2484
|
*/
|
|
937
|
-
_list(options) {
|
|
938
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
2485
|
+
_list(scope, options) {
|
|
2486
|
+
return this.client.sendOperationRequest({ scope, options }, listOperationSpec);
|
|
939
2487
|
}
|
|
940
2488
|
/**
|
|
941
2489
|
* ListNext
|
|
2490
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2491
|
+
* at the moment.
|
|
942
2492
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
943
2493
|
* @param options The options parameters.
|
|
944
2494
|
*/
|
|
945
|
-
_listNext(nextLink, options) {
|
|
946
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec
|
|
2495
|
+
_listNext(scope, nextLink, options) {
|
|
2496
|
+
return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec);
|
|
947
2497
|
}
|
|
948
2498
|
}
|
|
949
2499
|
// Operation Specifications
|
|
950
2500
|
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
951
|
-
const listOperationSpec
|
|
952
|
-
path: "/providers/Microsoft.Help/
|
|
2501
|
+
const listOperationSpec = {
|
|
2502
|
+
path: "/{scope}/providers/Microsoft.Help/discoverySolutions",
|
|
953
2503
|
httpMethod: "GET",
|
|
954
2504
|
responses: {
|
|
955
2505
|
200: {
|
|
956
|
-
bodyMapper:
|
|
2506
|
+
bodyMapper: DiscoveryResponse
|
|
957
2507
|
},
|
|
958
2508
|
default: {
|
|
959
2509
|
bodyMapper: ErrorResponse
|
|
960
2510
|
}
|
|
961
2511
|
},
|
|
962
|
-
queryParameters: [
|
|
963
|
-
|
|
2512
|
+
queryParameters: [
|
|
2513
|
+
apiVersion,
|
|
2514
|
+
filter,
|
|
2515
|
+
skiptoken
|
|
2516
|
+
],
|
|
2517
|
+
urlParameters: [$host, scope],
|
|
964
2518
|
headerParameters: [accept],
|
|
965
2519
|
serializer: serializer$2
|
|
966
2520
|
};
|
|
967
|
-
const listNextOperationSpec
|
|
2521
|
+
const listNextOperationSpec = {
|
|
968
2522
|
path: "{nextLink}",
|
|
969
2523
|
httpMethod: "GET",
|
|
970
2524
|
responses: {
|
|
971
2525
|
200: {
|
|
972
|
-
bodyMapper:
|
|
2526
|
+
bodyMapper: DiscoveryResponse
|
|
973
2527
|
},
|
|
974
2528
|
default: {
|
|
975
2529
|
bodyMapper: ErrorResponse
|
|
976
2530
|
}
|
|
977
2531
|
},
|
|
978
|
-
urlParameters: [$host, nextLink],
|
|
2532
|
+
urlParameters: [$host, nextLink, scope],
|
|
979
2533
|
headerParameters: [accept],
|
|
980
2534
|
serializer: serializer$2
|
|
981
2535
|
};
|
|
@@ -987,56 +2541,115 @@ const listNextOperationSpec$1 = {
|
|
|
987
2541
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
988
2542
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
989
2543
|
*/
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
2544
|
+
/** Class containing Solution operations. */
|
|
2545
|
+
class SolutionImpl {
|
|
2546
|
+
/**
|
|
2547
|
+
* Initialize a new instance of the class Solution class.
|
|
2548
|
+
* @param client Reference to the service client
|
|
2549
|
+
*/
|
|
2550
|
+
constructor(client) {
|
|
2551
|
+
this.client = client;
|
|
2552
|
+
}
|
|
2553
|
+
/**
|
|
2554
|
+
* Creates a solution for the specific Azure resource or subscription using the triggering criteria
|
|
2555
|
+
* ‘solutionId and requiredInputs’ from discovery solutions.<br/> Solutions are a rich, insightful and
|
|
2556
|
+
* a centralized self help experience that brings all the relevant content to troubleshoot an Azure
|
|
2557
|
+
* issue into a unified experience. Solutions include the following components : Text, Diagnostics ,
|
|
2558
|
+
* Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with
|
|
2559
|
+
* capabilities to support new solutions types in the future. Each solution type may require one or
|
|
2560
|
+
* more ‘requiredParameters’ that are required to execute the individual solution component. In the
|
|
2561
|
+
* absence of the ‘requiredParameters’ it is likely that some of the solutions might fail execution,
|
|
2562
|
+
* and you might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from
|
|
2563
|
+
* Discovery solutions response must be passed via ‘parameters’ in the request body of Solutions API.
|
|
2564
|
+
* <br/>2. ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in
|
|
2565
|
+
* the request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
|
|
2566
|
+
* ‘properties.parameters’ in the request for Troubleshooters
|
|
2567
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2568
|
+
* at the moment.
|
|
2569
|
+
* @param solutionResourceName Solution resource Name.
|
|
2570
|
+
* @param options The options parameters.
|
|
2571
|
+
*/
|
|
2572
|
+
beginCreate(scope, solutionResourceName, options) {
|
|
2573
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2574
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2575
|
+
return this.client.sendOperationRequest(args, spec);
|
|
2576
|
+
});
|
|
2577
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2578
|
+
var _a;
|
|
2579
|
+
let currentRawResponse = undefined;
|
|
2580
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2581
|
+
const callback = (rawResponse, flatResponse) => {
|
|
2582
|
+
currentRawResponse = rawResponse;
|
|
2583
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2584
|
+
};
|
|
2585
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2586
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2587
|
+
return {
|
|
2588
|
+
flatResponse,
|
|
2589
|
+
rawResponse: {
|
|
2590
|
+
statusCode: currentRawResponse.status,
|
|
2591
|
+
body: currentRawResponse.parsedBody,
|
|
2592
|
+
headers: currentRawResponse.headers.toJSON()
|
|
2593
|
+
}
|
|
2594
|
+
};
|
|
2595
|
+
});
|
|
2596
|
+
const lro = createLroSpec({
|
|
2597
|
+
sendOperationFn,
|
|
2598
|
+
args: { scope, solutionResourceName, options },
|
|
2599
|
+
spec: createOperationSpec$1
|
|
2600
|
+
});
|
|
2601
|
+
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2602
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2603
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
2604
|
+
resourceLocationConfig: "azure-async-operation"
|
|
2605
|
+
});
|
|
2606
|
+
yield poller.poll();
|
|
2607
|
+
return poller;
|
|
2608
|
+
});
|
|
2609
|
+
}
|
|
1012
2610
|
/**
|
|
1013
|
-
*
|
|
1014
|
-
*
|
|
2611
|
+
* Creates a solution for the specific Azure resource or subscription using the triggering criteria
|
|
2612
|
+
* ‘solutionId and requiredInputs’ from discovery solutions.<br/> Solutions are a rich, insightful and
|
|
2613
|
+
* a centralized self help experience that brings all the relevant content to troubleshoot an Azure
|
|
2614
|
+
* issue into a unified experience. Solutions include the following components : Text, Diagnostics ,
|
|
2615
|
+
* Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with
|
|
2616
|
+
* capabilities to support new solutions types in the future. Each solution type may require one or
|
|
2617
|
+
* more ‘requiredParameters’ that are required to execute the individual solution component. In the
|
|
2618
|
+
* absence of the ‘requiredParameters’ it is likely that some of the solutions might fail execution,
|
|
2619
|
+
* and you might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from
|
|
2620
|
+
* Discovery solutions response must be passed via ‘parameters’ in the request body of Solutions API.
|
|
2621
|
+
* <br/>2. ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in
|
|
2622
|
+
* the request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
|
|
2623
|
+
* ‘properties.parameters’ in the request for Troubleshooters
|
|
2624
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2625
|
+
* at the moment.
|
|
2626
|
+
* @param solutionResourceName Solution resource Name.
|
|
2627
|
+
* @param options The options parameters.
|
|
1015
2628
|
*/
|
|
1016
|
-
|
|
1017
|
-
this
|
|
2629
|
+
beginCreateAndWait(scope, solutionResourceName, options) {
|
|
2630
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2631
|
+
const poller = yield this.beginCreate(scope, solutionResourceName, options);
|
|
2632
|
+
return poller.pollUntilDone();
|
|
2633
|
+
});
|
|
1018
2634
|
}
|
|
1019
2635
|
/**
|
|
1020
|
-
*
|
|
2636
|
+
* Get the solution using the applicable solutionResourceName while creating the solution.
|
|
1021
2637
|
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
1022
2638
|
* at the moment.
|
|
2639
|
+
* @param solutionResourceName Solution resource Name.
|
|
1023
2640
|
* @param options The options parameters.
|
|
1024
2641
|
*/
|
|
1025
|
-
|
|
1026
|
-
return this.client.sendOperationRequest({ scope, options },
|
|
2642
|
+
get(scope, solutionResourceName, options) {
|
|
2643
|
+
return this.client.sendOperationRequest({ scope, solutionResourceName, options }, getOperationSpec$1);
|
|
1027
2644
|
}
|
|
1028
2645
|
/**
|
|
1029
|
-
*
|
|
1030
|
-
* diagnostics once you discover and identify the relevant solution for your Azure issue.<br/><br/> You
|
|
1031
|
-
* can create diagnostics using the ‘solutionId’ from Solution Discovery API response and
|
|
1032
|
-
* ‘additionalParameters’ <br/><br/> <b>Note: </b>‘requiredParameterSets’ from Solutions Discovery API
|
|
1033
|
-
* response must be passed via ‘additionalParameters’ as an input to Diagnostics API
|
|
2646
|
+
* Update the requiredInputs or additional information needed to execute the solution
|
|
1034
2647
|
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
1035
2648
|
* at the moment.
|
|
1036
|
-
* @param
|
|
2649
|
+
* @param solutionResourceName Solution resource Name.
|
|
1037
2650
|
* @param options The options parameters.
|
|
1038
2651
|
*/
|
|
1039
|
-
|
|
2652
|
+
beginUpdate(scope, solutionResourceName, options) {
|
|
1040
2653
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1041
2654
|
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1042
2655
|
return this.client.sendOperationRequest(args, spec);
|
|
@@ -1062,8 +2675,8 @@ class DiagnosticsImpl {
|
|
|
1062
2675
|
});
|
|
1063
2676
|
const lro = createLroSpec({
|
|
1064
2677
|
sendOperationFn,
|
|
1065
|
-
args: { scope,
|
|
1066
|
-
spec:
|
|
2678
|
+
args: { scope, solutionResourceName, options },
|
|
2679
|
+
spec: updateOperationSpec
|
|
1067
2680
|
});
|
|
1068
2681
|
const poller = yield coreLro.createHttpPoller(lro, {
|
|
1069
2682
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
@@ -1075,102 +2688,105 @@ class DiagnosticsImpl {
|
|
|
1075
2688
|
});
|
|
1076
2689
|
}
|
|
1077
2690
|
/**
|
|
1078
|
-
*
|
|
1079
|
-
* diagnostics once you discover and identify the relevant solution for your Azure issue.<br/><br/> You
|
|
1080
|
-
* can create diagnostics using the ‘solutionId’ from Solution Discovery API response and
|
|
1081
|
-
* ‘additionalParameters’ <br/><br/> <b>Note: </b>‘requiredParameterSets’ from Solutions Discovery API
|
|
1082
|
-
* response must be passed via ‘additionalParameters’ as an input to Diagnostics API
|
|
2691
|
+
* Update the requiredInputs or additional information needed to execute the solution
|
|
1083
2692
|
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
1084
2693
|
* at the moment.
|
|
1085
|
-
* @param
|
|
2694
|
+
* @param solutionResourceName Solution resource Name.
|
|
1086
2695
|
* @param options The options parameters.
|
|
1087
2696
|
*/
|
|
1088
|
-
|
|
2697
|
+
beginUpdateAndWait(scope, solutionResourceName, options) {
|
|
1089
2698
|
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1090
|
-
const poller = yield this.
|
|
2699
|
+
const poller = yield this.beginUpdate(scope, solutionResourceName, options);
|
|
1091
2700
|
return poller.pollUntilDone();
|
|
1092
2701
|
});
|
|
1093
2702
|
}
|
|
1094
|
-
/**
|
|
1095
|
-
* Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
|
|
1096
|
-
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
1097
|
-
* at the moment.
|
|
1098
|
-
* @param diagnosticsResourceName Unique resource name for insight resources
|
|
1099
|
-
* @param options The options parameters.
|
|
1100
|
-
*/
|
|
1101
|
-
get(scope, diagnosticsResourceName, options) {
|
|
1102
|
-
return this.client.sendOperationRequest({ scope, diagnosticsResourceName, options }, getOperationSpec);
|
|
1103
|
-
}
|
|
1104
2703
|
}
|
|
1105
2704
|
// Operation Specifications
|
|
1106
2705
|
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1107
|
-
const
|
|
1108
|
-
path: "/{scope}/providers/Microsoft.Help/
|
|
1109
|
-
httpMethod: "
|
|
2706
|
+
const createOperationSpec$1 = {
|
|
2707
|
+
path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
|
|
2708
|
+
httpMethod: "PUT",
|
|
1110
2709
|
responses: {
|
|
1111
2710
|
200: {
|
|
1112
|
-
bodyMapper:
|
|
2711
|
+
bodyMapper: SolutionResource
|
|
2712
|
+
},
|
|
2713
|
+
201: {
|
|
2714
|
+
bodyMapper: SolutionResource
|
|
2715
|
+
},
|
|
2716
|
+
202: {
|
|
2717
|
+
bodyMapper: SolutionResource
|
|
2718
|
+
},
|
|
2719
|
+
204: {
|
|
2720
|
+
bodyMapper: SolutionResource
|
|
1113
2721
|
},
|
|
1114
2722
|
default: {
|
|
1115
2723
|
bodyMapper: ErrorResponse
|
|
1116
2724
|
}
|
|
1117
2725
|
},
|
|
1118
|
-
requestBody:
|
|
2726
|
+
requestBody: solutionRequestBody,
|
|
1119
2727
|
queryParameters: [apiVersion],
|
|
1120
|
-
urlParameters: [
|
|
2728
|
+
urlParameters: [
|
|
2729
|
+
$host,
|
|
2730
|
+
scope,
|
|
2731
|
+
solutionResourceName
|
|
2732
|
+
],
|
|
1121
2733
|
headerParameters: [accept, contentType],
|
|
1122
2734
|
mediaType: "json",
|
|
1123
2735
|
serializer: serializer$1
|
|
1124
2736
|
};
|
|
1125
|
-
const
|
|
1126
|
-
path: "/{scope}/providers/Microsoft.Help/
|
|
1127
|
-
httpMethod: "
|
|
2737
|
+
const getOperationSpec$1 = {
|
|
2738
|
+
path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
|
|
2739
|
+
httpMethod: "GET",
|
|
1128
2740
|
responses: {
|
|
1129
2741
|
200: {
|
|
1130
|
-
bodyMapper:
|
|
1131
|
-
},
|
|
1132
|
-
201: {
|
|
1133
|
-
bodyMapper: DiagnosticResource
|
|
1134
|
-
},
|
|
1135
|
-
202: {
|
|
1136
|
-
bodyMapper: DiagnosticResource
|
|
1137
|
-
},
|
|
1138
|
-
204: {
|
|
1139
|
-
bodyMapper: DiagnosticResource
|
|
2742
|
+
bodyMapper: SolutionResource
|
|
1140
2743
|
},
|
|
1141
2744
|
default: {
|
|
1142
2745
|
bodyMapper: ErrorResponse
|
|
1143
2746
|
}
|
|
1144
2747
|
},
|
|
1145
|
-
requestBody: diagnosticResourceRequest,
|
|
1146
2748
|
queryParameters: [apiVersion],
|
|
1147
2749
|
urlParameters: [
|
|
1148
2750
|
$host,
|
|
1149
2751
|
scope,
|
|
1150
|
-
|
|
2752
|
+
solutionResourceName
|
|
1151
2753
|
],
|
|
1152
|
-
headerParameters: [accept
|
|
1153
|
-
mediaType: "json",
|
|
2754
|
+
headerParameters: [accept],
|
|
1154
2755
|
serializer: serializer$1
|
|
1155
2756
|
};
|
|
1156
|
-
const
|
|
1157
|
-
path: "/{scope}/providers/Microsoft.Help/
|
|
1158
|
-
httpMethod: "
|
|
2757
|
+
const updateOperationSpec = {
|
|
2758
|
+
path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
|
|
2759
|
+
httpMethod: "PATCH",
|
|
1159
2760
|
responses: {
|
|
1160
2761
|
200: {
|
|
1161
|
-
bodyMapper:
|
|
2762
|
+
bodyMapper: SolutionResource,
|
|
2763
|
+
headersMapper: SolutionUpdateHeaders
|
|
2764
|
+
},
|
|
2765
|
+
201: {
|
|
2766
|
+
bodyMapper: SolutionResource,
|
|
2767
|
+
headersMapper: SolutionUpdateHeaders
|
|
2768
|
+
},
|
|
2769
|
+
202: {
|
|
2770
|
+
bodyMapper: SolutionResource,
|
|
2771
|
+
headersMapper: SolutionUpdateHeaders
|
|
2772
|
+
},
|
|
2773
|
+
204: {
|
|
2774
|
+
bodyMapper: SolutionResource,
|
|
2775
|
+
headersMapper: SolutionUpdateHeaders
|
|
1162
2776
|
},
|
|
1163
2777
|
default: {
|
|
1164
2778
|
bodyMapper: ErrorResponse
|
|
1165
2779
|
}
|
|
1166
2780
|
},
|
|
2781
|
+
requestBody: solutionPatchRequestBody,
|
|
1167
2782
|
queryParameters: [apiVersion],
|
|
1168
2783
|
urlParameters: [
|
|
1169
2784
|
$host,
|
|
1170
2785
|
scope,
|
|
1171
|
-
|
|
2786
|
+
solutionResourceName
|
|
1172
2787
|
],
|
|
1173
|
-
headerParameters: [accept],
|
|
2788
|
+
headerParameters: [accept, contentType],
|
|
2789
|
+
mediaType: "json",
|
|
1174
2790
|
serializer: serializer$1
|
|
1175
2791
|
};
|
|
1176
2792
|
|
|
@@ -1181,145 +2797,190 @@ const getOperationSpec = {
|
|
|
1181
2797
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1182
2798
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1183
2799
|
*/
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
class DiscoverySolutionImpl {
|
|
2800
|
+
/** Class containing Troubleshooters operations. */
|
|
2801
|
+
class TroubleshootersImpl {
|
|
1187
2802
|
/**
|
|
1188
|
-
* Initialize a new instance of the class
|
|
2803
|
+
* Initialize a new instance of the class Troubleshooters class.
|
|
1189
2804
|
* @param client Reference to the service client
|
|
1190
2805
|
*/
|
|
1191
2806
|
constructor(client) {
|
|
1192
2807
|
this.client = client;
|
|
1193
2808
|
}
|
|
1194
2809
|
/**
|
|
1195
|
-
*
|
|
1196
|
-
*
|
|
1197
|
-
*
|
|
1198
|
-
*
|
|
1199
|
-
*
|
|
1200
|
-
*
|
|
1201
|
-
*
|
|
2810
|
+
* Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’
|
|
2811
|
+
* and ‘properties.parameters’ as the trigger. <br/> Troubleshooters are step-by-step interactive
|
|
2812
|
+
* guidance that scope the problem by collecting additional inputs from you in each stage while
|
|
2813
|
+
* troubleshooting an Azure issue. You will be guided down decision tree style workflow and the best
|
|
2814
|
+
* possible solution will be presented at the end of the workflow. <br/> Create API creates the
|
|
2815
|
+
* Troubleshooter API using ‘parameters’ and ‘solutionId’ <br/> After creating the Troubleshooter
|
|
2816
|
+
* instance, the following APIs can be used:<br/> CONTINUE API: to move to the next step in the flow
|
|
2817
|
+
* <br/>GET API: to identify the next step after executing the CONTINUE API. <br/><br/> <b>Note:</b>
|
|
2818
|
+
* ‘requiredParameters’ from solutions response must be passed via ‘properties. parameters’ in the
|
|
2819
|
+
* request body of Troubleshooters API.
|
|
1202
2820
|
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
1203
2821
|
* at the moment.
|
|
2822
|
+
* @param troubleshooterName Troubleshooter resource Name.
|
|
1204
2823
|
* @param options The options parameters.
|
|
1205
2824
|
*/
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
return {
|
|
1209
|
-
next() {
|
|
1210
|
-
return iter.next();
|
|
1211
|
-
},
|
|
1212
|
-
[Symbol.asyncIterator]() {
|
|
1213
|
-
return this;
|
|
1214
|
-
},
|
|
1215
|
-
byPage: (settings) => {
|
|
1216
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1217
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1218
|
-
}
|
|
1219
|
-
return this.listPagingPage(scope, options, settings);
|
|
1220
|
-
}
|
|
1221
|
-
};
|
|
2825
|
+
create(scope, troubleshooterName, options) {
|
|
2826
|
+
return this.client.sendOperationRequest({ scope, troubleshooterName, options }, createOperationSpec);
|
|
1222
2827
|
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
result = yield tslib.__await(this._listNext(scope, continuationToken, options));
|
|
1236
|
-
continuationToken = result.nextLink;
|
|
1237
|
-
let page = result.value || [];
|
|
1238
|
-
setContinuationToken(page, continuationToken);
|
|
1239
|
-
yield yield tslib.__await(page);
|
|
1240
|
-
}
|
|
1241
|
-
});
|
|
2828
|
+
/**
|
|
2829
|
+
* Gets troubleshooter instance result which includes the step status/result of the troubleshooter
|
|
2830
|
+
* resource name that is being executed.<br/> Get API is used to retrieve the result of a
|
|
2831
|
+
* Troubleshooter instance, which includes the status and result of each step in the Troubleshooter
|
|
2832
|
+
* workflow. This API requires the Troubleshooter resource name that was created using the Create API.
|
|
2833
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2834
|
+
* at the moment.
|
|
2835
|
+
* @param troubleshooterName Troubleshooter resource Name.
|
|
2836
|
+
* @param options The options parameters.
|
|
2837
|
+
*/
|
|
2838
|
+
get(scope, troubleshooterName, options) {
|
|
2839
|
+
return this.client.sendOperationRequest({ scope, troubleshooterName, options }, getOperationSpec);
|
|
1242
2840
|
}
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
finally {
|
|
1256
|
-
try {
|
|
1257
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1258
|
-
}
|
|
1259
|
-
finally { if (e_1) throw e_1.error; }
|
|
1260
|
-
}
|
|
1261
|
-
});
|
|
2841
|
+
/**
|
|
2842
|
+
* Uses ‘stepId’ and ‘responses’ as the trigger to continue the troubleshooting steps for the
|
|
2843
|
+
* respective troubleshooter resource name. <br/>Continue API is used to provide inputs that are
|
|
2844
|
+
* required for the specific troubleshooter to progress into the next step in the process. This API is
|
|
2845
|
+
* used after the Troubleshooter has been created using the Create API.
|
|
2846
|
+
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
2847
|
+
* at the moment.
|
|
2848
|
+
* @param troubleshooterName Troubleshooter resource Name.
|
|
2849
|
+
* @param options The options parameters.
|
|
2850
|
+
*/
|
|
2851
|
+
continue(scope, troubleshooterName, options) {
|
|
2852
|
+
return this.client.sendOperationRequest({ scope, troubleshooterName, options }, continueOperationSpec);
|
|
1262
2853
|
}
|
|
1263
2854
|
/**
|
|
1264
|
-
*
|
|
1265
|
-
* relevant solutions for your Azure issue.<br/><br/> You can discover solutions using resourceUri OR
|
|
1266
|
-
* resourceUri + problemClassificationId.<br/><br/>We will do our best in returning relevant
|
|
1267
|
-
* diagnostics for your Azure issue.<br/><br/> Get the problemClassificationId(s) using this
|
|
1268
|
-
* [reference](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP).<br/><br/>
|
|
1269
|
-
* <b>Note: </b> ‘requiredParameterSets’ from Solutions Discovery API response must be passed via
|
|
1270
|
-
* ‘additionalParameters’ as an input to Diagnostics API.
|
|
2855
|
+
* Ends the troubleshooter action
|
|
1271
2856
|
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
1272
2857
|
* at the moment.
|
|
2858
|
+
* @param troubleshooterName Troubleshooter resource Name.
|
|
1273
2859
|
* @param options The options parameters.
|
|
1274
2860
|
*/
|
|
1275
|
-
|
|
1276
|
-
return this.client.sendOperationRequest({ scope, options },
|
|
2861
|
+
end(scope, troubleshooterName, options) {
|
|
2862
|
+
return this.client.sendOperationRequest({ scope, troubleshooterName, options }, endOperationSpec);
|
|
1277
2863
|
}
|
|
1278
2864
|
/**
|
|
1279
|
-
*
|
|
2865
|
+
* Restarts the troubleshooter API using applicable troubleshooter resource name as the input.<br/> It
|
|
2866
|
+
* returns new resource name which should be used in subsequent request. The old resource name is
|
|
2867
|
+
* obsolete after this API is invoked.
|
|
1280
2868
|
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
1281
2869
|
* at the moment.
|
|
1282
|
-
* @param
|
|
2870
|
+
* @param troubleshooterName Troubleshooter resource Name.
|
|
1283
2871
|
* @param options The options parameters.
|
|
1284
2872
|
*/
|
|
1285
|
-
|
|
1286
|
-
return this.client.sendOperationRequest({ scope,
|
|
2873
|
+
restart(scope, troubleshooterName, options) {
|
|
2874
|
+
return this.client.sendOperationRequest({ scope, troubleshooterName, options }, restartOperationSpec);
|
|
1287
2875
|
}
|
|
1288
2876
|
}
|
|
1289
2877
|
// Operation Specifications
|
|
1290
2878
|
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1291
|
-
const
|
|
1292
|
-
path: "/{scope}/providers/Microsoft.Help/
|
|
2879
|
+
const createOperationSpec = {
|
|
2880
|
+
path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
|
|
2881
|
+
httpMethod: "PUT",
|
|
2882
|
+
responses: {
|
|
2883
|
+
200: {
|
|
2884
|
+
bodyMapper: TroubleshooterResource
|
|
2885
|
+
},
|
|
2886
|
+
201: {
|
|
2887
|
+
bodyMapper: TroubleshooterResource
|
|
2888
|
+
},
|
|
2889
|
+
default: {
|
|
2890
|
+
bodyMapper: ErrorResponse
|
|
2891
|
+
}
|
|
2892
|
+
},
|
|
2893
|
+
requestBody: createTroubleshooterRequestBody,
|
|
2894
|
+
queryParameters: [apiVersion],
|
|
2895
|
+
urlParameters: [
|
|
2896
|
+
$host,
|
|
2897
|
+
scope,
|
|
2898
|
+
troubleshooterName
|
|
2899
|
+
],
|
|
2900
|
+
headerParameters: [accept, contentType],
|
|
2901
|
+
mediaType: "json",
|
|
2902
|
+
serializer
|
|
2903
|
+
};
|
|
2904
|
+
const getOperationSpec = {
|
|
2905
|
+
path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
|
|
1293
2906
|
httpMethod: "GET",
|
|
1294
2907
|
responses: {
|
|
1295
2908
|
200: {
|
|
1296
|
-
bodyMapper:
|
|
2909
|
+
bodyMapper: TroubleshooterResource
|
|
1297
2910
|
},
|
|
1298
2911
|
default: {
|
|
1299
2912
|
bodyMapper: ErrorResponse
|
|
1300
2913
|
}
|
|
1301
2914
|
},
|
|
1302
|
-
queryParameters: [
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
2915
|
+
queryParameters: [apiVersion],
|
|
2916
|
+
urlParameters: [
|
|
2917
|
+
$host,
|
|
2918
|
+
scope,
|
|
2919
|
+
troubleshooterName
|
|
1306
2920
|
],
|
|
1307
|
-
urlParameters: [$host, scope],
|
|
1308
2921
|
headerParameters: [accept],
|
|
1309
2922
|
serializer
|
|
1310
2923
|
};
|
|
1311
|
-
const
|
|
1312
|
-
path: "{
|
|
1313
|
-
httpMethod: "
|
|
2924
|
+
const continueOperationSpec = {
|
|
2925
|
+
path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/continue",
|
|
2926
|
+
httpMethod: "POST",
|
|
2927
|
+
responses: {
|
|
2928
|
+
204: {
|
|
2929
|
+
headersMapper: TroubleshootersContinueHeaders
|
|
2930
|
+
},
|
|
2931
|
+
default: {
|
|
2932
|
+
bodyMapper: ErrorResponse
|
|
2933
|
+
}
|
|
2934
|
+
},
|
|
2935
|
+
requestBody: continueRequestBody,
|
|
2936
|
+
queryParameters: [apiVersion],
|
|
2937
|
+
urlParameters: [
|
|
2938
|
+
$host,
|
|
2939
|
+
scope,
|
|
2940
|
+
troubleshooterName
|
|
2941
|
+
],
|
|
2942
|
+
headerParameters: [accept, contentType],
|
|
2943
|
+
mediaType: "json",
|
|
2944
|
+
serializer
|
|
2945
|
+
};
|
|
2946
|
+
const endOperationSpec = {
|
|
2947
|
+
path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/end",
|
|
2948
|
+
httpMethod: "POST",
|
|
2949
|
+
responses: {
|
|
2950
|
+
204: {
|
|
2951
|
+
headersMapper: TroubleshootersEndHeaders
|
|
2952
|
+
},
|
|
2953
|
+
default: {
|
|
2954
|
+
bodyMapper: ErrorResponse
|
|
2955
|
+
}
|
|
2956
|
+
},
|
|
2957
|
+
queryParameters: [apiVersion],
|
|
2958
|
+
urlParameters: [
|
|
2959
|
+
$host,
|
|
2960
|
+
scope,
|
|
2961
|
+
troubleshooterName
|
|
2962
|
+
],
|
|
2963
|
+
headerParameters: [accept],
|
|
2964
|
+
serializer
|
|
2965
|
+
};
|
|
2966
|
+
const restartOperationSpec = {
|
|
2967
|
+
path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/restart",
|
|
2968
|
+
httpMethod: "POST",
|
|
1314
2969
|
responses: {
|
|
1315
2970
|
200: {
|
|
1316
|
-
bodyMapper:
|
|
2971
|
+
bodyMapper: RestartTroubleshooterResponse,
|
|
2972
|
+
headersMapper: TroubleshootersRestartHeaders
|
|
1317
2973
|
},
|
|
1318
2974
|
default: {
|
|
1319
2975
|
bodyMapper: ErrorResponse
|
|
1320
2976
|
}
|
|
1321
2977
|
},
|
|
1322
|
-
|
|
2978
|
+
queryParameters: [apiVersion],
|
|
2979
|
+
urlParameters: [
|
|
2980
|
+
$host,
|
|
2981
|
+
scope,
|
|
2982
|
+
troubleshooterName
|
|
2983
|
+
],
|
|
1323
2984
|
headerParameters: [accept],
|
|
1324
2985
|
serializer
|
|
1325
2986
|
};
|
|
@@ -1350,7 +3011,7 @@ class HelpRP extends coreClient__namespace.ServiceClient {
|
|
|
1350
3011
|
requestContentType: "application/json; charset=utf-8",
|
|
1351
3012
|
credential: credentials
|
|
1352
3013
|
};
|
|
1353
|
-
const packageDetails = `azsdk-js-arm-selfhelp/
|
|
3014
|
+
const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.1`;
|
|
1354
3015
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1355
3016
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1356
3017
|
: `${packageDetails}`;
|
|
@@ -1381,10 +3042,13 @@ class HelpRP extends coreClient__namespace.ServiceClient {
|
|
|
1381
3042
|
}
|
|
1382
3043
|
// Assigning values to Constant parameters
|
|
1383
3044
|
this.$host = options.$host || "https://management.azure.com";
|
|
1384
|
-
this.apiVersion = options.apiVersion || "2023-
|
|
3045
|
+
this.apiVersion = options.apiVersion || "2023-09-01-preview";
|
|
1385
3046
|
this.operations = new OperationsImpl(this);
|
|
3047
|
+
this.checkNameAvailability = new CheckNameAvailabilityImpl(this);
|
|
1386
3048
|
this.diagnostics = new DiagnosticsImpl(this);
|
|
1387
3049
|
this.discoverySolution = new DiscoverySolutionImpl(this);
|
|
3050
|
+
this.solution = new SolutionImpl(this);
|
|
3051
|
+
this.troubleshooters = new TroubleshootersImpl(this);
|
|
1388
3052
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1389
3053
|
}
|
|
1390
3054
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|