@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
@@ -159,7 +159,7 @@ export interface Diagnostic {
159
159
  error?: ErrorModel;
160
160
  }
161
161
 
162
- /** Detailed insights(s) obtained via the invocation of an insight diagnostic troubleshooter. */
162
+ /** Detailed insights(s) obtained via the invocation of an insight diagnostic */
163
163
  export interface Insight {
164
164
  /** Article id. */
165
165
  id?: string;
@@ -195,7 +195,7 @@ export interface ErrorModel {
195
195
  /** Common fields that are returned in the response for all Azure Resource Manager resources */
196
196
  export interface Resource {
197
197
  /**
198
- * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
198
+ * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
199
199
  * NOTE: This property will not be serialized. It can only be populated by the server.
200
200
  */
201
201
  readonly id?: string;
@@ -234,15 +234,326 @@ export interface SystemData {
234
234
 
235
235
  /** Discovery response. */
236
236
  export interface DiscoveryResponse {
237
- /** The list of solution metadata. */
237
+ /** The list of metadata. */
238
238
  value?: SolutionMetadataResource[];
239
239
  /** The link used to get the next page of solution metadata. */
240
240
  nextLink?: string;
241
241
  }
242
242
 
243
+ /** Metadata Properties */
244
+ export interface SolutionMetadataProperties {
245
+ /** Solution Id. */
246
+ solutionId?: string;
247
+ /**
248
+ * Solution Type.
249
+ * NOTE: This property will not be serialized. It can only be populated by the server.
250
+ */
251
+ readonly solutionType?: SolutionType;
252
+ /**
253
+ * A detailed description of solution.
254
+ * NOTE: This property will not be serialized. It can only be populated by the server.
255
+ */
256
+ readonly description?: string;
257
+ /**
258
+ * Required parameters for invoking this particular solution.
259
+ * NOTE: This property will not be serialized. It can only be populated by the server.
260
+ */
261
+ readonly requiredInputs?: string[];
262
+ }
263
+
264
+ /** Solution response. */
265
+ export interface SolutionResource {
266
+ /**
267
+ * Full resource uri of the resource.
268
+ * NOTE: This property will not be serialized. It can only be populated by the server.
269
+ */
270
+ readonly id?: string;
271
+ /**
272
+ * Type of resource.
273
+ * NOTE: This property will not be serialized. It can only be populated by the server.
274
+ */
275
+ readonly type?: string;
276
+ /**
277
+ * Resource name.
278
+ * NOTE: This property will not be serialized. It can only be populated by the server.
279
+ */
280
+ readonly name?: string;
281
+ /** Solution result */
282
+ properties?: SolutionResourceProperties;
283
+ }
284
+
285
+ /** Solution result */
286
+ export interface SolutionResourceProperties {
287
+ /** Solution request trigger criteria */
288
+ triggerCriteria?: TriggerCriterion[];
289
+ /** Client input parameters to run Solution */
290
+ parameters?: { [propertyName: string]: string };
291
+ /** Solution Id to identify single solution. */
292
+ solutionId?: string;
293
+ /** Status of solution provisioning. */
294
+ provisioningState?: SolutionProvisioningState;
295
+ /** The title. */
296
+ title?: string;
297
+ /** The HTML content that needs to be rendered and shown to customer. */
298
+ content?: string;
299
+ /** Solution replacement maps. */
300
+ replacementMaps?: ReplacementMaps;
301
+ /** List of section object. */
302
+ sections?: Section[];
303
+ }
304
+
305
+ /** 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. */
306
+ export interface TriggerCriterion {
307
+ /** Trigger criterion name. */
308
+ name?: Name;
309
+ /** Trigger criterion value. */
310
+ value?: string;
311
+ }
312
+
313
+ /** Solution replacement maps. */
314
+ export interface ReplacementMaps {
315
+ /** Solution AzureKB results */
316
+ webResults?: WebResult[];
317
+ /** Solution diagnostics results. */
318
+ diagnostics?: SolutionsDiagnostic[];
319
+ /** Solutions Troubleshooters */
320
+ troubleshooters?: SolutionsTroubleshooters[];
321
+ /** Solution metrics based charts */
322
+ metricsBasedCharts?: MetricsBasedChart[];
323
+ /** Video solutions, which have the power to engage the customer by stimulating their senses */
324
+ videos?: Video[];
325
+ /** Group of Videos */
326
+ videoGroups?: VideoGroup[];
327
+ }
328
+
329
+ /** AzureKB web result */
330
+ export interface WebResult {
331
+ /** Place holder used in HTML Content replace control with the content */
332
+ replacementKey?: string;
333
+ /** AzureKB search results */
334
+ searchResults?: SearchResult[];
335
+ }
336
+
337
+ /** Details of an AzureKB search result. */
338
+ export interface SearchResult {
339
+ /** Unique id of the result. */
340
+ solutionId?: string;
341
+ /** Content of the search result. */
342
+ content?: string;
343
+ /** Title of the search result. */
344
+ title?: string;
345
+ /** Confidence of the search result. */
346
+ confidence?: Confidence;
347
+ /** Source of the search result. */
348
+ source?: string;
349
+ /** Result type of the search result. */
350
+ resultType?: ResultType;
351
+ /** rank of the search result */
352
+ rank?: number;
353
+ /** Link to the document. */
354
+ link?: string;
355
+ }
356
+
357
+ /** Solutions Diagnostic */
358
+ export interface SolutionsDiagnostic {
359
+ /** Solution Id to identify single Solutions Diagnostic */
360
+ solutionId?: string;
361
+ /** Denotes the status of the diagnostic resource. */
362
+ status?: Status;
363
+ /** Details of the status */
364
+ statusDetails?: string;
365
+ /** Place holder used in HTML Content replace control with the content */
366
+ replacementKey?: string;
367
+ /** Required parameters of this item */
368
+ requiredParameters?: string[];
369
+ /** Diagnostic insights */
370
+ insights?: Insight[];
371
+ }
372
+
373
+ /** Troubleshooters in Solutions */
374
+ export interface SolutionsTroubleshooters {
375
+ /** Solution Id to identify single Solutions Troubleshooter */
376
+ solutionId?: string;
377
+ /** Troubleshooter title */
378
+ title?: string;
379
+ /** Troubleshooter summary */
380
+ summary?: string;
381
+ }
382
+
383
+ /** Solutions metrics based chart */
384
+ export interface MetricsBasedChart {
385
+ /** Chart name */
386
+ name?: string;
387
+ /** Allowed values are Sum, Avg, Count, Min, Max. Default is Sum */
388
+ aggregationType?: AggregationType;
389
+ /** Time span duration */
390
+ timeSpanDuration?: string;
391
+ /** Chart title */
392
+ title?: string;
393
+ /** Filter group */
394
+ filterGroup?: FilterGroup;
395
+ /** Place holder used in HTML Content replace control with the content */
396
+ replacementKey?: string;
397
+ }
398
+
399
+ /** Filter group */
400
+ export interface FilterGroup {
401
+ /** List of filters */
402
+ filter?: Filter[];
403
+ }
404
+
405
+ /** Filter criterion */
406
+ export interface Filter {
407
+ /** Filter name */
408
+ name?: string;
409
+ /** Filter values */
410
+ values?: string;
411
+ /** Filter operator */
412
+ operator?: string;
413
+ }
414
+
415
+ /** VideoGroup video detail */
416
+ export interface VideoGroupVideo {
417
+ /** Link to the video */
418
+ src?: string;
419
+ /** Title of the video */
420
+ title?: string;
421
+ }
422
+
423
+ /** Video group detail */
424
+ export interface VideoGroup {
425
+ /** List of videos will be shown to customers */
426
+ videos?: VideoGroupVideo[];
427
+ /** Place holder used in HTML Content replace control with the insight content */
428
+ replacementKey?: string;
429
+ }
430
+
431
+ /** Part of the solution and are dividers in the solution rendering. */
432
+ export interface Section {
433
+ /** Solution sections title. */
434
+ title?: string;
435
+ /** Solution sections content. */
436
+ content?: string;
437
+ /** Solution replacement maps. */
438
+ replacementMaps?: ReplacementMaps;
439
+ }
440
+
441
+ /** Solution response. */
442
+ export interface SolutionPatchRequestBody {
443
+ /** Solution result */
444
+ properties?: SolutionResourceProperties;
445
+ }
446
+
447
+ /** Troubleshooter step */
448
+ export interface Step {
449
+ /** Unique step id. */
450
+ id?: string;
451
+ /** Step title. */
452
+ title?: string;
453
+ /** Step description. */
454
+ description?: string;
455
+ /** Get or sets the Step guidance. */
456
+ guidance?: string;
457
+ /** Status of Troubleshooter Step execution. */
458
+ executionStatus?: ExecutionStatus;
459
+ /** This field has more detailed status description of the execution status. */
460
+ executionStatusDescription?: string;
461
+ /** Type of Troubleshooting step. */
462
+ type?: Type;
463
+ /** is this last step of the workflow. */
464
+ isLastStep?: boolean;
465
+ inputs?: StepInput[];
466
+ /** Only for AutomatedStep type */
467
+ automatedCheckResults?: AutomatedCheckResult;
468
+ insights?: Insight[];
469
+ /** The error detail. */
470
+ error?: ErrorDetail;
471
+ }
472
+
473
+ /** Details of step input. */
474
+ export interface StepInput {
475
+ /** Use Index as QuestionId. */
476
+ questionId?: string;
477
+ /** Text Input. Will be a single line input. */
478
+ questionType?: string;
479
+ /** User question content. */
480
+ questionContent?: string;
481
+ /** Default is Text. */
482
+ questionContentType?: QuestionContentType;
483
+ /** Place holder text for response hints. */
484
+ responseHint?: string;
485
+ /** Result of Automate step. */
486
+ recommendedOption?: string;
487
+ /** Text of response that was selected. */
488
+ selectedOptionValue?: string;
489
+ /** Troubleshooter step input response validation properties */
490
+ responseValidationProperties?: ResponseValidationProperties;
491
+ responseOptions?: ResponseOption[];
492
+ }
493
+
494
+ /** Troubleshooter step input response validation properties */
495
+ export interface ResponseValidationProperties {
496
+ /** Regex used for the input validation. */
497
+ regex?: string;
498
+ /** Default True */
499
+ isRequired?: boolean;
500
+ /** Validation Error Message. */
501
+ validationErrorMessage?: string;
502
+ /** Max text input (open Ended Text). */
503
+ maxLength?: number;
504
+ }
505
+
506
+ /** The status of the resource. */
507
+ export interface ResponseOption {
508
+ /** Unique string. */
509
+ key?: string;
510
+ /** Option description */
511
+ value?: string;
512
+ }
513
+
514
+ /** Only for AutomatedStep type */
515
+ export interface AutomatedCheckResult {
516
+ /** Insight Article Content */
517
+ result?: string;
518
+ /** Type of Result. */
519
+ type?: AutomatedCheckResultType;
520
+ }
521
+
522
+ /** Troubleshooter ContinueRequest body. */
523
+ export interface ContinueRequestBody {
524
+ /** Unique id of the result. */
525
+ stepId?: string;
526
+ responses?: TroubleshooterResponse[];
527
+ }
528
+
529
+ /** User Response for Troubleshooter continue request */
530
+ export interface TroubleshooterResponse {
531
+ /** id of the question. */
532
+ questionId?: string;
533
+ /** Text Input. Will be a single line input. */
534
+ questionType?: QuestionType;
535
+ /** Response key for SingleInput. For Multi-line test/open ended question it is free form text */
536
+ response?: string;
537
+ }
538
+
539
+ /** Troubleshooter restart response */
540
+ export interface RestartTroubleshooterResponse {
541
+ /**
542
+ * Updated TroubleshooterResource Name .
543
+ * NOTE: This property will not be serialized. It can only be populated by the server.
544
+ */
545
+ readonly troubleshooterResourceName?: string;
546
+ }
547
+
243
548
  /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
244
549
  export interface ProxyResource extends Resource {}
245
550
 
551
+ /** Video detail */
552
+ export interface Video extends VideoGroupVideo {
553
+ /** Place holder used in HTML Content replace control with the insight content */
554
+ replacementKey?: string;
555
+ }
556
+
246
557
  /** Diagnostic resource */
247
558
  export interface DiagnosticResource extends ProxyResource {
248
559
  /** Global parameters that can be passed to all solutionIds. */
@@ -258,7 +569,7 @@ export interface DiagnosticResource extends ProxyResource {
258
569
  * Status of diagnostic provisioning.
259
570
  * NOTE: This property will not be serialized. It can only be populated by the server.
260
571
  */
261
- readonly provisioningState?: ProvisioningState;
572
+ readonly provisioningState?: DiagnosticProvisioningState;
262
573
  /**
263
574
  * Array of Diagnostics.
264
575
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -266,16 +577,48 @@ export interface DiagnosticResource extends ProxyResource {
266
577
  readonly diagnostics?: Diagnostic[];
267
578
  }
268
579
 
269
- /** Solution Metadata resource */
580
+ /** Metadata resource */
270
581
  export interface SolutionMetadataResource extends ProxyResource {
271
- /** Solution Id. */
582
+ /** List of metadata. */
583
+ solutions?: SolutionMetadataProperties[];
584
+ }
585
+
586
+ /** Troubleshooter response. */
587
+ export interface TroubleshooterResource extends ProxyResource {
588
+ /** Solution Id to identify single troubleshooter. */
272
589
  solutionId?: string;
273
- /** Solution Type. */
274
- solutionType?: string;
275
- /** A detailed description of solution. */
276
- description?: string;
277
- /** Required parameters for invoking this particular solution. */
278
- requiredParameterSets?: string[][];
590
+ /** Client input parameters to run Troubleshooter Resource */
591
+ parameters?: { [propertyName: string]: string };
592
+ /**
593
+ * Status of troubleshooter provisioning.
594
+ * NOTE: This property will not be serialized. It can only be populated by the server.
595
+ */
596
+ readonly provisioningState?: TroubleshooterProvisioningState;
597
+ /**
598
+ * List of step object.
599
+ * NOTE: This property will not be serialized. It can only be populated by the server.
600
+ */
601
+ readonly steps?: Step[];
602
+ }
603
+
604
+ /** Defines headers for Solution_update operation. */
605
+ export interface SolutionUpdateHeaders {
606
+ location?: string;
607
+ }
608
+
609
+ /** Defines headers for Troubleshooters_continue operation. */
610
+ export interface TroubleshootersContinueHeaders {
611
+ location?: string;
612
+ }
613
+
614
+ /** Defines headers for Troubleshooters_end operation. */
615
+ export interface TroubleshootersEndHeaders {
616
+ location?: string;
617
+ }
618
+
619
+ /** Defines headers for Troubleshooters_restart operation. */
620
+ export interface TroubleshootersRestartHeaders {
621
+ location?: string;
279
622
  }
280
623
 
281
624
  /** Known values of {@link Origin} that the service accepts. */
@@ -314,8 +657,8 @@ export enum KnownActionType {
314
657
  */
315
658
  export type ActionType = string;
316
659
 
317
- /** Known values of {@link ProvisioningState} that the service accepts. */
318
- export enum KnownProvisioningState {
660
+ /** Known values of {@link DiagnosticProvisioningState} that the service accepts. */
661
+ export enum KnownDiagnosticProvisioningState {
319
662
  /** All Diagnostics in the Batch succeeded. */
320
663
  Succeeded = "Succeeded",
321
664
  /** Some Diagnostics are still running or failed. */
@@ -327,8 +670,8 @@ export enum KnownProvisioningState {
327
670
  }
328
671
 
329
672
  /**
330
- * Defines values for ProvisioningState. \
331
- * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
673
+ * Defines values for DiagnosticProvisioningState. \
674
+ * {@link KnownDiagnosticProvisioningState} can be used interchangeably with DiagnosticProvisioningState,
332
675
  * this enum contains the known values that the service supports.
333
676
  * ### Known values supported by the service
334
677
  * **Succeeded**: All Diagnostics in the Batch succeeded. \
@@ -336,7 +679,7 @@ export enum KnownProvisioningState {
336
679
  * **Failed**: All Diagnostics failed to run. \
337
680
  * **Canceled**: When Diagnostic request gets canceled.
338
681
  */
339
- export type ProvisioningState = string;
682
+ export type DiagnosticProvisioningState = string;
340
683
 
341
684
  /** Known values of {@link Status} that the service accepts. */
342
685
  export enum KnownStatus {
@@ -410,6 +753,276 @@ export enum KnownCreatedByType {
410
753
  */
411
754
  export type CreatedByType = string;
412
755
 
756
+ /** Known values of {@link SolutionType} that the service accepts. */
757
+ export enum KnownSolutionType {
758
+ /** Diagnostics resource type. */
759
+ Diagnostics = "Diagnostics",
760
+ /** Solutions resource type. */
761
+ Solutions = "Solutions"
762
+ }
763
+
764
+ /**
765
+ * Defines values for SolutionType. \
766
+ * {@link KnownSolutionType} can be used interchangeably with SolutionType,
767
+ * this enum contains the known values that the service supports.
768
+ * ### Known values supported by the service
769
+ * **Diagnostics**: Diagnostics resource type. \
770
+ * **Solutions**: Solutions resource type.
771
+ */
772
+ export type SolutionType = string;
773
+
774
+ /** Known values of {@link Name} that the service accepts. */
775
+ export enum KnownName {
776
+ /** SolutionId */
777
+ SolutionId = "SolutionId",
778
+ /** ProblemClassificationId */
779
+ ProblemClassificationId = "ProblemClassificationId",
780
+ /** ReplacementKey */
781
+ ReplacementKey = "ReplacementKey"
782
+ }
783
+
784
+ /**
785
+ * Defines values for Name. \
786
+ * {@link KnownName} can be used interchangeably with Name,
787
+ * this enum contains the known values that the service supports.
788
+ * ### Known values supported by the service
789
+ * **SolutionId** \
790
+ * **ProblemClassificationId** \
791
+ * **ReplacementKey**
792
+ */
793
+ export type Name = string;
794
+
795
+ /** Known values of {@link SolutionProvisioningState} that the service accepts. */
796
+ export enum KnownSolutionProvisioningState {
797
+ /** Succeeded */
798
+ Succeeded = "Succeeded",
799
+ /** Failed */
800
+ Failed = "Failed",
801
+ /** Canceled */
802
+ Canceled = "Canceled"
803
+ }
804
+
805
+ /**
806
+ * Defines values for SolutionProvisioningState. \
807
+ * {@link KnownSolutionProvisioningState} can be used interchangeably with SolutionProvisioningState,
808
+ * this enum contains the known values that the service supports.
809
+ * ### Known values supported by the service
810
+ * **Succeeded** \
811
+ * **Failed** \
812
+ * **Canceled**
813
+ */
814
+ export type SolutionProvisioningState = string;
815
+
816
+ /** Known values of {@link Confidence} that the service accepts. */
817
+ export enum KnownConfidence {
818
+ /** Low */
819
+ Low = "Low",
820
+ /** Medium */
821
+ Medium = "Medium",
822
+ /** High */
823
+ High = "High"
824
+ }
825
+
826
+ /**
827
+ * Defines values for Confidence. \
828
+ * {@link KnownConfidence} can be used interchangeably with Confidence,
829
+ * this enum contains the known values that the service supports.
830
+ * ### Known values supported by the service
831
+ * **Low** \
832
+ * **Medium** \
833
+ * **High**
834
+ */
835
+ export type Confidence = string;
836
+
837
+ /** Known values of {@link ResultType} that the service accepts. */
838
+ export enum KnownResultType {
839
+ /** Community */
840
+ Community = "Community",
841
+ /** Documentation */
842
+ Documentation = "Documentation"
843
+ }
844
+
845
+ /**
846
+ * Defines values for ResultType. \
847
+ * {@link KnownResultType} can be used interchangeably with ResultType,
848
+ * this enum contains the known values that the service supports.
849
+ * ### Known values supported by the service
850
+ * **Community** \
851
+ * **Documentation**
852
+ */
853
+ export type ResultType = string;
854
+
855
+ /** Known values of {@link AggregationType} that the service accepts. */
856
+ export enum KnownAggregationType {
857
+ /** Sum */
858
+ Sum = "Sum",
859
+ /** Avg */
860
+ Avg = "Avg",
861
+ /** Count */
862
+ Count = "Count",
863
+ /** Min */
864
+ Min = "Min",
865
+ /** Max */
866
+ Max = "Max"
867
+ }
868
+
869
+ /**
870
+ * Defines values for AggregationType. \
871
+ * {@link KnownAggregationType} can be used interchangeably with AggregationType,
872
+ * this enum contains the known values that the service supports.
873
+ * ### Known values supported by the service
874
+ * **Sum** \
875
+ * **Avg** \
876
+ * **Count** \
877
+ * **Min** \
878
+ * **Max**
879
+ */
880
+ export type AggregationType = string;
881
+
882
+ /** Known values of {@link TroubleshooterProvisioningState} that the service accepts. */
883
+ export enum KnownTroubleshooterProvisioningState {
884
+ /** Succeeded */
885
+ Succeeded = "Succeeded",
886
+ /** Failed */
887
+ Failed = "Failed",
888
+ /** Canceled */
889
+ Canceled = "Canceled",
890
+ /** Running */
891
+ Running = "Running",
892
+ /** AutoContinue */
893
+ AutoContinue = "AutoContinue"
894
+ }
895
+
896
+ /**
897
+ * Defines values for TroubleshooterProvisioningState. \
898
+ * {@link KnownTroubleshooterProvisioningState} can be used interchangeably with TroubleshooterProvisioningState,
899
+ * this enum contains the known values that the service supports.
900
+ * ### Known values supported by the service
901
+ * **Succeeded** \
902
+ * **Failed** \
903
+ * **Canceled** \
904
+ * **Running** \
905
+ * **AutoContinue**
906
+ */
907
+ export type TroubleshooterProvisioningState = string;
908
+
909
+ /** Known values of {@link ExecutionStatus} that the service accepts. */
910
+ export enum KnownExecutionStatus {
911
+ /** Success */
912
+ Success = "Success",
913
+ /** Running */
914
+ Running = "Running",
915
+ /** Failed */
916
+ Failed = "Failed",
917
+ /** Warning */
918
+ Warning = "Warning"
919
+ }
920
+
921
+ /**
922
+ * Defines values for ExecutionStatus. \
923
+ * {@link KnownExecutionStatus} can be used interchangeably with ExecutionStatus,
924
+ * this enum contains the known values that the service supports.
925
+ * ### Known values supported by the service
926
+ * **Success** \
927
+ * **Running** \
928
+ * **Failed** \
929
+ * **Warning**
930
+ */
931
+ export type ExecutionStatus = string;
932
+
933
+ /** Known values of {@link Type} that the service accepts. */
934
+ export enum KnownType {
935
+ /** Decision */
936
+ Decision = "Decision",
937
+ /** Solution */
938
+ Solution = "Solution",
939
+ /** Insight */
940
+ Insight = "Insight",
941
+ /** AutomatedCheck */
942
+ AutomatedCheck = "AutomatedCheck"
943
+ }
944
+
945
+ /**
946
+ * Defines values for Type. \
947
+ * {@link KnownType} can be used interchangeably with Type,
948
+ * this enum contains the known values that the service supports.
949
+ * ### Known values supported by the service
950
+ * **Decision** \
951
+ * **Solution** \
952
+ * **Insight** \
953
+ * **AutomatedCheck**
954
+ */
955
+ export type Type = string;
956
+
957
+ /** Known values of {@link QuestionContentType} that the service accepts. */
958
+ export enum KnownQuestionContentType {
959
+ /** Text */
960
+ Text = "Text",
961
+ /** Html */
962
+ Html = "Html",
963
+ /** Markdown */
964
+ Markdown = "Markdown"
965
+ }
966
+
967
+ /**
968
+ * Defines values for QuestionContentType. \
969
+ * {@link KnownQuestionContentType} can be used interchangeably with QuestionContentType,
970
+ * this enum contains the known values that the service supports.
971
+ * ### Known values supported by the service
972
+ * **Text** \
973
+ * **Html** \
974
+ * **Markdown**
975
+ */
976
+ export type QuestionContentType = string;
977
+
978
+ /** Known values of {@link AutomatedCheckResultType} that the service accepts. */
979
+ export enum KnownAutomatedCheckResultType {
980
+ /** Success */
981
+ Success = "Success",
982
+ /** Warning */
983
+ Warning = "Warning",
984
+ /** Error */
985
+ Error = "Error",
986
+ /** Information */
987
+ Information = "Information"
988
+ }
989
+
990
+ /**
991
+ * Defines values for AutomatedCheckResultType. \
992
+ * {@link KnownAutomatedCheckResultType} can be used interchangeably with AutomatedCheckResultType,
993
+ * this enum contains the known values that the service supports.
994
+ * ### Known values supported by the service
995
+ * **Success** \
996
+ * **Warning** \
997
+ * **Error** \
998
+ * **Information**
999
+ */
1000
+ export type AutomatedCheckResultType = string;
1001
+
1002
+ /** Known values of {@link QuestionType} that the service accepts. */
1003
+ export enum KnownQuestionType {
1004
+ /** SingleChoice radio button */
1005
+ RadioButton = "RadioButton",
1006
+ /** SingleChoice dropdown. */
1007
+ Dropdown = "Dropdown",
1008
+ /** Text Input */
1009
+ TextInput = "TextInput",
1010
+ /** MultiLineInfoBox */
1011
+ MultiLineInfoBox = "MultiLineInfoBox"
1012
+ }
1013
+
1014
+ /**
1015
+ * Defines values for QuestionType. \
1016
+ * {@link KnownQuestionType} can be used interchangeably with QuestionType,
1017
+ * this enum contains the known values that the service supports.
1018
+ * ### Known values supported by the service
1019
+ * **RadioButton**: SingleChoice radio button \
1020
+ * **Dropdown**: SingleChoice dropdown. \
1021
+ * **TextInput**: Text Input \
1022
+ * **MultiLineInfoBox**: MultiLineInfoBox
1023
+ */
1024
+ export type QuestionType = string;
1025
+
413
1026
  /** Optional parameters. */
414
1027
  export interface OperationsListOptionalParams
415
1028
  extends coreClient.OperationOptions {}
@@ -425,14 +1038,14 @@ export interface OperationsListNextOptionalParams
425
1038
  export type OperationsListNextResponse = OperationListResult;
426
1039
 
427
1040
  /** Optional parameters. */
428
- export interface DiagnosticsCheckNameAvailabilityOptionalParams
1041
+ export interface CheckNameAvailabilityPostOptionalParams
429
1042
  extends coreClient.OperationOptions {
430
1043
  /** The required parameters for availability check. */
431
1044
  checkNameAvailabilityRequest?: CheckNameAvailabilityRequest;
432
1045
  }
433
1046
 
434
- /** Contains response data for the checkNameAvailability operation. */
435
- export type DiagnosticsCheckNameAvailabilityResponse = CheckNameAvailabilityResponse;
1047
+ /** Contains response data for the post operation. */
1048
+ export type CheckNameAvailabilityPostResponse = CheckNameAvailabilityResponse;
436
1049
 
437
1050
  /** Optional parameters. */
438
1051
  export interface DiagnosticsCreateOptionalParams
@@ -458,9 +1071,9 @@ export type DiagnosticsGetResponse = DiagnosticResource;
458
1071
  /** Optional parameters. */
459
1072
  export interface DiscoverySolutionListOptionalParams
460
1073
  extends coreClient.OperationOptions {
461
- /** Can be used to filter solutionIds by 'ProblemClassificationId'. The filter supports only 'and' and 'eq' operators. Example: $filter=ProblemClassificationId eq '1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e' and ProblemClassificationId eq '0a9673c2-7af6-4e19-90d3-4ee2461076d9'. */
1074
+ /** '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' */
462
1075
  filter?: string;
463
- /** Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element will include a skiptoken parameter that specifies a starting point to use for subsequent calls. */
1076
+ /** Skiptoken is only used if a previous operation returned a partial result. */
464
1077
  skiptoken?: string;
465
1078
  }
466
1079
 
@@ -474,6 +1087,83 @@ export interface DiscoverySolutionListNextOptionalParams
474
1087
  /** Contains response data for the listNext operation. */
475
1088
  export type DiscoverySolutionListNextResponse = DiscoveryResponse;
476
1089
 
1090
+ /** Optional parameters. */
1091
+ export interface SolutionCreateOptionalParams
1092
+ extends coreClient.OperationOptions {
1093
+ /** The required request body for this solution resource creation. */
1094
+ solutionRequestBody?: SolutionResource;
1095
+ /** Delay to wait until next poll, in milliseconds. */
1096
+ updateIntervalInMs?: number;
1097
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1098
+ resumeFrom?: string;
1099
+ }
1100
+
1101
+ /** Contains response data for the create operation. */
1102
+ export type SolutionCreateResponse = SolutionResource;
1103
+
1104
+ /** Optional parameters. */
1105
+ export interface SolutionGetOptionalParams
1106
+ extends coreClient.OperationOptions {}
1107
+
1108
+ /** Contains response data for the get operation. */
1109
+ export type SolutionGetResponse = SolutionResource;
1110
+
1111
+ /** Optional parameters. */
1112
+ export interface SolutionUpdateOptionalParams
1113
+ extends coreClient.OperationOptions {
1114
+ /** The required request body for updating a solution resource. */
1115
+ solutionPatchRequestBody?: SolutionPatchRequestBody;
1116
+ /** Delay to wait until next poll, in milliseconds. */
1117
+ updateIntervalInMs?: number;
1118
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
1119
+ resumeFrom?: string;
1120
+ }
1121
+
1122
+ /** Contains response data for the update operation. */
1123
+ export type SolutionUpdateResponse = SolutionUpdateHeaders & SolutionResource;
1124
+
1125
+ /** Optional parameters. */
1126
+ export interface TroubleshootersCreateOptionalParams
1127
+ extends coreClient.OperationOptions {
1128
+ /** The required request body for this Troubleshooter resource creation. */
1129
+ createTroubleshooterRequestBody?: TroubleshooterResource;
1130
+ }
1131
+
1132
+ /** Contains response data for the create operation. */
1133
+ export type TroubleshootersCreateResponse = TroubleshooterResource;
1134
+
1135
+ /** Optional parameters. */
1136
+ export interface TroubleshootersGetOptionalParams
1137
+ extends coreClient.OperationOptions {}
1138
+
1139
+ /** Contains response data for the get operation. */
1140
+ export type TroubleshootersGetResponse = TroubleshooterResource;
1141
+
1142
+ /** Optional parameters. */
1143
+ export interface TroubleshootersContinueOptionalParams
1144
+ extends coreClient.OperationOptions {
1145
+ /** The required request body for going to next step in Troubleshooter resource. */
1146
+ continueRequestBody?: ContinueRequestBody;
1147
+ }
1148
+
1149
+ /** Contains response data for the continue operation. */
1150
+ export type TroubleshootersContinueResponse = TroubleshootersContinueHeaders;
1151
+
1152
+ /** Optional parameters. */
1153
+ export interface TroubleshootersEndOptionalParams
1154
+ extends coreClient.OperationOptions {}
1155
+
1156
+ /** Contains response data for the end operation. */
1157
+ export type TroubleshootersEndResponse = TroubleshootersEndHeaders;
1158
+
1159
+ /** Optional parameters. */
1160
+ export interface TroubleshootersRestartOptionalParams
1161
+ extends coreClient.OperationOptions {}
1162
+
1163
+ /** Contains response data for the restart operation. */
1164
+ export type TroubleshootersRestartResponse = TroubleshootersRestartHeaders &
1165
+ RestartTroubleshooterResponse;
1166
+
477
1167
  /** Optional parameters. */
478
1168
  export interface HelpRPOptionalParams extends coreClient.ServiceClientOptions {
479
1169
  /** server parameter */