@azure/arm-selfhelp 2.0.0-beta.1 → 2.0.0-beta.3

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.
Files changed (174) hide show
  1. package/CHANGELOG.md +214 -1
  2. package/LICENSE +1 -1
  3. package/README.md +3 -2
  4. package/dist/index.js +1679 -907
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/checkNameAvailabilityPostSample.js +7 -7
  9. package/dist-esm/samples-dev/checkNameAvailabilityPostSample.js.map +1 -1
  10. package/dist-esm/samples-dev/diagnosticsCreateSample.js +3 -3
  11. package/dist-esm/samples-dev/diagnosticsGetSample.js +1 -1
  12. package/dist-esm/samples-dev/discoverySolutionListSample.js +6 -41
  13. package/dist-esm/samples-dev/discoverySolutionListSample.js.map +1 -1
  14. package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.d.ts +2 -0
  15. package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.d.ts.map +1 -0
  16. package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.js +45 -0
  17. package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.js.map +1 -0
  18. package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.js +43 -0
  21. package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.js.map +1 -0
  22. package/dist-esm/samples-dev/operationsListSample.js +5 -3
  23. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  24. package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.js +46 -0
  27. package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.js.map +1 -0
  28. package/dist-esm/samples-dev/simplifiedSolutionsGetSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/simplifiedSolutionsGetSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/simplifiedSolutionsGetSample.js +37 -0
  31. package/dist-esm/samples-dev/simplifiedSolutionsGetSample.js.map +1 -0
  32. package/dist-esm/samples-dev/solutionCreateSample.js +8 -10
  33. package/dist-esm/samples-dev/solutionCreateSample.js.map +1 -1
  34. package/dist-esm/samples-dev/solutionGetSample.js +1 -1
  35. package/dist-esm/samples-dev/solutionSelfHelpGetSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/solutionSelfHelpGetSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/solutionSelfHelpGetSample.js +36 -0
  38. package/dist-esm/samples-dev/solutionSelfHelpGetSample.js.map +1 -0
  39. package/dist-esm/samples-dev/solutionUpdateSample.js +1 -1
  40. package/dist-esm/samples-dev/solutionWarmUpSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/solutionWarmUpSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/solutionWarmUpSample.js +37 -0
  43. package/dist-esm/samples-dev/solutionWarmUpSample.js.map +1 -0
  44. package/dist-esm/samples-dev/troubleshootersContinueSample.js +6 -6
  45. package/dist-esm/samples-dev/troubleshootersContinueSample.js.map +1 -1
  46. package/dist-esm/samples-dev/troubleshootersCreateSample.js +7 -7
  47. package/dist-esm/samples-dev/troubleshootersCreateSample.js.map +1 -1
  48. package/dist-esm/samples-dev/troubleshootersEndSample.js +1 -1
  49. package/dist-esm/samples-dev/troubleshootersGetSample.js +1 -1
  50. package/dist-esm/samples-dev/troubleshootersRestartSample.js +1 -1
  51. package/dist-esm/src/helpRP.d.ts +8 -1
  52. package/dist-esm/src/helpRP.d.ts.map +1 -1
  53. package/dist-esm/src/helpRP.js +25 -15
  54. package/dist-esm/src/helpRP.js.map +1 -1
  55. package/dist-esm/src/lroImpl.js +1 -1
  56. package/dist-esm/src/models/index.d.ts +350 -89
  57. package/dist-esm/src/models/index.d.ts.map +1 -1
  58. package/dist-esm/src/models/index.js +49 -19
  59. package/dist-esm/src/models/index.js.map +1 -1
  60. package/dist-esm/src/models/mappers.d.ts +10 -2
  61. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  62. package/dist-esm/src/models/mappers.js +947 -590
  63. package/dist-esm/src/models/mappers.js.map +1 -1
  64. package/dist-esm/src/models/parameters.d.ts +6 -0
  65. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  66. package/dist-esm/src/models/parameters.js +95 -44
  67. package/dist-esm/src/models/parameters.js.map +1 -1
  68. package/dist-esm/src/operations/checkNameAvailability.d.ts +3 -2
  69. package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -1
  70. package/dist-esm/src/operations/checkNameAvailability.js +7 -6
  71. package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
  72. package/dist-esm/src/operations/diagnostics.d.ts +15 -16
  73. package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
  74. package/dist-esm/src/operations/diagnostics.js +33 -34
  75. package/dist-esm/src/operations/diagnostics.js.map +1 -1
  76. package/dist-esm/src/operations/discoverySolution.d.ts +5 -13
  77. package/dist-esm/src/operations/discoverySolution.d.ts.map +1 -1
  78. package/dist-esm/src/operations/discoverySolution.js +29 -37
  79. package/dist-esm/src/operations/discoverySolution.js.map +1 -1
  80. package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.d.ts +19 -0
  81. package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.d.ts.map +1 -0
  82. package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.js +49 -0
  83. package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.js.map +1 -0
  84. package/dist-esm/src/operations/discoverySolutionNLPTenantScope.d.ts +19 -0
  85. package/dist-esm/src/operations/discoverySolutionNLPTenantScope.d.ts.map +1 -0
  86. package/dist-esm/src/operations/discoverySolutionNLPTenantScope.js +49 -0
  87. package/dist-esm/src/operations/discoverySolutionNLPTenantScope.js.map +1 -0
  88. package/dist-esm/src/operations/index.d.ts +4 -0
  89. package/dist-esm/src/operations/index.d.ts.map +1 -1
  90. package/dist-esm/src/operations/index.js +4 -0
  91. package/dist-esm/src/operations/index.js.map +1 -1
  92. package/dist-esm/src/operations/operations.js +9 -9
  93. package/dist-esm/src/operations/operations.js.map +1 -1
  94. package/dist-esm/src/operations/simplifiedSolutions.d.ts +52 -0
  95. package/dist-esm/src/operations/simplifiedSolutions.d.ts.map +1 -0
  96. package/dist-esm/src/operations/simplifiedSolutions.js +159 -0
  97. package/dist-esm/src/operations/simplifiedSolutions.js.map +1 -0
  98. package/dist-esm/src/operations/solution.d.ts +41 -37
  99. package/dist-esm/src/operations/solution.d.ts.map +1 -1
  100. package/dist-esm/src/operations/solution.js +92 -66
  101. package/dist-esm/src/operations/solution.js.map +1 -1
  102. package/dist-esm/src/operations/solutionSelfHelp.d.ts +23 -0
  103. package/dist-esm/src/operations/solutionSelfHelp.d.ts.map +1 -0
  104. package/dist-esm/src/operations/solutionSelfHelp.js +51 -0
  105. package/dist-esm/src/operations/solutionSelfHelp.js.map +1 -0
  106. package/dist-esm/src/operations/troubleshooters.d.ts +22 -19
  107. package/dist-esm/src/operations/troubleshooters.d.ts.map +1 -1
  108. package/dist-esm/src/operations/troubleshooters.js +48 -45
  109. package/dist-esm/src/operations/troubleshooters.js.map +1 -1
  110. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +3 -2
  111. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -1
  112. package/dist-esm/src/operationsInterfaces/diagnostics.d.ts +15 -16
  113. package/dist-esm/src/operationsInterfaces/diagnostics.d.ts.map +1 -1
  114. package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts +3 -6
  115. package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts.map +1 -1
  116. package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.d.ts +11 -0
  117. package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.d.ts +11 -0
  121. package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  125. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  126. package/dist-esm/src/operationsInterfaces/index.js +4 -0
  127. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  128. package/dist-esm/src/operationsInterfaces/simplifiedSolutions.d.ts +44 -0
  129. package/dist-esm/src/operationsInterfaces/simplifiedSolutions.d.ts.map +1 -0
  130. package/dist-esm/src/operationsInterfaces/simplifiedSolutions.js +9 -0
  131. package/dist-esm/src/operationsInterfaces/simplifiedSolutions.js.map +1 -0
  132. package/dist-esm/src/operationsInterfaces/solution.d.ts +41 -37
  133. package/dist-esm/src/operationsInterfaces/solution.d.ts.map +1 -1
  134. package/dist-esm/src/operationsInterfaces/solutionSelfHelp.d.ts +15 -0
  135. package/dist-esm/src/operationsInterfaces/solutionSelfHelp.d.ts.map +1 -0
  136. package/dist-esm/src/operationsInterfaces/solutionSelfHelp.js +9 -0
  137. package/dist-esm/src/operationsInterfaces/solutionSelfHelp.js.map +1 -0
  138. package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts +22 -19
  139. package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts.map +1 -1
  140. package/dist-esm/src/pagingHelper.js.map +1 -1
  141. package/dist-esm/test/selfhelp_operations_test.spec.js +2 -2
  142. package/dist-esm/test/selfhelp_operations_test.spec.js.map +1 -1
  143. package/package.json +11 -11
  144. package/review/arm-selfhelp.api.md +198 -19
  145. package/src/helpRP.ts +58 -17
  146. package/src/lroImpl.ts +3 -3
  147. package/src/models/index.ts +385 -106
  148. package/src/models/mappers.ts +995 -597
  149. package/src/models/parameters.ts +105 -45
  150. package/src/operations/checkNameAvailability.ts +10 -9
  151. package/src/operations/diagnostics.ts +48 -52
  152. package/src/operations/discoverySolution.ts +31 -47
  153. package/src/operations/discoverySolutionNLPSubscriptionScope.ts +64 -0
  154. package/src/operations/discoverySolutionNLPTenantScope.ts +64 -0
  155. package/src/operations/index.ts +4 -0
  156. package/src/operations/operations.ts +16 -16
  157. package/src/operations/simplifiedSolutions.ts +216 -0
  158. package/src/operations/solution.ts +122 -89
  159. package/src/operations/solutionSelfHelp.ts +68 -0
  160. package/src/operations/troubleshooters.ts +64 -66
  161. package/src/operationsInterfaces/checkNameAvailability.ts +5 -4
  162. package/src/operationsInterfaces/diagnostics.ts +19 -20
  163. package/src/operationsInterfaces/discoverySolution.ts +4 -8
  164. package/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.ts +24 -0
  165. package/src/operationsInterfaces/discoverySolutionNLPTenantScope.ts +24 -0
  166. package/src/operationsInterfaces/index.ts +4 -0
  167. package/src/operationsInterfaces/operations.ts +1 -1
  168. package/src/operationsInterfaces/simplifiedSolutions.ts +74 -0
  169. package/src/operationsInterfaces/solution.ts +51 -42
  170. package/src/operationsInterfaces/solutionSelfHelp.ts +29 -0
  171. package/src/operationsInterfaces/troubleshooters.ts +28 -25
  172. package/src/pagingHelper.ts +1 -1
  173. package/types/arm-selfhelp.d.ts +505 -136
  174. package/types/tsdoc-metadata.json +1 -1
package/dist/index.js CHANGED
@@ -1,5 +1,7 @@
1
1
  'use strict';
2
2
 
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
3
5
  var tslib = require('tslib');
4
6
  var coreClient = require('@azure/core-client');
5
7
  var coreRestPipeline = require('@azure/core-rest-pipeline');
@@ -89,6 +91,8 @@ exports.KnownDiagnosticProvisioningState = void 0;
89
91
  KnownDiagnosticProvisioningState["PartialComplete"] = "PartialComplete";
90
92
  /** All Diagnostics failed to run. */
91
93
  KnownDiagnosticProvisioningState["Failed"] = "Failed";
94
+ /** All Diagnostics are still running. */
95
+ KnownDiagnosticProvisioningState["Running"] = "Running";
92
96
  /** When Diagnostic request gets canceled. */
93
97
  KnownDiagnosticProvisioningState["Canceled"] = "Canceled";
94
98
  })(exports.KnownDiagnosticProvisioningState || (exports.KnownDiagnosticProvisioningState = {}));
@@ -135,6 +139,10 @@ exports.KnownSolutionType = void 0;
135
139
  KnownSolutionType["Diagnostics"] = "Diagnostics";
136
140
  /** Solutions resource type. */
137
141
  KnownSolutionType["Solutions"] = "Solutions";
142
+ /** Troubleshooters resource type. */
143
+ KnownSolutionType["Troubleshooters"] = "Troubleshooters";
144
+ /** SelfHelp resource type. */
145
+ KnownSolutionType["SelfHelp"] = "SelfHelp";
138
146
  })(exports.KnownSolutionType || (exports.KnownSolutionType = {}));
139
147
  /** Known values of {@link Name} that the service accepts. */
140
148
  exports.KnownName = void 0;
@@ -149,11 +157,15 @@ exports.KnownName = void 0;
149
157
  /** Known values of {@link SolutionProvisioningState} that the service accepts. */
150
158
  exports.KnownSolutionProvisioningState = void 0;
151
159
  (function (KnownSolutionProvisioningState) {
152
- /** Succeeded */
160
+ /** All Solutions in the Batch succeeded. */
153
161
  KnownSolutionProvisioningState["Succeeded"] = "Succeeded";
154
- /** Failed */
162
+ /** Some Solutions are still running or failed. */
163
+ KnownSolutionProvisioningState["PartialComplete"] = "PartialComplete";
164
+ /** All Solutions failed to run. */
155
165
  KnownSolutionProvisioningState["Failed"] = "Failed";
156
- /** Canceled */
166
+ /** All Solutions are still running. */
167
+ KnownSolutionProvisioningState["Running"] = "Running";
168
+ /** When Solutions request gets canceled. */
157
169
  KnownSolutionProvisioningState["Canceled"] = "Canceled";
158
170
  })(exports.KnownSolutionProvisioningState || (exports.KnownSolutionProvisioningState = {}));
159
171
  /** Known values of {@link Confidence} that the service accepts. */
@@ -205,13 +217,13 @@ exports.KnownTroubleshooterProvisioningState = void 0;
205
217
  /** Known values of {@link ExecutionStatus} that the service accepts. */
206
218
  exports.KnownExecutionStatus = void 0;
207
219
  (function (KnownExecutionStatus) {
208
- /** Success */
220
+ /** Step execution succeeded. */
209
221
  KnownExecutionStatus["Success"] = "Success";
210
- /** Running */
222
+ /** Step execution running */
211
223
  KnownExecutionStatus["Running"] = "Running";
212
- /** Failed */
224
+ /** Step execution failed */
213
225
  KnownExecutionStatus["Failed"] = "Failed";
214
- /** Warning */
226
+ /** Step execution warning */
215
227
  KnownExecutionStatus["Warning"] = "Warning";
216
228
  })(exports.KnownExecutionStatus || (exports.KnownExecutionStatus = {}));
217
229
  /** Known values of {@link Type} that the service accepts. */
@@ -225,7 +237,25 @@ exports.KnownType = void 0;
225
237
  KnownType["Insight"] = "Insight";
226
238
  /** AutomatedCheck */
227
239
  KnownType["AutomatedCheck"] = "AutomatedCheck";
240
+ /** Input */
241
+ KnownType["Input"] = "Input";
228
242
  })(exports.KnownType || (exports.KnownType = {}));
243
+ /** Known values of {@link QuestionType} that the service accepts. */
244
+ exports.KnownQuestionType = void 0;
245
+ (function (KnownQuestionType) {
246
+ /** SingleChoice radio button */
247
+ KnownQuestionType["RadioButton"] = "RadioButton";
248
+ /** SingleChoice dropdown. */
249
+ KnownQuestionType["Dropdown"] = "Dropdown";
250
+ /** Text Input */
251
+ KnownQuestionType["TextInput"] = "TextInput";
252
+ /** MultiLineInfoBox */
253
+ KnownQuestionType["MultiLineInfoBox"] = "MultiLineInfoBox";
254
+ /** DateTime Picker */
255
+ KnownQuestionType["DateTimePicker"] = "DateTimePicker";
256
+ /** Multi Select */
257
+ KnownQuestionType["MultiSelect"] = "MultiSelect";
258
+ })(exports.KnownQuestionType || (exports.KnownQuestionType = {}));
229
259
  /** Known values of {@link QuestionContentType} that the service accepts. */
230
260
  exports.KnownQuestionContentType = void 0;
231
261
  (function (KnownQuestionContentType) {
@@ -236,6 +266,20 @@ exports.KnownQuestionContentType = void 0;
236
266
  /** Markdown */
237
267
  KnownQuestionContentType["Markdown"] = "Markdown";
238
268
  })(exports.KnownQuestionContentType || (exports.KnownQuestionContentType = {}));
269
+ /** Known values of {@link ValidationScope} that the service accepts. */
270
+ exports.KnownValidationScope = void 0;
271
+ (function (KnownValidationScope) {
272
+ /** None */
273
+ KnownValidationScope["None"] = "None";
274
+ /** URLFormat */
275
+ KnownValidationScope["URLFormat"] = "URLFormat";
276
+ /** GuidFormat */
277
+ KnownValidationScope["GuidFormat"] = "GuidFormat";
278
+ /** IpAddressFormat */
279
+ KnownValidationScope["IpAddressFormat"] = "IpAddressFormat";
280
+ /** NumberOnlyFormat */
281
+ KnownValidationScope["NumberOnlyFormat"] = "NumberOnlyFormat";
282
+ })(exports.KnownValidationScope || (exports.KnownValidationScope = {}));
239
283
  /** Known values of {@link AutomatedCheckResultType} that the service accepts. */
240
284
  exports.KnownAutomatedCheckResultType = void 0;
