@azure/arm-selfhelp 1.0.1-alpha.20231016.1 → 2.0.0-beta.1

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 (135) hide show
  1. package/CHANGELOG.md +92 -8
  2. package/README.md +2 -2
  3. package/dist/index.js +2045 -391
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/checkNameAvailabilityPostSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/checkNameAvailabilityPostSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/{diagnosticsCheckNameAvailabilitySample.js → checkNameAvailabilityPostSample.js} +9 -9
  10. package/dist-esm/samples-dev/checkNameAvailabilityPostSample.js.map +1 -0
  11. package/dist-esm/samples-dev/diagnosticsCreateSample.js +5 -14
  12. package/dist-esm/samples-dev/diagnosticsCreateSample.js.map +1 -1
  13. package/dist-esm/samples-dev/diagnosticsGetSample.js +2 -2
  14. package/dist-esm/samples-dev/discoverySolutionListSample.js +44 -13
  15. package/dist-esm/samples-dev/discoverySolutionListSample.js.map +1 -1
  16. package/dist-esm/samples-dev/operationsListSample.js +4 -9
  17. package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
  18. package/dist-esm/samples-dev/solutionCreateSample.d.ts +2 -0
  19. package/dist-esm/samples-dev/solutionCreateSample.d.ts.map +1 -0
  20. package/dist-esm/samples-dev/solutionCreateSample.js +46 -0
  21. package/dist-esm/samples-dev/solutionCreateSample.js.map +1 -0
  22. package/dist-esm/samples-dev/solutionGetSample.d.ts +2 -0
  23. package/dist-esm/samples-dev/solutionGetSample.d.ts.map +1 -0
  24. package/dist-esm/samples-dev/solutionGetSample.js +37 -0
  25. package/dist-esm/samples-dev/solutionGetSample.js.map +1 -0
  26. package/dist-esm/samples-dev/solutionUpdateSample.d.ts +2 -0
  27. package/dist-esm/samples-dev/solutionUpdateSample.d.ts.map +1 -0
  28. package/dist-esm/samples-dev/solutionUpdateSample.js +37 -0
  29. package/dist-esm/samples-dev/solutionUpdateSample.js.map +1 -0
  30. package/dist-esm/samples-dev/troubleshootersContinueSample.d.ts +2 -0
  31. package/dist-esm/samples-dev/troubleshootersContinueSample.d.ts.map +1 -0
  32. package/dist-esm/samples-dev/troubleshootersContinueSample.js +50 -0
  33. package/dist-esm/samples-dev/troubleshootersContinueSample.js.map +1 -0
  34. package/dist-esm/samples-dev/troubleshootersCreateSample.d.ts +2 -0
  35. package/dist-esm/samples-dev/troubleshootersCreateSample.d.ts.map +1 -0
  36. package/dist-esm/samples-dev/troubleshootersCreateSample.js +46 -0
  37. package/dist-esm/samples-dev/troubleshootersCreateSample.js.map +1 -0
  38. package/dist-esm/samples-dev/troubleshootersEndSample.d.ts +2 -0
  39. package/dist-esm/samples-dev/troubleshootersEndSample.d.ts.map +1 -0
  40. package/dist-esm/samples-dev/troubleshootersEndSample.js +37 -0
  41. package/dist-esm/samples-dev/troubleshootersEndSample.js.map +1 -0
  42. package/dist-esm/samples-dev/troubleshootersGetSample.d.ts +2 -0
  43. package/dist-esm/samples-dev/troubleshootersGetSample.d.ts.map +1 -0
  44. package/dist-esm/samples-dev/troubleshootersGetSample.js +37 -0
  45. package/dist-esm/samples-dev/troubleshootersGetSample.js.map +1 -0
  46. package/dist-esm/samples-dev/troubleshootersRestartSample.d.ts +2 -0
  47. package/dist-esm/samples-dev/troubleshootersRestartSample.d.ts.map +1 -0
  48. package/dist-esm/samples-dev/troubleshootersRestartSample.js +37 -0
  49. package/dist-esm/samples-dev/troubleshootersRestartSample.js.map +1 -0
  50. package/dist-esm/src/helpRP.d.ts +4 -1
  51. package/dist-esm/src/helpRP.d.ts.map +1 -1
  52. package/dist-esm/src/helpRP.js +6 -3
  53. package/dist-esm/src/helpRP.js.map +1 -1
  54. package/dist-esm/src/models/index.d.ts +641 -22
  55. package/dist-esm/src/models/index.d.ts.map +1 -1
  56. package/dist-esm/src/models/index.js +140 -8
  57. package/dist-esm/src/models/index.js.map +1 -1
  58. package/dist-esm/src/models/mappers.d.ts +30 -0
  59. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  60. package/dist-esm/src/models/mappers.js +988 -13
  61. package/dist-esm/src/models/mappers.js.map +1 -1
  62. package/dist-esm/src/models/parameters.d.ts +6 -0
  63. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  64. package/dist-esm/src/models/parameters.js +48 -2
  65. package/dist-esm/src/models/parameters.js.map +1 -1
  66. package/dist-esm/src/operations/checkNameAvailability.d.ts +21 -0
  67. package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -0
  68. package/dist-esm/src/operations/checkNameAvailability.js +51 -0
  69. package/dist-esm/src/operations/checkNameAvailability.js.map +1 -0
  70. package/dist-esm/src/operations/diagnostics.d.ts +11 -18
  71. package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
  72. package/dist-esm/src/operations/diagnostics.js +10 -37
  73. package/dist-esm/src/operations/diagnostics.js.map +1 -1
  74. package/dist-esm/src/operations/discoverySolution.d.ts +20 -14
  75. package/dist-esm/src/operations/discoverySolution.d.ts.map +1 -1
  76. package/dist-esm/src/operations/discoverySolution.js +23 -22
  77. package/dist-esm/src/operations/discoverySolution.js.map +1 -1
  78. package/dist-esm/src/operations/index.d.ts +3 -0
  79. package/dist-esm/src/operations/index.d.ts.map +1 -1
  80. package/dist-esm/src/operations/index.js +3 -0
  81. package/dist-esm/src/operations/index.js.map +1 -1
  82. package/dist-esm/src/operations/operations.js +3 -8
  83. package/dist-esm/src/operations/operations.js.map +1 -1
  84. package/dist-esm/src/operations/solution.d.ts +78 -0
  85. package/dist-esm/src/operations/solution.d.ts.map +1 -0
  86. package/dist-esm/src/operations/solution.js +262 -0
  87. package/dist-esm/src/operations/solution.js.map +1 -0
  88. package/dist-esm/src/operations/troubleshooters.d.ts +70 -0
  89. package/dist-esm/src/operations/troubleshooters.d.ts.map +1 -0
  90. package/dist-esm/src/operations/troubleshooters.js +198 -0
  91. package/dist-esm/src/operations/troubleshooters.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +13 -0
  93. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/checkNameAvailability.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/checkNameAvailability.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/diagnostics.d.ts +11 -18
  97. package/dist-esm/src/operationsInterfaces/diagnostics.d.ts.map +1 -1
  98. package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts +10 -7
  99. package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts.map +1 -1
  100. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  101. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  102. package/dist-esm/src/operationsInterfaces/index.js +3 -0
  103. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  104. package/dist-esm/src/operationsInterfaces/solution.d.ts +70 -0
  105. package/dist-esm/src/operationsInterfaces/solution.d.ts.map +1 -0
  106. package/dist-esm/src/operationsInterfaces/solution.js +9 -0
  107. package/dist-esm/src/operationsInterfaces/solution.js.map +1 -0
  108. package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts +62 -0
  109. package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts.map +1 -0
  110. package/dist-esm/src/operationsInterfaces/troubleshooters.js +9 -0
  111. package/dist-esm/src/operationsInterfaces/troubleshooters.js.map +1 -0
  112. package/dist-esm/test/selfhelp_operations_test.spec.js +5 -20
  113. package/dist-esm/test/selfhelp_operations_test.spec.js.map +1 -1
  114. package/package.json +7 -7
  115. package/review/arm-selfhelp.api.md +469 -17
  116. package/src/helpRP.ts +16 -4
  117. package/src/models/index.ts +712 -22
  118. package/src/models/mappers.ts +1024 -13
  119. package/src/models/parameters.ts +58 -2
  120. package/src/operations/checkNameAvailability.ts +68 -0
  121. package/src/operations/diagnostics.ts +10 -46
  122. package/src/operations/discoverySolution.ts +20 -14
  123. package/src/operations/index.ts +3 -0
  124. package/src/operations/solution.ts +349 -0
  125. package/src/operations/troubleshooters.ts +261 -0
  126. package/src/operationsInterfaces/checkNameAvailability.ts +27 -0
  127. package/src/operationsInterfaces/diagnostics.ts +10 -22
  128. package/src/operationsInterfaces/discoverySolution.ts +10 -7
  129. package/src/operationsInterfaces/index.ts +3 -0
  130. package/src/operationsInterfaces/solution.ts +115 -0
  131. package/src/operationsInterfaces/troubleshooters.ts +101 -0
  132. package/types/arm-selfhelp.d.ts +892 -63
  133. package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.d.ts +0 -2
  134. package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.d.ts.map +0 -1
  135. package/dist-esm/samples-dev/diagnosticsCheckNameAvailabilitySample.js.map +0 -1
