@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
@@ -21,7 +21,7 @@ import {
21
21
  TroubleshootersEndOptionalParams,
22
22
  TroubleshootersEndResponse,
23
23
  TroubleshootersRestartOptionalParams,
24
- TroubleshootersRestartResponse
24
+ TroubleshootersRestartResponse,
25
25
  } from "../models";
26
26
 
27
27
  /** Class containing Troubleshooters operations. */
@@ -38,28 +38,27 @@ export class TroubleshootersImpl implements Troubleshooters {
38
38
 
39
39
  /**
40
40
  * Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’
41
- * and ‘properties.parameters’ as the trigger. <br/> Troubleshooters are step-by-step interactive
42
- * guidance that scope the problem by collecting additional inputs from you in each stage while
43
- * troubleshooting an Azure issue. You will be guided down decision tree style workflow and the best
44
- * possible solution will be presented at the end of the workflow. <br/> Create API creates the
45
- * Troubleshooter API using ‘parameters’ and ‘solutionId’ <br/> After creating the Troubleshooter
46
- * instance, the following APIs can be used:<br/> CONTINUE API: to move to the next step in the flow
47
- * <br/>GET API: to identify the next step after executing the CONTINUE API. <br/><br/> <b>Note:</b>
48
- * ‘requiredParameters’ from solutions response must be passed via ‘properties. parameters’ in the
49
- * request body of Troubleshooters API.
50
- * @param scope This is an extension resource provider and only resource level extension is supported
51
- * at the moment.
41
+ * and ‘properties.parameters’ as the trigger. <br/> Azure Troubleshooters help with hard to classify
42
+ * issues, reducing the gap between customer observed problems and solutions by guiding the user
43
+ * effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area
44
+ * within Azure and has a complex tree-like structure that addresses many root causes. These flows are
45
+ * prepared with the help of Subject Matter experts and customer support engineers by carefully
46
+ * considering previous support requests raised by customers. Troubleshooters terminate at a well
47
+ * curated solution based off of resource backend signals and customer manual selections.
48
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
49
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
50
+ *
52
51
  * @param troubleshooterName Troubleshooter resource Name.
53
52
  * @param options The options parameters.
54
53
  */
55
54
  create(
56
55
  scope: string,
57
56
  troubleshooterName: string,
58
- options?: TroubleshootersCreateOptionalParams
57
+ options?: TroubleshootersCreateOptionalParams,
59
58
  ): Promise<TroubleshootersCreateResponse> {
60
59
  return this.client.sendOperationRequest(
61
60
  { scope, troubleshooterName, options },
62
- createOperationSpec
61
+ createOperationSpec,
63
62
  );
64
63
  }
65
64
 
@@ -68,19 +67,20 @@ export class TroubleshootersImpl implements Troubleshooters {
68
67
  * resource name that is being executed.<br/> Get API is used to retrieve the result of a
69
68
  * Troubleshooter instance, which includes the status and result of each step in the Troubleshooter
70
69
  * workflow. This API requires the Troubleshooter resource name that was created using the Create API.
71
- * @param scope This is an extension resource provider and only resource level extension is supported
72
- * at the moment.
70
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
71
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
72
+ *
73
73
  * @param troubleshooterName Troubleshooter resource Name.
74
74
  * @param options The options parameters.
75
75
  */
76
76
  get(
77
77
  scope: string,
78
78
  troubleshooterName: string,
79
- options?: TroubleshootersGetOptionalParams
79
+ options?: TroubleshootersGetOptionalParams,
80
80
  ): Promise<TroubleshootersGetResponse> {
81
81
  return this.client.sendOperationRequest(
82
82
  { scope, troubleshooterName, options },
83
- getOperationSpec
83
+ getOperationSpec,
84
84
  );
85
85
  }
86
86
 
@@ -89,37 +89,39 @@ export class TroubleshootersImpl implements Troubleshooters {
89
89
  * respective troubleshooter resource name. <br/>Continue API is used to provide inputs that are
90
90
  * required for the specific troubleshooter to progress into the next step in the process. This API is
91
91
  * used after the Troubleshooter has been created using the Create API.
92
- * @param scope This is an extension resource provider and only resource level extension is supported
93
- * at the moment.
92
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
93
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
94
+ *
94
95
  * @param troubleshooterName Troubleshooter resource Name.
95
96
  * @param options The options parameters.
96
97
  */
97
98
  continue(
98
99
  scope: string,
99
100
  troubleshooterName: string,
100
- options?: TroubleshootersContinueOptionalParams
101
+ options?: TroubleshootersContinueOptionalParams,
101
102
  ): Promise<TroubleshootersContinueResponse> {
102
103
  return this.client.sendOperationRequest(
103
104
  { scope, troubleshooterName, options },
104
- continueOperationSpec
105
+ continueOperationSpec,
105
106
  );
106
107
  }
107
108
 
108
109
  /**
109
110
  * Ends the troubleshooter action
110
- * @param scope This is an extension resource provider and only resource level extension is supported
111
- * at the moment.
111
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
112
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
113
+ *
112
114
  * @param troubleshooterName Troubleshooter resource Name.
113
115
  * @param options The options parameters.
114
116
  */
115
117
  end(
116
118
  scope: string,
117
119
  troubleshooterName: string,
118
- options?: TroubleshootersEndOptionalParams
120
+ options?: TroubleshootersEndOptionalParams,
119
121
  ): Promise<TroubleshootersEndResponse> {
120
122
  return this.client.sendOperationRequest(
121
123
  { scope, troubleshooterName, options },
122
- endOperationSpec
124
+ endOperationSpec,
123
125
  );
124
126
  }
125
127
 
@@ -127,19 +129,20 @@ export class TroubleshootersImpl implements Troubleshooters {
127
129
  * Restarts the troubleshooter API using applicable troubleshooter resource name as the input.<br/> It
128
130
  * returns new resource name which should be used in subsequent request. The old resource name is
129
131
  * obsolete after this API is invoked.
130
- * @param scope This is an extension resource provider and only resource level extension is supported
131
- * at the moment.
132
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
133
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
134
+ *
132
135
  * @param troubleshooterName Troubleshooter resource Name.
133
136
  * @param options The options parameters.
134
137
  */
135
138
  restart(
136
139
  scope: string,
137
140
  troubleshooterName: string,
138
- options?: TroubleshootersRestartOptionalParams
141
+ options?: TroubleshootersRestartOptionalParams,
139
142
  ): Promise<TroubleshootersRestartResponse> {
140
143
  return this.client.sendOperationRequest(
141
144
  { scope, troubleshooterName, options },
142
- restartOperationSpec
145
+ restartOperationSpec,
143
146
  );
144
147
  }
145
148
  }
@@ -147,115 +150,110 @@ export class TroubleshootersImpl implements Troubleshooters {
147
150
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
148
151
 
149
152
  const createOperationSpec: coreClient.OperationSpec = {
150
- path:
151
- "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
153
+ path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
152
154
  httpMethod: "PUT",
153
155
  responses: {
154
156
  200: {
155
- bodyMapper: Mappers.TroubleshooterResource
157
+ bodyMapper: Mappers.TroubleshooterResource,
156
158
  },
157
159
  201: {
158
- bodyMapper: Mappers.TroubleshooterResource
160
+ bodyMapper: Mappers.TroubleshooterResource,
159
161
  },
160
162
  default: {
161
- bodyMapper: Mappers.ErrorResponse
162
- }
163
+ bodyMapper: Mappers.ErrorResponse,
164
+ },
163
165
  },
164
166
  requestBody: Parameters.createTroubleshooterRequestBody,
165
167
  queryParameters: [Parameters.apiVersion],
166
168
  urlParameters: [
167
169
  Parameters.$host,
168
170
  Parameters.scope,
169
- Parameters.troubleshooterName
171
+ Parameters.troubleshooterName,
170
172
  ],
171
173
  headerParameters: [Parameters.accept, Parameters.contentType],
172
174
  mediaType: "json",
173
- serializer
175
+ serializer,
174
176
  };
175
177
  const getOperationSpec: coreClient.OperationSpec = {
176
- path:
177
- "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
178
+ path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
178
179
  httpMethod: "GET",
179
180
  responses: {
180
181
  200: {
181
- bodyMapper: Mappers.TroubleshooterResource
182
+ bodyMapper: Mappers.TroubleshooterResource,
182
183
  },
183
184
  default: {
184
- bodyMapper: Mappers.ErrorResponse
185
- }
185
+ bodyMapper: Mappers.ErrorResponse,
186
+ },
186
187
  },
187
188
  queryParameters: [Parameters.apiVersion],
188
189
  urlParameters: [
189
190
  Parameters.$host,
190
191
  Parameters.scope,
191
- Parameters.troubleshooterName
192
+ Parameters.troubleshooterName,
192
193
  ],
193
194
  headerParameters: [Parameters.accept],
194
- serializer
195
+ serializer,
195
196
  };
196
197
  const continueOperationSpec: coreClient.OperationSpec = {
197
- path:
198
- "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/continue",
198
+ path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/continue",
199
199
  httpMethod: "POST",
200
200
  responses: {
201
201
  204: {
202
- headersMapper: Mappers.TroubleshootersContinueHeaders
202
+ headersMapper: Mappers.TroubleshootersContinueHeaders,
203
203
  },
204
204
  default: {
205
- bodyMapper: Mappers.ErrorResponse
206
- }
205
+ bodyMapper: Mappers.ErrorResponse,
206
+ },
207
207
  },
208
208
  requestBody: Parameters.continueRequestBody,
209
209
  queryParameters: [Parameters.apiVersion],
210
210
  urlParameters: [
211
211
  Parameters.$host,
212
212
  Parameters.scope,
213
- Parameters.troubleshooterName
213
+ Parameters.troubleshooterName,
214
214
  ],
215
215
  headerParameters: [Parameters.accept, Parameters.contentType],
216
216
  mediaType: "json",
217
- serializer
217
+ serializer,
218
218
  };
219
219
  const endOperationSpec: coreClient.OperationSpec = {
220
- path:
221
- "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/end",
220
+ path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/end",
222
221
  httpMethod: "POST",
223
222
  responses: {
224
223
  204: {
225
- headersMapper: Mappers.TroubleshootersEndHeaders
224
+ headersMapper: Mappers.TroubleshootersEndHeaders,
226
225
  },
227
226
  default: {
228
- bodyMapper: Mappers.ErrorResponse
229
- }
227
+ bodyMapper: Mappers.ErrorResponse,
228
+ },
230
229
  },
231
230
  queryParameters: [Parameters.apiVersion],
232
231
  urlParameters: [
233
232
  Parameters.$host,
234
233
  Parameters.scope,
235
- Parameters.troubleshooterName
234
+ Parameters.troubleshooterName,
236
235
  ],
237
236
  headerParameters: [Parameters.accept],
238
- serializer
237
+ serializer,
239
238
  };
