@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
@@ -9,7 +9,7 @@ import { __awaiter } from "tslib";
9
9
  import * as coreClient from "@azure/core-client";
10
10
  import * as Mappers from "../models/mappers";
11
11
  import * as Parameters from "../models/parameters";
12
- import { createHttpPoller } from "@azure/core-lro";
12
+ import { createHttpPoller, } from "@azure/core-lro";
13
13
  import { createLroSpec } from "../lroImpl";
14
14
  /** Class containing Solution operations. */
15
15
  export class SolutionImpl {
@@ -21,21 +21,17 @@ export class SolutionImpl {
21
21
  this.client = client;
22
22
  }
23
23
  /**
24
- * Creates a solution for the specific Azure resource or subscription using the triggering criteria
25
- * ‘solutionId and requiredInputs’ from discovery solutions.<br/> Solutions are a rich, insightful and
26
- * a centralized self help experience that brings all the relevant content to troubleshoot an Azure
27
- * issue into a unified experience. Solutions include the following components : Text, Diagnostics ,
28
- * Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with
29
- * capabilities to support new solutions types in the future. Each solution type may require one or
30
- * more ‘requiredParameters’ that are required to execute the individual solution component. In the
31
- * absence of the ‘requiredParameters’ it is likely that some of the solutions might fail execution,
32
- * and you might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from
33
- * Discovery solutions response must be passed via ‘parameters’ in the request body of Solutions API.
34
- * <br/>2. ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in
35
- * the request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
36
- * ‘properties.parameters’ in the request for Troubleshooters
37
- * @param scope This is an extension resource provider and only resource level extension is supported
38
- * at the moment.
24
+ * Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
25
+ * requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
26
+ * self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
27
+ * resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
28
+ * context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
29
+ * instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
30
+ * assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
31
+ * into unified solutions tailored to address a specific support problem area.
32
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
33
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
34
+ *
39
35
  * @param solutionResourceName Solution resource Name.
40
36
  * @param options The options parameters.
41
37
  */
@@ -59,40 +55,36 @@ export class SolutionImpl {
59
55
  rawResponse: {
60
56
  statusCode: currentRawResponse.status,
61
57
  body: currentRawResponse.parsedBody,
62
- headers: currentRawResponse.headers.toJSON()
63
- }
58
+ headers: currentRawResponse.headers.toJSON(),
59
+ },
64
60
  };
65
61
  });
66
62
  const lro = createLroSpec({
67
63
  sendOperationFn,
68
64
  args: { scope, solutionResourceName, options },
69
- spec: createOperationSpec
65
+ spec: createOperationSpec,
70
66
  });
71
67
  const poller = yield createHttpPoller(lro, {
72
68
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
73
69
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
74
- resourceLocationConfig: "azure-async-operation"
70
+ resourceLocationConfig: "azure-async-operation",
75
71
  });
76
72
  yield poller.poll();
77
73
  return poller;
78
74
  });
79
75
  }
80
76
  /**
81
- * Creates a solution for the specific Azure resource or subscription using the triggering criteria
82
- * ‘solutionId and requiredInputs’ from discovery solutions.<br/> Solutions are a rich, insightful and
83
- * a centralized self help experience that brings all the relevant content to troubleshoot an Azure
84
- * issue into a unified experience. Solutions include the following components : Text, Diagnostics ,
85
- * Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with
86
- * capabilities to support new solutions types in the future. Each solution type may require one or
87
- * more ‘requiredParameters’ that are required to execute the individual solution component. In the
88
- * absence of the ‘requiredParameters’ it is likely that some of the solutions might fail execution,
89
- * and you might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from
90
- * Discovery solutions response must be passed via ‘parameters’ in the request body of Solutions API.
91
- * <br/>2. ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in
92
- * the request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
93
- * ‘properties.parameters’ in the request for Troubleshooters
94
- * @param scope This is an extension resource provider and only resource level extension is supported
95
- * at the moment.
77
+ * Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
78
+ * requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
79
+ * self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
80
+ * resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
81
+ * context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
82
+ * instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
83
+ * assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
84
+ * into unified solutions tailored to address a specific support problem area.
85
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
86
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
87
+ *
96
88
  * @param solutionResourceName Solution resource Name.
97
89
  * @param options The options parameters.
98
90
  */