241
285
  (function (KnownAutomatedCheckResultType) {
@@ -248,18 +292,6 @@ exports.KnownAutomatedCheckResultType = void 0;
248
292
  /** Information */
249
293
  KnownAutomatedCheckResultType["Information"] = "Information";
250
294
  })(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 = {}));
263
295
 
264
296
  /*
265
297
  * Copyright (c) Microsoft Corporation.
@@ -281,20 +313,20 @@ const OperationListResult = {
281
313
  element: {
282
314
  type: {
283
315
  name: "Composite",
284
- className: "Operation"
285
- }
286
- }
287
- }
316
+ className: "Operation",
317
+ },
318
+ },
319
+ },
288
320
  },
289
321
  nextLink: {
290
322
  serializedName: "nextLink",
291
323
  readOnly: true,
292
324
  type: {
293
- name: "String"
294
- }
295
- }
296
- }
297
- }
325
+ name: "String",
326
+ },
327
+ },
328
+ },
329
+ },
298
330
  };
299
331
  const Operation = {
300
332
  type: {
@@ -305,39 +337,39 @@ const Operation = {
305
337
  serializedName: "name",
306
338
  readOnly: true,
307
339
  type: {
308
- name: "String"
309
- }
340
+ name: "String",
341
+ },
310
342
  },
311
343
  isDataAction: {
312
344
  serializedName: "isDataAction",
313
345
  readOnly: true,
314
346
  type: {
315
- name: "Boolean"
316
- }
347
+ name: "Boolean",
348
+ },
317
349
  },
318
350
  display: {
319
351
  serializedName: "display",
320
352
  type: {
321
353
  name: "Composite",
322
- className: "OperationDisplay"
323
- }
354
+ className: "OperationDisplay",
355
+ },
324
356
  },
325
357
  origin: {
326
358
  serializedName: "origin",
327
359
  readOnly: true,
328
360
  type: {
329
- name: "String"
330
- }
361
+ name: "String",
362
+ },
331
363
  },
332
364
  actionType: {
333
365
  serializedName: "actionType",
334
366
  readOnly: true,
335
367
  type: {
336
- name: "String"
337
- }
338
- }
339
- }
340
- }
368
+ name: "String",
369
+ },
370
+ },
371
+ },
372
+ },
341
373
  };
342
374
  const OperationDisplay = {
343
375
  type: {
@@ -348,32 +380,32 @@ const OperationDisplay = {
348
380
  serializedName: "provider",
349
381
  readOnly: true,
350
382
  type: {
351
- name: "String"
352
- }
383
+ name: "String",
384
+ },
353
385
  },
354
386
  resource: {
355
387
  serializedName: "resource",
356
388
  readOnly: true,
357
389
  type: {
358
- name: "String"
359
- }
390
+ name: "String",
391
+ },
360
392
  },
361
393
  operation: {
362
394
  serializedName: "operation",
363
395
  readOnly: true,
364
396
  type: {
365
- name: "String"
366
- }
397
+ name: "String",
398
+ },
367
399
  },
368
400
  description: {
369
401
  serializedName: "description",
370
402
  readOnly: true,
371
403
  type: {
372
- name: "String"
373
- }
374
- }
375
- }
376
- }
404
+ name: "String",
405
+ },
406
+ },
407
+ },
408
+ },
377
409
  };
378
410
  const ErrorResponse = {
379
411
  type: {
@@ -384,11 +416,11 @@ const ErrorResponse = {
384
416
  serializedName: "error",
385
417
  type: {
386
418
  name: "Composite",
387
- className: "ErrorDetail"
388
- }
389
- }
390
- }
391
- }
419
+ className: "ErrorDetail",
420
+ },
421
+ },
422
+ },
423
+ },
392
424
  };
393
425
  const ErrorDetail = {
394
426
  type: {
@@ -399,22 +431,22 @@ const ErrorDetail = {
399
431
  serializedName: "code",
400
432
  readOnly: true,
401
433
  type: {
402
- name: "String"
403
- }
434
+ name: "String",
435
+ },
404
436
  },
405
437
  message: {
406
438
  serializedName: "message",
407
439
  readOnly: true,
408
440
  type: {
409
- name: "String"
410
- }
441
+ name: "String",
442
+ },
411
443
  },
412
444
  target: {
413
445
  serializedName: "target",
414
446
  readOnly: true,
415
447
  type: {
416
- name: "String"
417
- }
448
+ name: "String",
449
+ },
418
450
  },
419
451
  details: {
420
452
  serializedName: "details",
@@ -424,10 +456,10 @@ const ErrorDetail = {
424
456
  element: {
425
457
  type: {
426
458
  name: "Composite",
427
- className: "ErrorDetail"
428
- }
429
- }
430
- }
459
+ className: "ErrorDetail",
460
+ },
461
+ },
462
+ },
431
463
  },
432
464
  additionalInfo: {
433
465
  serializedName: "additionalInfo",
@@ -437,13 +469,13 @@ const ErrorDetail = {
437
469
  element: {
438
470
  type: {
439
471
  name: "Composite",
440
- className: "ErrorAdditionalInfo"
441
- }
442
- }
443
- }
444
- }
445
- }
446
- }
472
+ className: "ErrorAdditionalInfo",
473
+ },
474
+ },
475
+ },
476
+ },
477
+ },
478
+ },
447
479
  };
448
480
  const ErrorAdditionalInfo = {
449
481
  type: {
@@ -454,19 +486,19 @@ const ErrorAdditionalInfo = {
454
486
  serializedName: "type",
455
487
  readOnly: true,
456
488
  type: {
457
- name: "String"
458
- }
489
+ name: "String",
490
+ },
459
491
  },
460
492
  info: {
461
493
  serializedName: "info",
462
494
  readOnly: true,
463
495
  type: {
464
496
  name: "Dictionary",
465
- value: { type: { name: "any" } }
466
- }
467
- }
468
- }
469
- }
497
+ value: { type: { name: "any" } },
498
+ },
499
+ },
500
+ },
501
+ },
470
502
  };
471
503
  const CheckNameAvailabilityRequest = {
472
504
  type: {
@@ -476,17 +508,17 @@ const CheckNameAvailabilityRequest = {
476
508
  name: {
477
509
  serializedName: "name",
478
510
  type: {
479
- name: "String"
480
- }
511
+ name: "String",
512
+ },
481
513
  },
482
514
  type: {
483
515
  serializedName: "type",
484
516
  type: {
485
- name: "String"
486
- }
487
- }
488
- }
489
- }
517
+ name: "String",
518
+ },
519
+ },
520
+ },
521
+ },
490
522
  };
491
523
  const CheckNameAvailabilityResponse = {
492
524
  type: {
@@ -496,23 +528,23 @@ const CheckNameAvailabilityResponse = {
496
528
  nameAvailable: {
497
529
  serializedName: "nameAvailable",
498
530
  type: {
499
- name: "Boolean"
500
- }
531
+ name: "Boolean",
532
+ },
501
533
  },
502
534
  reason: {
503
535
  serializedName: "reason",
504
536
  type: {
505
- name: "String"
506
- }
537
+ name: "String",
538
+ },
507
539
  },
508
540
  message: {
509
541
  serializedName: "message",
510
542
  type: {
511
- name: "String"
512
- }
513
- }
514
- }
515
- }
543
+ name: "String",
544
+ },
545
+ },
546
+ },
547
+ },
516
548
  };
517
549
  const DiagnosticInvocation = {
518
550
  type: {
@@ -522,18 +554,18 @@ const DiagnosticInvocation = {
522
554
  solutionId: {
523
555
  serializedName: "solutionId",
524
556
  type: {
525
- name: "String"
526
- }
557
+ name: "String",
558
+ },
527
559
  },
528
560
  additionalParameters: {
529
561
  serializedName: "additionalParameters",
530
562
  type: {
531
563
  name: "Dictionary",
532
- value: { type: { name: "String" } }
533
- }
534
- }
535
- }
536
- }
564
+ value: { type: { name: "String" } },
565
+ },
566
+ },
567
+ },
568
+ },
537
569
  };
538
570
  const Diagnostic = {
539
571
  type: {
@@ -543,14 +575,14 @@ const Diagnostic = {
543
575
  solutionId: {
544
576
  serializedName: "solutionId",
545
577
  type: {
546
- name: "String"
547
- }
578
+ name: "String",
579
+ },
548
580
  },
549
581
  status: {
550
582
  serializedName: "status",
551
583
  type: {
552
- name: "String"
553
- }
584
+ name: "String",
585
+ },
554
586
  },
555
587
  insights: {
556
588
  serializedName: "insights",
@@ -559,20 +591,20 @@ const Diagnostic = {
559
591
  element: {
560
592
  type: {
561
593
  name: "Composite",
562
- className: "Insight"
563
- }
564
- }
565
- }
594
+ className: "Insight",
595
+ },
596
+ },
597
+ },
566
598
  },
567
599
  error: {
568
600
  serializedName: "error",
569
601
  type: {
570
602
  name: "Composite",
571
- className: "ErrorModel"
572
- }
573
- }
574
- }
575
- }
603
+ className: "ErrorModel",
604
+ },
605
+ },
606
+ },
607
+ },
576
608
  };
577
609
  const Insight = {
578
610
  type: {
@@ -582,29 +614,29 @@ const Insight = {
582
614
  id: {
583
615
  serializedName: "id",
584
616
  type: {
585
- name: "String"
586
- }
617
+ name: "String",
618
+ },
587
619
  },
588
620
  title: {
589
621
  serializedName: "title",
590
622
  type: {
591
- name: "String"
592
- }
623
+ name: "String",
624
+ },
593
625
  },
594
626
  results: {
595
627
  serializedName: "results",
596
628
  type: {
597
- name: "String"
598
- }
629
+ name: "String",
630
+ },
599
631
  },
600
632
  importanceLevel: {
601
633
  serializedName: "importanceLevel",
602
634
  type: {
603
- name: "String"
604
- }
605
- }
606
- }
607
- }
635
+ name: "String",
636
+ },
637
+ },
638
+ },
639
+ },
608
640
  };
609
641
  const ErrorModel = {
610
642
  type: {
@@ -615,22 +647,22 @@ const ErrorModel = {
615
647
  serializedName: "code",
616
648
  readOnly: true,
617
649
  type: {
618
- name: "String"
619
- }
650
+ name: "String",
651
+ },
620
652
  },
621
653
  type: {
622
654
  serializedName: "type",
623
655
  readOnly: true,
624
656
  type: {
625
- name: "String"
626
- }
657
+ name: "String",
658
+ },
627
659
  },
628
660
  message: {
629
661
  serializedName: "message",
630
662
  readOnly: true,
631
663
  type: {
632
- name: "String"
633
- }
664
+ name: "String",
665
+ },
634
666
  },
635
667
  details: {
636
668
  serializedName: "details",
@@ -639,13 +671,13 @@ const ErrorModel = {
639
671
  element: {
640
672
  type: {
641
673
  name: "Composite",
642
- className: "ErrorModel"
643
- }
644
- }
645
- }
646
- }
647
- }
648
- }
674
+ className: "ErrorModel",
675
+ },
676
+ },
677
+ },
678
+ },
679
+ },
680
+ },
649
681
  };
650
682
  const Resource = {
651
683
  type: {
@@ -656,32 +688,32 @@ const Resource = {
656
688
  serializedName: "id",
657
689
  readOnly: true,
658
690
  type: {
659
- name: "String"
660
- }
691
+ name: "String",
692
+ },
661
693
  },
662
694
  name: {
663
695
  serializedName: "name",
664
696
  readOnly: true,
665
697
  type: {
666
- name: "String"
667
- }
698
+ name: "String",
699
+ },
668
700
  },
669
701
  type: {
670
702
  serializedName: "type",
671
703
  readOnly: true,
672
704
  type: {
673
- name: "String"
674
- }
705
+ name: "String",
706
+ },
675
707
  },
676
708
  systemData: {
677
709
  serializedName: "systemData",
678
710
  type: {
679
711
  name: "Composite",
680
- className: "SystemData"
681
- }
682
- }
683
- }
684
- }
712
+ className: "SystemData",
713
+ },
714
+ },
715
+ },
716
+ },
685
717
  };
686
718
  const SystemData = {
687
719
  type: {
@@ -691,41 +723,41 @@ const SystemData = {
691
723
  createdBy: {
692
724
  serializedName: "createdBy",
693
725
  type: {
694
- name: "String"
695
- }
726
+ name: "String",
727
+ },
696
728
  },
697
729
  createdByType: {
698
730
  serializedName: "createdByType",
699
731
  type: {
700
- name: "String"
701
- }
732
+ name: "String",
733
+ },
702
734
  },
703
735
  createdAt: {
704
736
  serializedName: "createdAt",
705
737
  type: {
706
- name: "DateTime"
707
- }
738
+ name: "DateTime",
739
+ },
708
740
  },
709
741
  lastModifiedBy: {
710
742
  serializedName: "lastModifiedBy",
711
743
  type: {
712
- name: "String"
713
- }
744
+ name: "String",
745
+ },
714
746
  },
715
747
  lastModifiedByType: {
716
748
  serializedName: "lastModifiedByType",
717
749
  type: {
718
- name: "String"
719
- }
750
+ name: "String",
751
+ },
720
752
  },
721
753
  lastModifiedAt: {
722
754
  serializedName: "lastModifiedAt",
723
755
  type: {
724
- name: "DateTime"
725
- }
726
- }
727
- }
728
- }
756
+ name: "DateTime",
757
+ },
758
+ },
759
+ },
760
+ },
729
761
  };
730
762
  const DiscoveryResponse = {
731
763
  type: {
@@ -739,19 +771,19 @@ const DiscoveryResponse = {
739
771
  element: {
740
772
  type: {
741
773
  name: "Composite",
742
- className: "SolutionMetadataResource"
743
- }
744
- }
745
- }
774
+ className: "SolutionMetadataResource",
775
+ },
776
+ },
777
+ },
746
778
  },
747
779
  nextLink: {
748
780
  serializedName: "nextLink",
749
781
  type: {
750
- name: "String"
751
- }
752
- }
753
- }
754
- }
782
+ name: "String",
783
+ },
784
+ },
785
+ },
786
+ },
755
787
  };
756
788
  const SolutionMetadataProperties = {
757
789
  type: {
@@ -761,22 +793,22 @@ const SolutionMetadataProperties = {
761
793
  solutionId: {
762
794
  serializedName: "solutionId",
763
795
  type: {
764
- name: "String"
765
- }
796
+ name: "String",
797
+ },
766
798
  },
767
799
  solutionType: {
768
800
  serializedName: "solutionType",
769
801
  readOnly: true,
770
802
  type: {
771
- name: "String"
772
- }
803
+ name: "String",
804
+ },
773
805
  },
774
806
  description: {
775
807
  serializedName: "description",
776
808
  readOnly: true,
777
809
  type: {
778
- name: "String"
779
- }
810
+ name: "String",
811
+ },
780
812
  },
781
813
  requiredInputs: {
782
814
  serializedName: "requiredInputs",
@@ -785,204 +817,98 @@ const SolutionMetadataProperties = {
785
817
  name: "Sequence",
786
818
  element: {
787
819
  type: {
788
- name: "String"
789
- }
790
- }
791
- }
792
- }
793
- }
794
- }
820
+ name: "String",
821
+ },
822
+ },
823
+ },
824
+ },
825
+ },
826
+ },
795
827
  };
796
- const SolutionResource = {
828
+ const TriggerCriterion = {
797
829
  type: {
798
830
  name: "Composite",
799
- className: "SolutionResource",
831
+ className: "TriggerCriterion",
800
832
  modelProperties: {
801
- id: {
802
- serializedName: "id",
803
- readOnly: true,
804
- type: {
805
- name: "String"
806
- }
807
- },
808
- type: {
809
- serializedName: "type",
810
- readOnly: true,
811
- type: {
812
- name: "String"
813
- }
814
- },
815
833
  name: {
816
834
  serializedName: "name",
817
- readOnly: true,
818
835
  type: {
819
- name: "String"
820
- }
836
+ name: "String",
837
+ },
821
838
  },
822
- properties: {
823
- serializedName: "properties",
839
+ value: {
840
+ serializedName: "value",
824
841
  type: {
825
- name: "Composite",
826
- className: "SolutionResourceProperties"
827
- }
828
- }
829
- }
830
- }
842
+ name: "String",
843
+ },
844
+ },
845
+ },
846
+ },
831
847
  };
832
- const SolutionResourceProperties = {
848
+ const ReplacementMaps = {
833
849
  type: {
834
850
  name: "Composite",
835
- className: "SolutionResourceProperties",
851
+ className: "ReplacementMaps",
836
852
  modelProperties: {
837
- triggerCriteria: {
838
- serializedName: "triggerCriteria",
853
+ webResults: {
854
+ serializedName: "webResults",
839
855
  type: {
840
856
  name: "Sequence",
841
857
  element: {
842
858
  type: {
843
859
  name: "Composite",
844
- className: "TriggerCriterion"
845
- }
846
- }
847
- }
860
+ className: "WebResult",
861
+ },
862
+ },
863
+ },
848
864
  },
849
- parameters: {
850
- serializedName: "parameters",
865
+ diagnostics: {
866
+ serializedName: "diagnostics",
851
867
  type: {
852
- name: "Dictionary",
853
- value: { type: { name: "String" } }
854
- }
868
+ name: "Sequence",
869
+ element: {
870
+ type: {
871
+ name: "Composite",
872
+ className: "SolutionsDiagnostic",
873
+ },
874
+ },
875
+ },
855
876
  },
856
- solutionId: {
857
- serializedName: "solutionId",
877
+ troubleshooters: {
878
+ serializedName: "troubleshooters",
858
879
  type: {
859
- name: "String"
860
- }
880
+ name: "Sequence",
881
+ element: {
882
+ type: {
883
+ name: "Composite",
884
+ className: "SolutionsTroubleshooters",
885
+ },
886
+ },
887
+ },
861
888
  },
862
- provisioningState: {
863
- serializedName: "provisioningState",
889
+ metricsBasedCharts: {
890
+ serializedName: "metricsBasedCharts",
864
891
  type: {
865
- name: "String"
866
- }
892
+ name: "Sequence",
893
+ element: {
894
+ type: {
895
+ name: "Composite",
896
+ className: "MetricsBasedChart",
897
+ },
898
+ },
899
+ },
867
900
  },
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",
889
- type: {
890
- name: "Sequence",
891
- element: {
892
- type: {
893
- name: "Composite",
894
- className: "Section"
895
- }
896
- }
897
- }
898
- }
899
- }
900
- }
901
- };
902
- const TriggerCriterion = {
903
- type: {
904
- name: "Composite",
905
- className: "TriggerCriterion",
906
- modelProperties: {
907
- name: {
908
- serializedName: "name",
909
- type: {
910
- name: "String"
911
- }
912
- },
913
- value: {
914
- serializedName: "value",
915
- type: {
916
- name: "String"
917
- }
918
- }
919
- }
920
- }
921
- };
922
- const ReplacementMaps = {
923
- type: {
924
- name: "Composite",
925
- className: "ReplacementMaps",
926
- modelProperties: {
927
- webResults: {
928
- serializedName: "webResults",
901
+ videos: {
902
+ serializedName: "videos",
929
903
  type: {
930
904
  name: "Sequence",
931
905
  element: {
932
906
  type: {
933
907
  name: "Composite",
934
- className: "WebResult"
935
- }
936
- }
937
- }
938
- },
939
- diagnostics: {
940
- serializedName: "diagnostics",
941
- type: {
942
- name: "Sequence",
943
- element: {
944
- type: {
945
- name: "Composite",
946
- className: "SolutionsDiagnostic"
947
- }
948
- }
949
- }
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
- }
908
+ className: "Video",
909
+ },
910
+ },
911
+ },
986
912
  },
987
913
  videoGroups: {
988
914
  serializedName: "videoGroups",
@@ -991,13 +917,13 @@ const ReplacementMaps = {
991
917
  element: {
992
918
  type: {
993
919
  name: "Composite",
994
- className: "VideoGroup"
995
- }
996
- }
997
- }
998
- }
999
- }
1000
- }
920
+ className: "VideoGroup",
921
+ },
922
+ },
923
+ },
924
+ },
925
+ },
926
+ },
1001
927
  };
1002
928
  const WebResult = {
1003
929
  type: {
@@ -1007,8 +933,8 @@ const WebResult = {
1007
933
  replacementKey: {
1008
934
  serializedName: "replacementKey",
1009
935
  type: {
1010
- name: "String"
1011
- }
936
+ name: "String",
937
+ },
1012
938
  },
1013
939
  searchResults: {
1014
940
  serializedName: "searchResults",
@@ -1017,13 +943,13 @@ const WebResult = {
1017
943
  element: {
1018
944
  type: {
1019
945
  name: "Composite",
1020
- className: "SearchResult"
1021
- }
1022
- }
1023
- }
1024
- }
1025
- }
1026
- }
946
+ className: "SearchResult",
947
+ },
948
+ },
949
+ },
950
+ },
951
+ },
952
+ },
1027
953
  };
1028
954
  const SearchResult = {
1029
955
  type: {
@@ -1033,53 +959,53 @@ const SearchResult = {
1033
959
  solutionId: {
1034
960
  serializedName: "solutionId",
1035
961
  type: {
1036
- name: "String"
1037
- }
962
+ name: "String",
963
+ },
1038
964
  },
1039
965
  content: {
1040
966
  serializedName: "content",
1041
967
  type: {
1042
- name: "String"
1043
- }
968
+ name: "String",
969
+ },
1044
970
  },
1045
971
  title: {
1046
972
  serializedName: "title",
1047
973
  type: {
1048
- name: "String"
1049
- }
974
+ name: "String",
975
+ },
1050
976
  },
1051
977
  confidence: {
1052
978
  serializedName: "confidence",
1053
979
  type: {
1054
- name: "String"
1055
- }
980
+ name: "String",
981
+ },
1056
982
  },
1057
983
  source: {
1058
984
  serializedName: "source",
1059
985
  type: {
1060
- name: "String"
1061
- }
986
+ name: "String",
987
+ },
1062
988
  },
1063
989
  resultType: {
1064
990
  serializedName: "resultType",
1065
991
  type: {
1066
- name: "String"
1067
- }
992
+ name: "String",
993
+ },
1068
994
  },
1069
995
  rank: {
1070
996
  serializedName: "rank",
1071
997
  type: {
1072
- name: "Number"
1073
- }
998
+ name: "Number",
999
+ },
1074
1000
  },
1075
1001
  link: {
1076
1002
  serializedName: "link",
1077
1003
  type: {
1078
- name: "String"
1079
- }
1080
- }
1081
- }
1082
- }
1004
+ name: "String",
1005
+ },
1006
+ },
1007
+ },
1008
+ },
1083
1009
  };
1084
1010
  const SolutionsDiagnostic = {
1085
1011
  type: {
@@ -1089,26 +1015,32 @@ const SolutionsDiagnostic = {
1089
1015
  solutionId: {
1090
1016
  serializedName: "solutionId",
1091
1017
  type: {
1092
- name: "String"
1093
- }
1018
+ name: "String",
1019
+ },
1094
1020
  },
1095
1021
  status: {
1096
1022
  serializedName: "status",
1097
1023
  type: {
1098
- name: "String"
1099
- }
1024
+ name: "String",
1025
+ },
1100
1026
  },
1101
1027
  statusDetails: {
1102
1028
  serializedName: "statusDetails",
1103
1029
  type: {
1104
- name: "String"
1105
- }
1030
+ name: "String",
1031
+ },
1106
1032
  },
1107
1033
  replacementKey: {
1108
1034
  serializedName: "replacementKey",
1109
1035
  type: {
1110
- name: "String"
1111
- }
1036
+ name: "String",
1037
+ },
1038
+ },
1039
+ estimatedCompletionTime: {
1040
+ serializedName: "estimatedCompletionTime",
1041
+ type: {
1042
+ name: "String",
1043
+ },
1112
1044
  },
1113
1045
  requiredParameters: {
1114
1046
  serializedName: "requiredParameters",
@@ -1116,10 +1048,10 @@ const SolutionsDiagnostic = {
1116
1048
  name: "Sequence",
1117
1049
  element: {
1118
1050
  type: {
1119
- name: "String"
1120
- }
1121
- }
1122
- }
1051
+ name: "String",
1052
+ },
1053
+ },
1054
+ },
1123
1055
  },
1124
1056
  insights: {
1125
1057
  serializedName: "insights",
@@ -1128,13 +1060,13 @@ const SolutionsDiagnostic = {
1128
1060
  element: {
1129
1061
  type: {
1130
1062
  name: "Composite",
1131
- className: "Insight"
1132
- }
1133
- }
1134
- }
1135
- }
1136
- }
1137
- }
1063
+ className: "Insight",
1064
+ },
1065
+ },
1066
+ },
1067
+ },
1068
+ },
1069
+ },
1138
1070
  };
1139
1071
  const SolutionsTroubleshooters = {
1140
1072
  type: {
@@ -1144,23 +1076,23 @@ const SolutionsTroubleshooters = {
1144
1076
  solutionId: {
1145
1077
  serializedName: "solutionId",
1146
1078
  type: {
1147
- name: "String"
1148
- }
1079
+ name: "String",
1080
+ },
1149
1081
  },
1150
1082
  title: {
1151
1083
  serializedName: "title",
1152
1084
  type: {
1153
- name: "String"
1154
- }
1085
+ name: "String",
1086
+ },
1155
1087
  },
1156
1088
  summary: {
1157
1089
  serializedName: "summary",
1158
1090
  type: {
1159
- name: "String"
1160
- }
1161
- }
1162
- }
1163
- }
1091
+ name: "String",
1092
+ },
1093
+ },
1094
+ },
1095
+ },
1164
1096
  };
1165
1097
  const MetricsBasedChart = {
1166
1098
  type: {
@@ -1170,42 +1102,42 @@ const MetricsBasedChart = {
1170
1102
  name: {
1171
1103
  serializedName: "name",
1172
1104
  type: {
1173
- name: "String"
1174
- }
1105
+ name: "String",
1106
+ },
1175
1107
  },
1176
1108
  aggregationType: {
1177
1109
  serializedName: "aggregationType",
1178
1110
  type: {
1179
- name: "String"
1180
- }
1111
+ name: "String",
1112
+ },
1181
1113
  },
1182
1114
  timeSpanDuration: {
1183
1115
  serializedName: "timeSpanDuration",
1184
1116
  type: {
1185
- name: "String"
1186
- }
1117
+ name: "String",
1118
+ },
1187
1119
  },
1188
1120
  title: {
1189
1121
  serializedName: "title",
1190
1122
  type: {
1191
- name: "String"
1192
- }
1123
+ name: "String",
1124
+ },
1193
1125
  },
1194
1126
  filterGroup: {
1195
1127
  serializedName: "filterGroup",
1196
1128
  type: {
1197
1129
  name: "Composite",
1198
- className: "FilterGroup"
1199
- }
1130
+ className: "FilterGroup",
1131
+ },
1200
1132
  },
1201
1133
  replacementKey: {
1202
1134
  serializedName: "replacementKey",
1203
1135
  type: {
1204
- name: "String"
1205
- }
1206
- }
1207
- }
1208
- }
1136
+ name: "String",
1137
+ },
1138
+ },
1139
+ },
1140
+ },
1209
1141
  };
1210
1142
  const FilterGroup = {
1211
1143
  type: {
@@ -1219,13 +1151,13 @@ const FilterGroup = {
1219
1151
  element: {
1220
1152
  type: {
1221
1153
  name: "Composite",
1222
- className: "Filter"
1223
- }
1224
- }
1225
- }
1226
- }
1227
- }
1228
- }
1154
+ className: "Filter",
1155
+ },
1156
+ },
1157
+ },
1158
+ },
1159
+ },
1160
+ },
1229
1161
  };
1230
1162
  const Filter = {
1231
1163
  type: {
@@ -1235,23 +1167,23 @@ const Filter = {
1235
1167
  name: {
1236
1168
  serializedName: "name",
1237
1169
  type: {
1238
- name: "String"
1239
- }
1170
+ name: "String",
1171
+ },
1240
1172
  },
1241
1173
  values: {
1242
1174
  serializedName: "values",
1243
1175
  type: {
1244
- name: "String"
1245
- }
1176
+ name: "String",
1177
+ },
1246
1178
  },
1247
1179
  operator: {
1248
1180
  serializedName: "operator",
1249
1181
  type: {
1250
- name: "String"
1251
- }
1252
- }
1253
- }
1254
- }
1182
+ name: "String",
1183
+ },
1184
+ },
1185
+ },
1186
+ },
1255
1187
  };
1256
1188
  const VideoGroupVideo = {
1257
1189
  type: {
@@ -1261,17 +1193,17 @@ const VideoGroupVideo = {
1261
1193
  src: {
1262
1194
  serializedName: "src",
1263
1195
  type: {
1264
- name: "String"
1265
- }
1196
+ name: "String",
1197
+ },
1266
1198
  },
1267
1199
  title: {
1268
1200
  serializedName: "title",
1269
1201
  type: {
1270
- name: "String"
1271
- }
1272
- }
1273
- }
1274
- }
1202
+ name: "String",
1203
+ },
1204
+ },
1205
+ },
1206
+ },
1275
1207
  };
1276
1208
  const VideoGroup = {
1277
1209
  type: {
@@ -1285,19 +1217,19 @@ const VideoGroup = {
1285
1217
  element: {
1286
1218
  type: {
1287
1219
  name: "Composite",
1288
- className: "VideoGroupVideo"
1289
- }
1290
- }
1291
- }
1220
+ className: "VideoGroupVideo",
1221
+ },
1222
+ },
1223
+ },
1292
1224
  },
1293
1225
  replacementKey: {
1294
1226
  serializedName: "replacementKey",
1295
1227
  type: {
1296
- name: "String"
1297
- }
1298
- }
1299
- }
1300
- }
1228
+ name: "String",
1229
+ },
1230
+ },
1231
+ },
1232
+ },
1301
1233
  };
1302
1234
  const Section = {
1303
1235
  type: {
@@ -1307,39 +1239,114 @@ const Section = {
1307
1239
  title: {
1308
1240
  serializedName: "title",
1309
1241
  type: {
1310
- name: "String"
1311
- }
1242
+ name: "String",
1243
+ },
1312
1244
  },
1313
1245
  content: {
1314
1246
  serializedName: "content",
1315
1247
  type: {
1316
- name: "String"
1317
- }
1248
+ name: "String",
1249
+ },
1318
1250
  },
1319
1251
  replacementMaps: {
1320
1252
  serializedName: "replacementMaps",
1321
1253
  type: {
1322
1254
  name: "Composite",
1323
- className: "ReplacementMaps"
1324
- }
1325
- }
1326
- }
1327
- }
1255
+ className: "ReplacementMaps",
1256
+ },
1257
+ },
1258
+ },
1259
+ },
1328
1260
  };
1329
1261
  const SolutionPatchRequestBody = {
1330
1262
  type: {
1331
1263
  name: "Composite",
1332
1264
  className: "SolutionPatchRequestBody",
1333
1265
  modelProperties: {
1334
- properties: {
1335
- serializedName: "properties",
1266
+ triggerCriteria: {
1267
+ serializedName: "properties.triggerCriteria",
1268
+ type: {
1269
+ name: "Sequence",
1270
+ element: {
1271
+ type: {
1272
+ name: "Composite",
1273
+ className: "TriggerCriterion",
1274
+ },
1275
+ },
1276
+ },
1277
+ },
1278
+ parameters: {
1279
+ serializedName: "properties.parameters",
1280
+ type: {
1281
+ name: "Dictionary",
1282
+ value: { type: { name: "String" } },
1283
+ },
1284
+ },
1285
+ solutionId: {
1286
+ serializedName: "properties.solutionId",
1287
+ readOnly: true,
1288
+ type: {
1289
+ name: "String",
1290
+ },
1291
+ },
1292
+ provisioningState: {
1293
+ serializedName: "properties.provisioningState",
1294
+ readOnly: true,
1295
+ type: {
1296
+ name: "String",
1297
+ },
1298
+ },
1299
+ title: {
1300
+ serializedName: "properties.title",
1301
+ readOnly: true,
1302
+ type: {
1303
+ name: "String",
1304
+ },
1305
+ },
1306
+ content: {
1307
+ serializedName: "properties.content",
1308
+ readOnly: true,
1309
+ type: {
1310
+ name: "String",
1311
+ },
1312
+ },
1313
+ replacementMaps: {
1314
+ serializedName: "properties.replacementMaps",
1336
1315
  type: {
1337
1316
  name: "Composite",
1338
- className: "SolutionResourceProperties"
1339
- }
1340
- }
1341
- }
1342
- }
1317
+ className: "ReplacementMaps",
1318
+ },
1319
+ },
1320
+ sections: {
1321
+ serializedName: "properties.sections",
1322
+ readOnly: true,
1323
+ type: {
1324
+ name: "Sequence",
1325
+ element: {
1326
+ type: {
1327
+ name: "Composite",
1328
+ className: "Section",
1329
+ },
1330
+ },
1331
+ },
1332
+ },
1333
+ },
1334
+ },
1335
+ };
1336
+ const SolutionWarmUpRequestBody = {
1337
+ type: {
1338
+ name: "Composite",
1339
+ className: "SolutionWarmUpRequestBody",
1340
+ modelProperties: {
1341
+ parameters: {
1342
+ serializedName: "parameters",
1343
+ type: {
1344
+ name: "Dictionary",
1345
+ value: { type: { name: "String" } },
1346
+ },
1347
+ },
1348
+ },
1349
+ },
1343
1350
  };
1344
1351
  const Step = {
1345
1352
  type: {
@@ -1349,50 +1356,50 @@ const Step = {
1349
1356
  id: {
1350
1357
  serializedName: "id",
1351
1358
  type: {
1352
- name: "String"
1353
- }
1359
+ name: "String",
1360
+ },
1354
1361
  },
1355
1362
  title: {
1356
1363
  serializedName: "title",
1357
1364
  type: {
1358
- name: "String"
1359
- }
1365
+ name: "String",
1366
+ },
1360
1367
  },
1361
1368
  description: {
1362
1369
  serializedName: "description",
1363
1370
  type: {
1364
- name: "String"
1365
- }
1371
+ name: "String",
1372
+ },
1366
1373
  },
1367
1374
  guidance: {
1368
1375
  serializedName: "guidance",
1369
1376
  type: {
1370
- name: "String"
1371
- }
1377
+ name: "String",
1378
+ },
1372
1379
  },
1373
1380
  executionStatus: {
1374
1381
  serializedName: "executionStatus",
1375
1382
  type: {
1376
- name: "String"
1377
- }
1383
+ name: "String",
1384
+ },
1378
1385
  },
1379
1386
  executionStatusDescription: {
1380
1387
  serializedName: "executionStatusDescription",
1381
1388
  type: {
1382
- name: "String"
1383
- }
1389
+ name: "String",
1390
+ },
1384
1391
  },
1385
1392
  type: {
1386
1393
  serializedName: "type",
1387
1394
  type: {
1388
- name: "String"
1389
- }
1395
+ name: "String",
1396
+ },
1390
1397
  },
1391
1398
  isLastStep: {
1392
1399
  serializedName: "isLastStep",
1393
1400
  type: {
1394
- name: "Boolean"
1395
- }
1401
+ name: "Boolean",
1402
+ },
1396
1403
  },
1397
1404
  inputs: {
1398
1405
  serializedName: "inputs",
@@ -1401,17 +1408,17 @@ const Step = {
1401
1408
  element: {
1402
1409
  type: {
1403
1410
  name: "Composite",
1404
- className: "StepInput"
1405
- }
1406
- }
1407
- }
1411
+ className: "StepInput",
1412
+ },
1413
+ },
1414
+ },
1408
1415
  },
1409
1416
  automatedCheckResults: {
1410
1417
  serializedName: "automatedCheckResults",
1411
1418
  type: {
1412
1419
  name: "Composite",
1413
- className: "AutomatedCheckResult"
1414
- }
1420
+ className: "AutomatedCheckResult",
1421
+ },
1415
1422
  },
1416
1423
  insights: {
1417
1424
  serializedName: "insights",
@@ -1420,20 +1427,20 @@ const Step = {
1420
1427
  element: {
1421
1428
  type: {
1422
1429
  name: "Composite",
1423
- className: "Insight"
1424
- }
1425
- }
1426
- }
1430
+ className: "Insight",
1431
+ },
1432
+ },
1433
+ },
1427
1434
  },
1428
1435
  error: {
1429
1436
  serializedName: "error",
1430
1437
  type: {
1431
1438
  name: "Composite",
1432
- className: "ErrorDetail"
1433
- }
1434
- }
1435
- }
1436
- }
1439
+ className: "ErrorDetail",
1440
+ },
1441
+ },
1442
+ },
1443
+ },
1437
1444
  };
1438
1445
  const StepInput = {
1439
1446
  type: {
@@ -1443,51 +1450,57 @@ const StepInput = {
1443
1450
  questionId: {
1444
1451
  serializedName: "questionId",
1445
1452
  type: {
1446
- name: "String"
1447
- }
1453
+ name: "String",
1454
+ },
1448
1455
  },
1449
1456
  questionType: {
1450
1457
  serializedName: "questionType",
1451
1458
  type: {
1452
- name: "String"
1453
- }
1459
+ name: "String",
1460
+ },
1461
+ },
1462
+ questionTitle: {
1463
+ serializedName: "questionTitle",
1464
+ type: {
1465
+ name: "String",
1466
+ },
1454
1467
  },
1455
1468
  questionContent: {
1456
1469
  serializedName: "questionContent",
1457
1470
  type: {
1458
- name: "String"
1459
- }
1471
+ name: "String",
1472
+ },
1460
1473
  },
1461
1474
  questionContentType: {
1462
1475
  serializedName: "questionContentType",
1463
1476
  type: {
1464
- name: "String"
1465
- }
1477
+ name: "String",
1478
+ },
1466
1479
  },
1467
1480
  responseHint: {
1468
1481
  serializedName: "responseHint",
1469
1482
  type: {
1470
- name: "String"
1471
- }
1483
+ name: "String",
1484
+ },
1472
1485
  },
1473
1486
  recommendedOption: {
1474
1487
  serializedName: "recommendedOption",
1475
1488
  type: {
1476
- name: "String"
1477
- }
1489
+ name: "String",
1490
+ },
1478
1491
  },
1479
1492
  selectedOptionValue: {
1480
1493
  serializedName: "selectedOptionValue",
1481
1494
  type: {
1482
- name: "String"
1483
- }
1495
+ name: "String",
1496
+ },
1484
1497
  },
1485
1498
  responseValidationProperties: {
1486
1499
  serializedName: "responseValidationProperties",
1487
1500
  type: {
1488
1501
  name: "Composite",
1489
- className: "ResponseValidationProperties"
1490
- }
1502
+ className: "ResponseValidationProperties",
1503
+ },
1491
1504
  },
1492
1505
  responseOptions: {
1493
1506
  serializedName: "responseOptions",
@@ -1496,13 +1509,13 @@ const StepInput = {
1496
1509
  element: {
1497
1510
  type: {
1498
1511
  name: "Composite",
1499
- className: "ResponseOption"
1500
- }
1501
- }
1502
- }
1503
- }
1504
- }
1505
- }
1512
+ className: "ResponseOption",
1513
+ },
1514
+ },
1515
+ },
1516
+ },
1517
+ },
1518
+ },
1506
1519
  };
1507
1520
  const ResponseValidationProperties = {
1508
1521
  type: {
@@ -1512,29 +1525,35 @@ const ResponseValidationProperties = {
1512
1525
  regex: {
1513
1526
  serializedName: "regex",
1514
1527
  type: {
1515
- name: "String"
1516
- }
1528
+ name: "String",
1529
+ },
1530
+ },
1531
+ validationScope: {
1532
+ serializedName: "validationScope",
1533
+ type: {
1534
+ name: "String",
1535
+ },
1517
1536
  },
1518
1537
  isRequired: {
1519
1538
  serializedName: "isRequired",
1520
1539
  type: {
1521
- name: "Boolean"
1522
- }
1540
+ name: "Boolean",
1541
+ },
1523
1542
  },
1524
1543
  validationErrorMessage: {
1525
1544
  serializedName: "validationErrorMessage",
1526
1545
  type: {
1527
- name: "String"
1528
- }
1546
+ name: "String",
1547
+ },
1529
1548
  },
1530
1549
  maxLength: {
1531
1550
  serializedName: "maxLength",
1532
1551
  type: {
1533
- name: "Number"
1534
- }
1535
- }
1536
- }
1537
- }
1552
+ name: "Number",
1553
+ },
1554
+ },
1555
+ },
1556
+ },
1538
1557
  };
1539
1558
  const ResponseOption = {
1540
1559
  type: {
@@ -1544,37 +1563,49 @@ const ResponseOption = {
1544
1563
  key: {
1545
1564
  serializedName: "key",
1546
1565
  type: {
1547
- name: "String"
1548
- }
1566
+ name: "String",
1567
+ },
1549
1568
  },
1550
1569
  value: {
1551
1570
  serializedName: "value",
1552
1571
  type: {
1553
- name: "String"
1554
- }
1555
- }
1556
- }
1557
- }
1572
+ name: "String",
1573
+ },
1574
+ },
1575
+ },
1576
+ },
1558
1577
  };
1559
1578
  const AutomatedCheckResult = {
1560
1579
  type: {
1561
1580
  name: "Composite",
1562
1581
  className: "AutomatedCheckResult",
1563
1582
  modelProperties: {
1583
+ version: {
1584
+ serializedName: "version",
1585
+ type: {
1586
+ name: "String",
1587
+ },
1588
+ },
1589
+ status: {
1590
+ serializedName: "status",
1591
+ type: {
1592
+ name: "String",
1593
+ },
1594
+ },
1564
1595
  result: {
1565
1596
  serializedName: "result",
1566
1597
  type: {
1567
- name: "String"
1568
- }
1598
+ name: "String",
1599
+ },
1569
1600
  },
1570
1601
  type: {
1571
1602
  serializedName: "type",
1572
1603
  type: {
1573
- name: "String"
1574
- }
1575
- }
1576
- }
1577
- }
1604
+ name: "String",
1605
+ },
1606
+ },
1607
+ },
1608
+ },
1578
1609
  };
1579
1610
  const ContinueRequestBody = {
1580
1611
  type: {
@@ -1584,8 +1615,8 @@ const ContinueRequestBody = {
1584
1615
  stepId: {
1585
1616
  serializedName: "stepId",
1586
1617
  type: {
1587
- name: "String"
1588
- }
1618
+ name: "String",
1619
+ },
1589
1620
  },
1590
1621
  responses: {
1591
1622
  serializedName: "responses",
@@ -1594,13 +1625,13 @@ const ContinueRequestBody = {
1594
1625
  element: {
1595
1626
  type: {
1596
1627
  name: "Composite",
1597
- className: "TroubleshooterResponse"
1598
- }
1599
- }
1600
- }
1601
- }
1602
- }
1603
- }
1628
+ className: "TroubleshooterResponse",
1629
+ },
1630
+ },
1631
+ },
1632
+ },
1633
+ },
1634
+ },
1604
1635
  };
1605
1636
  const TroubleshooterResponse = {
1606
1637
  type: {
@@ -1610,23 +1641,23 @@ const TroubleshooterResponse = {
1610
1641
  questionId: {
1611
1642
  serializedName: "questionId",
1612
1643
  type: {
1613
- name: "String"
1614
- }
1644
+ name: "String",
1645
+ },
1615
1646
  },
1616
1647
  questionType: {
1617
1648
  serializedName: "questionType",
1618
1649
  type: {
1619
- name: "String"
1620
- }
1650
+ name: "String",
1651
+ },
1621
1652
  },
1622
1653
  response: {
1623
1654
  serializedName: "response",
1624
1655
  type: {
1625
- name: "String"
1626
- }
1627
- }
1628
- }
1629
- }
1656
+ name: "String",
1657
+ },
1658
+ },
1659
+ },
1660
+ },
1630
1661
  };
1631
1662
  const RestartTroubleshooterResponse = {
1632
1663
  type: {
@@ -1637,18 +1668,175 @@ const RestartTroubleshooterResponse = {
1637
1668
  serializedName: "troubleshooterResourceName",
1638
1669
  readOnly: true,
1639
1670
  type: {
1640
- name: "String"
1641
- }
1642
- }
1643
- }
1644
- }
1671
+ name: "String",
1672
+ },
1673
+ },
1674
+ },
1675
+ },
1676
+ };
1677
+ const ReplacementMapsSelfHelp = {
1678
+ type: {
1679
+ name: "Composite",
1680
+ className: "ReplacementMapsSelfHelp",
1681
+ modelProperties: {
1682
+ webResults: {
1683
+ serializedName: "webResults",
1684
+ type: {
1685
+ name: "Sequence",
1686
+ element: {
1687
+ type: {
1688
+ name: "Composite",
1689
+ className: "WebResult",
1690
+ },
1691
+ },
1692
+ },
1693
+ },
1694
+ videos: {
1695
+ serializedName: "videos",
1696
+ type: {
1697
+ name: "Sequence",
1698
+ element: {
1699
+ type: {
1700
+ name: "Composite",
1701
+ className: "Video",
1702
+ },
1703
+ },
1704
+ },
1705
+ },
1706
+ videoGroups: {
1707
+ serializedName: "videoGroups",
1708
+ type: {
1709
+ name: "Sequence",
1710
+ element: {
1711
+ type: {
1712
+ name: "Composite",
1713
+ className: "VideoGroup",
1714
+ },
1715
+ },
1716
+ },
1717
+ },
1718
+ },
1719
+ },
1720
+ };
1721
+ const SectionSelfHelp = {
1722
+ type: {
1723
+ name: "Composite",
1724
+ className: "SectionSelfHelp",
1725
+ modelProperties: {
1726
+ title: {
1727
+ serializedName: "title",
1728
+ type: {
1729
+ name: "String",
1730
+ },
1731
+ },
1732
+ content: {
1733
+ serializedName: "content",
1734
+ type: {
1735
+ name: "String",
1736
+ },
1737
+ },
1738
+ replacementMaps: {
1739
+ serializedName: "replacementMaps",
1740
+ type: {
1741
+ name: "Composite",
1742
+ className: "ReplacementMapsSelfHelp",
1743
+ },
1744
+ },
1745
+ },
1746
+ },
1747
+ };
1748
+ const DiscoveryNlpRequest = {
1749
+ type: {
1750
+ name: "Composite",
1751
+ className: "DiscoveryNlpRequest",
1752
+ modelProperties: {
1753
+ issueSummary: {
1754
+ serializedName: "issueSummary",
1755
+ required: true,
1756
+ type: {
1757
+ name: "String",
1758
+ },
1759
+ },
1760
+ resourceId: {
1761
+ serializedName: "resourceId",
1762
+ type: {
1763
+ name: "String",
1764
+ },
1765
+ },
1766
+ serviceId: {
1767
+ serializedName: "serviceId",
1768
+ type: {
1769
+ name: "String",
1770
+ },
1771
+ },
1772
+ additionalContext: {
1773
+ serializedName: "additionalContext",
1774
+ type: {
1775
+ name: "String",
1776
+ },
1777
+ },
1778
+ },
1779
+ },
1780
+ };
1781
+ const DiscoveryNlpResponse = {
1782
+ type: {
1783
+ name: "Composite",
1784
+ className: "DiscoveryNlpResponse",
1785
+ modelProperties: {
1786
+ value: {
1787
+ serializedName: "value",
1788
+ type: {
1789
+ name: "Sequence",
1790
+ element: {
1791
+ type: {
1792
+ name: "Composite",
1793
+ className: "SolutionNlpMetadataResource",
1794
+ },
1795
+ },
1796
+ },
1797
+ },
1798
+ },
1799
+ },
1800
+ };
1801
+ const ClassificationService = {
1802
+ type: {
1803
+ name: "Composite",
1804
+ className: "ClassificationService",
1805
+ modelProperties: {
1806
+ serviceId: {
1807
+ serializedName: "serviceId",
1808
+ readOnly: true,
1809
+ type: {
1810
+ name: "String",
1811
+ },
1812
+ },
1813
+ displayName: {
1814
+ serializedName: "displayName",
1815
+ readOnly: true,
1816
+ type: {
1817
+ name: "String",
1818
+ },
1819
+ },
1820
+ resourceTypes: {
1821
+ serializedName: "resourceTypes",
1822
+ type: {
1823
+ name: "Sequence",
1824
+ element: {
1825
+ type: {
1826
+ name: "String",
1827
+ },
1828
+ },
1829
+ },
1830
+ },
1831
+ },
1832
+ },
1645
1833
  };
1646
1834
  const ProxyResource = {
1647
1835
  type: {
1648
1836
  name: "Composite",
1649
1837
  className: "ProxyResource",
1650
- modelProperties: Object.assign({}, Resource.type.modelProperties)
1651
- }
1838
+ modelProperties: Object.assign({}, Resource.type.modelProperties),
1839
+ },
1652
1840
  };
1653
1841
  const Video = {
1654
1842
  type: {
@@ -1657,10 +1845,10 @@ const Video = {
1657
1845
  modelProperties: Object.assign(Object.assign({}, VideoGroupVideo.type.modelProperties), { replacementKey: {
1658
1846
  serializedName: "replacementKey",
1659
1847
  type: {
1660
- name: "String"
1661
- }
1662
- } })
1663
- }
1848
+ name: "String",
1849
+ },
1850
+ } }),
1851
+ },
1664
1852
  };
1665
1853
  const DiagnosticResource = {
1666
1854
  type: {
@@ -1670,8 +1858,8 @@ const DiagnosticResource = {
1670
1858
  serializedName: "properties.globalParameters",
1671
1859
  type: {
1672
1860
  name: "Dictionary",
1673
- value: { type: { name: "String" } }
1674
- }
1861
+ value: { type: { name: "String" } },
1862
+ },
1675
1863
  }, insights: {
1676
1864
  serializedName: "properties.insights",
1677
1865
  type: {
@@ -1679,22 +1867,22 @@ const DiagnosticResource = {
1679
1867
  element: {
1680
1868
  type: {
1681
1869
  name: "Composite",
1682
- className: "DiagnosticInvocation"
1683
- }
1684
- }
1685
- }
1870
+ className: "DiagnosticInvocation",
1871
+ },
1872
+ },
1873
+ },
1686
1874
  }, acceptedAt: {
1687
1875
  serializedName: "properties.acceptedAt",
1688
1876
  readOnly: true,
1689
1877
  type: {
1690
- name: "String"
1691
- }
1878
+ name: "String",
1879
+ },
1692
1880
  }, provisioningState: {
1693
1881
  serializedName: "properties.provisioningState",
1694
1882
  readOnly: true,
1695
1883
  type: {
1696
- name: "String"
1697
- }
1884
+ name: "String",
1885
+ },
1698
1886
  }, diagnostics: {
1699
1887
  serializedName: "properties.diagnostics",
1700
1888
  readOnly: true,
@@ -1703,12 +1891,12 @@ const DiagnosticResource = {
1703
1891
  element: {
1704
1892
  type: {
1705
1893
  name: "Composite",
1706
- className: "Diagnostic"
1707
- }
1708
- }
1709
- }
1710
- } })
1711
- }
1894
+ className: "Diagnostic",
1895
+ },
1896
+ },
1897
+ },
1898
+ } }),
1899
+ },
1712
1900
  };
1713
1901
  const SolutionMetadataResource = {
1714
1902
  type: {
@@ -1721,12 +1909,121 @@ const SolutionMetadataResource = {
1721
1909
  element: {
1722
1910
  type: {
1723
1911
  name: "Composite",
1724
- className: "SolutionMetadataProperties"
1725
- }
1726
- }
1727
- }
1728
- } })
1729
- }
1912
+ className: "SolutionMetadataProperties",
1913
+ },
1914
+ },
1915
+ },
1916
+ } }),
1917
+ },
1918
+ };
1919
+ const SolutionResource = {
1920
+ type: {
1921
+ name: "Composite",
1922
+ className: "SolutionResource",
1923
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { triggerCriteria: {
1924
+ serializedName: "properties.triggerCriteria",
1925
+ type: {
1926
+ name: "Sequence",
1927
+ element: {
1928
+ type: {
1929
+ name: "Composite",
1930
+ className: "TriggerCriterion",
1931
+ },
1932
+ },
1933
+ },
1934
+ }, parameters: {
1935
+ serializedName: "properties.parameters",
1936
+ type: {
1937
+ name: "Dictionary",
1938
+ value: { type: { name: "String" } },
1939
+ },
1940
+ }, solutionId: {
1941
+ serializedName: "properties.solutionId",
1942
+ readOnly: true,
1943
+ type: {
1944
+ name: "String",
1945
+ },
1946
+ }, provisioningState: {
1947
+ serializedName: "properties.provisioningState",
1948
+ readOnly: true,
1949
+ type: {
1950
+ name: "String",
1951
+ },
1952
+ }, title: {
1953
+ serializedName: "properties.title",
1954
+ readOnly: true,
1955
+ type: {
1956
+ name: "String",
1957
+ },
1958
+ }, content: {
1959
+ serializedName: "properties.content",
1960
+ readOnly: true,
1961
+ type: {
1962
+ name: "String",
1963
+ },
1964
+ }, replacementMaps: {
1965
+ serializedName: "properties.replacementMaps",
1966
+ type: {
1967
+ name: "Composite",
1968
+ className: "ReplacementMaps",
1969
+ },
1970
+ }, sections: {
1971
+ serializedName: "properties.sections",
1972
+ readOnly: true,
1973
+ type: {
1974
+ name: "Sequence",
1975
+ element: {
1976
+ type: {
1977
+ name: "Composite",
1978
+ className: "Section",
1979
+ },
1980
+ },
1981
+ },
1982
+ } }),
1983
+ },
1984
+ };
1985
+ const SimplifiedSolutionsResource = {
1986
+ type: {
1987
+ name: "Composite",
1988
+ className: "SimplifiedSolutionsResource",
1989
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { solutionId: {
1990
+ serializedName: "properties.solutionId",
1991
+ type: {
1992
+ name: "String",
1993
+ },
1994
+ }, parameters: {
1995
+ serializedName: "properties.parameters",
1996
+ type: {
1997
+ name: "Dictionary",
1998
+ value: { type: { name: "String" } },
1999
+ },
2000
+ }, title: {
2001
+ serializedName: "properties.title",
2002
+ readOnly: true,
2003
+ type: {
2004
+ name: "String",
2005
+ },
2006
+ }, appendix: {
2007
+ serializedName: "properties.appendix",
2008
+ readOnly: true,
2009
+ type: {
2010
+ name: "Dictionary",
2011
+ value: { type: { name: "String" } },
2012
+ },
2013
+ }, content: {
2014
+ serializedName: "properties.content",
2015
+ readOnly: true,
2016
+ type: {
2017
+ name: "String",
2018
+ },
2019
+ }, provisioningState: {
2020
+ serializedName: "properties.provisioningState",
2021
+ readOnly: true,
2022
+ type: {
2023
+ name: "String",
2024
+ },
2025
+ } }),
2026
+ },
1730
2027
  };
1731
2028
  const TroubleshooterResource = {
1732
2029
  type: {
@@ -1735,20 +2032,20 @@ const TroubleshooterResource = {
1735
2032
  modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { solutionId: {
1736
2033
  serializedName: "properties.solutionId",
1737
2034
  type: {
1738
- name: "String"
1739
- }
2035
+ name: "String",
2036
+ },
1740
2037
  }, parameters: {
1741
2038
  serializedName: "properties.parameters",
1742
2039
  type: {
1743
2040
  name: "Dictionary",
1744
- value: { type: { name: "String" } }
1745
- }
2041
+ value: { type: { name: "String" } },
2042
+ },
1746
2043
  }, provisioningState: {
1747
2044
  serializedName: "properties.provisioningState",
1748
2045
  readOnly: true,
1749
2046
  type: {
1750
- name: "String"
1751
- }
2047
+ name: "String",
2048
+ },
1752
2049
  }, steps: {
1753
2050
  serializedName: "properties.steps",
1754
2051
  readOnly: true,
@@ -1757,12 +2054,104 @@ const TroubleshooterResource = {
1757
2054
  element: {
1758
2055
  type: {
1759
2056
  name: "Composite",
1760
- className: "Step"
1761
- }
1762
- }
1763
- }
1764
- } })
1765
- }
2057
+ className: "Step",
2058
+ },
2059
+ },
2060
+ },
2061
+ } }),
2062
+ },
2063
+ };
2064
+ const SolutionResourceSelfHelp = {
2065
+ type: {
2066
+ name: "Composite",
2067
+ className: "SolutionResourceSelfHelp",
2068
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { solutionId: {
2069
+ serializedName: "properties.solutionId",
2070
+ readOnly: true,
2071
+ type: {
2072
+ name: "String",
2073
+ },
2074
+ }, title: {
2075
+ serializedName: "properties.title",
2076
+ readOnly: true,
2077
+ type: {
2078
+ name: "String",
2079
+ },
2080
+ }, content: {
2081
+ serializedName: "properties.content",
2082
+ readOnly: true,
2083
+ type: {
2084
+ name: "String",
2085
+ },
2086
+ }, replacementMaps: {
2087
+ serializedName: "properties.replacementMaps",
2088
+ type: {
2089
+ name: "Composite",
2090
+ className: "ReplacementMapsSelfHelp",
2091
+ },
2092
+ }, sections: {
2093
+ serializedName: "properties.sections",
2094
+ readOnly: true,
2095
+ type: {
2096
+ name: "Sequence",
2097
+ element: {
2098
+ type: {
2099
+ name: "Composite",
2100
+ className: "SectionSelfHelp",
2101
+ },
2102
+ },
2103
+ },
2104
+ } }),
2105
+ },
2106
+ };
2107
+ const SolutionNlpMetadataResource = {
2108
+ type: {
2109
+ name: "Composite",
2110
+ className: "SolutionNlpMetadataResource",
2111
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { problemTitle: {
2112
+ serializedName: "properties.problemTitle",
2113
+ type: {
2114
+ name: "String",
2115
+ },
2116
+ }, problemDescription: {
2117
+ serializedName: "properties.problemDescription",
2118
+ type: {
2119
+ name: "String",
2120
+ },
2121
+ }, serviceId: {
2122
+ serializedName: "properties.serviceId",
2123
+ type: {
2124
+ name: "String",
2125
+ },
2126
+ }, problemClassificationId: {
2127
+ serializedName: "properties.problemClassificationId",
2128
+ type: {
2129
+ name: "String",
2130
+ },
2131
+ }, solutions: {
2132
+ serializedName: "properties.solutions",
2133
+ type: {
2134
+ name: "Sequence",
2135
+ element: {
2136
+ type: {
2137
+ name: "Composite",
2138
+ className: "SolutionMetadataProperties",
2139
+ },
2140
+ },
2141
+ },
2142
+ }, relatedServices: {
2143
+ serializedName: "properties.relatedServices",
2144
+ type: {
2145
+ name: "Sequence",
2146
+ element: {
2147
+ type: {
2148
+ name: "Composite",
2149
+ className: "ClassificationService",
2150
+ },
2151
+ },
2152
+ },
2153
+ } }),
2154
+ },
1766
2155
  };
1767
2156
  const SolutionUpdateHeaders = {
1768
2157
  type: {
@@ -1772,11 +2161,11 @@ const SolutionUpdateHeaders = {
1772
2161
  location: {
1773
2162
  serializedName: "location",
1774
2163
  type: {
1775
- name: "String"
1776
- }
1777
- }
1778
- }
1779
- }
2164
+ name: "String",
2165
+ },
2166
+ },
2167
+ },
2168
+ },
1780
2169
  };
1781
2170
  const TroubleshootersContinueHeaders = {
1782
2171
  type: {
@@ -1786,11 +2175,11 @@ const TroubleshootersContinueHeaders = {
1786
2175
  location: {
1787
2176
  serializedName: "location",
1788
2177
  type: {
1789
- name: "String"
1790
- }
1791
- }
1792
- }
1793
- }
2178
+ name: "String",
2179
+ },
2180
+ },
2181
+ },
2182
+ },
1794
2183
  };
1795
2184
  const TroubleshootersEndHeaders = {
1796
2185
  type: {
@@ -1800,11 +2189,11 @@ const TroubleshootersEndHeaders = {
1800
2189
  location: {
1801
2190
  serializedName: "location",
1802
2191
  type: {
1803
- name: "String"
1804
- }
1805
- }
1806
- }
1807
- }
2192
+ name: "String",
2193
+ },
2194
+ },
2195
+ },
2196
+ },
1808
2197
  };
1809
2198
  const TroubleshootersRestartHeaders = {
1810
2199
  type: {
@@ -1814,11 +2203,11 @@ const TroubleshootersRestartHeaders = {
1814
2203
  location: {
1815
2204
  serializedName: "location",
1816
2205
  type: {
1817
- name: "String"
1818
- }
1819
- }
1820
- }
1821
- }
2206
+ name: "String",
2207
+ },
2208
+ },
2209
+ },
2210
+ },
1822
2211
  };
1823
2212
 
1824
2213
  var Mappers = /*#__PURE__*/Object.freeze({
@@ -1826,10 +2215,13 @@ var Mappers = /*#__PURE__*/Object.freeze({
1826
2215
  AutomatedCheckResult: AutomatedCheckResult,
1827
2216
  CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
1828
2217
  CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
2218
+ ClassificationService: ClassificationService,
1829
2219
  ContinueRequestBody: ContinueRequestBody,
1830
2220
  Diagnostic: Diagnostic,
1831
2221
  DiagnosticInvocation: DiagnosticInvocation,
1832
2222
  DiagnosticResource: DiagnosticResource,
2223
+ DiscoveryNlpRequest: DiscoveryNlpRequest,
2224
+ DiscoveryNlpResponse: DiscoveryNlpResponse,
1833
2225
  DiscoveryResponse: DiscoveryResponse,
1834
2226
  ErrorAdditionalInfo: ErrorAdditionalInfo,
1835
2227
  ErrorDetail: ErrorDetail,
@@ -1844,18 +2236,23 @@ var Mappers = /*#__PURE__*/Object.freeze({
1844
2236
  OperationListResult: OperationListResult,
1845
2237
  ProxyResource: ProxyResource,
1846
2238
  ReplacementMaps: ReplacementMaps,
2239
+ ReplacementMapsSelfHelp: ReplacementMapsSelfHelp,
1847
2240
  Resource: Resource,
1848
2241
  ResponseOption: ResponseOption,
1849
2242
  ResponseValidationProperties: ResponseValidationProperties,
1850
2243
  RestartTroubleshooterResponse: RestartTroubleshooterResponse,
1851
2244
  SearchResult: SearchResult,
1852
2245
  Section: Section,
2246
+ SectionSelfHelp: SectionSelfHelp,
2247
+ SimplifiedSolutionsResource: SimplifiedSolutionsResource,
1853
2248
  SolutionMetadataProperties: SolutionMetadataProperties,
1854
2249
  SolutionMetadataResource: SolutionMetadataResource,
2250
+ SolutionNlpMetadataResource: SolutionNlpMetadataResource,
1855
2251
  SolutionPatchRequestBody: SolutionPatchRequestBody,
1856
2252
  SolutionResource: SolutionResource,
1857
- SolutionResourceProperties: SolutionResourceProperties,
2253
+ SolutionResourceSelfHelp: SolutionResourceSelfHelp,
1858
2254
  SolutionUpdateHeaders: SolutionUpdateHeaders,
2255
+ SolutionWarmUpRequestBody: SolutionWarmUpRequestBody,
1859
2256
  SolutionsDiagnostic: SolutionsDiagnostic,
1860
2257
  SolutionsTroubleshooters: SolutionsTroubleshooters,
1861
2258
  Step: Step,
@@ -1887,9 +2284,9 @@ const accept = {
1887
2284
  isConstant: true,
1888
2285
  serializedName: "Accept",
1889
2286
  type: {
1890
- name: "String"
1891
- }
1892
- }
2287
+ name: "String",
2288
+ },
2289
+ },
1893
2290
  };
1894
2291
  const $host = {
1895
2292
  parameterPath: "$host",
@@ -1897,21 +2294,21 @@ const $host = {
1897
2294
  serializedName: "$host",
1898
2295
  required: true,
1899
2296
  type: {
1900
- name: "String"
1901
- }
2297
+ name: "String",
2298
+ },
1902
2299
  },
1903
- skipEncoding: true
2300
+ skipEncoding: true,
1904
2301
  };
1905
2302
  const apiVersion = {
1906
2303
  parameterPath: "apiVersion",
1907
2304
  mapper: {
1908
- defaultValue: "2023-09-01-preview",
2305
+ defaultValue: "2024-03-01-preview",
1909
2306
  isConstant: true,
1910
2307
  serializedName: "api-version",
1911
2308
  type: {
1912
- name: "String"
1913
- }
1914
- }
2309
+ name: "String",
2310
+ },
2311
+ },
1915
2312
  };