240
239
  const restartOperationSpec: coreClient.OperationSpec = {
241
- path:
242
- "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/restart",
240
+ path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/restart",
243
241
  httpMethod: "POST",
244
242
  responses: {
245
243
  200: {
246
244
  bodyMapper: Mappers.RestartTroubleshooterResponse,
247
- headersMapper: Mappers.TroubleshootersRestartHeaders
245
+ headersMapper: Mappers.TroubleshootersRestartHeaders,
248
246
  },
249
247
  default: {
250
- bodyMapper: Mappers.ErrorResponse
251
- }
248
+ bodyMapper: Mappers.ErrorResponse,
249
+ },
252
250
  },
253
251
  queryParameters: [Parameters.apiVersion],
254
252
  urlParameters: [
255
253
  Parameters.$host,
256
254
  Parameters.scope,
257
- Parameters.troubleshooterName
255
+ Parameters.troubleshooterName,
258
256
  ],
259
257
  headerParameters: [Parameters.accept],
260
- serializer
258
+ serializer,
261
259
  };
@@ -8,7 +8,7 @@
8
8
 
9
9
  import {
10
10
  CheckNameAvailabilityPostOptionalParams,
11
- CheckNameAvailabilityPostResponse
11
+ CheckNameAvailabilityPostResponse,
12
12
  } from "../models";
