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

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 (68) hide show
  1. package/CHANGELOG.md +94 -1
  2. package/dist/index.js +253 -209
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/diagnosticsCreateSample.js +12 -3
  7. package/dist-esm/samples-dev/diagnosticsCreateSample.js.map +1 -1
  8. package/dist-esm/samples-dev/discoverySolutionListSample.js +4 -4
  9. package/dist-esm/samples-dev/solutionCreateSample.js +3 -8
  10. package/dist-esm/samples-dev/solutionCreateSample.js.map +1 -1
  11. package/dist-esm/samples-dev/solutionUpdateSample.js +10 -1
  12. package/dist-esm/samples-dev/solutionUpdateSample.js.map +1 -1
  13. package/dist-esm/samples-dev/troubleshootersCreateSample.js +2 -2
  14. package/dist-esm/src/helpRP.js +1 -1
  15. package/dist-esm/src/models/index.d.ts +126 -85
  16. package/dist-esm/src/models/index.d.ts.map +1 -1
  17. package/dist-esm/src/models/index.js +25 -19
  18. package/dist-esm/src/models/index.js.map +1 -1
  19. package/dist-esm/src/models/mappers.d.ts +1 -2
  20. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  21. package/dist-esm/src/models/mappers.js +129 -109
  22. package/dist-esm/src/models/mappers.js.map +1 -1
  23. package/dist-esm/src/operations/checkNameAvailability.d.ts +3 -2
  24. package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -1
  25. package/dist-esm/src/operations/checkNameAvailability.js +3 -2
  26. package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
  27. package/dist-esm/src/operations/diagnostics.d.ts +17 -14
  28. package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
  29. package/dist-esm/src/operations/diagnostics.js +17 -14
  30. package/dist-esm/src/operations/diagnostics.js.map +1 -1
  31. package/dist-esm/src/operations/discoverySolution.d.ts +11 -10
  32. package/dist-esm/src/operations/discoverySolution.d.ts.map +1 -1
  33. package/dist-esm/src/operations/discoverySolution.js +11 -10
  34. package/dist-esm/src/operations/discoverySolution.js.map +1 -1
  35. package/dist-esm/src/operations/solution.d.ts +43 -34
  36. package/dist-esm/src/operations/solution.d.ts.map +1 -1
  37. package/dist-esm/src/operations/solution.js +43 -34
  38. package/dist-esm/src/operations/solution.js.map +1 -1
  39. package/dist-esm/src/operations/troubleshooters.d.ts +22 -19
  40. package/dist-esm/src/operations/troubleshooters.d.ts.map +1 -1
  41. package/dist-esm/src/operations/troubleshooters.js +22 -19
  42. package/dist-esm/src/operations/troubleshooters.js.map +1 -1
  43. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +3 -2
  44. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -1
  45. package/dist-esm/src/operationsInterfaces/diagnostics.d.ts +17 -14
  46. package/dist-esm/src/operationsInterfaces/diagnostics.d.ts.map +1 -1
  47. package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts +4 -4
  48. package/dist-esm/src/operationsInterfaces/solution.d.ts +43 -34
  49. package/dist-esm/src/operationsInterfaces/solution.d.ts.map +1 -1
  50. package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts +22 -19
  51. package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts.map +1 -1
  52. package/package.json +7 -5
  53. package/review/arm-selfhelp.api.md +21 -17
  54. package/src/helpRP.ts +1 -1
  55. package/src/models/index.ts +125 -87
  56. package/src/models/mappers.ts +140 -111
  57. package/src/operations/checkNameAvailability.ts +3 -2
  58. package/src/operations/diagnostics.ts +17 -14
  59. package/src/operations/discoverySolution.ts +11 -10
  60. package/src/operations/solution.ts +43 -34
  61. package/src/operations/troubleshooters.ts +22 -19
  62. package/src/operationsInterfaces/checkNameAvailability.ts +3 -2
  63. package/src/operationsInterfaces/diagnostics.ts +17 -14
  64. package/src/operationsInterfaces/discoverySolution.ts +4 -4
  65. package/src/operationsInterfaces/solution.ts +43 -34
  66. package/src/operationsInterfaces/troubleshooters.ts +22 -19
  67. package/types/arm-selfhelp.d.ts +182 -126
  68. 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 = {}));
@@ -149,11 +153,15 @@ exports.KnownName = void 0;
149
153
  /** Known values of {@link SolutionProvisioningState} that the service accepts. */