1916
2313
  const nextLink = {
1917
2314
  parameterPath: "nextLink",
@@ -1919,10 +2316,10 @@ const nextLink = {
1919
2316
  serializedName: "nextLink",
1920
2317
  required: true,
1921
2318
  type: {
1922
- name: "String"
1923
- }
2319
+ name: "String",
2320
+ },
1924
2321
  },
1925
- skipEncoding: true
2322
+ skipEncoding: true,
1926
2323
  };
1927
2324
  const contentType = {
1928
2325
  parameterPath: ["options", "contentType"],
@@ -1931,13 +2328,13 @@ const contentType = {
1931
2328
  isConstant: true,
1932
2329
  serializedName: "Content-Type",
1933
2330
  type: {
1934
- name: "String"
1935
- }
1936
- }
2331
+ name: "String",
2332
+ },
2333
+ },
1937
2334
  };
1938
2335
  const checkNameAvailabilityRequest = {
1939
2336
  parameterPath: ["options", "checkNameAvailabilityRequest"],
1940
- mapper: CheckNameAvailabilityRequest
2337
+ mapper: CheckNameAvailabilityRequest,
1941
2338
  };
1942
2339
  const scope = {
1943
2340
  parameterPath: "scope",
@@ -1945,14 +2342,14 @@ const scope = {
1945
2342
  serializedName: "scope",
1946
2343
  required: true,
1947
2344
  type: {
1948
- name: "String"
1949
- }
2345
+ name: "String",
2346
+ },
1950
2347
  },
