@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
@@ -238,47 +238,6 @@ export interface SolutionMetadataProperties {
238
238
  */
239
239
  readonly requiredInputs?: string[];
240
240
  }
241
- /** Solution response. */
242
- export interface SolutionResource {
243
- /**
244
- * Full resource uri of the resource.
245
- * NOTE: This property will not be serialized. It can only be populated by the server.
246
- */
247
- readonly id?: string;
248
- /**
249
- * Type of resource.
250
- * NOTE: This property will not be serialized. It can only be populated by the server.
251
- */
252
- readonly type?: string;
253
- /**
254
- * Resource name.
255
- * NOTE: This property will not be serialized. It can only be populated by the server.
256
- */
257
- readonly name?: string;
258
- /** Solution result */
259
- properties?: SolutionResourceProperties;
260
- }
261
- /** Solution result */
262
- export interface SolutionResourceProperties {
263
- /** Solution request trigger criteria */
264
- triggerCriteria?: TriggerCriterion[];
265
- /** Client input parameters to run Solution */
266
- parameters?: {
267
- [propertyName: string]: string;
268
- };
269
- /** Solution Id to identify single solution. */
270
- solutionId?: string;
271
- /** Status of solution provisioning. */
272
- provisioningState?: SolutionProvisioningState;
273
- /** The title. */
274
- title?: string;
275
- /** The HTML content that needs to be rendered and shown to customer. */
276
- content?: string;
277
- /** Solution replacement maps. */
278
- replacementMaps?: ReplacementMaps;
279
- /** List of section object. */
280
- sections?: Section[];
281
- }
282
241
  /** Solution request trigger criterion. SolutionId/ProblemClassificationId is the only supported trigger type for Solution PUT request. ReplacementKey is the only supported trigger type for Solution PATCH request. */