13
13
 
14
14
  /** Interface representing a CheckNameAvailability. */
@@ -16,12 +16,13 @@ export interface CheckNameAvailability {
16
16
  /**
17
17
  * This API is used to check the uniqueness of a resource name used for a diagnostic, troubleshooter or
18
18
  * solutions
19
- * @param scope This is an extension resource provider and only resource level extension is supported
20
- * at the moment.
19
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
20
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
21
+ *
21
22
  * @param options The options parameters.
22
23
  */
23
24
  post(
24
25
  scope: string,
25
- options?: CheckNameAvailabilityPostOptionalParams
26
+ options?: CheckNameAvailabilityPostOptionalParams,
26
27
  ): Promise<CheckNameAvailabilityPostResponse>;
27
28
  }
@@ -11,26 +11,25 @@ import {
11
11
  DiagnosticsCreateOptionalParams,
12
12
  DiagnosticsCreateResponse,
13
13
  DiagnosticsGetOptionalParams,
14
- DiagnosticsGetResponse
14
+ DiagnosticsGetResponse,
15
15
  } from "../models";
16
16
 
17
17
  /** Interface representing a Diagnostics. */
18
18
  export interface Diagnostics {
19
19
  /**
20
- * Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery
21
- * solutions. <br/>Diagnostics tells you precisely the root cause of the issue and the steps to address
22
- * it. You can get diagnostics once you discover the relevant solution for your Azure issue. <br/><br/>
23
- * <b>Note: </b> requiredInputs’ from Discovery solutions response must be passed via
24
- * ‘additionalParameters’ as an input to Diagnostics API.
25
- * @param scope This is an extension resource provider and only resource level extension is supported
26
- * at the moment.
20
+ * Creates a diagnostic for the specific resource using solutionId from discovery solutions.
21
+ * <br/>Diagnostics are powerful solutions that access product resources or other relevant data and
22
+ * provide the root cause of the issue and the steps to address the issue.<br/><br/>
23
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
24
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
25
+ *
27
26
  * @param diagnosticsResourceName Unique resource name for insight resources
28
27
  * @param options The options parameters.
29
28
  */
30
29
  beginCreate(
31
30
  scope: string,
32
31
  diagnosticsResourceName: string,
33
- options?: DiagnosticsCreateOptionalParams
32
+ options?: DiagnosticsCreateOptionalParams,
34
33
  ): Promise<
35
34
  SimplePollerLike<
36
35
  OperationState<DiagnosticsCreateResponse>,
@@ -38,31 +37,31 @@ export interface Diagnostics {
38
37
  >
39
38
  >;
40
39
  /**
41
- * Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery
42
- * solutions. <br/>Diagnostics tells you precisely the root cause of the issue and the steps to address
43
- * it. You can get diagnostics once you discover the relevant solution for your Azure issue. <br/><br/>
44
- * <b>Note: </b> requiredInputs’ from Discovery solutions response must be passed via
45
- * ‘additionalParameters’ as an input to Diagnostics API.
46
- * @param scope This is an extension resource provider and only resource level extension is supported
47
- * at the moment.
40
+ * Creates a diagnostic for the specific resource using solutionId from discovery solutions.
41
+ * <br/>Diagnostics are powerful solutions that access product resources or other relevant data and
42
+ * provide the root cause of the issue and the steps to address the issue.<br/><br/>
43
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
44
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
45
+ *
48
46
  * @param diagnosticsResourceName Unique resource name for insight resources
49
47
  * @param options The options parameters.
50
48
  */
51
49
  beginCreateAndWait(
52
50
  scope: string,
53
51
  diagnosticsResourceName: string,
54
- options?: DiagnosticsCreateOptionalParams
52
+ options?: DiagnosticsCreateOptionalParams,
55
53
  ): Promise<DiagnosticsCreateResponse>;
56
54
  /**
57
55
  * Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
58
- * @param scope This is an extension resource provider and only resource level extension is supported
59
- * at the moment.
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
+ *
60
59
  * @param diagnosticsResourceName Unique resource name for insight resources
61
60
  * @param options The options parameters.
62
61
  */
63
62
  get(
64
63
  scope: string,
65
64
  diagnosticsResourceName: string,
66
- options?: DiagnosticsGetOptionalParams
65
+ options?: DiagnosticsGetOptionalParams,
67
66
  ): Promise<DiagnosticsGetResponse>;
68
67
  }
@@ -9,29 +9,25 @@
9
9
  import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
10
  import {
11
11
  SolutionMetadataResource,
12
- DiscoverySolutionListOptionalParams
12
+ DiscoverySolutionListOptionalParams,
13
13
  } from "../models";
14
14
 
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Interface representing a DiscoverySolution. */
17
17
  export interface DiscoverySolution {
18
18
  /**
19
- * Lists the relevant Azure diagnostics and solutions using [problemClassification
19
+ * Lists the relevant Azure Diagnostics, Solutions and Troubleshooters using [problemClassification
20
20
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
21
21
  * resourceUri or resourceType.<br/> Discovery Solutions is the initial entry point within Help API,
22
- * which identifies relevant Azure diagnostics and solutions. We will do our best to return the most
23
- * effective solutions based on the type of inputs, in the request URL <br/><br/> Mandatory input :
22
+ * which identifies relevant Azure diagnostics and solutions. <br/><br/> Required Input :
24
23
  * problemClassificationId (Use the [problemClassification
25
24
  * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
26
25
  * <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
27
26
  * Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
28
27
  * and Solutions API.
29
- * @param scope This is an extension resource provider and only resource level extension is supported
30
- * at the moment.
31
28
  * @param options The options parameters.
32
29
  */
33
30
  list(
34
- scope: string,
35
- options?: DiscoverySolutionListOptionalParams
31
+ options?: DiscoverySolutionListOptionalParams,
36
32
  ): PagedAsyncIterableIterator<SolutionMetadataResource>;
37
33
  }
@@ -0,0 +1,24 @@
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
+ DiscoverySolutionNLPSubscriptionScopePostOptionalParams,
11
+ DiscoverySolutionNLPSubscriptionScopePostResponse,
12
+ } from "../models";
13
+
14
+ /** Interface representing a DiscoverySolutionNLPSubscriptionScope. */
15
+ export interface DiscoverySolutionNLPSubscriptionScope {
16
+ /**
17
+ * Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
18
+ * summary and subscription.
19
+ * @param options The options parameters.
20
+ */
21
+ post(
22
+ options?: DiscoverySolutionNLPSubscriptionScopePostOptionalParams,
23
+ ): Promise<DiscoverySolutionNLPSubscriptionScopePostResponse>;
24
+ }
@@ -0,0 +1,24 @@
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
+ DiscoverySolutionNLPTenantScopePostOptionalParams,
11
+ DiscoverySolutionNLPTenantScopePostResponse,
12
+ } from "../models";
13
+
14
+ /** Interface representing a DiscoverySolutionNLPTenantScope. */
15
+ export interface DiscoverySolutionNLPTenantScope {
16
+ /**
17
+ * Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
18
+ * summary.
19
+ * @param options The options parameters.
20
+ */
21
+ post(
22
+ options?: DiscoverySolutionNLPTenantScopePostOptionalParams,
23
+ ): Promise<DiscoverySolutionNLPTenantScopePostResponse>;
24
+ }
@@ -11,4 +11,8 @@ export * from "./checkNameAvailability";
11
11
  export * from "./diagnostics";