@@ -104,8 +96,9 @@ export class SolutionImpl {
104
96
  }
105
97
  /**
106
98
  * Get the solution using the applicable solutionResourceName while creating the solution.
107
- * @param scope This is an extension resource provider and only resource level extension is supported
108
- * at the moment.
99
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
100
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
101
+ *
109
102
  * @param solutionResourceName Solution resource Name.
110
103
  * @param options The options parameters.
111
104
  */
@@ -114,8 +107,9 @@ export class SolutionImpl {
114
107
  }
115
108
  /**
116
109
  * Update the requiredInputs or additional information needed to execute the solution
117
- * @param scope This is an extension resource provider and only resource level extension is supported
118
- * at the moment.
110
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
111
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
112
+ *
119
113
  * @param solutionResourceName Solution resource Name.
120
114
  * @param options The options parameters.
121
115
  */
@@ -139,19 +133,19 @@ export class SolutionImpl {
139
133
  rawResponse: {
140
134
  statusCode: currentRawResponse.status,
141
135
  body: currentRawResponse.parsedBody,
142
- headers: currentRawResponse.headers.toJSON()
143
- }
136
+ headers: currentRawResponse.headers.toJSON(),
137
+ },
144
138
  };
145
139
  });
146
140
  const lro = createLroSpec({
147
141
  sendOperationFn,
148
142
  args: { scope, solutionResourceName, options },
149
- spec: updateOperationSpec
143
+ spec: updateOperationSpec,
150
144
  });
151
145
  const poller = yield createHttpPoller(lro, {
152
146
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
153
147
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
154
- resourceLocationConfig: "azure-async-operation"
148
+ resourceLocationConfig: "azure-async-operation",
155
149
  });
156
150
  yield poller.poll();
157
151
  return poller;
@@ -159,8 +153,9 @@ export class SolutionImpl {
159
153
  }
160
154
  /**
161
155
  * Update the requiredInputs or additional information needed to execute the solution
162
- * @param scope This is an extension resource provider and only resource level extension is supported
163
- * at the moment.
156
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
157
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
158
+ *
164
159
  * @param solutionResourceName Solution resource Name.
165
160
  * @param options The options parameters.
166
161
  */
@@ -170,6 +165,17 @@ export class SolutionImpl {
170
165
  return poller.pollUntilDone();
171
166
  });
172
167
  }
168
+ /**
169
+ * Warm up the solution resource by preloading asynchronous diagnostics results into cache
170
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
171
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
172
+ *
173
+ * @param solutionResourceName Solution resource Name.
174
+ * @param options The options parameters.
175
+ */
176
+ warmUp(scope, solutionResourceName, options) {
177
+ return this.client.sendOperationRequest({ scope, solutionResourceName, options }, warmUpOperationSpec);
178
+ }
173
179
  }
174
180
  // Operation Specifications
175
181
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -178,51 +184,51 @@ const createOperationSpec = {
178
184
  httpMethod: "PUT",
179
185
  responses: {
180
186
  200: {
181
- bodyMapper: Mappers.SolutionResource
187
+ bodyMapper: Mappers.SolutionResource,
182
188
  },
183
189
  201: {
184
- bodyMapper: Mappers.SolutionResource
190
+ bodyMapper: Mappers.SolutionResource,
185
191
  },
186
192
  202: {
187
- bodyMapper: Mappers.SolutionResource
193
+ bodyMapper: Mappers.SolutionResource,
188
194
  },
189
195
  204: {
190
- bodyMapper: Mappers.SolutionResource
196
+ bodyMapper: Mappers.SolutionResource,
191
197
  },
192
198
  default: {
193
- bodyMapper: Mappers.ErrorResponse
194
- }
199
+ bodyMapper: Mappers.ErrorResponse,
200
+ },
195
201
  },
196
202
  requestBody: Parameters.solutionRequestBody,
197
203
  queryParameters: [Parameters.apiVersion],
198
204
  urlParameters: [
199
205
  Parameters.$host,
200
206
  Parameters.scope,
201
- Parameters.solutionResourceName
207
+ Parameters.solutionResourceName,
202
208
  ],
