@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
@@ -13,34 +13,31 @@ import {
13
13
  SolutionGetOptionalParams,
14
14
  SolutionGetResponse,
15
15
  SolutionUpdateOptionalParams,
16
- SolutionUpdateResponse
16
+ SolutionUpdateResponse,
17
+ SolutionWarmUpOptionalParams,
17
18
  } from "../models";
18
19
 
19
20
  /** Interface representing a Solution. */
20
21
  export interface Solution {
21
22
  /**
22
- * Creates a solution for the specific Azure resource or subscription using the triggering criteria
23
- * ‘solutionId and requiredInputs’ from discovery solutions.<br/> Solutions are a rich, insightful and
24
- * a centralized self help experience that brings all the relevant content to troubleshoot an Azure
25
- * issue into a unified experience. Solutions include the following components : Text, Diagnostics ,
26
- * Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with
27
- * capabilities to support new solutions types in the future. Each solution type may require one or
28
- * more ‘requiredParameters’ that are required to execute the individual solution component. In the
29
- * absence of the ‘requiredParameters’ it is likely that some of the solutions might fail execution,
30
- * and you might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from
31
- * Discovery solutions response must be passed via ‘parameters’ in the request body of Solutions API.
32
- * <br/>2. ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in
33
- * the request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
34
- * ‘properties.parameters’ in the request for Troubleshooters
35
- * @param scope This is an extension resource provider and only resource level extension is supported
36
- * at the moment.
23
+ * Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
24
+ * requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
25
+ * self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
26
+ * resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
27
+ * context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
28
+ * instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
29
+ * assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
30
+ * into unified solutions tailored to address a specific support problem area.
31
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
32
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
33
+ *
37
34
  * @param solutionResourceName Solution resource Name.
38
35
  * @param options The options parameters.
39
36
  */
40
37
  beginCreate(
41
38
  scope: string,
42
39
  solutionResourceName: string,
43
- options?: SolutionCreateOptionalParams
40
+ options?: SolutionCreateOptionalParams,
44
41
  ): Promise<
45
42
  SimplePollerLike<
46
43
  OperationState<SolutionCreateResponse>,
@@ -48,52 +45,50 @@ export interface Solution {
48
45
  >
49
46
  >;
50
47
  /**
51
- * Creates a solution for the specific Azure resource or subscription using the triggering criteria
52
- * ‘solutionId and requiredInputs’ from discovery solutions.<br/> Solutions are a rich, insightful and
53
- * a centralized self help experience that brings all the relevant content to troubleshoot an Azure
54
- * issue into a unified experience. Solutions include the following components : Text, Diagnostics ,
55
- * Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with
56
- * capabilities to support new solutions types in the future. Each solution type may require one or
57
- * more ‘requiredParameters’ that are required to execute the individual solution component. In the
58
- * absence of the ‘requiredParameters’ it is likely that some of the solutions might fail execution,
59
- * and you might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from
60
- * Discovery solutions response must be passed via ‘parameters’ in the request body of Solutions API.
61
- * <br/>2. ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in
62
- * the request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
63
- * ‘properties.parameters’ in the request for Troubleshooters
64
- * @param scope This is an extension resource provider and only resource level extension is supported
65
- * at the moment.
48
+ * Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
49
+ * requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
50
+ * self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
51
+ * resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
52
+ * context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
53
+ * instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
54
+ * assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
55
+ * into unified solutions tailored to address a specific support problem area.
56
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
57
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
58
+ *
66
59
  * @param solutionResourceName Solution resource Name.
67
60
  * @param options The options parameters.
68
61
  */
69
62
  beginCreateAndWait(
70
63
  scope: string,
71
64
  solutionResourceName: string,
72
- options?: SolutionCreateOptionalParams
65
+ options?: SolutionCreateOptionalParams,
73
66
  ): Promise<SolutionCreateResponse>;
74
67
  /**
75
68
  * Get the solution using the applicable solutionResourceName while creating the solution.
76
- * @param scope This is an extension resource provider and only resource level extension is supported
77
- * at the moment.
69
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
70
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
71
+ *
78
72
  * @param solutionResourceName Solution resource Name.
79
73
  * @param options The options parameters.
80
74
  */
81
75
  get(
82
76
  scope: string,
83
77
  solutionResourceName: string,
84
- options?: SolutionGetOptionalParams
78
+ options?: SolutionGetOptionalParams,
85
79
  ): Promise<SolutionGetResponse>;
86
80
  /**
87
81
  * Update the requiredInputs or additional information needed to execute the solution
88
- * @param scope This is an extension resource provider and only resource level extension is supported
89
- * at the moment.
82
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
83
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
84
+ *
90
85
  * @param solutionResourceName Solution resource Name.
91
86
  * @param options The options parameters.
92
87
  */
93
88
  beginUpdate(
94
89
  scope: string,
95
90
  solutionResourceName: string,
96
- options?: SolutionUpdateOptionalParams
91
+ options?: SolutionUpdateOptionalParams,
97
92
  ): Promise<
98
93
  SimplePollerLike<
99
94
  OperationState<SolutionUpdateResponse>,
@@ -102,14 +97,28 @@ export interface Solution {
102
97
  >;
103
98
  /**
104
99
  * Update the requiredInputs or additional information needed to execute the solution
105
- * @param scope This is an extension resource provider and only resource level extension is supported
106
- * at the moment.
100
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
101
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
102
+ *
107
103
  * @param solutionResourceName Solution resource Name.
108
104
  * @param options The options parameters.
109
105
  */
110
106
  beginUpdateAndWait(
111
107
  scope: string,
112
108
  solutionResourceName: string,
113
- options?: SolutionUpdateOptionalParams
109
+ options?: SolutionUpdateOptionalParams,
114
110
  ): Promise<SolutionUpdateResponse>;
111
+ /**
112
+ * Warm up the solution resource by preloading asynchronous diagnostics results into cache
113
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
114
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
115
+ *
116
+ * @param solutionResourceName Solution resource Name.
117
+ * @param options The options parameters.
118
+ */
119
+ warmUp(
120
+ scope: string,
121
+ solutionResourceName: string,
122
+ options?: SolutionWarmUpOptionalParams,
123
+ ): Promise<void>;
115
124
  }
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ import {
10
+ SolutionSelfHelpGetOptionalParams,
11
+ SolutionSelfHelpGetResponse,
12
+ } from "../models";
13
+
14
+ /** Interface representing a SolutionSelfHelp. */
15
+ export interface SolutionSelfHelp {
16
+ /**
17
+ * Gets Self Help Solutions for a given solutionId. Self Help Solutions consist of rich instructional
18
+ * video tutorials, links and guides to public documentation related to a specific problem that enables
19
+ * users to troubleshoot Azure issues.
20
+ * @param solutionId SolutionId is a unique id to identify a solution. You can retrieve the solution id
21
+ * using the Discovery api -
22
+ * https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
23
+ * @param options The options parameters.
24
+ */
25
+ get(
26
+ solutionId: string,
27
+ options?: SolutionSelfHelpGetOptionalParams,
28
+ ): Promise<SolutionSelfHelpGetResponse>;
29
+ }
@@ -16,86 +16,89 @@ import {
16
16
  TroubleshootersEndOptionalParams,
17
17
  TroubleshootersEndResponse,
18
18
  TroubleshootersRestartOptionalParams,
19
- TroubleshootersRestartResponse
19
+ TroubleshootersRestartResponse,
20
20
  } from "../models";
21
21
 
22
22
  /** Interface representing a Troubleshooters. */
23
23
  export interface Troubleshooters {
24
24
  /**
25
25
  * Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’
26
- * and ‘properties.parameters’ as the trigger. <br/> Troubleshooters are step-by-step interactive
27
- * guidance that scope the problem by collecting additional inputs from you in each stage while
28
- * troubleshooting an Azure issue. You will be guided down decision tree style workflow and the best
29
- * possible solution will be presented at the end of the workflow. <br/> Create API creates the
30
- * Troubleshooter API using ‘parameters’ and ‘solutionId’ <br/> After creating the Troubleshooter
31
- * instance, the following APIs can be used:<br/> CONTINUE API: to move to the next step in the flow
32
- * <br/>GET API: to identify the next step after executing the CONTINUE API. <br/><br/> <b>Note:</b>
33
- * ‘requiredParameters’ from solutions response must be passed via ‘properties. parameters’ in the
34
- * request body of Troubleshooters API.
35
- * @param scope This is an extension resource provider and only resource level extension is supported
36
- * at the moment.
26
+ * and ‘properties.parameters’ as the trigger. <br/> Azure Troubleshooters help with hard to classify
27
+ * issues, reducing the gap between customer observed problems and solutions by guiding the user
28
+ * effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area
29
+ * within Azure and has a complex tree-like structure that addresses many root causes. These flows are
30
+ * prepared with the help of Subject Matter experts and customer support engineers by carefully
31
+ * considering previous support requests raised by customers. Troubleshooters terminate at a well
32
+ * curated solution based off of resource backend signals and customer manual selections.
33
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
34
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
35
+ *
37
36
  * @param troubleshooterName Troubleshooter resource Name.
38
37
  * @param options The options parameters.
39
38
  */
40
39
  create(
41
40
  scope: string,
42
41
  troubleshooterName: string,
43
- options?: TroubleshootersCreateOptionalParams
42
+ options?: TroubleshootersCreateOptionalParams,
44
43
  ): Promise<TroubleshootersCreateResponse>;
45
44
  /**
46
45
  * Gets troubleshooter instance result which includes the step status/result of the troubleshooter
47
46
  * resource name that is being executed.<br/> Get API is used to retrieve the result of a
48
47
  * Troubleshooter instance, which includes the status and result of each step in the Troubleshooter
49
48
  * workflow. This API requires the Troubleshooter resource name that was created using the Create API.
50
- * @param scope This is an extension resource provider and only resource level extension is supported
51
- * at the moment.
49
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
50
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
51
+ *
52
52
  * @param troubleshooterName Troubleshooter resource Name.
53
53
  * @param options The options parameters.
54
54
  */
55
55
  get(
56
56
  scope: string,
57
57
  troubleshooterName: string,
58
- options?: TroubleshootersGetOptionalParams
58
+ options?: TroubleshootersGetOptionalParams,
59
59
  ): Promise<TroubleshootersGetResponse>;
60
60
  /**
61
61
  * Uses ‘stepId’ and ‘responses’ as the trigger to continue the troubleshooting steps for the
62
62
  * respective troubleshooter resource name. <br/>Continue API is used to provide inputs that are
63
63
  * required for the specific troubleshooter to progress into the next step in the process. This API is
64
64
  * used after the Troubleshooter has been created using the Create API.
65
- * @param scope This is an extension resource provider and only resource level extension is supported
66
- * at the moment.
65
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
66
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
67
+ *
67
68
  * @param troubleshooterName Troubleshooter resource Name.
68
69
  * @param options The options parameters.
69
70
  */
70
71
  continue(
71
72
  scope: string,
72
73
  troubleshooterName: string,
73
- options?: TroubleshootersContinueOptionalParams
74
+ options?: TroubleshootersContinueOptionalParams,
74
75
  ): Promise<TroubleshootersContinueResponse>;
75
76
  /**
76
77
  * Ends the troubleshooter action
77
- * @param scope This is an extension resource provider and only resource level extension is supported
78
- * at the moment.
78
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
79
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
80
+ *
79
81
  * @param troubleshooterName Troubleshooter resource Name.
80
82
  * @param options The options parameters.
81
83
  */
82
84
  end(
83
85
  scope: string,
84
86
  troubleshooterName: string,
85
- options?: TroubleshootersEndOptionalParams
87
+ options?: TroubleshootersEndOptionalParams,
86
88
  ): Promise<TroubleshootersEndResponse>;
87
89
  /**
88
90
  * Restarts the troubleshooter API using applicable troubleshooter resource name as the input.<br/> It
89
91
  * returns new resource name which should be used in subsequent request. The old resource name is
90
92
  * obsolete after this API is invoked.
91
- * @param scope This is an extension resource provider and only resource level extension is supported
92
- * at the moment.
93
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
94
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
95
+ *
93
96
  * @param troubleshooterName Troubleshooter resource Name.
94
97
  * @param options The options parameters.
95
98
  */
96
99
  restart(
97
100
  scope: string,
98
101
  troubleshooterName: string,
99
- options?: TroubleshootersRestartOptionalParams
102
+ options?: TroubleshootersRestartOptionalParams,
100
103
  ): Promise<TroubleshootersRestartResponse>;
101
104
  }
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
28
28
 
29
29
  export function setContinuationToken(
30
30
  page: unknown,
31
- continuationToken: string | undefined
31
+ continuationToken: string | undefined,
32
32
  ): void {
33
33
  if (typeof page !== "object" || page === null || !continuationToken) {
34
34
  return;