12
12
  export * from "./discoverySolution";
13
13
  export * from "./solution";
14
+ export * from "./simplifiedSolutions";
14
15
  export * from "./troubleshooters";
16
+ export * from "./solutionSelfHelp";
17
+ export * from "./discoverySolutionNLPTenantScope";
18
+ export * from "./discoverySolutionNLPSubscriptionScope";
@@ -17,6 +17,6 @@ export interface Operations {
17
17
  * @param options The options parameters.
18
18
  */
19
19
  list(
20
- options?: OperationsListOptionalParams
20
+ options?: OperationsListOptionalParams,
21
21
  ): PagedAsyncIterableIterator<Operation>;
22
22
  }
@@ -0,0 +1,74 @@
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 { SimplePollerLike, OperationState } from "@azure/core-lro";
10
+ import {
11
+ SimplifiedSolutionsCreateOptionalParams,
12
+ SimplifiedSolutionsCreateResponse,
13
+ SimplifiedSolutionsGetOptionalParams,
14
+ SimplifiedSolutionsGetResponse,
15
+ } from "../models";
16
+
17
+ /** Interface representing a SimplifiedSolutions. */
18
+ export interface SimplifiedSolutions {
19
+ /**
20
+ * Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions
21
+ * as the input. <br/><br/> Simplified Solutions API makes the consumption of solutions APIs easier
22
+ * while still providing access to the same powerful solutions rendered in Solutions API. With
23
+ * Simplified Solutions, users don't have to worry about stitching together the article using
24
+ * replacement maps and can use the content in the API response to directly render as HTML
25
+ * content.<br/>
26
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
27
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
28
+ *
29
+ * @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
30
+ * @param options The options parameters.
31
+ */
32
+ beginCreate(
33
+ scope: string,
34
+ simplifiedSolutionsResourceName: string,
35
+ options?: SimplifiedSolutionsCreateOptionalParams,
36
+ ): Promise<
37
+ SimplePollerLike<
38
+ OperationState<SimplifiedSolutionsCreateResponse>,
39
+ SimplifiedSolutionsCreateResponse
40
+ >
41
+ >;
42
+ /**
43
+ * Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions
44
+ * as the input. <br/><br/> Simplified Solutions API makes the consumption of solutions APIs easier
45
+ * while still providing access to the same powerful solutions rendered in Solutions API. With
46
+ * Simplified Solutions, users don't have to worry about stitching together the article using
47
+ * replacement maps and can use the content in the API response to directly render as HTML
48
+ * content.<br/>
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
+ * @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
53
+ * @param options The options parameters.
54
+ */
55
+ beginCreateAndWait(
56
+ scope: string,
57
+ simplifiedSolutionsResourceName: string,
58
+ options?: SimplifiedSolutionsCreateOptionalParams,
59
+ ): Promise<SimplifiedSolutionsCreateResponse>;
60
+ /**
61
+ * Get the simplified Solutions using the applicable solutionResourceName while creating the simplified
62
+ * Solutions.
63
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
64
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
65
+ *
66
+ * @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
67
+ * @param options The options parameters.
68
+ */
69
+ get(
70
+ scope: string,
71
+ simplifiedSolutionsResourceName: string,
72
+ options?: SimplifiedSolutionsGetOptionalParams,
73
+ ): Promise<SimplifiedSolutionsGetResponse>;
74
+ }