@@ -0,0 +1,198 @@
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 Troubleshooters operations. */
12
+ export class TroubleshootersImpl {
13
+ /**
14
+ * Initialize a new instance of the class Troubleshooters class.
15
+ * @param client Reference to the service client
16
+ */
17
+ constructor(client) {
18
+ this.client = client;
19
+ }
20
+ /**
21
+ * Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’
22
+ * and ‘properties.parameters’ as the trigger. <br/> Troubleshooters are step-by-step interactive
23
+ * guidance that scope the problem by collecting additional inputs from you in each stage while
24
+ * troubleshooting an Azure issue. You will be guided down decision tree style workflow and the best
25
+ * possible solution will be presented at the end of the workflow. <br/> Create API creates the
26
+ * Troubleshooter API using ‘parameters’ and ‘solutionId’ <br/> After creating the Troubleshooter
27
+ * instance, the following APIs can be used:<br/> CONTINUE API: to move to the next step in the flow
28
+ * <br/>GET API: to identify the next step after executing the CONTINUE API. <br/><br/> <b>Note:</b>
29
+ * ‘requiredParameters’ from solutions response must be passed via ‘properties. parameters’ in the
30
+ * request body of Troubleshooters API.
31
+ * @param scope This is an extension resource provider and only resource level extension is supported
32
+ * at the moment.
33
+ * @param troubleshooterName Troubleshooter resource Name.
34
+ * @param options The options parameters.
35
+ */
36
+ create(scope, troubleshooterName, options) {
37
+ return this.client.sendOperationRequest({ scope, troubleshooterName, options }, createOperationSpec);
38
+ }
39
+ /**
40
+ * Gets troubleshooter instance result which includes the step status/result of the troubleshooter
41
+ * resource name that is being executed.<br/> Get API is used to retrieve the result of a
42
+ * Troubleshooter instance, which includes the status and result of each step in the Troubleshooter
43
+ * workflow. This API requires the Troubleshooter resource name that was created using the Create API.
44
+ * @param scope This is an extension resource provider and only resource level extension is supported
45
+ * at the moment.
46
+ * @param troubleshooterName Troubleshooter resource Name.
47
+ * @param options The options parameters.
48
+ */
49
+ get(scope, troubleshooterName, options) {
50
+ return this.client.sendOperationRequest({ scope, troubleshooterName, options }, getOperationSpec);
51
+ }
52
+ /**
53
+ * Uses ‘stepId’ and ‘responses’ as the trigger to continue the troubleshooting steps for the
54
+ * respective troubleshooter resource name. <br/>Continue API is used to provide inputs that are
55
+ * required for the specific troubleshooter to progress into the next step in the process. This API is
56
+ * used after the Troubleshooter has been created using the Create API.
57
+ * @param scope This is an extension resource provider and only resource level extension is supported
58
+ * at the moment.
59
+ * @param troubleshooterName Troubleshooter resource Name.
60
+ * @param options The options parameters.
61
+ */
62
+ continue(scope, troubleshooterName, options) {
63
+ return this.client.sendOperationRequest({ scope, troubleshooterName, options }, continueOperationSpec);
64
+ }
65
+ /**
66
+ * Ends the troubleshooter action
67
+ * @param scope This is an extension resource provider and only resource level extension is supported
68
+ * at the moment.
69
+ * @param troubleshooterName Troubleshooter resource Name.
70
+ * @param options The options parameters.
71
+ */
72
+ end(scope, troubleshooterName, options) {
73
+ return this.client.sendOperationRequest({ scope, troubleshooterName, options }, endOperationSpec);
74
+ }
75
+ /**
76
+ * Restarts the troubleshooter API using applicable troubleshooter resource name as the input.<br/> It
77
+ * returns new resource name which should be used in subsequent request. The old resource name is
78
+ * obsolete after this API is invoked.
79
+ * @param scope This is an extension resource provider and only resource level extension is supported
80
+ * at the moment.
81
+ * @param troubleshooterName Troubleshooter resource Name.
82
+ * @param options The options parameters.
83
+ */
84
+ restart(scope, troubleshooterName, options) {
85
+ return this.client.sendOperationRequest({ scope, troubleshooterName, options }, restartOperationSpec);
86
+ }
87
+ }
88
+ // Operation Specifications
89
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
90
+ const createOperationSpec = {
91
+ path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
92
+ httpMethod: "PUT",
93
+ responses: {
94
+ 200: {
95
+ bodyMapper: Mappers.TroubleshooterResource
96
+ },
97
+ 201: {
98
+ bodyMapper: Mappers.TroubleshooterResource
99
+ },
100
+ default: {
101
+ bodyMapper: Mappers.ErrorResponse
102
+ }
103
+ },
104
+ requestBody: Parameters.createTroubleshooterRequestBody,
105
+ queryParameters: [Parameters.apiVersion],
106
+ urlParameters: [
107
+ Parameters.$host,
108
+ Parameters.scope,
109
+ Parameters.troubleshooterName
110
+ ],
111
+ headerParameters: [Parameters.accept, Parameters.contentType],
112
+ mediaType: "json",
113
+ serializer
114
+ };
115
+ const getOperationSpec = {
116
+ path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
117
+ httpMethod: "GET",
118
+ responses: {
119
+ 200: {
120
+ bodyMapper: Mappers.TroubleshooterResource
121
+ },
122
+ default: {
123
+ bodyMapper: Mappers.ErrorResponse
124
+ }
125
+ },
126
+ queryParameters: [Parameters.apiVersion],
127
+ urlParameters: [
128
+ Parameters.$host,
129
+ Parameters.scope,
130
+ Parameters.troubleshooterName
131
+ ],
132
+ headerParameters: [Parameters.accept],
133
+ serializer
134
+ };
135
+ const continueOperationSpec = {
136
+ path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/continue",
137
+ httpMethod: "POST",
138
+ responses: {
139
+ 204: {
140
+ headersMapper: Mappers.TroubleshootersContinueHeaders
141
+ },
142
+ default: {
143
+ bodyMapper: Mappers.ErrorResponse
144
+ }
145
+ },
146
+ requestBody: Parameters.continueRequestBody,
147
+ queryParameters: [Parameters.apiVersion],
148
+ urlParameters: [
149
+ Parameters.$host,
150
+ Parameters.scope,
151
+ Parameters.troubleshooterName
152
+ ],
153
+ headerParameters: [Parameters.accept, Parameters.contentType],
154
+ mediaType: "json",
155
+ serializer
156
+ };
157
+ const endOperationSpec = {
158
+ path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/end",
159
+ httpMethod: "POST",
160
+ responses: {
161
+ 204: {
162
+ headersMapper: Mappers.TroubleshootersEndHeaders
163
+ },
164
+ default: {
165
+ bodyMapper: Mappers.ErrorResponse
166
+ }
167
+ },
168
+ queryParameters: [Parameters.apiVersion],
169
+ urlParameters: [
170
+ Parameters.$host,
171
+ Parameters.scope,
172
+ Parameters.troubleshooterName
173
+ ],
174
+ headerParameters: [Parameters.accept],
175
+ serializer
176
+ };
177
+ const restartOperationSpec = {
178
+ path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/restart",
179
+ httpMethod: "POST",
180
+ responses: {
181
+ 200: {
182
+ bodyMapper: Mappers.RestartTroubleshooterResponse,
183
+ headersMapper: Mappers.TroubleshootersRestartHeaders
184
+ },
185
+ default: {
186
+ bodyMapper: Mappers.ErrorResponse
187
+ }
188
+ },
189
+ queryParameters: [Parameters.apiVersion],
190
+ urlParameters: [
191
+ Parameters.$host,
192
+ Parameters.scope,
193
+ Parameters.troubleshooterName
194
+ ],
195
+ headerParameters: [Parameters.accept],
196
+ serializer
197
+ };
198
+ //# sourceMappingURL=troubleshooters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"troubleshooters.js","sourceRoot":"","sources":["../../../src/operations/troubleshooters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C,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { CheckNameAvailabilityPostOptionalParams, CheckNameAvailabilityPostResponse } from "../models";
2
+ /** Interface representing a CheckNameAvailability. */
3
+ export interface CheckNameAvailability {
4
+ /**
5
+ * This API is used to check the uniqueness of a resource name used for a diagnostic, troubleshooter or
6
+ * solutions
7
+ * @param scope This is an extension resource provider and only resource level extension is supported
8
+ * at the moment.
9
+ * @param options The options parameters.
10
+ */
11
+ post(scope: string, options?: CheckNameAvailabilityPostOptionalParams): Promise<CheckNameAvailabilityPostResponse>;
12
+ }
13
+ //# sourceMappingURL=checkNameAvailability.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkNameAvailability.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/checkNameAvailability.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,uCAAuC,EACvC,iCAAiC,EAClC,MAAM,WAAW,CAAC;AAEnB,sDAAsD;AACtD,MAAM,WAAW,qBAAqB;IACpC;;;;;;OAMG;IACH,IAAI,CACF,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,uCAAuC,GAChD,OAAO,CAAC,iCAAiC,CAAC,CAAC;CAC/C"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=checkNameAvailability.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkNameAvailability.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/checkNameAvailability.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -1,20 +1,13 @@
1
1
  import { SimplePollerLike, OperationState } from "@azure/core-lro";