150
154
  exports.KnownSolutionProvisioningState = void 0;
151
155
  (function (KnownSolutionProvisioningState) {
152
- /** Succeeded */
156
+ /** All Solutions in the Batch succeeded. */
153
157
  KnownSolutionProvisioningState["Succeeded"] = "Succeeded";
154
- /** Failed */
158
+ /** Some Solutions are still running or failed. */
159
+ KnownSolutionProvisioningState["PartialComplete"] = "PartialComplete";
160
+ /** All Solutions failed to run. */
155
161
  KnownSolutionProvisioningState["Failed"] = "Failed";
156
- /** Canceled */
162
+ /** All Solutions are still running. */
163
+ KnownSolutionProvisioningState["Running"] = "Running";
164
+ /** When Solutions request gets canceled. */
157
165
  KnownSolutionProvisioningState["Canceled"] = "Canceled";
158
166
  })(exports.KnownSolutionProvisioningState || (exports.KnownSolutionProvisioningState = {}));
159
167
  /** Known values of {@link Confidence} that the service accepts. */
@@ -205,13 +213,13 @@ exports.KnownTroubleshooterProvisioningState = void 0;
205
213
  /** Known values of {@link ExecutionStatus} that the service accepts. */
206
214
  exports.KnownExecutionStatus = void 0;
207
215
  (function (KnownExecutionStatus) {
208
- /** Success */
216
+ /** Step execution succeeded. */
209
217
  KnownExecutionStatus["Success"] = "Success";
210
- /** Running */
218
+ /** Step execution running */
211
219
  KnownExecutionStatus["Running"] = "Running";
212
- /** Failed */
220
+ /** Step execution failed */
213
221
  KnownExecutionStatus["Failed"] = "Failed";
214
- /** Warning */
222
+ /** Step execution warning */
215
223
  KnownExecutionStatus["Warning"] = "Warning";
216
224
  })(exports.KnownExecutionStatus || (exports.KnownExecutionStatus = {}));
217
225
  /** Known values of {@link Type} that the service accepts. */
@@ -226,6 +234,18 @@ exports.KnownType = void 0;
226
234
  /** AutomatedCheck */
227
235
  KnownType["AutomatedCheck"] = "AutomatedCheck";
228
236
  })(exports.KnownType || (exports.KnownType = {}));
237
+ /** Known values of {@link QuestionType} that the service accepts. */
238
+ exports.KnownQuestionType = void 0;
239
+ (function (KnownQuestionType) {
240
+ /** SingleChoice radio button */
241
+ KnownQuestionType["RadioButton"] = "RadioButton";
242
+ /** SingleChoice dropdown. */
243
+ KnownQuestionType["Dropdown"] = "Dropdown";
244
+ /** Text Input */
245
+ KnownQuestionType["TextInput"] = "TextInput";
246
+ /** MultiLineInfoBox */
247
+ KnownQuestionType["MultiLineInfoBox"] = "MultiLineInfoBox";
248
+ })(exports.KnownQuestionType || (exports.KnownQuestionType = {}));
229
249
  /** Known values of {@link QuestionContentType} that the service accepts. */
230
250
  exports.KnownQuestionContentType = void 0;