1951
- skipEncoding: true
2348
+ skipEncoding: true,
1952
2349
  };
1953
2350
  const diagnosticResourceRequest = {
1954
2351
  parameterPath: ["options", "diagnosticResourceRequest"],
1955
- mapper: DiagnosticResource
2352
+ mapper: DiagnosticResource,
1956
2353
  };
1957
2354
  const diagnosticsResourceName = {
1958
2355
  parameterPath: "diagnosticsResourceName",
@@ -1960,37 +2357,37 @@ const diagnosticsResourceName = {
1960
2357
  constraints: {
1961
2358
  Pattern: new RegExp("^[A-Za-z0-9-+@()_]+$"),
1962
2359
  MaxLength: 100,
1963
- MinLength: 1
2360
+ MinLength: 1,
1964
2361
  },
1965
2362
  serializedName: "diagnosticsResourceName",
1966
2363
  required: true,
1967
2364
  type: {
1968
- name: "String"
1969
- }
1970
- }
2365
+ name: "String",
2366
+ },
2367
+ },
1971
2368
  };
1972
2369
  const filter = {
1973
2370
  parameterPath: ["options", "filter"],
1974
2371
  mapper: {
1975
2372
  serializedName: "$filter",
1976
2373
  type: {
1977
- name: "String"
1978
- }
2374
+ name: "String",
2375
+ },
1979
2376
  },
