@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 Diagnostics operations. */
15
15
  export class DiagnosticsImpl {
@@ -21,13 +21,12 @@ export class DiagnosticsImpl {
21
21
  this.client = client;
22
22
  }
23
23
  /**
24
- * Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery
25
- * solutions. <br/>Diagnostics tells you precisely the root cause of the issue and the steps to address
26
- * it. You can get diagnostics once you discover the relevant solution for your Azure issue. <br/><br/>
27
- * <b>Note: </b> requiredInputs’ from Discovery solutions response must be passed via
28
- * ‘additionalParameters’ as an input to Diagnostics API.
29
- * @param scope This is an extension resource provider and only resource level extension is supported
30
- * at the moment.
24
+ * Creates a diagnostic for the specific resource using solutionId from discovery solutions.
25
+ * <br/>Diagnostics are powerful solutions that access product resources or other relevant data and
26
+ * provide the root cause of the issue and the steps to address the issue.<br/><br/>
27
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
28
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
29
+ *
31
30
  * @param diagnosticsResourceName Unique resource name for insight resources
32
31
  * @param options The options parameters.
33
32
  */
@@ -51,32 +50,31 @@ export class DiagnosticsImpl {
51
50
  rawResponse: {
52
51
  statusCode: currentRawResponse.status,
53
52
  body: currentRawResponse.parsedBody,
54
- headers: currentRawResponse.headers.toJSON()
55
- }
53
+ headers: currentRawResponse.headers.toJSON(),
54
+ },
56
55
  };
57
56
  });
58
57
  const lro = createLroSpec({
59
58
  sendOperationFn,
60
59
  args: { scope, diagnosticsResourceName, options },
61
- spec: createOperationSpec
60
+ spec: createOperationSpec,
62
61
  });
63
62
  const poller = yield createHttpPoller(lro, {
64
63
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
65
64
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
66
- resourceLocationConfig: "azure-async-operation"
65
+ resourceLocationConfig: "azure-async-operation",
67
66
  });
68
67
  yield poller.poll();
69
68
  return poller;
70
69
  });
71
70
  }
72
71
  /**
73
- * Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery
74
- * solutions. <br/>Diagnostics tells you precisely the root cause of the issue and the steps to address
75
- * it. You can get diagnostics once you discover the relevant solution for your Azure issue. <br/><br/>
76
- * <b>Note: </b> requiredInputs’ from Discovery solutions response must be passed via
77
- * ‘additionalParameters’ as an input to Diagnostics API.
78
- * @param scope This is an extension resource provider and only resource level extension is supported
79
- * at the moment.
72
+ * Creates a diagnostic for the specific resource using solutionId from discovery solutions.
73
+ * <br/>Diagnostics are powerful solutions that access product resources or other relevant data and
74
+ * provide the root cause of the issue and the steps to address the issue.<br/><br/>
75
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
76
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
77
+ *
80
78
  * @param diagnosticsResourceName Unique resource name for insight resources
81
79
  * @param options The options parameters.
82
80
  */
@@ -88,8 +86,9 @@ export class DiagnosticsImpl {
88
86
  }
89
87
  /**
90
88
  * Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
91
- * @param scope This is an extension resource provider and only resource level extension is supported
92
- * at the moment.
89
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
90
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
91
+ *
93
92
  * @param diagnosticsResourceName Unique resource name for insight resources
94
93
  * @param options The options parameters.
95
94
  */
@@ -104,50 +103,50 @@ const createOperationSpec = {
104
103
  httpMethod: "PUT",
105
104
  responses: {
106
105
  200: {
107
- bodyMapper: Mappers.DiagnosticResource
106
+ bodyMapper: Mappers.DiagnosticResource,
108
107
  },
109
108
  201: {
110
- bodyMapper: Mappers.DiagnosticResource
109
+ bodyMapper: Mappers.DiagnosticResource,
111
110
  },
112
111
  202: {
113
- bodyMapper: Mappers.DiagnosticResource
112
+ bodyMapper: Mappers.DiagnosticResource,
114
113
  },
115
114
  204: {
116
- bodyMapper: Mappers.DiagnosticResource
115
+ bodyMapper: Mappers.DiagnosticResource,
117
116
  },
118
117
  default: {
119
- bodyMapper: Mappers.ErrorResponse
120
- }
118
+ bodyMapper: Mappers.ErrorResponse,
119
+ },
121
120
  },