231
251
  (function (KnownQuestionContentType) {
@@ -248,18 +268,6 @@ exports.KnownAutomatedCheckResultType = void 0;
248
268
  /** Information */
249
269
  KnownAutomatedCheckResultType["Information"] = "Information";
250
270
  })(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
271
 
264
272
  /*
265
273
  * Copyright (c) Microsoft Corporation.
@@ -793,112 +801,6 @@ const SolutionMetadataProperties = {
793
801
  }
794
802
  }
795
803
  };
796
- const SolutionResource = {
797
- type: {
798
- name: "Composite",
799
- className: "SolutionResource",
800
- 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
- name: {
816
- serializedName: "name",
817
- readOnly: true,
818
- type: {
819
- name: "String"
820
- }
821
- },
822
- properties: {
823
- serializedName: "properties",
824
- type: {
825
- name: "Composite",
826
- className: "SolutionResourceProperties"
827
- }
828
- }
829
- }
830
- }
831
- };
832
- const SolutionResourceProperties = {
833
- type: {
834
- name: "Composite",
835
- className: "SolutionResourceProperties",
836
- modelProperties: {
837
- triggerCriteria: {
838
- serializedName: "triggerCriteria",
839
- type: {
840
- name: "Sequence",
841
- element: {
842
- type: {
843
- name: "Composite",
844
- className: "TriggerCriterion"
845
- }
846
- }
847
- }
848
- },
849
- parameters: {
850
- serializedName: "parameters",
851
- type: {
852
- name: "Dictionary",
853
- value: { type: { name: "String" } }
854
- }
855
- },
856
- solutionId: {
857
- serializedName: "solutionId",
858
- type: {
859
- name: "String"
860
- }
861
- },
862
- provisioningState: {
863
- serializedName: "provisioningState",
864
- type: {
865
- name: "String"
866
- }
867
- },
868
- title: {
869
- serializedName: "title",
870
- type: {
871
- name: "String"
872
- }
873
- },
874
- content: {
875
- serializedName: "content",
876
- type: {
877
- name: "String"
878
- }
879
- },
880
- replacementMaps: {
881
- serializedName: "replacementMaps",
882
- type: {
883
- name: "Composite",
884
- className: "ReplacementMaps"
885
- }
886
- },
887
- sections: {
888
- serializedName: "sections",
889
- type: {
890
- name: "Sequence",
891
- element: {
892
- type: {
893
- name: "Composite",
894
- className: "Section"
895
- }
896
- }
897
- }
898
- }
899
- }
900
- }
901
- };
902
804
  const TriggerCriterion = {
903
805
  type: {
904
806
  name: "Composite",
@@ -1331,11 +1233,71 @@ const SolutionPatchRequestBody = {
1331
1233
  name: "Composite",
1332
1234
  className: "SolutionPatchRequestBody",
1333
1235
  modelProperties: {
1334
- properties: {
1335
- serializedName: "properties",
1236
+ triggerCriteria: {
1237
+ serializedName: "properties.triggerCriteria",
1238
+ type: {
1239
+ name: "Sequence",
1240
+ element: {
1241
+ type: {
1242
+ name: "Composite",
1243
+ className: "TriggerCriterion"
1244
+ }
1245
+ }
1246
+ }
1247
+ },
1248
+ parameters: {
1249
+ serializedName: "properties.parameters",
1250
+ type: {
1251
+ name: "Dictionary",
1252
+ value: { type: { name: "String" } }
1253
+ }
1254
+ },
1255
+ solutionId: {
1256
+ serializedName: "properties.solutionId",
1257
+ readOnly: true,
1258
+ type: {
1259
+ name: "String"
1260
+ }
1261
+ },
1262
+ provisioningState: {
1263
+ serializedName: "properties.provisioningState",
1264
+ readOnly: true,
1265
+ type: {
1266
+ name: "String"
1267
+ }
1268
+ },
1269
+ title: {
1270
+ serializedName: "properties.title",
1271
+ readOnly: true,
1272
+ type: {
1273
+ name: "String"
1274
+ }
1275
+ },
1276
+ content: {
1277
+ serializedName: "properties.content",
1278
+ readOnly: true,
1279
+ type: {
1280
+ name: "String"
1281
+ }
1282
+ },
1283
+ replacementMaps: {
1284
+ serializedName: "properties.replacementMaps",
1336
1285
  type: {
1337
1286
  name: "Composite",
1338
- className: "SolutionResourceProperties"
1287
+ className: "ReplacementMaps"
1288
+ }
1289
+ },
1290
+ sections: {
1291
+ serializedName: "properties.sections",
1292
+ readOnly: true,
1293
+ type: {
1294
+ name: "Sequence",
1295
+ element: {
1296
+ type: {
1297
+ name: "Composite",
1298
+ className: "Section"
1299
+ }
1300
+ }
1339
1301
  }
1340
1302
  }
1341
1303
  }
@@ -1728,6 +1690,72 @@ const SolutionMetadataResource = {
1728
1690
  } })
1729
1691
  }
1730
1692
  };
1693
+ const SolutionResource = {
1694
+ type: {
1695
+ name: "Composite",
1696
+ className: "SolutionResource",
1697
+ modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { triggerCriteria: {
1698
+ serializedName: "properties.triggerCriteria",
1699
+ type: {
1700
+ name: "Sequence",
1701
+ element: {
1702
+ type: {
1703
+ name: "Composite",
1704
+ className: "TriggerCriterion"
1705
+ }
1706
+ }
1707
+ }
1708
+ }, parameters: {
1709
+ serializedName: "properties.parameters",
1710
+ type: {
1711
+ name: "Dictionary",
1712
+ value: { type: { name: "String" } }
1713
+ }
1714
+ }, solutionId: {
1715
+ serializedName: "properties.solutionId",
1716
+ readOnly: true,
1717
+ type: {
1718
+ name: "String"
1719
+ }
1720
+ }, provisioningState: {
1721
+ serializedName: "properties.provisioningState",
1722
+ readOnly: true,
1723
+ type: {
1724
+ name: "String"
1725
+ }
1726
+ }, title: {
1727
+ serializedName: "properties.title",
1728
+ readOnly: true,
1729
+ type: {
1730
+ name: "String"
1731
+ }
1732
+ }, content: {
1733
+ serializedName: "properties.content",
1734
+ readOnly: true,
1735
+ type: {
1736
+ name: "String"
1737
+ }
1738
+ }, replacementMaps: {
1739
+ serializedName: "properties.replacementMaps",
1740
+ type: {
1741
+ name: "Composite",
1742
+ className: "ReplacementMaps"
1743
+ }
1744
+ }, sections: {
1745
+ serializedName: "properties.sections",
1746
+ readOnly: true,
1747
+ type: {
1748
+ name: "Sequence",
1749
+ element: {
1750
+ type: {
1751
+ name: "Composite",
1752
+ className: "Section"
1753
+ }
1754
+ }
1755
+ }
1756
+ } })
1757
+ }
1758
+ };
1731
1759
  const TroubleshooterResource = {
1732
1760
  type: {
1733
1761
  name: "Composite",
@@ -1854,7 +1882,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
1854
1882
  SolutionMetadataResource: SolutionMetadataResource,
1855
1883
  SolutionPatchRequestBody: SolutionPatchRequestBody,
1856
1884
  SolutionResource: SolutionResource,
1857
- SolutionResourceProperties: SolutionResourceProperties,
1858
1885
  SolutionUpdateHeaders: SolutionUpdateHeaders,
1859
1886
  SolutionsDiagnostic: SolutionsDiagnostic,
1860
1887
  SolutionsTroubleshooters: SolutionsTroubleshooters,
@@ -2182,8 +2209,9 @@ class CheckNameAvailabilityImpl {
2182
2209
  /**
2183
2210
  * This API is used to check the uniqueness of a resource name used for a diagnostic, troubleshooter or
2184
2211
  * solutions
2185
- * @param scope This is an extension resource provider and only resource level extension is supported
2186
- * at the moment.
2212
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2213
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2214
+ *
2187
2215
  * @param options The options parameters.
2188
2216
  */
2189
2217
  post(scope, options) {
@@ -2249,12 +2277,13 @@ class DiagnosticsImpl {
2249
2277
  }
2250
2278
  /**
2251
2279
  * 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.
2280
+ * solutions. <br/>Diagnostics are powerful solutions that access product resources or other relevant
2281
+ * data and provide the root cause of the issue and the steps to address the issue.<br/><br/> <b>Note:
2282
+ * </b> requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as
2283
+ * an input to Diagnostics API.
2284
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2285
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2286
+ *
2258
2287
  * @param diagnosticsResourceName Unique resource name for insight resources
2259
2288
  * @param options The options parameters.
2260
2289
  */
@@ -2298,12 +2327,13 @@ class DiagnosticsImpl {
2298
2327
  }
2299
2328
  /**
2300
2329
  * 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.
2330
+ * solutions. <br/>Diagnostics are powerful solutions that access product resources or other relevant
2331
+ * data and provide the root cause of the issue and the steps to address the issue.<br/><br/> <b>Note:
2332
+ * </b> requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as
2333
+ * an input to Diagnostics API.
2334
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2335
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2336
+ *
2307
2337
  * @param diagnosticsResourceName Unique resource name for insight resources
2308
2338
  * @param options The options parameters.
2309
2339
  */
@@ -2315,8 +2345,9 @@ class DiagnosticsImpl {
2315
2345
  }
2316
2346
  /**
2317
2347
  * 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.
2348
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2349
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2350
+ *
2320
2351
  * @param diagnosticsResourceName Unique resource name for insight resources
2321
2352
  * @param options The options parameters.
2322
2353
  */
@@ -2399,15 +2430,15 @@ class DiscoverySolutionImpl {
2399
2430
  * Lists the relevant Azure diagnostics and solutions using [problemClassification
2400
2431
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
2401
2432
  * 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 :
2433
+ * which identifies relevant Azure diagnostics and solutions. <br/><br/> Required Input :
2404
2434
  * problemClassificationId (Use the [problemClassification
2405
2435
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
2406
2436
  * <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
2407
2437
  * Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
2408
2438
  * and Solutions API.
2409
- * @param scope This is an extension resource provider and only resource level extension is supported
2410
- * at the moment.
2439
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2440
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2441
+ *
2411
2442
  * @param options The options parameters.
2412
2443
  */
2413
2444
  list(scope, options) {
@@ -2471,15 +2502,15 @@ class DiscoverySolutionImpl {
2471
2502
  * Lists the relevant Azure diagnostics and solutions using [problemClassification
2472
2503
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
2473
2504
  * 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 :
2505
+ * which identifies relevant Azure diagnostics and solutions. <br/><br/> Required Input :
2476
2506
  * problemClassificationId (Use the [problemClassification
2477
2507
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
2478
2508
  * <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
2479
2509
  * Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
2480
2510
  * and Solutions API.
2481
- * @param scope This is an extension resource provider and only resource level extension is supported
2482
- * at the moment.
2511
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2512
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2513
+ *
2483
2514
  * @param options The options parameters.
2484
2515
  */
2485
2516
  _list(scope, options) {
@@ -2487,8 +2518,9 @@ class DiscoverySolutionImpl {
2487
2518
  }
2488
2519
  /**
2489
2520
  * ListNext
2490
- * @param scope This is an extension resource provider and only resource level extension is supported
2491
- * at the moment.
2521
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2522
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2523
+ *
2492
2524
  * @param nextLink The nextLink from the previous successful call to the List method.
2493
2525
  * @param options The options parameters.
2494
2526
  */
@@ -2551,21 +2583,24 @@ class SolutionImpl {
2551
2583
  this.client = client;
2552
2584
  }
2553
2585
  /**
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 additionalParametersin
2565
- * the request for diagnostics <br/>3.requiredParametersfrom the Solutions response is the same as
2586
+ * Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
2587
+ * requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
2588
+ * self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
2589
+ * resolving typical troubleshooting issues. These solutions encompass (1.) dynamic and context-aware
2590
+ * diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video
2591
+ * tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual
2592
+ * troubleshooting instructions. All these components are seamlessly converged into unified solutions
2593
+ * tailored to address a specific support problem area. Each solution type may require one or more
2594
+ * ‘requiredParameters’ that are required to execute the individual solution component. In the absence
2595
+ * of the ‘requiredParameters’ it is likely that some of the solutions might fail execution, and you
2596
+ * might see an empty response. <br/><br/> <b>Note:</b> <br/>1.requiredInputsfrom Discovery
2597
+ * solutions response must be passed via parametersin the request body of Solutions API. <br/>2.
2598
+ * ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the
2599
+ * request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
2566
2600
  * ‘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.
2601
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2602
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2603
+ *
2569
2604
  * @param solutionResourceName Solution resource Name.
2570
2605
  * @param options The options parameters.
2571
2606
  */
@@ -2608,21 +2643,24 @@ class SolutionImpl {
2608
2643
  });
2609
2644
  }
2610
2645
  /**
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 additionalParametersin
2622
- * the request for diagnostics <br/>3.requiredParametersfrom the Solutions response is the same as
2646
+ * Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
2647
+ * requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
2648
+ * self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
2649
+ * resolving typical troubleshooting issues. These solutions encompass (1.) dynamic and context-aware
2650
+ * diagnostics, guided troubleshooting wizards, and data visualizations, (2.) rich instructional video
2651
+ * tutorials and illustrative diagrams and images, and (3.) thoughtfully assembled textual
2652
+ * troubleshooting instructions. All these components are seamlessly converged into unified solutions
2653
+ * tailored to address a specific support problem area. Each solution type may require one or more
2654
+ * ‘requiredParameters’ that are required to execute the individual solution component. In the absence
2655
+ * of the ‘requiredParameters’ it is likely that some of the solutions might fail execution, and you
2656
+ * might see an empty response. <br/><br/> <b>Note:</b> <br/>1.requiredInputsfrom Discovery
2657
+ * solutions response must be passed via parametersin the request body of Solutions API. <br/>2.
2658
+ * ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the
2659
+ * request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
2623
2660
  * ‘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.
2661
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2662
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2663
+ *
2626
2664
  * @param solutionResourceName Solution resource Name.
2627
2665
  * @param options The options parameters.
2628
2666
  */
@@ -2634,8 +2672,9 @@ class SolutionImpl {
2634
2672
  }
2635
2673
  /**
2636
2674
  * 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.
2675
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2676
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2677
+ *
2639
2678
  * @param solutionResourceName Solution resource Name.
2640
2679
  * @param options The options parameters.
2641
2680
  */
@@ -2644,8 +2683,9 @@ class SolutionImpl {
2644
2683
  }
2645
2684
  /**
2646
2685
  * 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.
2686
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2687
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2688
+ *
2649
2689
  * @param solutionResourceName Solution resource Name.
2650
2690
  * @param options The options parameters.
2651
2691
  */
@@ -2689,8 +2729,9 @@ class SolutionImpl {
2689
2729
  }
2690
2730
  /**
2691
2731
  * 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.
2732
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2733
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2734
+ *
2694
2735
  * @param solutionResourceName Solution resource Name.
2695
2736
  * @param options The options parameters.
2696
2737
  */
@@ -2808,17 +2849,16 @@ class TroubleshootersImpl {
2808
2849
  }
2809
2850
  /**
2810
2851
  * 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.
2852
+ * and ‘properties.parameters’ as the trigger. <br/> Azure Troubleshooters help with hard to classify
2853
+ * issues, reducing the gap between customer observed problems and solutions by guiding the user
2854
+ * effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area
2855
+ * within Azure and has a complex tree-like structure that addresses many root causes. These flows are
2856
+ * prepared with the help of Subject Matter experts and customer support engineers by carefully
2857
+ * considering previous support requests raised by customers. Troubleshooters terminate at a well
2858
+ * curated solution based off of resource backend signals and customer manual selections.
2859
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2860
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2861
+ *
2822
2862
  * @param troubleshooterName Troubleshooter resource Name.
2823
2863
  * @param options The options parameters.
2824
2864
  */
@@ -2830,8 +2870,9 @@ class TroubleshootersImpl {
2830
2870
  * resource name that is being executed.<br/> Get API is used to retrieve the result of a
2831
2871
  * Troubleshooter instance, which includes the status and result of each step in the Troubleshooter
2832
2872
  * 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.
2873
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2874
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2875
+ *
2835
2876
  * @param troubleshooterName Troubleshooter resource Name.
2836
2877
  * @param options The options parameters.
2837
2878
  */
@@ -2843,8 +2884,9 @@ class TroubleshootersImpl {
2843
2884
  * respective troubleshooter resource name. <br/>Continue API is used to provide inputs that are
2844
2885
  * required for the specific troubleshooter to progress into the next step in the process. This API is
2845
2886
  * 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.
2887
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2888
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2889
+ *
2848
2890
  * @param troubleshooterName Troubleshooter resource Name.
2849
2891
  * @param options The options parameters.
2850
2892
  */
@@ -2853,8 +2895,9 @@ class TroubleshootersImpl {
2853
2895
  }
2854
2896
  /**
2855
2897
  * Ends the troubleshooter action
2856
- * @param scope This is an extension resource provider and only resource level extension is supported
2857
- * at the moment.
2898
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2899
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2900
+ *
2858
2901
  * @param troubleshooterName Troubleshooter resource Name.
2859
2902
  * @param options The options parameters.
2860
2903
  */
@@ -2865,8 +2908,9 @@ class TroubleshootersImpl {
2865
2908
  * Restarts the troubleshooter API using applicable troubleshooter resource name as the input.<br/> It
2866
2909
  * returns new resource name which should be used in subsequent request. The old resource name is
2867
2910
  * 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.
2911
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
2912
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
2913
+ *
2870
2914
  * @param troubleshooterName Troubleshooter resource Name.
2871
2915
  * @param options The options parameters.
2872
2916
  */
@@ -3011,7 +3055,7 @@ class HelpRP extends coreClient__namespace.ServiceClient {
3011
3055
  requestContentType: "application/json; charset=utf-8",
3012
3056
  credential: credentials
3013
3057
  };
3014
- const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.1`;
3058
+ const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.2`;
3015
3059
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3016
3060
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3017
3061
  : `${packageDetails}`;