2
- import { DiagnosticsCheckNameAvailabilityOptionalParams, DiagnosticsCheckNameAvailabilityResponse, DiagnosticsCreateOptionalParams, DiagnosticsCreateResponse, DiagnosticsGetOptionalParams, DiagnosticsGetResponse } from "../models";
2
+ import { DiagnosticsCreateOptionalParams, DiagnosticsCreateResponse, DiagnosticsGetOptionalParams, DiagnosticsGetResponse } from "../models";
3
3
  /** Interface representing a Diagnostics. */
4
4
  export interface Diagnostics {
5
5
  /**
6
- * This API is used to check the uniqueness of a resource name used for a diagnostic check.
7
- * @param scope This is an extension resource provider and only resource level extension is supported
8
- * at the moment.
9
- * @param options The options parameters.
10
- */
11
- checkNameAvailability(scope: string, options?: DiagnosticsCheckNameAvailabilityOptionalParams): Promise<DiagnosticsCheckNameAvailabilityResponse>;
12
- /**
13
- * Diagnostics tells you precisely the root cause of the issue and how to address it. You can get
14
- * diagnostics once you discover and identify the relevant solution for your Azure issue.<br/><br/> You
15
- * can create diagnostics using the ‘solutionId’ from Solution Discovery API response and
16
- * ‘additionalParameters’ <br/><br/> <b>Note: </b>‘requiredParameterSets’ from Solutions Discovery API
17
- * response must be passed via ‘additionalParameters’ as an input to Diagnostics API
6
+ * Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery
7
+ * solutions. <br/>Diagnostics tells you precisely the root cause of the issue and the steps to address
8
+ * it. You can get diagnostics once you discover the relevant solution for your Azure issue. <br/><br/>
9
+ * <b>Note: </b> requiredInputs’ from Discovery solutions response must be passed via
10
+ * ‘additionalParameters’ as an input to Diagnostics API.
18
11
  * @param scope This is an extension resource provider and only resource level extension is supported
19
12
  * at the moment.
20
13
  * @param diagnosticsResourceName Unique resource name for insight resources
@@ -22,11 +15,11 @@ export interface Diagnostics {
22
15
  */
23
16
  beginCreate(scope: string, diagnosticsResourceName: string, options?: DiagnosticsCreateOptionalParams): Promise<SimplePollerLike<OperationState<DiagnosticsCreateResponse>, DiagnosticsCreateResponse>>;
24
17
  /**
25
- * Diagnostics tells you precisely the root cause of the issue and how to address it. You can get
26
- * diagnostics once you discover and identify the relevant solution for your Azure issue.<br/><br/> You
27
- * can create diagnostics using the ‘solutionId’ from Solution Discovery API response and
28
- * ‘additionalParameters’ <br/><br/> <b>Note: </b>‘requiredParameterSets’ from Solutions Discovery API
29
- * response must be passed via ‘additionalParameters’ as an input to Diagnostics API
18
+ * Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery
19
+ * solutions. <br/>Diagnostics tells you precisely the root cause of the issue and the steps to address
20
+ * it. You can get diagnostics once you discover the relevant solution for your Azure issue. <br/><br/>
21
+ * <b>Note: </b> requiredInputs’ from Discovery solutions response must be passed via
22
+ * ‘additionalParameters’ as an input to Diagnostics API.
30
23
  * @param scope This is an extension resource provider and only resource level extension is supported
31
24
  * at the moment.
32
25
  * @param diagnosticsResourceName Unique resource name for insight resources
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/diagnostics.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,8CAA8C,EAC9C,wCAAwC,EACxC,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,4CAA4C;AAC5C,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,qBAAqB,CACnB,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,8CAA8C,GACvD,OAAO,CAAC,wCAAwC,CAAC,CAAC;IACrD;;;;;;;;;;OAUG;IACH,WAAW,CACT,KAAK,EAAE,MAAM,EACb,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,yBAAyB,CAAC,EACzC,yBAAyB,CAC1B,CACF,CAAC;IACF;;;;;;;;;;OAUG;IACH,kBAAkB,CAChB,KAAK,EAAE,MAAM,EACb,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;;OAMG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpC"}
1
+ {"version":3,"file":"diagnostics.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/diagnostics.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,+BAA+B,EAC/B,yBAAyB,EACzB,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,4CAA4C;AAC5C,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;OAUG;IACH,WAAW,CACT,KAAK,EAAE,MAAM,EACb,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,yBAAyB,CAAC,EACzC,yBAAyB,CAC1B,CACF,CAAC;IACF;;;;;;;;;;OAUG;IACH,kBAAkB,CAChB,KAAK,EAAE,MAAM,EACb,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,+BAA+B,GACxC,OAAO,CAAC,yBAAyB,CAAC,CAAC;IACtC;;;;;;OAMG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpC"}
@@ -3,13 +3,16 @@ import { SolutionMetadataResource, DiscoverySolutionListOptionalParams } from ".
3
3
  /** Interface representing a DiscoverySolution. */
4
4
  export interface DiscoverySolution {
5
5
  /**
6
- * Solutions Discovery is the initial point of entry within Help API, which helps you identify the
7
- * relevant solutions for your Azure issue.<br/><br/> You can discover solutions using resourceUri OR
8
- * resourceUri + problemClassificationId.<br/><br/>We will do our best in returning relevant
9
- * diagnostics for your Azure issue.<br/><br/> Get the problemClassificationId(s) using this
10
- * [reference](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP).<br/><br/>
11
- * <b>Note: </b> ‘requiredParameterSets’ from Solutions Discovery API response must be passed via
12
- * ‘additionalParameters’ as an input to Diagnostics API.
6
+ * Lists the relevant Azure diagnostics and solutions using [problemClassification
7
+ * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
8
+ * resourceUri or resourceType.<br/> Discovery Solutions is the initial entry point within Help API,
9
+ * which identifies relevant Azure diagnostics and solutions. We will do our best to return the most
10
+ * effective solutions based on the type of inputs, in the request URL <br/><br/> Mandatory input :
11
+ * problemClassificationId (Use the [problemClassification
12
+ * API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP))
13
+ * <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
14
+ * Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
15
+ * and Solutions API.
13
16
  * @param scope This is an extension resource provider and only resource level extension is supported
14
17
  * at the moment.
15
18
  * @param options The options parameters.
@@ -1 +1 @@
1
- {"version":3,"file":"discoverySolution.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/discoverySolution.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACpC,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,wBAAwB,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"discoverySolution.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/discoverySolution.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,wBAAwB,EACxB,mCAAmC,EACpC,MAAM,WAAW,CAAC;AAGnB,kDAAkD;AAClD,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,mCAAmC,GAC5C,0BAA0B,CAAC,wBAAwB,CAAC,CAAC;CACzD"}
@@ -1,4 +1,7 @@
1
1
  export * from "./operations";
2
+ export * from "./checkNameAvailability";
2
3
  export * from "./diagnostics";
3
4
  export * from "./discoverySolution";
5
+ export * from "./solution";
6
+ export * from "./troubleshooters";
4
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/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"}
@@ -6,6 +6,9 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  export * from "./operations";
9
+ export * from "./checkNameAvailability";
9
10
  export * from "./diagnostics";
10
11
  export * from "./discoverySolution";
12
+ export * from "./solution";
13
+ export * from "./troubleshooters";
11
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/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"}
@@ -0,0 +1,70 @@
1
+ import { SimplePollerLike, OperationState } from "@azure/core-lro";
2
+ import { SolutionCreateOptionalParams, SolutionCreateResponse, SolutionGetOptionalParams, SolutionGetResponse, SolutionUpdateOptionalParams, SolutionUpdateResponse } from "../models";
3
+ /** Interface representing a Solution. */
4
+ export interface Solution {
5
+ /**
6
+ * Creates a solution for the specific Azure resource or subscription using the triggering criteria
7
+ * ‘solutionId and requiredInputs’ from discovery solutions.<br/> Solutions are a rich, insightful and
8
+ * a centralized self help experience that brings all the relevant content to troubleshoot an Azure
9
+ * issue into a unified experience. Solutions include the following components : Text, Diagnostics ,
10
+ * Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with
11
+ * capabilities to support new solutions types in the future. Each solution type may require one or
12
+ * more ‘requiredParameters’ that are required to execute the individual solution component. In the
13
+ * absence of the ‘requiredParameters’ it is likely that some of the solutions might fail execution,
14
+ * and you might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from
15
+ * Discovery solutions response must be passed via ‘parameters’ in the request body of Solutions API.
16
+ * <br/>2. ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in
17
+ * the request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
18
+ * ‘properties.parameters’ in the request for Troubleshooters
19
+ * @param scope This is an extension resource provider and only resource level extension is supported
20
+ * at the moment.
21
+ * @param solutionResourceName Solution resource Name.
22
+ * @param options The options parameters.
23
+ */
24
+ beginCreate(scope: string, solutionResourceName: string, options?: SolutionCreateOptionalParams): Promise<SimplePollerLike<OperationState<SolutionCreateResponse>, SolutionCreateResponse>>;
25
+ /**
26
+ * Creates a solution for the specific Azure resource or subscription using the triggering criteria
27
+ * ‘solutionId and requiredInputs’ from discovery solutions.<br/> Solutions are a rich, insightful and
28
+ * a centralized self help experience that brings all the relevant content to troubleshoot an Azure
29
+ * issue into a unified experience. Solutions include the following components : Text, Diagnostics ,
30
+ * Troubleshooters, Images , Video tutorials, Tables , custom charts, images , AzureKB, etc, with
31
+ * capabilities to support new solutions types in the future. Each solution type may require one or
32
+ * more ‘requiredParameters’ that are required to execute the individual solution component. In the
33
+ * absence of the ‘requiredParameters’ it is likely that some of the solutions might fail execution,
34
+ * and you might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from
35
+ * Discovery solutions response must be passed via ‘parameters’ in the request body of Solutions API.
36
+ * <br/>2. ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in
37
+ * the request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
38
+ * ‘properties.parameters’ in the request for Troubleshooters
39
+ * @param scope This is an extension resource provider and only resource level extension is supported
40
+ * at the moment.
41
+ * @param solutionResourceName Solution resource Name.
42
+ * @param options The options parameters.
43
+ */
44
+ beginCreateAndWait(scope: string, solutionResourceName: string, options?: SolutionCreateOptionalParams): Promise<SolutionCreateResponse>;
45
+ /**
46
+ * Get the solution using the applicable solutionResourceName while creating the solution.
47
+ * @param scope This is an extension resource provider and only resource level extension is supported
48
+ * at the moment.
49
+ * @param solutionResourceName Solution resource Name.
50
+ * @param options The options parameters.
51
+ */
52
+ get(scope: string, solutionResourceName: string, options?: SolutionGetOptionalParams): Promise<SolutionGetResponse>;
53
+ /**
54
+ * Update the requiredInputs or additional information needed to execute the solution
55
+ * @param scope This is an extension resource provider and only resource level extension is supported
56
+ * at the moment.
57
+ * @param solutionResourceName Solution resource Name.
58
+ * @param options The options parameters.
59
+ */
60
+ beginUpdate(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SolutionUpdateResponse>, SolutionUpdateResponse>>;
61
+ /**
62
+ * Update the requiredInputs or additional information needed to execute the solution
63
+ * @param scope This is an extension resource provider and only resource level extension is supported
64
+ * at the moment.
65
+ * @param solutionResourceName Solution resource Name.
66
+ * @param options The options parameters.
67
+ */
68
+ beginUpdateAndWait(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SolutionUpdateResponse>;
69
+ }
70
+ //# sourceMappingURL=solution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solution.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/solution.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,WAAW,CAAC;AAEnB,yCAAyC;AACzC,MAAM,WAAW,QAAQ;IACvB;;;;;;;;;;;;;;;;;;OAkBG;IACH,WAAW,CACT,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,sBAAsB,CAAC,EACtC,sBAAsB,CACvB,CACF,CAAC;IACF;;;;;;;;;;;;;;;;;;OAkBG;IACH,kBAAkB,CAChB,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IACnC;;;;;;OAMG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAChC;;;;;;OAMG;IACH,WAAW,CACT,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,sBAAsB,CAAC,EACtC,sBAAsB,CACvB,CACF,CAAC;IACF;;;;;;OAMG;IACH,kBAAkB,CAChB,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACpC"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=solution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solution.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/solution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,62 @@
1
+ import { TroubleshootersCreateOptionalParams, TroubleshootersCreateResponse, TroubleshootersGetOptionalParams, TroubleshootersGetResponse, TroubleshootersContinueOptionalParams, TroubleshootersContinueResponse, TroubleshootersEndOptionalParams, TroubleshootersEndResponse, TroubleshootersRestartOptionalParams, TroubleshootersRestartResponse } from "../models";
2
+ /** Interface representing a Troubleshooters. */
3
+ export interface Troubleshooters {
4
+ /**
5
+ * Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’
6
+ * and ‘properties.parameters’ as the trigger. <br/> Troubleshooters are step-by-step interactive
7
+ * guidance that scope the problem by collecting additional inputs from you in each stage while
8
+ * troubleshooting an Azure issue. You will be guided down decision tree style workflow and the best
9
+ * possible solution will be presented at the end of the workflow. <br/> Create API creates the
10
+ * Troubleshooter API using ‘parameters’ and ‘solutionId’ <br/> After creating the Troubleshooter
11
+ * instance, the following APIs can be used:<br/> CONTINUE API: to move to the next step in the flow
12
+ * <br/>GET API: to identify the next step after executing the CONTINUE API. <br/><br/> <b>Note:</b>
13
+ * ‘requiredParameters’ from solutions response must be passed via ‘properties. parameters’ in the
14
+ * request body of Troubleshooters API.
15
+ * @param scope This is an extension resource provider and only resource level extension is supported
16
+ * at the moment.
17
+ * @param troubleshooterName Troubleshooter resource Name.
18
+ * @param options The options parameters.
19
+ */
20
+ create(scope: string, troubleshooterName: string, options?: TroubleshootersCreateOptionalParams): Promise<TroubleshootersCreateResponse>;
21
+ /**
22
+ * Gets troubleshooter instance result which includes the step status/result of the troubleshooter
23
+ * resource name that is being executed.<br/> Get API is used to retrieve the result of a
24
+ * Troubleshooter instance, which includes the status and result of each step in the Troubleshooter
25
+ * workflow. This API requires the Troubleshooter resource name that was created using the Create API.
26
+ * @param scope This is an extension resource provider and only resource level extension is supported
27
+ * at the moment.
28
+ * @param troubleshooterName Troubleshooter resource Name.
29
+ * @param options The options parameters.
30
+ */
31
+ get(scope: string, troubleshooterName: string, options?: TroubleshootersGetOptionalParams): Promise<TroubleshootersGetResponse>;
32
+ /**
33
+ * Uses ‘stepId’ and ‘responses’ as the trigger to continue the troubleshooting steps for the
34
+ * respective troubleshooter resource name. <br/>Continue API is used to provide inputs that are
35
+ * required for the specific troubleshooter to progress into the next step in the process. This API is
36
+ * used after the Troubleshooter has been created using the Create API.
37
+ * @param scope This is an extension resource provider and only resource level extension is supported
38
+ * at the moment.
39
+ * @param troubleshooterName Troubleshooter resource Name.
40
+ * @param options The options parameters.
41
+ */
42
+ continue(scope: string, troubleshooterName: string, options?: TroubleshootersContinueOptionalParams): Promise<TroubleshootersContinueResponse>;
43
+ /**
44
+ * Ends the troubleshooter action
45
+ * @param scope This is an extension resource provider and only resource level extension is supported
46
+ * at the moment.
47
+ * @param troubleshooterName Troubleshooter resource Name.
48
+ * @param options The options parameters.
49
+ */
50
+ end(scope: string, troubleshooterName: string, options?: TroubleshootersEndOptionalParams): Promise<TroubleshootersEndResponse>;
51
+ /**
52
+ * Restarts the troubleshooter API using applicable troubleshooter resource name as the input.<br/> It
53
+ * returns new resource name which should be used in subsequent request. The old resource name is
54
+ * obsolete after this API is invoked.
55
+ * @param scope This is an extension resource provider and only resource level extension is supported
56
+ * at the moment.
57
+ * @param troubleshooterName Troubleshooter resource Name.
58
+ * @param options The options parameters.
59
+ */
60
+ restart(scope: string, troubleshooterName: string, options?: TroubleshootersRestartOptionalParams): Promise<TroubleshootersRestartResponse>;
61
+ }
62
+ //# sourceMappingURL=troubleshooters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"troubleshooters.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/troubleshooters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,mCAAmC,EACnC,6BAA6B,EAC7B,gCAAgC,EAChC,0BAA0B,EAC1B,qCAAqC,EACrC,+BAA+B,EAC/B,gCAAgC,EAChC,0BAA0B,EAC1B,oCAAoC,EACpC,8BAA8B,EAC/B,MAAM,WAAW,CAAC;AAEnB,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,6BAA6B,CAAC,CAAC;IAC1C;;;;;;;;;OASG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;;;;;OASG;IACH,QAAQ,CACN,KAAK,EAAE,MAAM,EACb,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC,CAAC;IAC5C;;;;;;OAMG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;;;;OAQG;IACH,OAAO,CACL,KAAK,EAAE,MAAM,EACb,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,oCAAoC,GAC7C,OAAO,CAAC,8BAA8B,CAAC,CAAC;CAC5C"}
@@ -0,0 +1,9 @@
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
+ export {};
9
+ //# sourceMappingURL=troubleshooters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"troubleshooters.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/troubleshooters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -51,18 +51,8 @@ describe("help test", () => {
51
51
  yield recorder.stop();
52
52
  });
53
53
  });