122
121
  requestBody: Parameters.diagnosticResourceRequest,
123
122
  queryParameters: [Parameters.apiVersion],
124
123
  urlParameters: [
125
124
  Parameters.$host,
126
125
  Parameters.scope,
127
- Parameters.diagnosticsResourceName
126
+ Parameters.diagnosticsResourceName,
128
127
  ],
129
128
  headerParameters: [Parameters.accept, Parameters.contentType],
130
129
  mediaType: "json",
131
- serializer
130
+ serializer,
132
131
  };
133
132
  const getOperationSpec = {
134
133
  path: "/{scope}/providers/Microsoft.Help/diagnostics/{diagnosticsResourceName}",
135
134
  httpMethod: "GET",
136
135
  responses: {
137
136
  200: {
138
- bodyMapper: Mappers.DiagnosticResource
137
+ bodyMapper: Mappers.DiagnosticResource,
139
138
  },
140
139
  default: {
141
- bodyMapper: Mappers.ErrorResponse
142
- }
140
+ bodyMapper: Mappers.ErrorResponse,
141
+ },
143
142
  },
144
143
  queryParameters: [Parameters.apiVersion],
145
144
  urlParameters: [
146
145
  Parameters.$host,
147
146
  Parameters.scope,
148
- Parameters.diagnosticsResourceName
147
+ Parameters.diagnosticsResourceName,
149
148
  ],
150
149
  headerParameters: [Parameters.accept],
151
- serializer
150
+ serializer,
152
151
  };
153
152
  //# sourceMappingURL=diagnostics.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../../src/operations/diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB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,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,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,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,yEAAyE;IAC3E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