1980
- skipEncoding: true
2377
+ skipEncoding: true,
1981
2378
  };
1982
2379
  const skiptoken = {
1983
2380
  parameterPath: ["options", "skiptoken"],
1984
2381
  mapper: {
1985
2382
  serializedName: "$skiptoken",
1986
2383
  type: {
1987
- name: "String"
1988
- }
1989
- }
2384
+ name: "String",
2385
+ },
2386
+ },
1990
2387
  };
1991
2388
  const solutionRequestBody = {
1992
2389
  parameterPath: ["options", "solutionRequestBody"],
1993
- mapper: SolutionResource
2390
+ mapper: SolutionResource,
1994
2391
  };
1995
2392
  const solutionResourceName = {
1996
2393
  parameterPath: "solutionResourceName",
@@ -1998,22 +2395,45 @@ const solutionResourceName = {
1998
2395
  constraints: {
1999
2396
  Pattern: new RegExp("^[A-Za-z0-9-+@()_]+$"),
2000
2397
  MaxLength: 100,
2001
- MinLength: 1
2398
+ MinLength: 1,
2002
2399
  },
2003
2400
  serializedName: "solutionResourceName",
2004
2401
  required: true,
2005
2402
  type: {
2006
- name: "String"
2007
- }
2008
- }
2403
+ name: "String",
2404
+ },
2405
+ },
2009
2406
  };