203
209
  headerParameters: [Parameters.accept, Parameters.contentType],
204
210
  mediaType: "json",
205
- serializer
211
+ serializer,
206
212
  };
207
213
  const getOperationSpec = {
208
214
  path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
209
215
  httpMethod: "GET",
210
216
  responses: {
211
217
  200: {
212
- bodyMapper: Mappers.SolutionResource
218
+ bodyMapper: Mappers.SolutionResource,
213
219
  },
214
220
  default: {
215
- bodyMapper: Mappers.ErrorResponse
216
- }
221
+ bodyMapper: Mappers.ErrorResponse,
222
+ },
217
223
  },
218
224
  queryParameters: [Parameters.apiVersion],
219
225
  urlParameters: [
220
226
  Parameters.$host,
221
227
  Parameters.scope,
222
- Parameters.solutionResourceName
228
+ Parameters.solutionResourceName,
223
229
  ],
224
230
  headerParameters: [Parameters.accept],
225
- serializer
231
+ serializer,
226
232
  };
227
233
  const updateOperationSpec = {
228
234
  path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
@@ -230,33 +236,53 @@ const updateOperationSpec = {
230
236
  responses: {
231
237
  200: {
232
238
  bodyMapper: Mappers.SolutionResource,
233
- headersMapper: Mappers.SolutionUpdateHeaders
239
+ headersMapper: Mappers.SolutionUpdateHeaders,
234
240
  },
235
241
  201: {
236
242
  bodyMapper: Mappers.SolutionResource,
237
- headersMapper: Mappers.SolutionUpdateHeaders
243
+ headersMapper: Mappers.SolutionUpdateHeaders,
238
244
  },
239
245
  202: {
240
246
  bodyMapper: Mappers.SolutionResource,
241
- headersMapper: Mappers.SolutionUpdateHeaders
247
+ headersMapper: Mappers.SolutionUpdateHeaders,
242
248
  },
243
249
  204: {
244
250
  bodyMapper: Mappers.SolutionResource,
245
- headersMapper: Mappers.SolutionUpdateHeaders
251
+ headersMapper: Mappers.SolutionUpdateHeaders,
246
252
  },
247
253
  default: {
248
- bodyMapper: Mappers.ErrorResponse
249
- }
254
+ bodyMapper: Mappers.ErrorResponse,
255
+ },
250
256
  },
251
257
  requestBody: Parameters.solutionPatchRequestBody,
252
258
  queryParameters: [Parameters.apiVersion],
253
259
  urlParameters: [
254
260
  Parameters.$host,
255
261
  Parameters.scope,
256
- Parameters.solutionResourceName
262
+ Parameters.solutionResourceName,
263
+ ],
264
+ headerParameters: [Parameters.accept, Parameters.contentType],
265
+ mediaType: "json",
266
+ serializer,
267
+ };
268
+ const warmUpOperationSpec = {
269
+ path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}/warmup",
270
+ httpMethod: "POST",
271
+ responses: {
272
+ 204: {},
273
+ default: {
274
+ bodyMapper: Mappers.ErrorResponse,
275
+ },
276
+ },
277
+ requestBody: Parameters.solutionWarmUpRequestBody,
278
+ queryParameters: [Parameters.apiVersion],
279
+ urlParameters: [
280
+ Parameters.$host,
281
+ Parameters.scope,
282
+ Parameters.solutionResourceName,
257
283
  ],
258
284
  headerParameters: [Parameters.accept, Parameters.contentType],
259
285
  mediaType: "json",
260
- serializer
286
+ serializer,
261
287
  };
