@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
package/package.json CHANGED
@@ -3,17 +3,17 @@
3
3
  "sdk-type": "mgmt",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "A generated SDK for HelpRP.",
6
- "version": "1.0.1-alpha.20231016.1",
6
+ "version": "2.0.0-beta.1",
7
7
  "engines": {
8
8
  "node": ">=16.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@azure/core-lro": "^2.5.3",
11
+ "@azure/core-lro": "^2.5.4",
12
12
  "@azure/abort-controller": "^1.0.0",
13
13
  "@azure/core-paging": "^1.2.0",
14
14
  "@azure/core-client": "^1.7.0",
15
15
  "@azure/core-auth": "^1.3.0",
16
- "@azure/core-rest-pipeline": "^1.8.0",
16
+ "@azure/core-rest-pipeline": "^1.12.0",
17
17
  "tslib": "^2.2.0"
18
18
  },
19
19
  "keywords": [
@@ -30,9 +30,9 @@
30
30
  "devDependencies": {
31
31
  "@microsoft/api-extractor": "^7.31.1",
32
32
  "mkdirp": "^2.1.2",
33
- "typescript": "~5.0.0",
33
+ "typescript": "~5.2.0",
34
34
  "uglify-js": "^3.4.9",
35
- "rimraf": "^3.0.0",
35
+ "rimraf": "^5.0.0",
36
36
  "dotenv": "^16.0.0",
37
37
  "@azure/identity": "^3.3.0",
38
38
  "@azure-tools/test-recorder": "^3.0.0",
@@ -42,7 +42,7 @@
42
42
  "chai": "^4.2.0",
43
43
  "cross-env": "^7.0.2",
44
44
  "@types/node": "^16.0.0",
45
- "@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb",
45
+ "@azure/dev-tool": "^1.0.0",
46
46
  "ts-node": "^10.0.0"
47
47
  },
48
48
  "repository": {
@@ -77,7 +77,7 @@
77
77
  "extract-api": "api-extractor run --local",
78
78
  "lint": "echo skipped",
79
79
  "audit": "echo skipped",
80
- "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
80
+ "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
81
81
  "build:node": "echo skipped",
82
82
  "build:browser": "echo skipped",
83
83
  "build:test": "echo skipped",
@@ -13,6 +13,31 @@ import { SimplePollerLike } from '@azure/core-lro';
13
13
  // @public
14
14
  export type ActionType = string;
15
15
 
16
+ // @public
17
+ export type AggregationType = string;
18
+
19
+ // @public
20
+ export interface AutomatedCheckResult {
21
+ result?: string;
22
+ type?: AutomatedCheckResultType;
23
+ }
24
+
25
+ // @public
26
+ export type AutomatedCheckResultType = string;
27
+
28
+ // @public
29
+ export interface CheckNameAvailability {
30
+ post(scope: string, options?: CheckNameAvailabilityPostOptionalParams): Promise<CheckNameAvailabilityPostResponse>;
31
+ }
32
+
33
+ // @public
34
+ export interface CheckNameAvailabilityPostOptionalParams extends coreClient.OperationOptions {
35
+ checkNameAvailabilityRequest?: CheckNameAvailabilityRequest;
36
+ }
37
+
38
+ // @public
39
+ export type CheckNameAvailabilityPostResponse = CheckNameAvailabilityResponse;
40
+
16
41
  // @public
17
42
  export interface CheckNameAvailabilityRequest {
18
43
  name?: string;
@@ -26,6 +51,16 @@ export interface CheckNameAvailabilityResponse {
26
51
  reason?: string;
27
52
  }
28
53
 
54
+ // @public
55
+ export type Confidence = string;
56
+
57
+ // @public
58
+ export interface ContinueRequestBody {
59
+ // (undocumented)
60
+ responses?: TroubleshooterResponse[];
61
+ stepId?: string;
62
+ }
63
+
29
64
  // @public
30
65
  export type CreatedByType = string;
31
66
 
@@ -45,6 +80,9 @@ export interface DiagnosticInvocation {
45
80
  solutionId?: string;
46
81
  }
47
82
 
83
+ // @public
84
+ export type DiagnosticProvisioningState = string;
85
+
48
86
  // @public
49
87
  export interface DiagnosticResource extends ProxyResource {
50
88
  readonly acceptedAt?: string;
@@ -53,25 +91,16 @@ export interface DiagnosticResource extends ProxyResource {
53
91
  [propertyName: string]: string;
54
92
  };
55
93
  insights?: DiagnosticInvocation[];
56
- readonly provisioningState?: ProvisioningState;
94
+ readonly provisioningState?: DiagnosticProvisioningState;
57
95
  }
58
96
 
59
97
  // @public
60
98
  export interface Diagnostics {
61
99
  beginCreate(scope: string, diagnosticsResourceName: string, options?: DiagnosticsCreateOptionalParams): Promise<SimplePollerLike<OperationState<DiagnosticsCreateResponse>, DiagnosticsCreateResponse>>;
62
100
  beginCreateAndWait(scope: string, diagnosticsResourceName: string, options?: DiagnosticsCreateOptionalParams): Promise<DiagnosticsCreateResponse>;
63
- checkNameAvailability(scope: string, options?: DiagnosticsCheckNameAvailabilityOptionalParams): Promise<DiagnosticsCheckNameAvailabilityResponse>;
64
101
  get(scope: string, diagnosticsResourceName: string, options?: DiagnosticsGetOptionalParams): Promise<DiagnosticsGetResponse>;
65
102
  }
66
103
 
67
- // @public
68
- export interface DiagnosticsCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {
69
- checkNameAvailabilityRequest?: CheckNameAvailabilityRequest;
70
- }
71
-
72
- // @public
73
- export type DiagnosticsCheckNameAvailabilityResponse = CheckNameAvailabilityResponse;
74
-
75
104
  // @public
76
105
  export interface DiagnosticsCreateOptionalParams extends coreClient.OperationOptions {
77
106
  diagnosticResourceRequest?: DiagnosticResource;
@@ -144,6 +173,21 @@ export interface ErrorResponse {
144
173
  error?: ErrorDetail;
145
174
  }
146
175
 
176
+ // @public
177
+ export type ExecutionStatus = string;
178
+
179
+ // @public
180
+ export interface Filter {
181
+ name?: string;
182
+ operator?: string;
183
+ values?: string;
184
+ }
185
+
186
+ // @public
187
+ export interface FilterGroup {
188
+ filter?: Filter[];
189
+ }
190
+
147
191
  // @public
148
192
  export function getContinuationToken(page: unknown): string | undefined;
149
193
 
@@ -155,11 +199,17 @@ export class HelpRP extends coreClient.ServiceClient {
155
199
  // (undocumented)
156
200
  apiVersion: string;
157
201
  // (undocumented)
202
+ checkNameAvailability: CheckNameAvailability;
203
+ // (undocumented)
158
204
  diagnostics: Diagnostics;
159
205
  // (undocumented)
160
206
  discoverySolution: DiscoverySolution;
161
207
  // (undocumented)
162
208
  operations: Operations;
209
+ // (undocumented)
210
+ solution: Solution;
211
+ // (undocumented)
212
+ troubleshooters: Troubleshooters;
163
213
  }
164
214
 
165
215
  // @public
@@ -185,6 +235,30 @@ export enum KnownActionType {
185
235
  Internal = "Internal"
186
236
  }
187
237
 
238
+ // @public
239
+ export enum KnownAggregationType {
240
+ Avg = "Avg",
241
+ Count = "Count",
242
+ Max = "Max",
243
+ Min = "Min",
244
+ Sum = "Sum"
245
+ }
246
+
247
+ // @public
248
+ export enum KnownAutomatedCheckResultType {
249
+ Error = "Error",
250
+ Information = "Information",
251
+ Success = "Success",
252
+ Warning = "Warning"
253
+ }
254
+
255
+ // @public
256
+ export enum KnownConfidence {
257
+ High = "High",
258
+ Low = "Low",
259
+ Medium = "Medium"
260
+ }
261
+
188
262
  // @public
189
263
  export enum KnownCreatedByType {
190
264
  Application = "Application",
@@ -193,6 +267,22 @@ export enum KnownCreatedByType {
193
267
  User = "User"
194
268
  }
195
269
 
270
+ // @public
271
+ export enum KnownDiagnosticProvisioningState {
272
+ Canceled = "Canceled",
273
+ Failed = "Failed",
274
+ PartialComplete = "PartialComplete",
275
+ Succeeded = "Succeeded"
276
+ }
277
+
278
+ // @public
279
+ export enum KnownExecutionStatus {
280
+ Failed = "Failed",
281
+ Running = "Running",
282
+ Success = "Success",
283
+ Warning = "Warning"
284
+ }
285
+
196
286
  // @public
197
287
  export enum KnownImportanceLevel {
198
288
  Critical = "Critical",
@@ -200,6 +290,13 @@ export enum KnownImportanceLevel {
200
290
  Warning = "Warning"
201
291
  }
202
292
 
293
+ // @public
294
+ export enum KnownName {
295
+ ProblemClassificationId = "ProblemClassificationId",
296
+ ReplacementKey = "ReplacementKey",
297
+ SolutionId = "SolutionId"
298
+ }
299
+
203
300
  // @public
204
301
  export enum KnownOrigin {
205
302
  System = "system",
@@ -208,13 +305,39 @@ export enum KnownOrigin {
208
305
  }
209
306
 
210
307
  // @public
211
- export enum KnownProvisioningState {
308
+ export enum KnownQuestionContentType {
309
+ Html = "Html",
310
+ Markdown = "Markdown",
311
+ Text = "Text"
312
+ }
313
+
314
+ // @public
315
+ export enum KnownQuestionType {
316
+ Dropdown = "Dropdown",
317
+ MultiLineInfoBox = "MultiLineInfoBox",
318
+ RadioButton = "RadioButton",
319
+ TextInput = "TextInput"
320
+ }
321
+
322
+ // @public
323
+ export enum KnownResultType {
324
+ Community = "Community",
325
+ Documentation = "Documentation"
326
+ }
327
+
328
+ // @public
329
+ export enum KnownSolutionProvisioningState {
212
330
  Canceled = "Canceled",
213
331
  Failed = "Failed",
214
- PartialComplete = "PartialComplete",
215
332
  Succeeded = "Succeeded"
216
333
  }
217
334
 
335
+ // @public
336
+ export enum KnownSolutionType {
337
+ Diagnostics = "Diagnostics",
338
+ Solutions = "Solutions"
339
+ }
340
+
218
341
  // @public
219
342
  export enum KnownStatus {
220
343
  Failed = "Failed",
@@ -224,6 +347,36 @@ export enum KnownStatus {
224
347
  Timeout = "Timeout"
225
348
  }
226
349
 
350
+ // @public
351
+ export enum KnownTroubleshooterProvisioningState {
352
+ AutoContinue = "AutoContinue",
353
+ Canceled = "Canceled",
354
+ Failed = "Failed",
355
+ Running = "Running",
356
+ Succeeded = "Succeeded"
357
+ }
358
+
359
+ // @public
360
+ export enum KnownType {
361
+ AutomatedCheck = "AutomatedCheck",
362
+ Decision = "Decision",
363
+ Insight = "Insight",
364
+ Solution = "Solution"
365
+ }
366
+
367
+ // @public
368
+ export interface MetricsBasedChart {
369
+ aggregationType?: AggregationType;
370
+ filterGroup?: FilterGroup;
371
+ name?: string;
372
+ replacementKey?: string;
373
+ timeSpanDuration?: string;
374
+ title?: string;
375
+ }
376
+
377
+ // @public
378
+ export type Name = string;
379
+
227
380
  // @public
228
381
  export interface Operation {
229
382
  readonly actionType?: ActionType;
@@ -270,10 +423,23 @@ export type OperationsListResponse = OperationListResult;
270
423
  export type Origin = string;
271
424
 
272
425
  // @public
273
- export type ProvisioningState = string;
426
+ export interface ProxyResource extends Resource {
427
+ }
274
428
 
275
429
  // @public
276
- export interface ProxyResource extends Resource {
430
+ export type QuestionContentType = string;
431
+
432
+ // @public
433
+ export type QuestionType = string;
434
+
435
+ // @public
436
+ export interface ReplacementMaps {
437
+ diagnostics?: SolutionsDiagnostic[];
438
+ metricsBasedCharts?: MetricsBasedChart[];
439
+ troubleshooters?: SolutionsTroubleshooters[];
440
+ videoGroups?: VideoGroup[];
441
+ videos?: Video[];
442
+ webResults?: WebResult[];
277
443
  }
278
444
 
279
445
  // @public
@@ -284,17 +450,187 @@ export interface Resource {
284
450
  readonly type?: string;
285
451
  }
286
452
 
453
+ // @public
454
+ export interface ResponseOption {
455
+ key?: string;
456
+ value?: string;
457
+ }
458
+
459
+ // @public
460
+ export interface ResponseValidationProperties {
461
+ isRequired?: boolean;
462
+ maxLength?: number;
463
+ regex?: string;
464
+ validationErrorMessage?: string;
465
+ }
466
+
467
+ // @public
468
+ export interface RestartTroubleshooterResponse {
469
+ readonly troubleshooterResourceName?: string;
470
+ }
471
+
472
+ // @public
473
+ export type ResultType = string;
474
+
475
+ // @public
476
+ export interface SearchResult {
477
+ confidence?: Confidence;
478
+ content?: string;
479
+ link?: string;
480
+ rank?: number;
481
+ resultType?: ResultType;
482
+ solutionId?: string;
483
+ source?: string;
484
+ title?: string;
485
+ }
486
+
487
+ // @public
488
+ export interface Section {
489
+ content?: string;
490
+ replacementMaps?: ReplacementMaps;
491
+ title?: string;
492
+ }
493
+
494
+ // @public
495
+ export interface Solution {
496
+ beginCreate(scope: string, solutionResourceName: string, options?: SolutionCreateOptionalParams): Promise<SimplePollerLike<OperationState<SolutionCreateResponse>, SolutionCreateResponse>>;
497
+ beginCreateAndWait(scope: string, solutionResourceName: string, options?: SolutionCreateOptionalParams): Promise<SolutionCreateResponse>;
498
+ beginUpdate(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SolutionUpdateResponse>, SolutionUpdateResponse>>;
499
+ beginUpdateAndWait(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SolutionUpdateResponse>;
500
+ get(scope: string, solutionResourceName: string, options?: SolutionGetOptionalParams): Promise<SolutionGetResponse>;
501
+ }
502
+
503
+ // @public
504
+ export interface SolutionCreateOptionalParams extends coreClient.OperationOptions {
505
+ resumeFrom?: string;
506
+ solutionRequestBody?: SolutionResource;
507
+ updateIntervalInMs?: number;
508
+ }
509
+
510
+ // @public
511
+ export type SolutionCreateResponse = SolutionResource;
512
+
513
+ // @public
514
+ export interface SolutionGetOptionalParams extends coreClient.OperationOptions {
515
+ }
516
+
517
+ // @public
518
+ export type SolutionGetResponse = SolutionResource;
519
+
520
+ // @public
521
+ export interface SolutionMetadataProperties {
522
+ readonly description?: string;
523
+ readonly requiredInputs?: string[];
524
+ solutionId?: string;
525
+ readonly solutionType?: SolutionType;
526
+ }
527
+
287
528
  // @public
288
529
  export interface SolutionMetadataResource extends ProxyResource {
289
- description?: string;
290
- requiredParameterSets?: string[][];
530
+ solutions?: SolutionMetadataProperties[];
531
+ }
532
+
533
+ // @public
534
+ export interface SolutionPatchRequestBody {
535
+ properties?: SolutionResourceProperties;
536
+ }
537
+
538
+ // @public
539
+ export type SolutionProvisioningState = string;
540
+
541
+ // @public
542
+ export interface SolutionResource {
543
+ readonly id?: string;
544
+ readonly name?: string;
545
+ properties?: SolutionResourceProperties;
546
+ readonly type?: string;
547
+ }
548
+
549
+ // @public
550
+ export interface SolutionResourceProperties {
551
+ content?: string;
552
+ parameters?: {
553
+ [propertyName: string]: string;
554
+ };
555
+ provisioningState?: SolutionProvisioningState;
556
+ replacementMaps?: ReplacementMaps;
557
+ sections?: Section[];
558
+ solutionId?: string;
559
+ title?: string;
560
+ triggerCriteria?: TriggerCriterion[];
561
+ }
562
+
563
+ // @public
564
+ export interface SolutionsDiagnostic {
565
+ insights?: Insight[];
566
+ replacementKey?: string;
567
+ requiredParameters?: string[];
568
+ solutionId?: string;
569
+ status?: Status;
570
+ statusDetails?: string;
571
+ }
572
+
573
+ // @public
574
+ export interface SolutionsTroubleshooters {
291
575
  solutionId?: string;
292
- solutionType?: string;
576
+ summary?: string;
577
+ title?: string;
293
578
  }
294
579
 
580
+ // @public
581
+ export type SolutionType = string;
582
+
583
+ // @public
584
+ export interface SolutionUpdateHeaders {
585
+ // (undocumented)
586
+ location?: string;
587
+ }
588
+
589
+ // @public
590
+ export interface SolutionUpdateOptionalParams extends coreClient.OperationOptions {
591
+ resumeFrom?: string;
592
+ solutionPatchRequestBody?: SolutionPatchRequestBody;
593
+ updateIntervalInMs?: number;
594
+ }
595
+
596
+ // @public
597
+ export type SolutionUpdateResponse = SolutionUpdateHeaders & SolutionResource;
598
+
295
599
  // @public
296
600
  export type Status = string;
297
601
 
602
+ // @public
603
+ export interface Step {
604
+ automatedCheckResults?: AutomatedCheckResult;
605
+ description?: string;
606
+ error?: ErrorDetail;
607
+ executionStatus?: ExecutionStatus;
608
+ executionStatusDescription?: string;
609
+ guidance?: string;
610
+ id?: string;
611
+ // (undocumented)
612
+ inputs?: StepInput[];
613
+ // (undocumented)
614
+ insights?: Insight[];
615
+ isLastStep?: boolean;
616
+ title?: string;
617
+ type?: Type;
618
+ }
619
+
620
+ // @public
621
+ export interface StepInput {
622
+ questionContent?: string;
623
+ questionContentType?: QuestionContentType;
624
+ questionId?: string;
625
+ questionType?: string;
626
+ recommendedOption?: string;
627
+ responseHint?: string;
628
+ // (undocumented)
629
+ responseOptions?: ResponseOption[];
630
+ responseValidationProperties?: ResponseValidationProperties;
631
+ selectedOptionValue?: string;
632
+ }
633
+
298
634
  // @public
299
635
  export interface SystemData {
300
636
  createdAt?: Date;
@@ -305,6 +641,122 @@ export interface SystemData {
305
641
  lastModifiedByType?: CreatedByType;
306
642
  }
307
643
 
644
+ // @public
645
+ export interface TriggerCriterion {
646
+ name?: Name;
647
+ value?: string;
648
+ }
649
+
650
+ // @public
651
+ export type TroubleshooterProvisioningState = string;
652
+
653
+ // @public
654
+ export interface TroubleshooterResource extends ProxyResource {
655
+ parameters?: {
656
+ [propertyName: string]: string;
657
+ };
658
+ readonly provisioningState?: TroubleshooterProvisioningState;
659
+ solutionId?: string;
660
+ readonly steps?: Step[];
661
+ }
662
+
663
+ // @public
664
+ export interface TroubleshooterResponse {
665
+ questionId?: string;
666
+ questionType?: QuestionType;
667
+ response?: string;
668
+ }
669
+
670
+ // @public
671
+ export interface Troubleshooters {
672
+ continue(scope: string, troubleshooterName: string, options?: TroubleshootersContinueOptionalParams): Promise<TroubleshootersContinueResponse>;
673
+ create(scope: string, troubleshooterName: string, options?: TroubleshootersCreateOptionalParams): Promise<TroubleshootersCreateResponse>;
674
+ end(scope: string, troubleshooterName: string, options?: TroubleshootersEndOptionalParams): Promise<TroubleshootersEndResponse>;
675
+ get(scope: string, troubleshooterName: string, options?: TroubleshootersGetOptionalParams): Promise<TroubleshootersGetResponse>;
676
+ restart(scope: string, troubleshooterName: string, options?: TroubleshootersRestartOptionalParams): Promise<TroubleshootersRestartResponse>;
677
+ }
678
+
679
+ // @public
680
+ export interface TroubleshootersContinueHeaders {
681
+ // (undocumented)
682
+ location?: string;
683
+ }
684
+
685
+ // @public
686
+ export interface TroubleshootersContinueOptionalParams extends coreClient.OperationOptions {
687
+ continueRequestBody?: ContinueRequestBody;
688
+ }
689
+
690
+ // @public
691
+ export type TroubleshootersContinueResponse = TroubleshootersContinueHeaders;
692
+
693
+ // @public
694
+ export interface TroubleshootersCreateOptionalParams extends coreClient.OperationOptions {
695
+ createTroubleshooterRequestBody?: TroubleshooterResource;
696
+ }
697
+
698
+ // @public
699
+ export type TroubleshootersCreateResponse = TroubleshooterResource;
700
+
701
+ // @public
702
+ export interface TroubleshootersEndHeaders {
703
+ // (undocumented)
704
+ location?: string;
705
+ }
706
+
707
+ // @public
708
+ export interface TroubleshootersEndOptionalParams extends coreClient.OperationOptions {
709
+ }
710
+
711
+ // @public
712
+ export type TroubleshootersEndResponse = TroubleshootersEndHeaders;
713
+
714
+ // @public
715
+ export interface TroubleshootersGetOptionalParams extends coreClient.OperationOptions {
716
+ }
717
+
718
+ // @public
719
+ export type TroubleshootersGetResponse = TroubleshooterResource;
720
+
721
+ // @public
722
+ export interface TroubleshootersRestartHeaders {
723
+ // (undocumented)
724
+ location?: string;
725
+ }
726
+
727
+ // @public
728
+ export interface TroubleshootersRestartOptionalParams extends coreClient.OperationOptions {
729
+ }
730
+
731
+ // @public
732
+ export type TroubleshootersRestartResponse = TroubleshootersRestartHeaders & RestartTroubleshooterResponse;
733
+
734
+ // @public
735
+ export type Type = string;
736
+
737
+ // @public
738
+ export interface Video extends VideoGroupVideo {
739
+ replacementKey?: string;
740
+ }
741
+
742
+ // @public
743
+ export interface VideoGroup {
744
+ replacementKey?: string;
745
+ videos?: VideoGroupVideo[];
746
+ }
747
+
748
+ // @public
749
+ export interface VideoGroupVideo {
750
+ src?: string;
751
+ title?: string;
752
+ }
753
+
754
+ // @public
755
+ export interface WebResult {
756
+ replacementKey?: string;
757
+ searchResults?: SearchResult[];
758
+ }
759
+
308
760
  // (No @packageDocumentation comment for this package)
309
761
 
310
762
  ```
package/src/helpRP.ts CHANGED
@@ -16,13 +16,19 @@ import {
16
16
  import * as coreAuth from "@azure/core-auth";
17
17
  import {
18
18
  OperationsImpl,
19
+ CheckNameAvailabilityImpl,
19
20
  DiagnosticsImpl,
20
- DiscoverySolutionImpl
21
+ DiscoverySolutionImpl,
22
+ SolutionImpl,
23
+ TroubleshootersImpl
21
24
  } from "./operations";
22
25
  import {
23
26
  Operations,
27
+ CheckNameAvailability,
24
28
  Diagnostics,
25
- DiscoverySolution
29
+ DiscoverySolution,
30
+ Solution,
31
+ Troubleshooters
26
32
  } from "./operationsInterfaces";
27
33
  import { HelpRPOptionalParams } from "./models";
28
34
 
@@ -52,7 +58,7 @@ export class HelpRP extends coreClient.ServiceClient {
52
58
  credential: credentials
53
59
  };
54
60
 
55
- const packageDetails = `azsdk-js-arm-selfhelp/1.0.1`;
61
+ const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.1`;
56
62
  const userAgentPrefix =
57
63
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
58
64
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -103,10 +109,13 @@ export class HelpRP extends coreClient.ServiceClient {
103
109
 
104
110
  // Assigning values to Constant parameters
105
111
  this.$host = options.$host || "https://management.azure.com";
106
- this.apiVersion = options.apiVersion || "2023-06-01";
112
+ this.apiVersion = options.apiVersion || "2023-09-01-preview";
107
113
  this.operations = new OperationsImpl(this);
114
+ this.checkNameAvailability = new CheckNameAvailabilityImpl(this);
108
115
  this.diagnostics = new DiagnosticsImpl(this);
109
116
  this.discoverySolution = new DiscoverySolutionImpl(this);
117
+ this.solution = new SolutionImpl(this);
118
+ this.troubleshooters = new TroubleshootersImpl(this);
110
119
  this.addCustomApiVersionPolicy(options.apiVersion);
111
120
  }
112
121
 
@@ -139,6 +148,9 @@ export class HelpRP extends coreClient.ServiceClient {
139
148
  }
140
149
 
141
150
  operations: Operations;
151
+ checkNameAvailability: CheckNameAvailability;
142
152
  diagnostics: Diagnostics;
143
153
  discoverySolution: DiscoverySolution;
154
+ solution: Solution;
155
+ troubleshooters: Troubleshooters;
144
156
  }