2010
2407
  const solutionPatchRequestBody = {
2011
2408
  parameterPath: ["options", "solutionPatchRequestBody"],
2012
- mapper: SolutionPatchRequestBody
2409
+ mapper: SolutionPatchRequestBody,
2410
+ };
2411
+ const solutionWarmUpRequestBody = {
2412
+ parameterPath: ["options", "solutionWarmUpRequestBody"],
2413
+ mapper: SolutionWarmUpRequestBody,
2414
+ };
2415
+ const simplifiedSolutionsRequestBody = {
2416
+ parameterPath: ["options", "simplifiedSolutionsRequestBody"],
2417
+ mapper: SimplifiedSolutionsResource,
2418
+ };
2419
+ const simplifiedSolutionsResourceName = {
2420
+ parameterPath: "simplifiedSolutionsResourceName",
2421
+ mapper: {
2422
+ constraints: {
2423
+ Pattern: new RegExp("^[A-Za-z0-9-+@()_]+$"),
2424
+ MaxLength: 100,
2425
+ MinLength: 1,
2426
+ },
2427
+ serializedName: "simplifiedSolutionsResourceName",
2428
+ required: true,
2429
+ type: {
2430
+ name: "String",
2431
+ },
2432
+ },
2013
2433
  };
2014
2434
  const createTroubleshooterRequestBody = {
2015
2435
  parameterPath: ["options", "createTroubleshooterRequestBody"],
2016
- mapper: TroubleshooterResource
2436
+ mapper: TroubleshooterResource,
2017
2437
  };
2018
2438
  const troubleshooterName = {
2019
2439
  parameterPath: "troubleshooterName",
@@ -2021,18 +2441,46 @@ const troubleshooterName = {
2021
2441
  constraints: {
2022
2442
  Pattern: new RegExp("([A-Za-z0-9]+(-[A-Za-z0-9]+)+)"),
2023
2443
  MaxLength: 100,
2024
- MinLength: 1
2444
+ MinLength: 1,
2025
2445
  },
2026
2446
  serializedName: "troubleshooterName",
2027
2447
  required: true,
2028
2448
  type: {
2029
- name: "String"
2030
- }
2031
- }
2449
+ name: "String",
2450
+ },
2451
+ },
2032
2452
  };
2033
2453
  const continueRequestBody = {
2034
2454
  parameterPath: ["options", "continueRequestBody"],
2035
- mapper: ContinueRequestBody
2455
+ mapper: ContinueRequestBody,
2456
+ };
2457
+ const solutionId = {
2458
+ parameterPath: "solutionId",
2459
+ mapper: {
2460
+ constraints: {
2461
+ MaxLength: 100,
2462
+ MinLength: 1,
2463
+ },
2464
+ serializedName: "solutionId",
2465
+ required: true,
2466
+ type: {
2467
+ name: "String",
2468
+ },
2469
+ },
2470
+ };
2471
+ const discoverSolutionRequest = {
2472
+ parameterPath: ["options", "discoverSolutionRequest"],
2473
+ mapper: DiscoveryNlpRequest,
2474
+ };
2475
+ const subscriptionId = {
2476
+ parameterPath: "subscriptionId",
2477
+ mapper: {
2478
+ serializedName: "subscriptionId",
2479
+ required: true,
2480
+ type: {
2481
+ name: "Uuid",
2482
+ },
2483
+ },
2036
2484
  };
2037
2485
 
2038
2486
  /*
@@ -2070,7 +2518,7 @@ class OperationsImpl {
2070
2518
  throw new Error("maxPageSize is not supported by this operation.");
2071
2519
  }
2072
2520
  return this.listPagingPage(options, settings);
2073
- }
2521
+ },
2074
2522
  };
2075
2523
  }
2076
2524
  listPagingPage(options, settings) {
@@ -2130,37 +2578,37 @@ class OperationsImpl {
2130
2578
  }
2131
2579
  }
2132
2580
  // Operation Specifications
2133
- const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2581
+ const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2134
2582
  const listOperationSpec$1 = {
2135
2583
  path: "/providers/Microsoft.Help/operations",
2136
2584
  httpMethod: "GET",
2137
2585
  responses: {
2138
2586
  200: {
2139
- bodyMapper: OperationListResult
2587
+ bodyMapper: OperationListResult,
2140
2588
  },
2141
2589
  default: {
2142
- bodyMapper: ErrorResponse
2143
- }
2590
+ bodyMapper: ErrorResponse,
2591
+ },
2144
2592
  },
2145
2593
  queryParameters: [apiVersion],
2146
2594
  urlParameters: [$host],
2147
2595
  headerParameters: [accept],
2148
- serializer: serializer$5
2596
+ serializer: serializer$9,
2149
2597
  };
2150
2598
  const listNextOperationSpec$1 = {
2151
2599
  path: "{nextLink}",
2152
2600
  httpMethod: "GET",
2153
2601
  responses: {
2154
2602
  200: {
2155
- bodyMapper: OperationListResult
2603
+ bodyMapper: OperationListResult,
2156
2604
  },
2157
2605
  default: {
2158
- bodyMapper: ErrorResponse
2159
- }
2606
+ bodyMapper: ErrorResponse,
2607
+ },
2160
2608
  },
2161
2609
  urlParameters: [$host, nextLink],
2162
2610
  headerParameters: [accept],
2163
- serializer: serializer$5
2611
+ serializer: serializer$9,
2164
2612
  };
2165
2613
 
2166
2614
  /*
@@ -2182,33 +2630,34 @@ class CheckNameAvailabilityImpl {
2182
2630
  /**
2183
2631
  * This API is used to check the uniqueness of a resource name used for a diagnostic, troubleshooter or
2184
2632
  * solutions
2185
- * @param scope This is an extension resource provider and only resource level extension is supported
2186
- * at the moment.
2633
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2634
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2635
+ *
2187
2636
  * @param options The options parameters.
2188
2637
  */
2189
2638
  post(scope, options) {
2190
- return this.client.sendOperationRequest({ scope, options }, postOperationSpec);
2639
+ return this.client.sendOperationRequest({ scope, options }, postOperationSpec$2);
2191
2640
  }
2192
2641
  }
2193
2642
  // Operation Specifications
2194
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2195
- const postOperationSpec = {
2643
+ const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2644
+ const postOperationSpec$2 = {
2196
2645
  path: "/{scope}/providers/Microsoft.Help/checkNameAvailability",
2197
2646
  httpMethod: "POST",
2198
2647
  responses: {
2199
2648
  200: {
2200
- bodyMapper: CheckNameAvailabilityResponse
2649
+ bodyMapper: CheckNameAvailabilityResponse,
2201
2650
  },
2202
2651
  default: {
2203
- bodyMapper: ErrorResponse
2204
- }
2652
+ bodyMapper: ErrorResponse,
2653
+ },
2205
2654
  },
2206
2655
  requestBody: checkNameAvailabilityRequest,
2207
2656
  queryParameters: [apiVersion],
2208
2657
  urlParameters: [$host, scope],
2209
2658
  headerParameters: [accept, contentType],
2210
2659
  mediaType: "json",
2211
- serializer: serializer$4
2660
+ serializer: serializer$8,
2212
2661
  };
2213
2662
 
2214
2663
  /*
@@ -2227,7 +2676,7 @@ function createLroSpec(inputs) {
2227
2676
  sendPollRequest: (path, options) => {
2228
2677
  const restSpec = tslib.__rest(spec, ["requestBody"]);
2229
2678
  return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2230
- }
2679
+ },
2231
2680
  };
2232
2681
  }
2233
2682
 
@@ -2248,13 +2697,12 @@ class DiagnosticsImpl {
2248
2697
  this.client = client;
2249
2698
  }
2250
2699
  /**
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.
2700
+ * Creates a diagnostic for the specific resource using solutionId from discovery solutions.
2701
+ * <br/>Diagnostics are powerful solutions that access product resources or other relevant data and
2702
+ * provide the root cause of the issue and the steps to address the issue.<br/><br/>
2703
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2704
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2705
+ *
2258
2706
  * @param diagnosticsResourceName Unique resource name for insight resources
2259
2707
  * @param options The options parameters.
2260
2708
  */
@@ -2278,32 +2726,31 @@ class DiagnosticsImpl {
2278
2726
  rawResponse: {
2279
2727
  statusCode: currentRawResponse.status,
2280
2728
  body: currentRawResponse.parsedBody,
2281
- headers: currentRawResponse.headers.toJSON()
2282
- }
2729
+ headers: currentRawResponse.headers.toJSON(),
2730
+ },
2283
2731
  };
2284
2732
  });
2285
2733
  const lro = createLroSpec({
2286
2734
  sendOperationFn,
2287
2735
  args: { scope, diagnosticsResourceName, options },
2288
- spec: createOperationSpec$2
2736
+ spec: createOperationSpec$3,
2289
2737
  });
2290
2738
  const poller = yield coreLro.createHttpPoller(lro, {
2291
2739
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2292
2740
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2293
- resourceLocationConfig: "azure-async-operation"
2741
+ resourceLocationConfig: "azure-async-operation",
2294
2742
  });
2295
2743
  yield poller.poll();
2296
2744
  return poller;
2297
2745
  });
2298
2746
  }
2299
2747
  /**
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.
2748
+ * Creates a diagnostic for the specific resource using solutionId from discovery solutions.
2749
+ * <br/>Diagnostics are powerful solutions that access product resources or other relevant data and
2750
+ * provide the root cause of the issue and the steps to address the issue.<br/><br/>
2751
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2752
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2753
+ *
2307
2754
  * @param diagnosticsResourceName Unique resource name for insight resources
2308
2755
  * @param options The options parameters.
2309
2756
  */
@@ -2315,67 +2762,68 @@ class DiagnosticsImpl {
2315
2762
  }
2316
2763
  /**
2317
2764
  * 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.
2765
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2766
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2767
+ *
2320
2768
  * @param diagnosticsResourceName Unique resource name for insight resources
2321
2769
  * @param options The options parameters.
2322
2770
  */
2323
2771
  get(scope, diagnosticsResourceName, options) {
2324
- return this.client.sendOperationRequest({ scope, diagnosticsResourceName, options }, getOperationSpec$2);
2772
+ return this.client.sendOperationRequest({ scope, diagnosticsResourceName, options }, getOperationSpec$4);
2325
2773
  }
2326
2774
  }
2327
2775
  // Operation Specifications
2328
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2329
- const createOperationSpec$2 = {
2776
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2777
+ const createOperationSpec$3 = {
2330
2778
  path: "/{scope}/providers/Microsoft.Help/diagnostics/{diagnosticsResourceName}",
2331
2779
  httpMethod: "PUT",
2332
2780
  responses: {
2333
2781
  200: {
2334
- bodyMapper: DiagnosticResource
2782
+ bodyMapper: DiagnosticResource,
2335
2783
  },
2336
2784
  201: {
2337
- bodyMapper: DiagnosticResource
2785
+ bodyMapper: DiagnosticResource,
2338
2786
  },
2339
2787
  202: {
2340
- bodyMapper: DiagnosticResource
2788
+ bodyMapper: DiagnosticResource,
2341
2789
  },
2342
2790
  204: {
2343
- bodyMapper: DiagnosticResource
2791
+ bodyMapper: DiagnosticResource,
2344
2792
  },
2345
2793
  default: {
2346
- bodyMapper: ErrorResponse
2347
- }
2794
+ bodyMapper: ErrorResponse,
2795
+ },
2348
2796
  },
2349
2797
  requestBody: diagnosticResourceRequest,
2350
2798
  queryParameters: [apiVersion],
2351
2799
  urlParameters: [
2352
2800
  $host,
2353
2801
  scope,
2354
- diagnosticsResourceName
2802
+ diagnosticsResourceName,
2355
2803
  ],
2356
2804
  headerParameters: [accept, contentType],
2357
2805
  mediaType: "json",
2358
- serializer: serializer$3
2806
+ serializer: serializer$7,
2359
2807
  };
2360
- const getOperationSpec$2 = {
2808
+ const getOperationSpec$4 = {
2361
2809
  path: "/{scope}/providers/Microsoft.Help/diagnostics/{diagnosticsResourceName}",
2362
2810
  httpMethod: "GET",
2363
2811
  responses: {
2364
2812
  200: {
2365
- bodyMapper: DiagnosticResource
2813
+ bodyMapper: DiagnosticResource,
2366
2814
  },
2367
2815
  default: {
2368
- bodyMapper: ErrorResponse
2369
- }
2816
+ bodyMapper: ErrorResponse,
2817
+ },
2370
2818
  },
2371
2819
  queryParameters: [apiVersion],
2372
2820
  urlParameters: [
2373
2821
  $host,
2374
2822
  scope,
2375
- diagnosticsResourceName
2823
+ diagnosticsResourceName,
2376
2824
  ],
2377
2825
  headerParameters: [accept],
2378
- serializer: serializer$3
2826
+ serializer: serializer$7,
2379
2827
  };
2380
2828
 
2381
2829
  /*
@@ -2396,22 +2844,19 @@ class DiscoverySolutionImpl {
2396
2844
  this.client = client;
2397
2845
  }
2398
2846
  /**
2399
- * Lists the relevant Azure diagnostics and solutions using [problemClassification
2847
+ * Lists the relevant Azure Diagnostics, Solutions and Troubleshooters using [problemClassification
2400
2848
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
2401
2849
  * 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 :
2850
+ * which identifies relevant Azure diagnostics and solutions. <br/><br/> Required Input :
2404
2851
  * problemClassificationId (Use the [problemClassification
2405
2852
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
2406
2853
  * <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
2407
2854
  * Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
2408
2855
  * and Solutions API.
2409
- * @param scope This is an extension resource provider and only resource level extension is supported
2410
- * at the moment.
2411
2856
  * @param options The options parameters.
2412
2857
  */
2413
- list(scope, options) {
2414
- const iter = this.listPagingAll(scope, options);
2858
+ list(options) {
2859
+ const iter = this.listPagingAll(options);
2415
2860
  return {
2416
2861
  next() {
2417
2862
  return iter.next();
@@ -2423,23 +2868,23 @@ class DiscoverySolutionImpl {
2423
2868
  if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
2424
2869
  throw new Error("maxPageSize is not supported by this operation.");
2425
2870
  }
2426
- return this.listPagingPage(scope, options, settings);
2427
- }
2871
+ return this.listPagingPage(options, settings);
2872
+ },
2428
2873
  };
2429
2874
  }
2430
- listPagingPage(scope, options, settings) {
2875
+ listPagingPage(options, settings) {
2431
2876
  return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
2432
2877
  let result;
2433
2878
  let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
2434
2879
  if (!continuationToken) {
2435
- result = yield tslib.__await(this._list(scope, options));
2880
+ result = yield tslib.__await(this._list(options));
2436
2881
  let page = result.value || [];
2437
2882
  continuationToken = result.nextLink;
2438
2883
  setContinuationToken(page, continuationToken);
2439
2884
  yield yield tslib.__await(page);
2440
2885
  }
2441
2886
  while (continuationToken) {
2442
- result = yield tslib.__await(this._listNext(scope, continuationToken, options));
2887
+ result = yield tslib.__await(this._listNext(continuationToken, options));
2443
2888
  continuationToken = result.nextLink;
2444
2889
  let page = result.value || [];
2445
2890
  setContinuationToken(page, continuationToken);
@@ -2447,11 +2892,11 @@ class DiscoverySolutionImpl {
2447
2892
  }
2448
2893
  });
2449
2894
  }
2450
- listPagingAll(scope, options) {
2895
+ listPagingAll(options) {
2451
2896
  return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
2452
2897
  var _a, e_1, _b, _c;
2453
2898
  try {
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) {
2899
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
2455
2900
  _c = _f.value;
2456
2901
  _d = false;
2457
2902
  const page = _c;
@@ -2468,70 +2913,65 @@ class DiscoverySolutionImpl {
2468
2913
  });
2469
2914
  }
2470
2915
  /**
2471
- * Lists the relevant Azure diagnostics and solutions using [problemClassification
2916
+ * Lists the relevant Azure Diagnostics, Solutions and Troubleshooters using [problemClassification
2472
2917
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
2473
2918
  * 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 :
2919
+ * which identifies relevant Azure diagnostics and solutions. <br/><br/> Required Input :
2476
2920
  * problemClassificationId (Use the [problemClassification
2477
2921
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
2478
2922
  * <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
2479
2923
  * Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
2480
2924
  * and Solutions API.
2481
- * @param scope This is an extension resource provider and only resource level extension is supported
2482
- * at the moment.
2483
2925
  * @param options The options parameters.
2484
2926
  */
2485
- _list(scope, options) {
2486
- return this.client.sendOperationRequest({ scope, options }, listOperationSpec);
2927
+ _list(options) {
2928
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
2487
2929
  }
2488
2930
  /**
2489
2931
  * ListNext
2490
- * @param scope This is an extension resource provider and only resource level extension is supported
2491
- * at the moment.
2492
2932
  * @param nextLink The nextLink from the previous successful call to the List method.
2493
2933
  * @param options The options parameters.
2494
2934
  */
2495
- _listNext(scope, nextLink, options) {
2496
- return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec);
2935
+ _listNext(nextLink, options) {
2936
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
2497
2937
  }
2498
2938
  }
2499
2939
  // Operation Specifications
2500
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2940
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2501
2941
  const listOperationSpec = {
2502
- path: "/{scope}/providers/Microsoft.Help/discoverySolutions",
2942
+ path: "/providers/Microsoft.Help/discoverySolutions",
2503
2943
  httpMethod: "GET",
2504
2944
  responses: {
2505
2945
  200: {
2506
- bodyMapper: DiscoveryResponse
2946
+ bodyMapper: DiscoveryResponse,
2507
2947
  },
2508
2948
  default: {
2509
- bodyMapper: ErrorResponse
2510
- }
2949
+ bodyMapper: ErrorResponse,
2950
+ },
2511
2951
  },
2512
2952
  queryParameters: [
2513
2953
  apiVersion,
2514
2954
  filter,
2515
- skiptoken
2955
+ skiptoken,
2516
2956
  ],
2517
- urlParameters: [$host, scope],
2957
+ urlParameters: [$host],
2518
2958
  headerParameters: [accept],
2519
- serializer: serializer$2
2959
+ serializer: serializer$6,
2520
2960
  };