262
288
  //# sourceMappingURL=solution.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"solution.js","sourceRoot":"","sources":["../../../src/operations/solution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAU3C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;;;;;OAkBG;IACG,WAAW,CACf,KAAa,EACb,oBAA4B,EAC5B,OAAsC;;YAOtC,MAAM,mBAAmB,GAAG,CAC1B,IAAmC,EACnC,IAA8B,EACG,EAAE;gBACnC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACtD,CAAC,CAAA,CAAC;YACF,MAAM,eAAe,GAAG,CACtB,IAAmC,EACnC,IAA8B,EAC9B,EAAE;;gBACF,IAAI,kBAAkB,GAEN,SAAS,CAAC;gBAC1B,MAAM,gBAAgB,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC;gBAClD,MAAM,QAAQ,GAAmC,CAC/C,WAA6C,EAC7C,YAAqB,EACrB,EAAE;oBACF,kBAAkB,GAAG,WAAW,CAAC;oBACj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E,OAAO,CAAC,gBAAgB;YACpC,aAAa,EAAE,OAAO,CAAC,qBAAqB;SAC7C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;YACpC,aAAa,EAAE,OAAO,CAAC,qBAAqB;SAC7C;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;YACpC,aAAa,EAAE,OAAO,CAAC,qBAAqB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,wBAAwB;IAChD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,oBAAoB;KAChC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,2EAA2E;IACjF,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,yBAAyB;IACjD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,oBAAoB;KAChC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { SolutionSelfHelp } from "../operationsInterfaces";
2
+ import { HelpRP } from "../helpRP";
3
+ import { SolutionSelfHelpGetOptionalParams, SolutionSelfHelpGetResponse } from "../models";
4
+ /** Class containing SolutionSelfHelp operations. */
5
+ export declare class SolutionSelfHelpImpl implements SolutionSelfHelp {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class SolutionSelfHelp class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: HelpRP);
12
+ /**
13
+ * Gets Self Help Solutions for a given solutionId. Self Help Solutions consist of rich instructional
14
+ * video tutorials, links and guides to public documentation related to a specific problem that enables
15
+ * users to troubleshoot Azure issues.
16
+ * @param solutionId SolutionId is a unique id to identify a solution. You can retrieve the solution id
17
+ * using the Discovery api -
18
+ * https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
19
+ * @param options The options parameters.
20
+ */
21
+ get(solutionId: string, options?: SolutionSelfHelpGetOptionalParams): Promise<SolutionSelfHelpGetResponse>;
22
+ }
23
+ //# sourceMappingURL=solutionSelfHelp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solutionSelfHelp.d.ts","sourceRoot":"","sources":["../../../src/operations/solutionSelfHelp.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC5B,MAAM,WAAW,CAAC;AAEnB,oDAAoD;AACpD,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;OAQG;IACH,GAAG,CACD,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;CAMxC"}
@@ -0,0 +1,51 @@
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
+ import * as coreClient from "@azure/core-client";
9
+ import * as Mappers from "../models/mappers";
10
+ import * as Parameters from "../models/parameters";
11
+ /** Class containing SolutionSelfHelp operations. */
12
+ export class SolutionSelfHelpImpl {
13
+ /**
14
+ * Initialize a new instance of the class SolutionSelfHelp class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Gets Self Help Solutions for a given solutionId. Self Help Solutions consist of rich instructional
22
+ * video tutorials, links and guides to public documentation related to a specific problem that enables
23
+ * users to troubleshoot Azure issues.
24
+ * @param solutionId SolutionId is a unique id to identify a solution. You can retrieve the solution id
25
+ * using the Discovery api -
26
+ * https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
27
+ * @param options The options parameters.
28
+ */
29
+ get(solutionId, options) {
30
+ return this.client.sendOperationRequest({ solutionId, options }, getOperationSpec);
31
+ }
32
+ }
33
+ // Operation Specifications
34
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
35
+ const getOperationSpec = {
36
+ path: "/providers/Microsoft.Help/selfHelp/{solutionId}",
37
+ httpMethod: "GET",
38
+ responses: {
39
+ 200: {
40
+ bodyMapper: Mappers.SolutionResourceSelfHelp,
41
+ },
42
+ default: {
43
+ bodyMapper: Mappers.ErrorResponse,
44
+ },
45
+ },
46
+ queryParameters: [Parameters.apiVersion],
47
+ urlParameters: [Parameters.$host, Parameters.solutionId],
48
+ headerParameters: [Parameters.accept],
49
+ serializer,
50
+ };
51
+ //# sourceMappingURL=solutionSelfHelp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solutionSelfHelp.js","sourceRoot":"","sources":["../../../src/operations/solutionSelfHelp.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,UAAkB,EAClB,OAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,UAAU,EAAE,OAAO,EAAE,EACvB,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,iDAAiD;IACvD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IACxD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -11,17 +11,16 @@ export declare class TroubleshootersImpl implements Troubleshooters {
11
11
  constructor(client: HelpRP);