283
242
  export interface TriggerCriterion {
284
243
  /** Trigger criterion name. */
@@ -337,6 +296,8 @@ export interface SolutionsDiagnostic {
337
296
  statusDetails?: string;
338
297
  /** Place holder used in HTML Content replace control with the content */
339
298
  replacementKey?: string;
299
+ /** Diagnostics estimated completion time in minutes */
300
+ estimatedCompletionTime?: string;
340
301
  /** Required parameters of this item */
341
302
  requiredParameters?: string[];
342
303
  /** Diagnostic insights */
@@ -403,10 +364,51 @@ export interface Section {
403
364
  /** Solution replacement maps. */
404
365
  replacementMaps?: ReplacementMaps;
405
366
  }
406
- /** Solution response. */
367
+ /** Solution PatchRequest body */
407
368
  export interface SolutionPatchRequestBody {
408
- /** Solution result */
409
- properties?: SolutionResourceProperties;
369
+ /** Solution request trigger criteria */
370
+ triggerCriteria?: TriggerCriterion[];
371
+ /** Client input parameters to run Solution */
372
+ parameters?: {
373
+ [propertyName: string]: string;
374
+ };
375
+ /**
376
+ * Solution Id to identify single solution.
377
+ * NOTE: This property will not be serialized. It can only be populated by the server.
378
+ */
379
+ readonly solutionId?: string;
380
+ /**
381
+ * Status of solution provisioning.
382
+ * NOTE: This property will not be serialized. It can only be populated by the server.
383
+ */
384
+ readonly provisioningState?: SolutionProvisioningState;
385
+ /**
386
+ * The title.
387
+ * NOTE: This property will not be serialized. It can only be populated by the server.
388
+ */
389
+ readonly title?: string;
390
+ /**
391
+ * The HTML content that needs to be rendered and shown to customer.
392
+ * NOTE: This property will not be serialized. It can only be populated by the server.
393
+ */
394
+ readonly content?: string;
395
+ /**
396
+ * Solution replacement maps.
397
+ * NOTE: This property will not be serialized. It can only be populated by the server.
398
+ */
399
+ readonly replacementMaps?: ReplacementMaps;
400
+ /**
401
+ * List of section object.
402
+ * NOTE: This property will not be serialized. It can only be populated by the server.
403
+ */
404
+ readonly sections?: Section[];
405
+ }
406
+ /** Solution WarmUpRequest body */
407
+ export interface SolutionWarmUpRequestBody {
408
+ /** Dictionary of <string> */
409
+ parameters?: {
410
+ [propertyName: string]: string;
411
+ };
410
412
  }
411
413
  /** Troubleshooter step */
412
414
  export interface Step {
@@ -437,8 +439,10 @@ export interface Step {
437
439
  export interface StepInput {
438
440
  /** Use Index as QuestionId. */
439
441
  questionId?: string;
440
- /** Text Input. Will be a single line input. */
441
- questionType?: string;
442
+ /** Type of Question */
443
+ questionType?: QuestionType;
444
+ /** Question title */
445
+ questionTitle?: string;
442
446
  /** User question content. */
443
447
  questionContent?: string;
444
448
  /** Default is Text. */
@@ -457,6 +461,8 @@ export interface StepInput {
457
461
  export interface ResponseValidationProperties {
458
462
  /** Regex used for the input validation. */
459
463
  regex?: string;
464
+ /** Validation scope */
465
+ validationScope?: ValidationScope;
460
466
  /** Default True */
461
467
  isRequired?: boolean;
462
468
  /** Validation Error Message. */
@@ -473,6 +479,10 @@ export interface ResponseOption {
473
479
  }
474
480
  /** Only for AutomatedStep type */
475
481
  export interface AutomatedCheckResult {
482
+ /** Version for automated check result */
483
+ version?: string;
484
+ /** Status for automated check result */
485
+ status?: string;
476
486
  /** Insight Article Content */
477
487
  result?: string;
478
488
  /** Type of Result. */
@@ -488,7 +498,7 @@ export interface ContinueRequestBody {
488
498
  export interface TroubleshooterResponse {
489
499
  /** id of the question. */
490
500
  questionId?: string;
491
- /** Text Input. Will be a single line input. */
501
+ /** Type of Question */
492
502
  questionType?: QuestionType;
493
503
  /** Response key for SingleInput. For Multi-line test/open ended question it is free form text */
494
504
  response?: string;
@@ -501,6 +511,55 @@ export interface RestartTroubleshooterResponse {
501
511
  */
502
512
  readonly troubleshooterResourceName?: string;
503
513
  }
514
+ /** Solution replacement maps. */
515
+ export interface ReplacementMapsSelfHelp {
516
+ /** Solution AzureKB results */
517
+ webResults?: WebResult[];
518
+ /** Video solutions, which have the power to engage the customer by stimulating their senses */
519
+ videos?: Video[];
520
+ /** Group of Videos */
521
+ videoGroups?: VideoGroup[];
522
+ }
523
+ /** Part of the solution and are dividers in the solution rendering. */
524
+ export interface SectionSelfHelp {
525
+ /** Solution sections title. */
526
+ title?: string;
527
+ /** Solution sections content. */
528
+ content?: string;
529
+ /** Solution replacement maps. */
530
+ replacementMaps?: ReplacementMapsSelfHelp;
531
+ }
532
+ /** Discover NLP request. */
533
+ export interface DiscoveryNlpRequest {
534
+ /** Natural language description of the issue. */
535
+ issueSummary: string;
536
+ /** ARM resource Id of the resource that is having the issue. */
537
+ resourceId?: string;
538
+ /** ARM service Id of the service that is having the issue. For more information on service Id see https://learn.microsoft.com/rest/api/support/services/list?tabs=HTTP. */
539
+ serviceId?: string;
540
+ /** Additional information in the form of a string. */
541
+ additionalContext?: string;
542
+ }
543
+ /** Successfully fetched list of solution metadata. */
544
+ export interface DiscoveryNlpResponse {
545
+ /** The list of solution metadata. */
546
+ value?: SolutionNlpMetadataResource[];
547
+ }
548
+ /** Service Classification result object. */
549
+ export interface ClassificationService {
550
+ /**
551
+ * Azure resource Id of the service.
552
+ * NOTE: This property will not be serialized. It can only be populated by the server.
553
+ */
554
+ readonly serviceId?: string;
555
+ /**
556
+ * Localized name of the azure service.
557
+ * NOTE: This property will not be serialized. It can only be populated by the server.
558
+ */
559
+ readonly displayName?: string;
560
+ /** List of applicable ARM resource types for this service. */
561
+ resourceTypes?: string[];
562
+ }
504
563
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
505
564
  export interface ProxyResource extends Resource {
506
565
  }
@@ -511,7 +570,7 @@ export interface Video extends VideoGroupVideo {
511
570
  }
512
571
  /** Diagnostic resource */
513
572
  export interface DiagnosticResource extends ProxyResource {
514
- /** Global parameters that can be passed to all solutionIds. */
573
+ /** Global parameters is an optional map which can be used to add key and value to request body to improve the diagnostics results */
515
574
  globalParameters?: {
516
575
  [propertyName: string]: string;
517
576
  };
@@ -538,6 +597,76 @@ export interface SolutionMetadataResource extends ProxyResource {
538
597
  /** List of metadata. */
539
598
  solutions?: SolutionMetadataProperties[];
540
599
  }
600
+ /** Solution response. */
601
+ export interface SolutionResource extends ProxyResource {
602
+ /** Solution request trigger criteria */
603
+ triggerCriteria?: TriggerCriterion[];
604
+ /** Client input parameters to run Solution */
605
+ parameters?: {
606
+ [propertyName: string]: string;
607
+ };
608
+ /**
609
+ * Solution Id to identify single solution.
610
+ * NOTE: This property will not be serialized. It can only be populated by the server.
611
+ */
612
+ readonly solutionId?: string;
613
+ /**
614
+ * Status of solution provisioning.
615
+ * NOTE: This property will not be serialized. It can only be populated by the server.
616
+ */
617
+ readonly provisioningState?: SolutionProvisioningState;
618
+ /**
619
+ * The title.
620
+ * NOTE: This property will not be serialized. It can only be populated by the server.
621
+ */
622
+ readonly title?: string;
623
+ /**
624
+ * The HTML content that needs to be rendered and shown to customer.
625
+ * NOTE: This property will not be serialized. It can only be populated by the server.
626
+ */
627
+ readonly content?: string;
628
+ /**
629
+ * Solution replacement maps.
630
+ * NOTE: This property will not be serialized. It can only be populated by the server.
631
+ */
632
+ readonly replacementMaps?: ReplacementMaps;
633
+ /**
634
+ * List of section object.
635
+ * NOTE: This property will not be serialized. It can only be populated by the server.
636
+ */
637
+ readonly sections?: Section[];
638
+ }
639
+ /** Simplified Solutions response. */
640
+ export interface SimplifiedSolutionsResource extends ProxyResource {
641
+ /** Solution Id to identify single Simplified Solution. */
642
+ solutionId?: string;
643
+ /** Client input parameters to run Simplified Solutions */
644
+ parameters?: {
645
+ [propertyName: string]: string;
646
+ };
647
+ /**
648
+ * The title.
649
+ * NOTE: This property will not be serialized. It can only be populated by the server.
650
+ */
651
+ readonly title?: string;
652
+ /**
653
+ * Additional parameter response for Simplified Solutions
654
+ * NOTE: This property will not be serialized. It can only be populated by the server.
655
+ */
656
+ readonly appendix?: {
657
+ [propertyName: string]: string;
658
+ };
659
+ /**
660
+ * The HTML content that needs to be rendered and shown to customer.
661
+ * NOTE: This property will not be serialized. It can only be populated by the server.
662
+ */
663
+ readonly content?: string;
664
+ /**
665
+ * Status of Simplified Solution provisioning.
666
+ * NOTE: This property will not be serialized. It can only be populated by the server.
667
+ */
668
+ readonly provisioningState?: SolutionProvisioningState;
669
+ }
541
670
  /** Troubleshooter response. */
542
671
  export interface TroubleshooterResource extends ProxyResource {
543
672
  /** Solution Id to identify single troubleshooter. */
@@ -557,6 +686,49 @@ export interface TroubleshooterResource extends ProxyResource {
557
686
  */
558
687
  readonly steps?: Step[];
559
688
  }
689
+ /** Self Help Solution response. */
690
+ export interface SolutionResourceSelfHelp extends ProxyResource {
691
+ /**
692
+ * SolutionId is a unique id to identify a solution. You can retrieve the solution id using the Discovery api - https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
693
+ * NOTE: This property will not be serialized. It can only be populated by the server.
694
+ */
695
+ readonly solutionId?: string;
696
+ /**
697
+ * The title.
698
+ * NOTE: This property will not be serialized. It can only be populated by the server.
699
+ */
700
+ readonly title?: string;
701
+ /**
702
+ * The HTML content that needs to be rendered and shown to customer.
703
+ * NOTE: This property will not be serialized. It can only be populated by the server.
704
+ */
705
+ readonly content?: string;
706
+ /**
707
+ * Solution replacement maps.
708
+ * NOTE: This property will not be serialized. It can only be populated by the server.
709
+ */
710
+ readonly replacementMaps?: ReplacementMapsSelfHelp;
711
+ /**
712
+ * List of section object.
713
+ * NOTE: This property will not be serialized. It can only be populated by the server.
714
+ */
715
+ readonly sections?: SectionSelfHelp[];
716
+ }
717
+ /** Nlp Metadata resource */
718
+ export interface SolutionNlpMetadataResource extends ProxyResource {
719
+ /** Title of the problem classification. */
720
+ problemTitle?: string;
721
+ /** Description of the problem classification. */
722
+ problemDescription?: string;
723
+ /** Id of the service (https://learn.microsoft.com/en-us/rest/api/support/services?view=rest-support-2020-04-01) that may be used to create a support ticket. */
724
+ serviceId?: string;
725
+ /** Id of the ProblemClassification (https://learn.microsoft.com/en-us/rest/api/support/problem-classifications?view=rest-support-2020-04-01) that may be used to create a support ticket. */
726
+ problemClassificationId?: string;
727
+ /** The list of solution metadata. */
728
+ solutions?: SolutionMetadataProperties[];
729
+ /** The set of services that are most likely related to the request. If relatedServices is included in the response then solutions may not be discovered until the client calls a second time specifying one of the service Ids in the relatedServices object. */
730
+ relatedServices?: ClassificationService[];
731
+ }
560
732
  /** Defines headers for Solution_update operation. */
561
733
  export interface SolutionUpdateHeaders {
562
734
  location?: string;
@@ -613,6 +785,8 @@ export declare enum KnownDiagnosticProvisioningState {
613
785
  PartialComplete = "PartialComplete",
614
786
  /** All Diagnostics failed to run. */
615
787
  Failed = "Failed",
788
+ /** All Diagnostics are still running. */
789
+ Running = "Running",
616
790
  /** When Diagnostic request gets canceled. */
617
791
  Canceled = "Canceled"
618
792
  }
@@ -624,6 +798,7 @@ export declare enum KnownDiagnosticProvisioningState {
624
798
  * **Succeeded**: All Diagnostics in the Batch succeeded. \
625
799
  * **PartialComplete**: Some Diagnostics are still running or failed. \
626
800
  * **Failed**: All Diagnostics failed to run. \
801
+ * **Running**: All Diagnostics are still running. \
627
802
  * **Canceled**: When Diagnostic request gets canceled.
628
803
  */
629
804
  export type DiagnosticProvisioningState = string;
@@ -698,7 +873,11 @@ export declare enum KnownSolutionType {
698
873
  /** Diagnostics resource type. */
699
874
  Diagnostics = "Diagnostics",
700
875
  /** Solutions resource type. */
701
- Solutions = "Solutions"
876
+ Solutions = "Solutions",
877
+ /** Troubleshooters resource type. */
878
+ Troubleshooters = "Troubleshooters",
879
+ /** SelfHelp resource type. */
880
+ SelfHelp = "SelfHelp"
702
881
  }
703
882
  /**
704
883
  * Defines values for SolutionType. \
@@ -706,7 +885,9 @@ export declare enum KnownSolutionType {
706
885
  * this enum contains the known values that the service supports.
707
886
  * ### Known values supported by the service
708
887
  * **Diagnostics**: Diagnostics resource type. \
709
- * **Solutions**: Solutions resource type.
888
+ * **Solutions**: Solutions resource type. \
889
+ * **Troubleshooters**: Troubleshooters resource type. \
890
+ * **SelfHelp**: SelfHelp resource type.
710
891
  */
711
892
  export type SolutionType = string;
712
893
  /** Known values of {@link Name} that the service accepts. */
@@ -730,11 +911,15 @@ export declare enum KnownName {
730
911
  export type Name = string;
731
912
  /** Known values of {@link SolutionProvisioningState} that the service accepts. */
732
913
  export declare enum KnownSolutionProvisioningState {
733
- /** Succeeded */
914
+ /** All Solutions in the Batch succeeded. */
734
915
  Succeeded = "Succeeded",
735
- /** Failed */
916
+ /** Some Solutions are still running or failed. */
917
+ PartialComplete = "PartialComplete",
918
+ /** All Solutions failed to run. */
736
919
  Failed = "Failed",
737
- /** Canceled */
920
+ /** All Solutions are still running. */
921
+ Running = "Running",
922
+ /** When Solutions request gets canceled. */
738
923
  Canceled = "Canceled"
739
924
  }
740
925
  /**
@@ -742,9 +927,11 @@ export declare enum KnownSolutionProvisioningState {
742
927
  * {@link KnownSolutionProvisioningState} can be used interchangeably with SolutionProvisioningState,
743
928
  * this enum contains the known values that the service supports.
744
929
  * ### Known values supported by the service
745
- * **Succeeded** \
746
- * **Failed** \
747
- * **Canceled**
930
+ * **Succeeded**: All Solutions in the Batch succeeded. \
931
+ * **PartialComplete**: Some Solutions are still running or failed. \
932
+ * **Failed**: All Solutions failed to run. \
933
+ * **Running**: All Solutions are still running. \
934
+ * **Canceled**: When Solutions request gets canceled.
748
935
  */
749
936
  export type SolutionProvisioningState = string;
750
937
  /** Known values of {@link Confidence} that the service accepts. */
@@ -834,13 +1021,13 @@ export declare enum KnownTroubleshooterProvisioningState {
834
1021
  export type TroubleshooterProvisioningState = string;
835
1022
  /** Known values of {@link ExecutionStatus} that the service accepts. */
836
1023
  export declare enum KnownExecutionStatus {
837
- /** Success */
1024
+ /** Step execution succeeded. */
838
1025
  Success = "Success",
839
- /** Running */
1026
+ /** Step execution running */
840
1027
  Running = "Running",
841
- /** Failed */
1028
+ /** Step execution failed */
842
1029
  Failed = "Failed",
843
- /** Warning */
1030
+ /** Step execution warning */
844
1031
  Warning = "Warning"
845
1032
  }
846
1033
  /**
@@ -848,10 +1035,10 @@ export declare enum KnownExecutionStatus {
848
1035
  * {@link KnownExecutionStatus} can be used interchangeably with ExecutionStatus,
849
1036
  * this enum contains the known values that the service supports.
850
1037
  * ### Known values supported by the service
851
- * **Success** \
852
- * **Running** \
853
- * **Failed** \
854
- * **Warning**
1038
+ * **Success**: Step execution succeeded. \
1039
+ * **Running**: Step execution running \
1040
+ * **Failed**: Step execution failed \
1041
+ * **Warning**: Step execution warning
855
1042
  */
856
1043
  export type ExecutionStatus = string;
857
1044
  /** Known values of {@link Type} that the service accepts. */
@@ -863,7 +1050,9 @@ export declare enum KnownType {
863
1050
  /** Insight */
864
1051
  Insight = "Insight",
865
1052
  /** AutomatedCheck */
866
- AutomatedCheck = "AutomatedCheck"
1053
+ AutomatedCheck = "AutomatedCheck",
1054
+ /** Input */
1055
+ Input = "Input"
867
1056
  }
868
1057
  /**
869
1058
  * Defines values for Type. \
@@ -873,9 +1062,38 @@ export declare enum KnownType {
873
1062
  * **Decision** \
874
1063
  * **Solution** \
875
1064
  * **Insight** \
876
- * **AutomatedCheck**
1065
+ * **AutomatedCheck** \
1066
+ * **Input**
877
1067
  */
878
1068
  export type Type = string;
1069
+ /** Known values of {@link QuestionType} that the service accepts. */
1070
+ export declare enum KnownQuestionType {
1071
+ /** SingleChoice radio button */
1072
+ RadioButton = "RadioButton",
1073
+ /** SingleChoice dropdown. */
1074
+ Dropdown = "Dropdown",
1075
+ /** Text Input */
1076
+ TextInput = "TextInput",
1077
+ /** MultiLineInfoBox */
1078
+ MultiLineInfoBox = "MultiLineInfoBox",
1079
+ /** DateTime Picker */
1080
+ DateTimePicker = "DateTimePicker",
1081
+ /** Multi Select */
1082
+ MultiSelect = "MultiSelect"
1083
+ }
1084
+ /**
1085
+ * Defines values for QuestionType. \
1086
+ * {@link KnownQuestionType} can be used interchangeably with QuestionType,
1087
+ * this enum contains the known values that the service supports.
1088
+ * ### Known values supported by the service
1089
+ * **RadioButton**: SingleChoice radio button \
1090
+ * **Dropdown**: SingleChoice dropdown. \
1091
+ * **TextInput**: Text Input \
1092
+ * **MultiLineInfoBox**: MultiLineInfoBox \
1093
+ * **DateTimePicker**: DateTime Picker \
1094
+ * **MultiSelect**: Multi Select
1095
+ */
1096
+ export type QuestionType = string;
879
1097
  /** Known values of {@link QuestionContentType} that the service accepts. */
880
1098
  export declare enum KnownQuestionContentType {
881
1099
  /** Text */
@@ -895,6 +1113,31 @@ export declare enum KnownQuestionContentType {
895
1113
  * **Markdown**
896
1114
  */
897
1115
  export type QuestionContentType = string;
1116
+ /** Known values of {@link ValidationScope} that the service accepts. */
1117
+ export declare enum KnownValidationScope {
1118
+ /** None */
1119
+ None = "None",
1120
+ /** URLFormat */
1121
+ URLFormat = "URLFormat",
1122
+ /** GuidFormat */
1123
+ GuidFormat = "GuidFormat",
1124
+ /** IpAddressFormat */
1125
+ IpAddressFormat = "IpAddressFormat",
1126
+ /** NumberOnlyFormat */
1127
+ NumberOnlyFormat = "NumberOnlyFormat"
1128
+ }
1129
+ /**
1130
+ * Defines values for ValidationScope. \
1131
+ * {@link KnownValidationScope} can be used interchangeably with ValidationScope,
1132
+ * this enum contains the known values that the service supports.
1133
+ * ### Known values supported by the service
1134
+ * **None** \
1135
+ * **URLFormat** \
1136
+ * **GuidFormat** \
1137
+ * **IpAddressFormat** \
1138
+ * **NumberOnlyFormat**
1139
+ */
1140
+ export type ValidationScope = string;
898
1141
  /** Known values of {@link AutomatedCheckResultType} that the service accepts. */
899
1142
  export declare enum KnownAutomatedCheckResultType {
900
1143
  /** Success */
@@ -917,28 +1160,6 @@ export declare enum KnownAutomatedCheckResultType {
917
1160
  * **Information**
918
1161
  */
919
1162
  export type AutomatedCheckResultType = string;
920
- /** Known values of {@link QuestionType} that the service accepts. */
921
- export declare enum KnownQuestionType {
922
- /** SingleChoice radio button */
923
- RadioButton = "RadioButton",
924
- /** SingleChoice dropdown. */
925
- Dropdown = "Dropdown",
926
- /** Text Input */
927
- TextInput = "TextInput",
928
- /** MultiLineInfoBox */
929
- MultiLineInfoBox = "MultiLineInfoBox"
930
- }
931
- /**
932
- * Defines values for QuestionType. \
933
- * {@link KnownQuestionType} can be used interchangeably with QuestionType,
934
- * this enum contains the known values that the service supports.
935
- * ### Known values supported by the service
936
- * **RadioButton**: SingleChoice radio button \
937
- * **Dropdown**: SingleChoice dropdown. \
938
- * **TextInput**: Text Input \
939
- * **MultiLineInfoBox**: MultiLineInfoBox
940
- */
941
- export type QuestionType = string;
942
1163
  /** Optional parameters. */
943
1164
  export interface OperationsListOptionalParams extends coreClient.OperationOptions {
944
1165
  }
@@ -974,7 +1195,7 @@ export interface DiagnosticsGetOptionalParams extends coreClient.OperationOption
974
1195
  export type DiagnosticsGetResponse = DiagnosticResource;
975
1196
  /** Optional parameters. */
976
1197
  export interface DiscoverySolutionListOptionalParams extends coreClient.OperationOptions {
977
- /** 'ProblemClassificationId' or 'Id' is a mandatory filter to get solutions ids. It also supports optional 'ResourceType' and 'SolutionType' filters. The filter supports only 'and', 'or' and 'eq' operators. Example: $filter=ProblemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e' */
1198
+ /** 'ProblemClassificationId' is a mandatory filter to get solutions ids. It also supports optional 'ResourceType' and 'SolutionType' filters. The [$filter](https://learn.microsoft.com/en-us/odata/webapi/first-odata-api#filter) supports only 'and', 'or' and 'eq' operators. Example: $filter=ProblemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e' */
978
1199
  filter?: string;
979
1200
  /** Skiptoken is only used if a previous operation returned a partial result. */
980
1201
  skiptoken?: string;
@@ -1014,6 +1235,27 @@ export interface SolutionUpdateOptionalParams extends coreClient.OperationOption
1014
1235
  /** Contains response data for the update operation. */
1015
1236
  export type SolutionUpdateResponse = SolutionUpdateHeaders & SolutionResource;
1016
1237
  /** Optional parameters. */
1238
+ export interface SolutionWarmUpOptionalParams extends coreClient.OperationOptions {
1239
+ /** The required request body for warming up a solution resource. */
1240
+ solutionWarmUpRequestBody?: SolutionWarmUpRequestBody;
1241
+ }
1242
+ /** Optional parameters. */
1243
+ export interface SimplifiedSolutionsCreateOptionalParams extends coreClient.OperationOptions {
1244
+ /** The required request body for simplified Solutions resource creation. */
1245
+ simplifiedSolutionsRequestBody?: SimplifiedSolutionsResource;
1246
+ /** Delay to wait until next poll, in milliseconds. */
1247
+ updateIntervalInMs?: number;
1248
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1249
+ resumeFrom?: string;
1250
+ }
1251
+ /** Contains response data for the create operation. */
1252
+ export type SimplifiedSolutionsCreateResponse = SimplifiedSolutionsResource;
1253
+ /** Optional parameters. */
1254
+ export interface SimplifiedSolutionsGetOptionalParams extends coreClient.OperationOptions {
1255
+ }
1256
+ /** Contains response data for the get operation. */
1257
+ export type SimplifiedSolutionsGetResponse = SimplifiedSolutionsResource;
1258
+ /** Optional parameters. */
1017
1259
  export interface TroubleshootersCreateOptionalParams extends coreClient.OperationOptions {
1018
1260
  /** The required request body for this Troubleshooter resource creation. */
1019
1261
  createTroubleshooterRequestBody?: TroubleshooterResource;
@@ -1043,6 +1285,25 @@ export interface TroubleshootersRestartOptionalParams extends coreClient.Operati
1043
1285
  /** Contains response data for the restart operation. */
1044
1286
  export type TroubleshootersRestartResponse = TroubleshootersRestartHeaders & RestartTroubleshooterResponse;
1045
1287
  /** Optional parameters. */
1288
+ export interface SolutionSelfHelpGetOptionalParams extends coreClient.OperationOptions {
1289
+ }
1290
+ /** Contains response data for the get operation. */
1291
+ export type SolutionSelfHelpGetResponse = SolutionResourceSelfHelp;
1292
+ /** Optional parameters. */
1293
+ export interface DiscoverySolutionNLPTenantScopePostOptionalParams extends coreClient.OperationOptions {
1294
+ /** Request body for discovering solutions using NLP. */
1295
+ discoverSolutionRequest?: DiscoveryNlpRequest;
1296
+ }
1297
+ /** Contains response data for the post operation. */
1298
+ export type DiscoverySolutionNLPTenantScopePostResponse = DiscoveryNlpResponse;
1299
+ /** Optional parameters. */
1300
+ export interface DiscoverySolutionNLPSubscriptionScopePostOptionalParams extends coreClient.OperationOptions {
1301
+ /** Request body for discovering solutions using NLP. */
1302
+ discoverSolutionRequest?: DiscoveryNlpRequest;
1303
+ }
1304
+ /** Contains response data for the post operation. */
1305
+ export type DiscoverySolutionNLPSubscriptionScopePostResponse = DiscoveryNlpResponse;
1306
+ /** Optional parameters. */
1046
1307
  export interface HelpRPOptionalParams extends coreClient.ServiceClientOptions {
1047
1308
  /** server parameter */
1048
1309
  $host?: string;