54
- it("selfhelp checkname test", function () {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- const res = yield client.diagnostics.checkNameAvailability(scope, {
57
- checkNameAvailabilityRequest: {
58
- name: "sampleName",
59
- // type: "Microsoft.Help/diagnostics"
60
- type: "diagnostics"
61
- }
62
- });
63
- });
64
- });
65
- it("diagnostics create test", function () {
54
+ // I think we could skip this case, because service don't give delete api to detele this resource
55
+ it.skip("diagnostics create test", function () {
66
56
  return __awaiter(this, void 0, void 0, function* () {
67
57
  const options = {
68
58
  diagnosticResourceRequest: {
@@ -83,16 +73,11 @@ describe("help test", () => {
83
73
  return __awaiter(this, void 0, void 0, function* () {
84
74
  const resArray = new Array();
85
75
  try {
86
- for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a;) {
76
+ for (var _d = true, _e = __asyncValues(client.operations.list()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
87
77
  _c = _f.value;
88
78
  _d = false;
89
- try {
90
- let item = _c;
91
- resArray.push(item);
92
- }
93
- finally {
94
- _d = true;
95
- }
79
+ let item = _c;
80
+ resArray.push(item);
96
81
  }
97
82
  }
98
83
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -1 +1 @@
1
- {"version":3,"file":"selfhelp_operations_test.spec.js","sourceRoot":"","sources":["../../test/selfhelp_operations_test.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,oBAAoB,GAA2B;IACnD,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,sCAAsC;IACvD,eAAe,EAAE,uBAAuB;CACzC,CAAC;AAEF,MAAM,eAAe,GAAyB;IAC5C,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,WAAW,EAAE,GAAG,EAAE;IACzB,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAAc,CAAC;IACnB,IAAI,QAAgB,CAAC;IACrB,IAAI,aAAqB,CAAC;IAC1B,IAAI,YAAoB,CAAC;IACzB,IAAI,KAAa,CAAC;IAClB,IAAI,MAAc,CAAC;IAEnB,UA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