2521
2961
  const listNextOperationSpec = {
2522
2962
  path: "{nextLink}",
2523
2963
  httpMethod: "GET",
2524
2964
  responses: {
2525
2965
  200: {
2526
- bodyMapper: DiscoveryResponse
2966
+ bodyMapper: DiscoveryResponse,
2527
2967
  },
2528
2968
  default: {
2529
- bodyMapper: ErrorResponse
2530
- }
2969
+ bodyMapper: ErrorResponse,
2970
+ },
2531
2971
  },
2532
- urlParameters: [$host, nextLink, scope],
2972
+ urlParameters: [$host, nextLink],
2533
2973
  headerParameters: [accept],
2534
- serializer: serializer$2
2974
+ serializer: serializer$6,
2535
2975
  };
2536
2976
 
2537
2977
  /*
@@ -2551,21 +2991,17 @@ class SolutionImpl {
2551
2991
  this.client = client;
2552
2992
  }
2553
2993
  /**
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.
2994
+ * Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
2995
+ * requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
2996
+ * self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
2997
+ * resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
2998
+ * context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
2999
+ * instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
3000
+ * assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
3001
+ * into unified solutions tailored to address a specific support problem area.
3002
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3003
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3004
+ *
2569
3005
  * @param solutionResourceName Solution resource Name.
2570
3006
  * @param options The options parameters.
2571
3007
  */
@@ -2589,40 +3025,36 @@ class SolutionImpl {
2589
3025
  rawResponse: {
2590
3026
  statusCode: currentRawResponse.status,
2591
3027
  body: currentRawResponse.parsedBody,
2592
- headers: currentRawResponse.headers.toJSON()
2593
- }
3028
+ headers: currentRawResponse.headers.toJSON(),
3029
+ },
2594
3030
  };
2595
3031
  });
2596
3032
  const lro = createLroSpec({
2597
3033
  sendOperationFn,
2598
3034
  args: { scope, solutionResourceName, options },
2599
- spec: createOperationSpec$1
3035
+ spec: createOperationSpec$2,
2600
3036
  });
2601
3037
  const poller = yield coreLro.createHttpPoller(lro, {
2602
3038
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2603
3039
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2604
- resourceLocationConfig: "azure-async-operation"
3040
+ resourceLocationConfig: "azure-async-operation",
2605
3041
  });
2606
3042
  yield poller.poll();
2607
3043
  return poller;
2608
3044
  });
2609
3045
  }
2610
3046
  /**
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.
3047
+ * Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
3048
+ * requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
3049
+ * self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
3050
+ * resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
3051
+ * context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
3052
+ * instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
3053
+ * assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
3054
+ * into unified solutions tailored to address a specific support problem area.
3055
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3056
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3057
+ *
2626
3058
  * @param solutionResourceName Solution resource Name.
2627
3059
  * @param options The options parameters.
2628
3060
  */
@@ -2634,18 +3066,20 @@ class SolutionImpl {
2634
3066
  }
2635
3067
  /**
2636
3068
  * Get the solution using the applicable solutionResourceName while creating the solution.
2637
- * @param scope This is an extension resource provider and only resource level extension is supported
2638
- * at the moment.
3069
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3070
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3071
+ *
2639
3072
  * @param solutionResourceName Solution resource Name.
2640
3073
  * @param options The options parameters.
2641
3074
  */
2642
3075
  get(scope, solutionResourceName, options) {
2643
- return this.client.sendOperationRequest({ scope, solutionResourceName, options }, getOperationSpec$1);
3076
+ return this.client.sendOperationRequest({ scope, solutionResourceName, options }, getOperationSpec$3);
2644
3077
  }
2645
3078
  /**
2646
3079
  * Update the requiredInputs or additional information needed to execute the solution
2647
- * @param scope This is an extension resource provider and only resource level extension is supported
2648
- * at the moment.
3080
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3081
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3082
+ *
2649
3083
  * @param solutionResourceName Solution resource Name.
2650
3084
  * @param options The options parameters.
2651
3085
  */
@@ -2669,19 +3103,19 @@ class SolutionImpl {
2669
3103
  rawResponse: {
2670
3104
  statusCode: currentRawResponse.status,
2671
3105
  body: currentRawResponse.parsedBody,
2672
- headers: currentRawResponse.headers.toJSON()
2673
- }
3106
+ headers: currentRawResponse.headers.toJSON(),
3107
+ },
2674
3108
  };
2675
3109
  });
2676
3110
  const lro = createLroSpec({
2677
3111
  sendOperationFn,
2678
3112
  args: { scope, solutionResourceName, options },
2679
- spec: updateOperationSpec
3113
+ spec: updateOperationSpec,
2680
3114
  });
2681
3115
  const poller = yield coreLro.createHttpPoller(lro, {
2682
3116
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2683
3117
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2684
- resourceLocationConfig: "azure-async-operation"
3118
+ resourceLocationConfig: "azure-async-operation",
2685
3119
  });
2686
3120
  yield poller.poll();
2687
3121
  return poller;
@@ -2689,8 +3123,9 @@ class SolutionImpl {
2689
3123
  }
2690
3124
  /**
2691
3125
  * Update the requiredInputs or additional information needed to execute the solution
2692
- * @param scope This is an extension resource provider and only resource level extension is supported
2693
- * at the moment.
3126
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3127
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3128
+ *
2694
3129
  * @param solutionResourceName Solution resource Name.
2695
3130
  * @param options The options parameters.
2696
3131
  */
@@ -2700,59 +3135,70 @@ class SolutionImpl {
2700
3135
  return poller.pollUntilDone();
2701
3136
  });
2702
3137
  }
3138
+ /**
3139
+ * Warm up the solution resource by preloading asynchronous diagnostics results into cache
3140
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3141
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3142
+ *
3143
+ * @param solutionResourceName Solution resource Name.
3144
+ * @param options The options parameters.
3145
+ */
3146
+ warmUp(scope, solutionResourceName, options) {
3147
+ return this.client.sendOperationRequest({ scope, solutionResourceName, options }, warmUpOperationSpec);
3148
+ }
2703
3149
  }
2704
3150
  // Operation Specifications
2705
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2706
- const createOperationSpec$1 = {
3151
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3152
+ const createOperationSpec$2 = {
2707
3153
  path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
2708
3154
  httpMethod: "PUT",
2709
3155
  responses: {
2710
3156
  200: {
2711
- bodyMapper: SolutionResource
3157
+ bodyMapper: SolutionResource,
2712
3158
  },
2713
3159
  201: {
2714
- bodyMapper: SolutionResource
3160
+ bodyMapper: SolutionResource,
2715
3161
  },
2716
3162
  202: {
2717
- bodyMapper: SolutionResource
3163
+ bodyMapper: SolutionResource,
2718
3164
  },
2719
3165
  204: {
2720
- bodyMapper: SolutionResource
3166
+ bodyMapper: SolutionResource,
2721
3167
  },
2722
3168
  default: {
2723
- bodyMapper: ErrorResponse
2724
- }
3169
+ bodyMapper: ErrorResponse,
3170
+ },
2725
3171
  },
2726
3172
  requestBody: solutionRequestBody,
2727
3173
  queryParameters: [apiVersion],
2728
3174
  urlParameters: [
2729
3175
  $host,
2730
3176
  scope,
2731
- solutionResourceName
3177
+ solutionResourceName,
2732
3178
  ],
2733
3179
  headerParameters: [accept, contentType],
2734
3180
  mediaType: "json",
2735
- serializer: serializer$1
3181
+ serializer: serializer$5,
2736
3182
  };
2737
- const getOperationSpec$1 = {
3183
+ const getOperationSpec$3 = {
2738
3184
  path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
2739
3185
  httpMethod: "GET",
2740
3186
  responses: {
2741
3187
  200: {
2742
- bodyMapper: SolutionResource
3188
+ bodyMapper: SolutionResource,
2743
3189
  },
2744
3190
  default: {
2745
- bodyMapper: ErrorResponse
2746
- }
3191
+ bodyMapper: ErrorResponse,
3192
+ },
2747
3193
  },
2748
3194
  queryParameters: [apiVersion],
2749
3195
  urlParameters: [
2750
3196
  $host,
2751
3197
  scope,
2752
- solutionResourceName
3198
+ solutionResourceName,
2753
3199
  ],
2754
3200
  headerParameters: [accept],
2755
- serializer: serializer$1
3201
+ serializer: serializer$5,
2756
3202
  };
2757
3203
  const updateOperationSpec = {
2758
3204
  path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
@@ -2760,34 +3206,207 @@ const updateOperationSpec = {
2760
3206
  responses: {
2761
3207
  200: {
2762
3208
  bodyMapper: SolutionResource,
2763
- headersMapper: SolutionUpdateHeaders
3209
+ headersMapper: SolutionUpdateHeaders,
2764
3210
  },
2765
3211
  201: {
2766
3212
  bodyMapper: SolutionResource,
2767
- headersMapper: SolutionUpdateHeaders
3213
+ headersMapper: SolutionUpdateHeaders,
2768
3214
  },
2769
3215
  202: {
2770
3216
  bodyMapper: SolutionResource,
2771
- headersMapper: SolutionUpdateHeaders
3217
+ headersMapper: SolutionUpdateHeaders,
2772
3218
  },
2773
3219
  204: {
2774
3220
  bodyMapper: SolutionResource,
2775
- headersMapper: SolutionUpdateHeaders
3221
+ headersMapper: SolutionUpdateHeaders,
2776
3222
  },
2777
3223
  default: {
2778
- bodyMapper: ErrorResponse
2779
- }
3224
+ bodyMapper: ErrorResponse,
3225
+ },
2780
3226
  },
2781
3227
  requestBody: solutionPatchRequestBody,
2782
3228
  queryParameters: [apiVersion],
2783
3229
  urlParameters: [
2784
3230
  $host,
2785
3231
  scope,
2786
- solutionResourceName
3232
+ solutionResourceName,
3233
+ ],
3234
+ headerParameters: [accept, contentType],
3235
+ mediaType: "json",
3236
+ serializer: serializer$5,
3237
+ };
3238
+ const warmUpOperationSpec = {
3239
+ path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}/warmup",
3240
+ httpMethod: "POST",
3241
+ responses: {
3242
+ 204: {},
3243
+ default: {
3244
+ bodyMapper: ErrorResponse,
3245
+ },
3246
+ },
3247
+ requestBody: solutionWarmUpRequestBody,
3248
+ queryParameters: [apiVersion],
3249
+ urlParameters: [
3250
+ $host,
3251
+ scope,
3252
+ solutionResourceName,
3253
+ ],
3254
+ headerParameters: [accept, contentType],
3255
+ mediaType: "json",
3256
+ serializer: serializer$5,
3257
+ };
3258
+
3259
+ /*
3260
+ * Copyright (c) Microsoft Corporation.
3261
+ * Licensed under the MIT License.
3262
+ *
3263
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3264
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3265
+ */
3266
+ /** Class containing SimplifiedSolutions operations. */
3267
+ class SimplifiedSolutionsImpl {
3268
+ /**
3269
+ * Initialize a new instance of the class SimplifiedSolutions class.
3270
+ * @param client Reference to the service client
3271
+ */
3272
+ constructor(client) {
3273
+ this.client = client;
3274
+ }
3275
+ /**
3276
+ * Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions
3277
+ * as the input. <br/><br/> Simplified Solutions API makes the consumption of solutions APIs easier
3278
+ * while still providing access to the same powerful solutions rendered in Solutions API. With
3279
+ * Simplified Solutions, users don't have to worry about stitching together the article using
3280
+ * replacement maps and can use the content in the API response to directly render as HTML
3281
+ * content.<br/>
3282
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3283
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3284
+ *
3285
+ * @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
3286
+ * @param options The options parameters.
3287
+ */
3288
+ beginCreate(scope, simplifiedSolutionsResourceName, options) {
3289
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3290
+ const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3291
+ return this.client.sendOperationRequest(args, spec);
3292
+ });
3293
+ const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
3294
+ var _a;
3295
+ let currentRawResponse = undefined;
3296
+ const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
3297
+ const callback = (rawResponse, flatResponse) => {
3298
+ currentRawResponse = rawResponse;
3299
+ providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
3300
+ };
3301
+ const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
3302
+ const flatResponse = yield directSendOperation(updatedArgs, spec);
3303
+ return {
3304
+ flatResponse,
3305
+ rawResponse: {
3306
+ statusCode: currentRawResponse.status,
3307
+ body: currentRawResponse.parsedBody,
3308
+ headers: currentRawResponse.headers.toJSON(),
3309
+ },
3310
+ };
3311
+ });
3312
+ const lro = createLroSpec({
3313
+ sendOperationFn,
3314
+ args: { scope, simplifiedSolutionsResourceName, options },
3315
+ spec: createOperationSpec$1,
3316
+ });
3317
+ const poller = yield coreLro.createHttpPoller(lro, {
3318
+ restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3319
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3320
+ resourceLocationConfig: "azure-async-operation",
3321
+ });
3322
+ yield poller.poll();
3323
+ return poller;
3324
+ });
3325
+ }
3326
+ /**
3327
+ * Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions
3328
+ * as the input. <br/><br/> Simplified Solutions API makes the consumption of solutions APIs easier
3329
+ * while still providing access to the same powerful solutions rendered in Solutions API. With
3330
+ * Simplified Solutions, users don't have to worry about stitching together the article using
3331
+ * replacement maps and can use the content in the API response to directly render as HTML
3332
+ * content.<br/>
3333
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3334
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3335
+ *
3336
+ * @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
3337
+ * @param options The options parameters.
3338
+ */
3339
+ beginCreateAndWait(scope, simplifiedSolutionsResourceName, options) {
3340
+ return tslib.__awaiter(this, void 0, void 0, function* () {
3341
+ const poller = yield this.beginCreate(scope, simplifiedSolutionsResourceName, options);
3342
+ return poller.pollUntilDone();
3343
+ });
3344
+ }
3345
+ /**
3346
+ * Get the simplified Solutions using the applicable solutionResourceName while creating the simplified
3347
+ * Solutions.
3348
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3349
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3350
+ *
3351
+ * @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
3352
+ * @param options The options parameters.
3353
+ */
3354
+ get(scope, simplifiedSolutionsResourceName, options) {
3355
+ return this.client.sendOperationRequest({ scope, simplifiedSolutionsResourceName, options }, getOperationSpec$2);
3356
+ }
3357
+ }
3358
+ // Operation Specifications
3359
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3360
+ const createOperationSpec$1 = {
3361
+ path: "/{scope}/providers/Microsoft.Help/simplifiedSolutions/{simplifiedSolutionsResourceName}",
3362
+ httpMethod: "PUT",
3363
+ responses: {
3364
+ 200: {
3365
+ bodyMapper: SimplifiedSolutionsResource,
3366
+ },
3367
+ 201: {
3368
+ bodyMapper: SimplifiedSolutionsResource,
3369
+ },
3370
+ 202: {
3371
+ bodyMapper: SimplifiedSolutionsResource,
3372
+ },
3373
+ 204: {
3374
+ bodyMapper: SimplifiedSolutionsResource,
3375
+ },
3376
+ default: {
3377
+ bodyMapper: ErrorResponse,
3378
+ },
3379
+ },
3380
+ requestBody: simplifiedSolutionsRequestBody,
3381
+ queryParameters: [apiVersion],
3382
+ urlParameters: [
3383
+ $host,
3384
+ scope,
3385
+ simplifiedSolutionsResourceName,
2787
3386
  ],
2788
3387
  headerParameters: [accept, contentType],
2789
3388
  mediaType: "json",
2790
- serializer: serializer$1
3389
+ serializer: serializer$4,
3390
+ };
3391
+ const getOperationSpec$2 = {
3392
+ path: "/{scope}/providers/Microsoft.Help/simplifiedSolutions/{simplifiedSolutionsResourceName}",
3393
+ httpMethod: "GET",
3394
+ responses: {
3395
+ 200: {
3396
+ bodyMapper: SimplifiedSolutionsResource,
3397
+ },
3398
+ default: {
3399
+ bodyMapper: ErrorResponse,
3400
+ },
3401
+ },
3402
+ queryParameters: [apiVersion],
3403
+ urlParameters: [
3404
+ $host,
3405
+ scope,
3406
+ simplifiedSolutionsResourceName,
3407
+ ],
3408
+ headerParameters: [accept],
3409
+ serializer: serializer$4,
2791
3410
  };