12
12
  /**
13
13
  * Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’
14
- * and ‘properties.parameters’ as the trigger. <br/> Troubleshooters are step-by-step interactive
15
- * guidance that scope the problem by collecting additional inputs from you in each stage while
16
- * troubleshooting an Azure issue. You will be guided down decision tree style workflow and the best
17
- * possible solution will be presented at the end of the workflow. <br/> Create API creates the
18
- * Troubleshooter API using ‘parameters’ and ‘solutionId’ <br/> After creating the Troubleshooter
19
- * instance, the following APIs can be used:<br/> CONTINUE API: to move to the next step in the flow
20
- * <br/>GET API: to identify the next step after executing the CONTINUE API. <br/><br/> <b>Note:</b>
21
- * ‘requiredParameters’ from solutions response must be passed via ‘properties. parameters’ in the
22
- * request body of Troubleshooters API.
23
- * @param scope This is an extension resource provider and only resource level extension is supported
24
- * at the moment.
14
+ * and ‘properties.parameters’ as the trigger. <br/> Azure Troubleshooters help with hard to classify
15
+ * issues, reducing the gap between customer observed problems and solutions by guiding the user
16
+ * effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area
17
+ * within Azure and has a complex tree-like structure that addresses many root causes. These flows are
18
+ * prepared with the help of Subject Matter experts and customer support engineers by carefully
19
+ * considering previous support requests raised by customers. Troubleshooters terminate at a well
20
+ * curated solution based off of resource backend signals and customer manual selections.
21
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
22
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
23
+ *
25
24
  * @param troubleshooterName Troubleshooter resource Name.
26
25
  * @param options The options parameters.
27
26
  */
@@ -31,8 +30,9 @@ export declare class TroubleshootersImpl implements Troubleshooters {
31
30
  * resource name that is being executed.<br/> Get API is used to retrieve the result of a
32
31
  * Troubleshooter instance, which includes the status and result of each step in the Troubleshooter
33
32
  * workflow. This API requires the Troubleshooter resource name that was created using the Create API.
34
- * @param scope This is an extension resource provider and only resource level extension is supported
35
- * at the moment.
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
+ *
36
36
  * @param troubleshooterName Troubleshooter resource Name.
37
37
  * @param options The options parameters.
38
38
  */
@@ -42,16 +42,18 @@ export declare class TroubleshootersImpl implements Troubleshooters {
42
42
  * respective troubleshooter resource name. <br/>Continue API is used to provide inputs that are
43
43
  * required for the specific troubleshooter to progress into the next step in the process. This API is
44
44
  * used after the Troubleshooter has been created using the Create API.
45
- * @param scope This is an extension resource provider and only resource level extension is supported
46
- * at the moment.
45
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
46
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
47
+ *
47
48
  * @param troubleshooterName Troubleshooter resource Name.
48
49
  * @param options The options parameters.
49
50
  */
50
51
  continue(scope: string, troubleshooterName: string, options?: TroubleshootersContinueOptionalParams): Promise<TroubleshootersContinueResponse>;
51
52
  /**
52
53
  * Ends the troubleshooter action
53
- * @param scope This is an extension resource provider and only resource level extension is supported
54
- * at the moment.
54
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
55
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
56
+ *
55
57
  * @param troubleshooterName Troubleshooter resource Name.
56
58
  * @param options The options parameters.
57
59
  */
@@ -60,8 +62,9 @@ export declare class TroubleshootersImpl implements Troubleshooters {
60
62
  * Restarts the troubleshooter API using applicable troubleshooter resource name as the input.<br/> It
61
63
  * returns new resource name which should be used in subsequent request. The old resource name is
62
64
  * obsolete after this API is invoked.
63
- * @param scope This is an extension resource provider and only resource level extension is supported
64
- * 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
+ *
65
68
  * @param troubleshooterName Troubleshooter resource Name.
66
69
  * @param options The options parameters.
67
70
  */
@@ -1 +1 @@
1
- {"version":3,"file":"troubleshooters.d.ts","sourceRoot":"","sources":["../../../src/operations/troubleshooters.ts"],"names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