1
+ {"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../../src/operations/diagnostics.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,C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C,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,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,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,yEAAyE;IAC/E,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -11,43 +11,35 @@ export declare class DiscoverySolutionImpl implements DiscoverySolution {
11
11
  */
12
12
  constructor(client: HelpRP);
13
13
  /**
14
- * Lists the relevant Azure diagnostics and solutions using [problemClassification
14
+ * Lists the relevant Azure Diagnostics, Solutions and Troubleshooters using [problemClassification
15
15
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
16
16
  * resourceUri or resourceType.<br/> Discovery Solutions is the initial entry point within Help API,
17
- * which identifies relevant Azure diagnostics and solutions. We will do our best to return the most
18
- * effective solutions based on the type of inputs, in the request URL <br/><br/> Mandatory input :
17
+ * which identifies relevant Azure diagnostics and solutions. <br/><br/> Required Input :
19
18
  * problemClassificationId (Use the [problemClassification
20
19
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
21
20
  * <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
22
21
  * Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
23
22
  * and Solutions API.
24
- * @param scope This is an extension resource provider and only resource level extension is supported
25
- * at the moment.
26
23
  * @param options The options parameters.
27
24
  */
28
- list(scope: string, options?: DiscoverySolutionListOptionalParams): PagedAsyncIterableIterator<SolutionMetadataResource>;
25
+ list(options?: DiscoverySolutionListOptionalParams): PagedAsyncIterableIterator<SolutionMetadataResource>;
29
26
  private listPagingPage;
30
27
  private listPagingAll;
31
28
  /**
32
- * Lists the relevant Azure diagnostics and solutions using [problemClassification
29
+ * Lists the relevant Azure Diagnostics, Solutions and Troubleshooters using [problemClassification
33
30
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
34
31
  * resourceUri or resourceType.<br/> Discovery Solutions is the initial entry point within Help API,
35
- * which identifies relevant Azure diagnostics and solutions. We will do our best to return the most
36
- * effective solutions based on the type of inputs, in the request URL <br/><br/> Mandatory input :
32
+ * which identifies relevant Azure diagnostics and solutions. <br/><br/> Required Input :
37
33
  * problemClassificationId (Use the [problemClassification
38
34
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
39
35
  * <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
40
36
  * Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
41
37
  * and Solutions API.
42
- * @param scope This is an extension resource provider and only resource level extension is supported
43
- * at the moment.
44
38
  * @param options The options parameters.
45
39
  */
46
40
  private _list;
47
41
  /**
48
42
  * ListNext
49
- * @param scope This is an extension resource provider and only resource level extension is supported
50
- * at the moment.
51
43
  * @param nextLink The nextLink from the previous successful call to the List method.
52
44
  * @param options The options parameters.
53
45
  */
@@ -1 +1 @@
1
- {"version":3,"file":"discoverySolution.d.ts","sourceRoot":"","sources":["../../../src/operations/discoverySolution.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,wBAAwB,EAExB,mCAAmC,EAGpC,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;;;;OAcG;IACI,IAAI,CACT,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,wBAAwB,CAAC;YAkBxC,cAAc;YAuBd,aAAa;IAS5B;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,KAAK;IAUb;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;CAUlB"}
1
+ {"version":3,"file":"discoverySolution.d.ts","sourceRoot":"","sources":["../../../src/operations/discoverySolution.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,wBAAwB,EAExB,mCAAmC,EAGpC,MAAM,WAAW,CAAC;AAGnB,qDAAqD;AACrD,qBAAa,qBAAsB,YAAW,iBAAiB;IAC7D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;OAWG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,wBAAwB,CAAC;YAkBxC,cAAc;YAsBd,aAAa;IAQ5B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -21,22 +21,19 @@ export class DiscoverySolutionImpl {
21
21
  this.client = client;
22
22
  }
23
23
  /**
24
- * Lists the relevant Azure diagnostics and solutions using [problemClassification
24
+ * Lists the relevant Azure Diagnostics, Solutions and Troubleshooters using [problemClassification
25
25
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
26
26
  * resourceUri or resourceType.<br/> Discovery Solutions is the initial entry point within Help API,
27
- * which identifies relevant Azure diagnostics and solutions. We will do our best to return the most
28
- * effective solutions based on the type of inputs, in the request URL <br/><br/> Mandatory input :
27
+ * which identifies relevant Azure diagnostics and solutions. <br/><br/> Required Input :
29
28
  * problemClassificationId (Use the [problemClassification
30
29
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
31
30
  * <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
32
31
  * Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
33
32
  * and Solutions API.
34
- * @param scope This is an extension resource provider and only resource level extension is supported
35
- * at the moment.
36
33
  * @param options The options parameters.
37
34
  */
38
- list(scope, options) {
39
- const iter = this.listPagingAll(scope, options);
35
+ list(options) {
36
+ const iter = this.listPagingAll(options);
40
37
  return {
41
38
  next() {
42
39
  return iter.next();
@@ -48,23 +45,23 @@ export class DiscoverySolutionImpl {
48
45
  if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
49
46
  throw new Error("maxPageSize is not supported by this operation.");
50
47
  }
51
- return this.listPagingPage(scope, options, settings);
52
- }
48
+ return this.listPagingPage(options, settings);
49
+ },
53
50
  };
54
51
  }
55
- listPagingPage(scope, options, settings) {
52
+ listPagingPage(options, settings) {
56
53
  return __asyncGenerator(this, arguments, function* listPagingPage_1() {
57
54
  let result;
58
55
  let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
59
56
  if (!continuationToken) {
60
- result = yield __await(this._list(scope, options));
57
+ result = yield __await(this._list(options));
61
58
  let page = result.value || [];
62
59
  continuationToken = result.nextLink;
63
60
  setContinuationToken(page, continuationToken);
64
61
  yield yield __await(page);
65
62
  }
66
63
  while (continuationToken) {
67
- result = yield __await(this._listNext(scope, continuationToken, options));
64
+ result = yield __await(this._listNext(continuationToken, options));
68
65
  continuationToken = result.nextLink;
69
66
  let page = result.value || [];
70
67
  setContinuationToken(page, continuationToken);
@@ -72,11 +69,11 @@ export class DiscoverySolutionImpl {
72
69
  }
73
70
  });
74
71
  }
75
- listPagingAll(scope, options) {
72
+ listPagingAll(options) {
76
73
  return __asyncGenerator(this, arguments, function* listPagingAll_1() {
77
74
  var _a, e_1, _b, _c;
78
75
  try {
79
- for (var _d = true, _e = __asyncValues(this.listPagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
76
+ for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
80
77
  _c = _f.value;
81
78
  _d = false;
82
79
  const page = _c;
@@ -93,69 +90,64 @@ export class DiscoverySolutionImpl {
93
90
  });
94
91
  }
95
92
  /**
96
- * Lists the relevant Azure diagnostics and solutions using [problemClassification
93
+ * Lists the relevant Azure Diagnostics, Solutions and Troubleshooters using [problemClassification
97
94
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
98
95
  * resourceUri or resourceType.<br/> Discovery Solutions is the initial entry point within Help API,
99
- * which identifies relevant Azure diagnostics and solutions. We will do our best to return the most
100
- * effective solutions based on the type of inputs, in the request URL <br/><br/> Mandatory input :
96
+ * which identifies relevant Azure diagnostics and solutions. <br/><br/> Required Input :
101
97
  * problemClassificationId (Use the [problemClassification
102
98
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
103
99
  * <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
104
100
  * Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
105
101
  * and Solutions API.
106
- * @param scope This is an extension resource provider and only resource level extension is supported
107
- * at the moment.
108
102
  * @param options The options parameters.
109
103
  */
110
- _list(scope, options) {
111
- return this.client.sendOperationRequest({ scope, options }, listOperationSpec);
104
+ _list(options) {
105
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
112
106
  }
113
107
  /**
114
108
  * ListNext
115
- * @param scope This is an extension resource provider and only resource level extension is supported
116
- * at the moment.
117
109
  * @param nextLink The nextLink from the previous successful call to the List method.
118
110
  * @param options The options parameters.
119
111
  */
120
- _listNext(scope, nextLink, options) {
121
- return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec);
112
+ _listNext(nextLink, options) {
113
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
122
114
  }
123
115
  }
124
116
  // Operation Specifications
125
117
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
126
118
  const listOperationSpec = {
127
- path: "/{scope}/providers/Microsoft.Help/discoverySolutions",
119
+ path: "/providers/Microsoft.Help/discoverySolutions",
128
120
  httpMethod: "GET",
129
121
  responses: {
130
122
  200: {
131
- bodyMapper: Mappers.DiscoveryResponse
123
+ bodyMapper: Mappers.DiscoveryResponse,
132
124
  },
133
125
  default: {
134
- bodyMapper: Mappers.ErrorResponse
135
- }
126
+ bodyMapper: Mappers.ErrorResponse,
127
+ },
136
128
  },
137
129
  queryParameters: [
138
130
  Parameters.apiVersion,
139
131
  Parameters.filter,
140
- Parameters.skiptoken
132
+ Parameters.skiptoken,
141
133
  ],
142
- urlParameters: [Parameters.$host, Parameters.scope],
134
+ urlParameters: [Parameters.$host],
143
135
  headerParameters: [Parameters.accept],
144
- serializer
136
+ serializer,
145
137
  };
146
138
  const listNextOperationSpec = {
147
139
  path: "{nextLink}",
148
140
  httpMethod: "GET",
149
141
  responses: {
150
142
  200: {
151
- bodyMapper: Mappers.DiscoveryResponse
143
+ bodyMapper: Mappers.DiscoveryResponse,
152
144
  },
153
145
  default: {
154
- bodyMapper: Mappers.ErrorResponse
155
- }
146
+ bodyMapper: Mappers.ErrorResponse,
147
+ },
156
148
  },
157
- urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],
149
+ urlParameters: [Parameters.$host, Parameters.nextLink],
158
150
  headerParameters: [Parameters.accept],
159
- serializer
151
+ serializer,
160
152
  };
161
153
  //# sourceMappingURL=discoverySolution.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"discoverySolution.js","sourceRoot":"","sources":["../../../src/operations/discoverySolution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACI,IAAI,CACT,KAAa,EACb,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAChD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD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6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
1
+ {"version":3,"file":"discoverySolution.js","sourceRoot":"","sources":["../../../src/operations/discoverySolution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAUnD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;OAWG;IACI,IAAI,CACT,OAA6C;QAE7C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,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@@ -0,0 +1,19 @@
1
+ import { DiscoverySolutionNLPSubscriptionScope } from "../operationsInterfaces";
2
+ import { HelpRP } from "../helpRP";
3
+ import { DiscoverySolutionNLPSubscriptionScopePostOptionalParams, DiscoverySolutionNLPSubscriptionScopePostResponse } from "../models";
4
+ /** Class containing DiscoverySolutionNLPSubscriptionScope operations. */
5
+ export declare class DiscoverySolutionNLPSubscriptionScopeImpl implements DiscoverySolutionNLPSubscriptionScope {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class DiscoverySolutionNLPSubscriptionScope class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: HelpRP);
12
+ /**
13
+ * Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
14
+ * summary and subscription.
15
+ * @param options The options parameters.
16
+ */
17
+ post(options?: DiscoverySolutionNLPSubscriptionScopePostOptionalParams): Promise<DiscoverySolutionNLPSubscriptionScopePostResponse>;
18
+ }
19
+ //# sourceMappingURL=discoverySolutionNLPSubscriptionScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discoverySolutionNLPSubscriptionScope.d.ts","sourceRoot":"","sources":["../../../src/operations/discoverySolutionNLPSubscriptionScope.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qCAAqC,EAAE,MAAM,yBAAyB,CAAC;AAIhF,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,uDAAuD,EACvD,iDAAiD,EAClD,MAAM,WAAW,CAAC;AAEnB,yEAAyE;AACzE,qBAAa,yCACX,YAAW,qCAAqC;IAEhD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,uDAAuD,GAChE,OAAO,CAAC,iDAAiD,CAAC;CAG9D"}
@@ -0,0 +1,49 @@
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 DiscoverySolutionNLPSubscriptionScope operations. */
12
+ export class DiscoverySolutionNLPSubscriptionScopeImpl {
13
+ /**
14
+ * Initialize a new instance of the class DiscoverySolutionNLPSubscriptionScope class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
22
+ * summary and subscription.
23
+ * @param options The options parameters.
24
+ */
25
+ post(options) {
26
+ return this.client.sendOperationRequest({ options }, postOperationSpec);
27
+ }
28
+ }
29
+ // Operation Specifications
30
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
31
+ const postOperationSpec = {
32
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Help/discoverSolutions",
33
+ httpMethod: "POST",
34
+ responses: {
35
+ 200: {
36
+ bodyMapper: Mappers.DiscoveryNlpResponse,
37
+ },
38
+ default: {
39
+ bodyMapper: Mappers.ErrorResponse,
40
+ },
41
+ },
42
+ requestBody: Parameters.discoverSolutionRequest,
43
+ queryParameters: [Parameters.apiVersion],
44
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
45
+ headerParameters: [Parameters.accept, Parameters.contentType],
46
+ mediaType: "json",
47
+ serializer,
48
+ };
49
+ //# sourceMappingURL=discoverySolutionNLPSubscriptionScope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discoverySolutionNLPSubscriptionScope.js","sourceRoot":"","sources":["../../../src/operations/discoverySolutionNLPSubscriptionScope.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,yEAAyE;AACzE,MAAM,OAAO,yCAAyC;IAKpD;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,OAAiE;QAEjE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,4EAA4E;IAClF,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,uBAAuB;IAC/C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { DiscoverySolutionNLPTenantScope } from "../operationsInterfaces";
2
+ import { HelpRP } from "../helpRP";
3
+ import { DiscoverySolutionNLPTenantScopePostOptionalParams, DiscoverySolutionNLPTenantScopePostResponse } from "../models";
4
+ /** Class containing DiscoverySolutionNLPTenantScope operations. */
5
+ export declare class DiscoverySolutionNLPTenantScopeImpl implements DiscoverySolutionNLPTenantScope {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class DiscoverySolutionNLPTenantScope class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: HelpRP);
12
+ /**
13
+ * Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
14
+ * summary.
15
+ * @param options The options parameters.
16
+ */
17
+ post(options?: DiscoverySolutionNLPTenantScopePostOptionalParams): Promise<DiscoverySolutionNLPTenantScopePostResponse>;
18
+ }
19
+ //# sourceMappingURL=discoverySolutionNLPTenantScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discoverySolutionNLPTenantScope.d.ts","sourceRoot":"","sources":["../../../src/operations/discoverySolutionNLPTenantScope.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,+BAA+B,EAAE,MAAM,yBAAyB,CAAC;AAI1E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,iDAAiD,EACjD,2CAA2C,EAC5C,MAAM,WAAW,CAAC;AAEnB,mEAAmE;AACnE,qBAAa,mCACX,YAAW,+BAA+B;IAE1C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;OAIG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,iDAAiD,GAC1D,OAAO,CAAC,2CAA2C,CAAC;CAGxD"}
@@ -0,0 +1,49 @@
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 DiscoverySolutionNLPTenantScope operations. */
12
+ export class DiscoverySolutionNLPTenantScopeImpl {
13
+ /**
14
+ * Initialize a new instance of the class DiscoverySolutionNLPTenantScope class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
22
+ * summary.
23
+ * @param options The options parameters.
24
+ */
25
+ post(options) {
26
+ return this.client.sendOperationRequest({ options }, postOperationSpec);
27
+ }
28
+ }
29
+ // Operation Specifications
30
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
31
+ const postOperationSpec = {
32
+ path: "/providers/Microsoft.Help/discoverSolutions",
33
+ httpMethod: "POST",
34
+ responses: {
35
+ 200: {
36
+ bodyMapper: Mappers.DiscoveryNlpResponse,
37
+ },
38
+ default: {
39
+ bodyMapper: Mappers.ErrorResponse,
40
+ },
41
+ },
42
+ requestBody: Parameters.discoverSolutionRequest,
43
+ queryParameters: [Parameters.apiVersion],
44
+ urlParameters: [Parameters.$host],
45
+ headerParameters: [Parameters.accept, Parameters.contentType],
46
+ mediaType: "json",
47
+ serializer,
48
+ };
49
+ //# sourceMappingURL=discoverySolutionNLPTenantScope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discoverySolutionNLPTenantScope.js","sourceRoot":"","sources":["../../../src/operations/discoverySolutionNLPTenantScope.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,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAK9C;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,OAA2D;QAE3D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,6CAA6C;IACnD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,uBAAuB;IAC/C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
@@ -3,5 +3,9 @@ export * from "./checkNameAvailability";
3
3
  export * from "./diagnostics";
4
4
  export * from "./discoverySolution";
5
5
  export * from "./solution";
6
+ export * from "./simplifiedSolutions";
6
7
  export * from "./troubleshooters";
8
+ export * from "./solutionSelfHelp";
9
+ export * from "./discoverySolutionNLPTenantScope";
10
+ export * from "./discoverySolutionNLPSubscriptionScope";
7
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC"}
@@ -10,5 +10,9 @@ export * from "./checkNameAvailability";
10
10
  export * from "./diagnostics";
11
11
  export * from "./discoverySolution";
12
12
  export * from "./solution";
13
+ export * from "./simplifiedSolutions";
13
14
  export * from "./troubleshooters";
15
+ export * from "./solutionSelfHelp";
16
+ export * from "./discoverySolutionNLPTenantScope";
17
+ export * from "./discoverySolutionNLPSubscriptionScope";
14
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC"}