2792
3411
 
2793
3412
  /*
@@ -2808,17 +3427,16 @@ class TroubleshootersImpl {
2808
3427
  }
2809
3428
  /**
2810
3429
  * 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.
2820
- * @param scope This is an extension resource provider and only resource level extension is supported
2821
- * at the moment.
3430
+ * and ‘properties.parameters’ as the trigger. <br/> Azure Troubleshooters help with hard to classify
3431
+ * issues, reducing the gap between customer observed problems and solutions by guiding the user
3432
+ * effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area
3433
+ * within Azure and has a complex tree-like structure that addresses many root causes. These flows are
3434
+ * prepared with the help of Subject Matter experts and customer support engineers by carefully
3435
+ * considering previous support requests raised by customers. Troubleshooters terminate at a well
3436
+ * curated solution based off of resource backend signals and customer manual selections.
3437
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3438
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3439
+ *
2822
3440
  * @param troubleshooterName Troubleshooter resource Name.
2823
3441
  * @param options The options parameters.
2824
3442
  */
@@ -2830,21 +3448,23 @@ class TroubleshootersImpl {
2830
3448
  * resource name that is being executed.<br/> Get API is used to retrieve the result of a
2831
3449
  * Troubleshooter instance, which includes the status and result of each step in the Troubleshooter
2832
3450
  * 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.
3451
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3452
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3453
+ *
2835
3454
  * @param troubleshooterName Troubleshooter resource Name.
2836
3455
  * @param options The options parameters.
2837
3456
  */
2838
3457
  get(scope, troubleshooterName, options) {
2839
- return this.client.sendOperationRequest({ scope, troubleshooterName, options }, getOperationSpec);
3458
+ return this.client.sendOperationRequest({ scope, troubleshooterName, options }, getOperationSpec$1);
2840
3459
  }
2841
3460
  /**
2842
3461
  * Uses ‘stepId’ and ‘responses’ as the trigger to continue the troubleshooting steps for the
2843
3462
  * respective troubleshooter resource name. <br/>Continue API is used to provide inputs that are
2844
3463
  * required for the specific troubleshooter to progress into the next step in the process. This API is
2845
3464
  * 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.
3465
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3466
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3467
+ *
2848
3468
  * @param troubleshooterName Troubleshooter resource Name.
2849
3469
  * @param options The options parameters.
2850
3470
  */
@@ -2853,8 +3473,9 @@ class TroubleshootersImpl {
2853
3473
  }
2854
3474
  /**
2855
3475
  * Ends the troubleshooter action
2856
- * @param scope This is an extension resource provider and only resource level extension is supported
2857
- * at the moment.
3476
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3477
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3478
+ *
2858
3479
  * @param troubleshooterName Troubleshooter resource Name.
2859
3480
  * @param options The options parameters.
2860
3481
  */
@@ -2865,8 +3486,9 @@ class TroubleshootersImpl {
2865
3486
  * Restarts the troubleshooter API using applicable troubleshooter resource name as the input.<br/> It
2866
3487
  * returns new resource name which should be used in subsequent request. The old resource name is
2867
3488
  * obsolete after this API is invoked.
2868
- * @param scope This is an extension resource provider and only resource level extension is supported
2869
- * at the moment.
3489
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
3490
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
3491
+ *
2870
3492
  * @param troubleshooterName Troubleshooter resource Name.
2871
3493
  * @param options The options parameters.
2872
3494
  */
@@ -2875,93 +3497,93 @@ class TroubleshootersImpl {
2875
3497
  }
2876
3498
  }
2877
3499
  // Operation Specifications
2878
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3500
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2879
3501
  const createOperationSpec = {
2880
3502
  path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
2881
3503
  httpMethod: "PUT",
2882
3504
  responses: {
2883
3505
  200: {
2884
- bodyMapper: TroubleshooterResource
3506
+ bodyMapper: TroubleshooterResource,
2885
3507
  },
2886
3508
  201: {
2887
- bodyMapper: TroubleshooterResource
3509
+ bodyMapper: TroubleshooterResource,
2888
3510
  },
2889
3511
  default: {
2890
- bodyMapper: ErrorResponse
2891
- }
3512
+ bodyMapper: ErrorResponse,
3513
+ },
2892
3514
  },
2893
3515
  requestBody: createTroubleshooterRequestBody,
2894
3516
  queryParameters: [apiVersion],
2895
3517
  urlParameters: [
2896
3518
  $host,
2897
3519
  scope,
2898
- troubleshooterName
3520
+ troubleshooterName,
2899
3521
  ],
2900
3522
  headerParameters: [accept, contentType],
2901
3523
  mediaType: "json",
2902
- serializer
3524
+ serializer: serializer$3,
2903
3525
  };
2904
- const getOperationSpec = {
3526
+ const getOperationSpec$1 = {
2905
3527
  path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
2906
3528
  httpMethod: "GET",
2907
3529
  responses: {
2908
3530
  200: {
2909
- bodyMapper: TroubleshooterResource
3531
+ bodyMapper: TroubleshooterResource,
2910
3532
  },
2911
3533
  default: {
2912
- bodyMapper: ErrorResponse
2913
- }
3534
+ bodyMapper: ErrorResponse,
3535
+ },
2914
3536
  },
2915
3537
  queryParameters: [apiVersion],
2916
3538
  urlParameters: [
2917
3539
  $host,
2918
3540
  scope,
2919
- troubleshooterName
3541
+ troubleshooterName,
2920
3542
  ],
2921
3543
  headerParameters: [accept],
2922
- serializer
3544
+ serializer: serializer$3,
2923
3545
  };
2924
3546
  const continueOperationSpec = {
2925
3547
  path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/continue",
2926
3548
  httpMethod: "POST",
2927
3549
  responses: {
2928
3550
  204: {
2929
- headersMapper: TroubleshootersContinueHeaders
3551
+ headersMapper: TroubleshootersContinueHeaders,
2930
3552
  },
2931
3553
  default: {
2932
- bodyMapper: ErrorResponse
2933
- }
3554
+ bodyMapper: ErrorResponse,
3555
+ },
2934
3556
  },
2935
3557
  requestBody: continueRequestBody,
2936
3558
  queryParameters: [apiVersion],
2937
3559
  urlParameters: [
2938
3560
  $host,
2939
3561
  scope,
2940
- troubleshooterName
3562
+ troubleshooterName,
2941
3563
  ],
2942
3564
  headerParameters: [accept, contentType],
2943
3565
  mediaType: "json",
2944
- serializer
3566
+ serializer: serializer$3,
2945
3567
  };
2946
3568
  const endOperationSpec = {
2947
3569
  path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/end",
2948
3570
  httpMethod: "POST",
2949
3571
  responses: {
2950
3572
  204: {
2951
- headersMapper: TroubleshootersEndHeaders
3573
+ headersMapper: TroubleshootersEndHeaders,
2952
3574
  },
2953
3575
  default: {
2954
- bodyMapper: ErrorResponse
2955
- }
3576
+ bodyMapper: ErrorResponse,
3577
+ },
2956
3578
  },
2957
3579
  queryParameters: [apiVersion],
2958
3580
  urlParameters: [
2959
3581
  $host,
2960
3582
  scope,
2961
- troubleshooterName
3583
+ troubleshooterName,
2962
3584
  ],
2963
3585
  headerParameters: [accept],
2964
- serializer
3586
+ serializer: serializer$3,
2965
3587
  };
2966
3588
  const restartOperationSpec = {
2967
3589
  path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/restart",
@@ -2969,20 +3591,20 @@ const restartOperationSpec = {
2969
3591
  responses: {
2970
3592
  200: {
2971
3593
  bodyMapper: RestartTroubleshooterResponse,
2972
- headersMapper: TroubleshootersRestartHeaders
3594
+ headersMapper: TroubleshootersRestartHeaders,
2973
3595
  },
2974
3596
  default: {
2975
- bodyMapper: ErrorResponse
2976
- }
3597
+ bodyMapper: ErrorResponse,
3598
+ },
2977
3599
  },
2978
3600
  queryParameters: [apiVersion],
2979
3601
  urlParameters: [
2980
3602
  $host,
2981
3603
  scope,
2982
- troubleshooterName
3604
+ troubleshooterName,
2983
3605
  ],
2984
3606
  headerParameters: [accept],
2985
- serializer
3607
+ serializer: serializer$3,
2986
3608
  };
2987
3609
 
2988
3610
  /*
@@ -2992,31 +3614,173 @@ const restartOperationSpec = {
2992
3614
  * Code generated by Microsoft (R) AutoRest Code Generator.
2993
3615
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2994
3616
  */
2995
- class HelpRP extends coreClient__namespace.ServiceClient {
3617
+ /** Class containing SolutionSelfHelp operations. */
3618
+ class SolutionSelfHelpImpl {
3619
+ /**
3620
+ * Initialize a new instance of the class SolutionSelfHelp class.
3621
+ * @param client Reference to the service client
3622
+ */
3623
+ constructor(client) {
3624
+ this.client = client;
3625
+ }
3626
+ /**
3627
+ * Gets Self Help Solutions for a given solutionId. Self Help Solutions consist of rich instructional
3628
+ * video tutorials, links and guides to public documentation related to a specific problem that enables
3629
+ * users to troubleshoot Azure issues.
3630
+ * @param solutionId SolutionId is a unique id to identify a solution. You can retrieve the solution id
3631
+ * using the Discovery api -
3632
+ * https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
3633
+ * @param options The options parameters.
3634
+ */
3635
+ get(solutionId, options) {
3636
+ return this.client.sendOperationRequest({ solutionId, options }, getOperationSpec);
3637
+ }
3638
+ }
3639
+ // Operation Specifications
3640
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3641
+ const getOperationSpec = {
3642
+ path: "/providers/Microsoft.Help/selfHelp/{solutionId}",
3643
+ httpMethod: "GET",
3644
+ responses: {
3645
+ 200: {
3646
+ bodyMapper: SolutionResourceSelfHelp,
3647
+ },
3648
+ default: {
3649
+ bodyMapper: ErrorResponse,
3650
+ },
3651
+ },
3652
+ queryParameters: [apiVersion],
3653
+ urlParameters: [$host, solutionId],
3654
+ headerParameters: [accept],
3655
+ serializer: serializer$2,
3656
+ };
3657
+
3658
+ /*
3659
+ * Copyright (c) Microsoft Corporation.
3660
+ * Licensed under the MIT License.
3661
+ *
3662
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3663
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3664
+ */
3665
+ /** Class containing DiscoverySolutionNLPTenantScope operations. */
3666
+ class DiscoverySolutionNLPTenantScopeImpl {
3667
+ /**
3668
+ * Initialize a new instance of the class DiscoverySolutionNLPTenantScope class.
3669
+ * @param client Reference to the service client
3670
+ */
3671
+ constructor(client) {
3672
+ this.client = client;
3673
+ }
2996
3674
  /**
2997
- * Initializes a new instance of the HelpRP class.
2998
- * @param credentials Subscription credentials which uniquely identify client subscription.
2999
- * @param options The parameter options
3675
+ * Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
3676
+ * summary.
3677
+ * @param options The options parameters.
3678
+ */
3679
+ post(options) {
3680
+ return this.client.sendOperationRequest({ options }, postOperationSpec$1);
3681
+ }
3682
+ }
3683
+ // Operation Specifications
3684
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3685
+ const postOperationSpec$1 = {
3686
+ path: "/providers/Microsoft.Help/discoverSolutions",
3687
+ httpMethod: "POST",
3688
+ responses: {
3689
+ 200: {
3690
+ bodyMapper: DiscoveryNlpResponse,
3691
+ },
3692
+ default: {
3693
+ bodyMapper: ErrorResponse,
3694
+ },
3695
+ },
3696
+ requestBody: discoverSolutionRequest,
3697
+ queryParameters: [apiVersion],
3698
+ urlParameters: [$host],
3699
+ headerParameters: [accept, contentType],
3700
+ mediaType: "json",
3701
+ serializer: serializer$1,
3702
+ };
3703
+
3704
+ /*
3705
+ * Copyright (c) Microsoft Corporation.
3706
+ * Licensed under the MIT License.
3707
+ *
3708
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3709
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3710
+ */
3711
+ /** Class containing DiscoverySolutionNLPSubscriptionScope operations. */
3712
+ class DiscoverySolutionNLPSubscriptionScopeImpl {
3713
+ /**
3714
+ * Initialize a new instance of the class DiscoverySolutionNLPSubscriptionScope class.
3715
+ * @param client Reference to the service client
3716
+ */
3717
+ constructor(client) {
3718
+ this.client = client;
3719
+ }
3720
+ /**
3721
+ * Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
3722
+ * summary and subscription.
3723
+ * @param options The options parameters.
3000
3724
  */
3001
- constructor(credentials, options) {
3725
+ post(options) {
3726
+ return this.client.sendOperationRequest({ options }, postOperationSpec);
3727
+ }
3728
+ }
3729
+ // Operation Specifications
3730
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3731
+ const postOperationSpec = {
3732
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Help/discoverSolutions",
3733
+ httpMethod: "POST",
3734
+ responses: {
3735
+ 200: {
3736
+ bodyMapper: DiscoveryNlpResponse,
3737
+ },
3738
+ default: {
3739
+ bodyMapper: ErrorResponse,
3740
+ },
3741
+ },
3742
+ requestBody: discoverSolutionRequest,
3743
+ queryParameters: [apiVersion],
3744
+ urlParameters: [$host, subscriptionId],
3745
+ headerParameters: [accept, contentType],
3746
+ mediaType: "json",
3747
+ serializer,
3748
+ };
3749
+
3750
+ /*
3751
+ * Copyright (c) Microsoft Corporation.
3752
+ * Licensed under the MIT License.
3753
+ *
3754
+ * Code generated by Microsoft (R) AutoRest Code Generator.
3755
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3756
+ */
3757
+ class HelpRP extends coreClient__namespace.ServiceClient {
3758
+ constructor(credentials, subscriptionIdOrOptions, options) {
3002
3759
  var _a, _b, _c;
3003
3760
  if (credentials === undefined) {
3004
3761
  throw new Error("'credentials' cannot be null");
3005
3762
  }
3763
+ let subscriptionId;
3764
+ if (typeof subscriptionIdOrOptions === "string") {
3765
+ subscriptionId = subscriptionIdOrOptions;
3766
+ }
3767
+ else if (typeof subscriptionIdOrOptions === "object") {
3768
+ options = subscriptionIdOrOptions;
3769
+ }
3006
3770
  // Initializing default values for options
3007
3771
  if (!options) {
3008
3772
  options = {};
3009
3773
  }
3010
3774
  const defaults = {
3011
3775
  requestContentType: "application/json; charset=utf-8",
3012
- credential: credentials
3776
+ credential: credentials,
3013
3777
  };
3014
- const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.1`;
3778
+ const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.3`;
3015
3779
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3016
3780
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3017
3781
  : `${packageDetails}`;
3018
3782
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3019
- userAgentPrefix
3783
+ userAgentPrefix,
3020
3784
  }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3021
3785
  super(optionsWithDefaults);
3022
3786
  let bearerTokenAuthenticationPolicyFound = false;
@@ -3030,25 +3794,33 @@ class HelpRP extends coreClient__namespace.ServiceClient {
3030
3794
  options.pipeline.getOrderedPolicies().length == 0 ||
3031
3795
  !bearerTokenAuthenticationPolicyFound) {
3032
3796
  this.pipeline.removePolicy({
3033
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3797
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
3034
3798
  });
3035
3799
  this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3036
3800
  credential: credentials,
3037
3801
  scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3038
3802
  challengeCallbacks: {
3039
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
3040
- }
3803
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
3804
+ },
3041
3805
  }));
3042
3806
  }
3807
+ // Parameter assignments
3808
+ this.subscriptionId = subscriptionId;
3043
3809
  // Assigning values to Constant parameters
3044
3810
  this.$host = options.$host || "https://management.azure.com";
3045
- this.apiVersion = options.apiVersion || "2023-09-01-preview";
3811
+ this.apiVersion = options.apiVersion || "2024-03-01-preview";
3046
3812
  this.operations = new OperationsImpl(this);
3047
3813
  this.checkNameAvailability = new CheckNameAvailabilityImpl(this);
3048
3814
  this.diagnostics = new DiagnosticsImpl(this);
3049
3815
  this.discoverySolution = new DiscoverySolutionImpl(this);
3050
3816
  this.solution = new SolutionImpl(this);
3817
+ this.simplifiedSolutions = new SimplifiedSolutionsImpl(this);
3051
3818
  this.troubleshooters = new TroubleshootersImpl(this);
3819
+ this.solutionSelfHelp = new SolutionSelfHelpImpl(this);
3820
+ this.discoverySolutionNLPTenantScope =
3821
+ new DiscoverySolutionNLPTenantScopeImpl(this);
3822
+ this.discoverySolutionNLPSubscriptionScope =
3823
+ new DiscoverySolutionNLPSubscriptionScopeImpl(this);
3052
3824
  this.addCustomApiVersionPolicy(options.apiVersion);
3053
3825
  }
3054
3826
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
@@ -3074,7 +3846,7 @@ class HelpRP extends coreClient__namespace.ServiceClient {
3074
3846
  }
3075
3847
  return next(request);
3076
3848
  });
3077
- }
3849
+ },
3078
3850
  };
3079
3851
  this.pipeline.addPolicy(apiVersionPolicy);
3080
3852
  }