@azure/arm-selfhelp 2.0.0-beta.1 → 2.0.0-beta.2

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 (68) hide show
  1. package/CHANGELOG.md +94 -1
  2. package/dist/index.js +253 -209
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/diagnosticsCreateSample.js +12 -3
  7. package/dist-esm/samples-dev/diagnosticsCreateSample.js.map +1 -1
  8. package/dist-esm/samples-dev/discoverySolutionListSample.js +4 -4
  9. package/dist-esm/samples-dev/solutionCreateSample.js +3 -8
  10. package/dist-esm/samples-dev/solutionCreateSample.js.map +1 -1
  11. package/dist-esm/samples-dev/solutionUpdateSample.js +10 -1
  12. package/dist-esm/samples-dev/solutionUpdateSample.js.map +1 -1
  13. package/dist-esm/samples-dev/troubleshootersCreateSample.js +2 -2
  14. package/dist-esm/src/helpRP.js +1 -1
  15. package/dist-esm/src/models/index.d.ts +126 -85
  16. package/dist-esm/src/models/index.d.ts.map +1 -1
  17. package/dist-esm/src/models/index.js +25 -19
  18. package/dist-esm/src/models/index.js.map +1 -1
  19. package/dist-esm/src/models/mappers.d.ts +1 -2
  20. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  21. package/dist-esm/src/models/mappers.js +129 -109
  22. package/dist-esm/src/models/mappers.js.map +1 -1
  23. package/dist-esm/src/operations/checkNameAvailability.d.ts +3 -2
  24. package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -1
  25. package/dist-esm/src/operations/checkNameAvailability.js +3 -2
  26. package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
  27. package/dist-esm/src/operations/diagnostics.d.ts +17 -14
  28. package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
  29. package/dist-esm/src/operations/diagnostics.js +17 -14
  30. package/dist-esm/src/operations/diagnostics.js.map +1 -1
  31. package/dist-esm/src/operations/discoverySolution.d.ts +11 -10
  32. package/dist-esm/src/operations/discoverySolution.d.ts.map +1 -1
  33. package/dist-esm/src/operations/discoverySolution.js +11 -10
  34. package/dist-esm/src/operations/discoverySolution.js.map +1 -1
  35. package/dist-esm/src/operations/solution.d.ts +43 -34
  36. package/dist-esm/src/operations/solution.d.ts.map +1 -1
  37. package/dist-esm/src/operations/solution.js +43 -34
  38. package/dist-esm/src/operations/solution.js.map +1 -1
  39. package/dist-esm/src/operations/troubleshooters.d.ts +22 -19
  40. package/dist-esm/src/operations/troubleshooters.d.ts.map +1 -1
  41. package/dist-esm/src/operations/troubleshooters.js +22 -19
  42. package/dist-esm/src/operations/troubleshooters.js.map +1 -1
  43. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +3 -2
  44. package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -1
  45. package/dist-esm/src/operationsInterfaces/diagnostics.d.ts +17 -14
  46. package/dist-esm/src/operationsInterfaces/diagnostics.d.ts.map +1 -1
  47. package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts +4 -4
  48. package/dist-esm/src/operationsInterfaces/solution.d.ts +43 -34
  49. package/dist-esm/src/operationsInterfaces/solution.d.ts.map +1 -1
  50. package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts +22 -19
  51. package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts.map +1 -1
  52. package/package.json +7 -5
  53. package/review/arm-selfhelp.api.md +21 -17
  54. package/src/helpRP.ts +1 -1
  55. package/src/models/index.ts +125 -87
  56. package/src/models/mappers.ts +140 -111
  57. package/src/operations/checkNameAvailability.ts +3 -2
  58. package/src/operations/diagnostics.ts +17 -14
  59. package/src/operations/discoverySolution.ts +11 -10
  60. package/src/operations/solution.ts +43 -34
  61. package/src/operations/troubleshooters.ts +22 -19
  62. package/src/operationsInterfaces/checkNameAvailability.ts +3 -2
  63. package/src/operationsInterfaces/diagnostics.ts +17 -14
  64. package/src/operationsInterfaces/discoverySolution.ts +4 -4
  65. package/src/operationsInterfaces/solution.ts +43 -34
  66. package/src/operationsInterfaces/troubleshooters.ts +22 -19
  67. package/types/arm-selfhelp.d.ts +182 -126
  68. package/types/tsdoc-metadata.json +1 -1
@@ -261,47 +261,6 @@ export interface SolutionMetadataProperties {
261
261
  readonly requiredInputs?: string[];
262
262
  }
263
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
264
  /** 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
265
  export interface TriggerCriterion {
307
266
  /** Trigger criterion name. */
@@ -438,10 +397,42 @@ export interface Section {
438
397
  replacementMaps?: ReplacementMaps;
439
398
  }
440
399
 
441
- /** Solution response. */
400
+ /** Solution response */
442
401
  export interface SolutionPatchRequestBody {
443
- /** Solution result */
444
- properties?: SolutionResourceProperties;
402
+ /** Solution request trigger criteria */
403
+ triggerCriteria?: TriggerCriterion[];
404
+ /** Client input parameters to run Solution */
405
+ parameters?: { [propertyName: string]: string };
406
+ /**
407
+ * Solution Id to identify single solution.
408
+ * NOTE: This property will not be serialized. It can only be populated by the server.
409
+ */
410
+ readonly solutionId?: string;
411
+ /**
412
+ * Status of solution provisioning.
413
+ * NOTE: This property will not be serialized. It can only be populated by the server.
414
+ */
415
+ readonly provisioningState?: SolutionProvisioningState;
416
+ /**
417
+ * The title.
418
+ * NOTE: This property will not be serialized. It can only be populated by the server.
419
+ */
420
+ readonly title?: string;
421
+ /**
422
+ * The HTML content that needs to be rendered and shown to customer.
423
+ * NOTE: This property will not be serialized. It can only be populated by the server.
424
+ */
425
+ readonly content?: string;
426
+ /**
427
+ * Solution replacement maps.
428
+ * NOTE: This property will not be serialized. It can only be populated by the server.
429
+ */
430
+ readonly replacementMaps?: ReplacementMaps;
431
+ /**
432
+ * List of section object.
433
+ * NOTE: This property will not be serialized. It can only be populated by the server.
434
+ */
435
+ readonly sections?: Section[];
445
436
  }
446
437
 
447
438
  /** Troubleshooter step */
@@ -474,8 +465,8 @@ export interface Step {
474
465
  export interface StepInput {
475
466
  /** Use Index as QuestionId. */
476
467
  questionId?: string;
477
- /** Text Input. Will be a single line input. */
478
- questionType?: string;
468
+ /** Type of Question */
469
+ questionType?: QuestionType;
479
470
  /** User question content. */
480
471
  questionContent?: string;
481
472
  /** Default is Text. */
@@ -530,7 +521,7 @@ export interface ContinueRequestBody {
530
521
  export interface TroubleshooterResponse {
531
522
  /** id of the question. */
532
523
  questionId?: string;
533
- /** Text Input. Will be a single line input. */
524
+ /** Type of Question */
534
525
  questionType?: QuestionType;
535
526
  /** Response key for SingleInput. For Multi-line test/open ended question it is free form text */
536
527
  response?: string;
@@ -556,7 +547,7 @@ export interface Video extends VideoGroupVideo {
556
547
 
557
548
  /** Diagnostic resource */
558
549
  export interface DiagnosticResource extends ProxyResource {
559
- /** Global parameters that can be passed to all solutionIds. */
550
+ /** Global parameters is an optional map which can be used to add key and value to request body to improve the diagnostics results */
560
551
  globalParameters?: { [propertyName: string]: string };
561
552
  /** SolutionIds that are needed to be invoked. */
562
553
  insights?: DiagnosticInvocation[];
@@ -583,6 +574,44 @@ export interface SolutionMetadataResource extends ProxyResource {
583
574
  solutions?: SolutionMetadataProperties[];
584
575
  }
585
576
 
577
+ /** Solution response. */
578
+ export interface SolutionResource extends ProxyResource {
579
+ /** Solution request trigger criteria */
580
+ triggerCriteria?: TriggerCriterion[];
581
+ /** Client input parameters to run Solution */
582
+ parameters?: { [propertyName: string]: string };
583
+ /**
584
+ * Solution Id to identify single solution.
585
+ * NOTE: This property will not be serialized. It can only be populated by the server.
586
+ */
587
+ readonly solutionId?: string;
588
+ /**
589
+ * Status of solution provisioning.
590
+ * NOTE: This property will not be serialized. It can only be populated by the server.
591
+ */
592
+ readonly provisioningState?: SolutionProvisioningState;
593
+ /**
594
+ * The title.
595
+ * NOTE: This property will not be serialized. It can only be populated by the server.
596
+ */
597
+ readonly title?: string;
598
+ /**
599
+ * The HTML content that needs to be rendered and shown to customer.
600
+ * NOTE: This property will not be serialized. It can only be populated by the server.
601
+ */
602
+ readonly content?: string;
603
+ /**
604
+ * Solution replacement maps.
605
+ * NOTE: This property will not be serialized. It can only be populated by the server.
606
+ */
607
+ readonly replacementMaps?: ReplacementMaps;
608
+ /**
609
+ * List of section object.
610
+ * NOTE: This property will not be serialized. It can only be populated by the server.
611
+ */
612
+ readonly sections?: Section[];
613
+ }
614
+
586
615
  /** Troubleshooter response. */
587
616
  export interface TroubleshooterResource extends ProxyResource {
588
617
  /** Solution Id to identify single troubleshooter. */
@@ -665,6 +694,8 @@ export enum KnownDiagnosticProvisioningState {
665
694
  PartialComplete = "PartialComplete",
666
695
  /** All Diagnostics failed to run. */
667
696
  Failed = "Failed",
697
+ /** All Diagnostics are still running. */
698
+ Running = "Running",
668
699
  /** When Diagnostic request gets canceled. */
669
700
  Canceled = "Canceled"
670
701
  }
@@ -677,6 +708,7 @@ export enum KnownDiagnosticProvisioningState {
677
708
  * **Succeeded**: All Diagnostics in the Batch succeeded. \
678
709
  * **PartialComplete**: Some Diagnostics are still running or failed. \
679
710
  * **Failed**: All Diagnostics failed to run. \
711
+ * **Running**: All Diagnostics are still running. \
680
712
  * **Canceled**: When Diagnostic request gets canceled.
681
713
  */
682
714
  export type DiagnosticProvisioningState = string;
@@ -794,11 +826,15 @@ export type Name = string;
794
826
 
795
827
  /** Known values of {@link SolutionProvisioningState} that the service accepts. */
796
828
  export enum KnownSolutionProvisioningState {
797
- /** Succeeded */
829
+ /** All Solutions in the Batch succeeded. */
798
830
  Succeeded = "Succeeded",
799
- /** Failed */
831
+ /** Some Solutions are still running or failed. */
832
+ PartialComplete = "PartialComplete",
833
+ /** All Solutions failed to run. */
800
834
  Failed = "Failed",
801
- /** Canceled */
835
+ /** All Solutions are still running. */
836
+ Running = "Running",
837
+ /** When Solutions request gets canceled. */
802
838
  Canceled = "Canceled"
803
839
  }
804
840
 
@@ -807,9 +843,11 @@ export enum KnownSolutionProvisioningState {
807
843
  * {@link KnownSolutionProvisioningState} can be used interchangeably with SolutionProvisioningState,
808
844
  * this enum contains the known values that the service supports.
809
845
  * ### Known values supported by the service
810
- * **Succeeded** \
811
- * **Failed** \
812
- * **Canceled**
846
+ * **Succeeded**: All Solutions in the Batch succeeded. \
847
+ * **PartialComplete**: Some Solutions are still running or failed. \
848
+ * **Failed**: All Solutions failed to run. \
849
+ * **Running**: All Solutions are still running. \
850
+ * **Canceled**: When Solutions request gets canceled.
813
851
  */
814
852
  export type SolutionProvisioningState = string;
815
853
 
@@ -908,13 +946,13 @@ export type TroubleshooterProvisioningState = string;
908
946
 
909
947
  /** Known values of {@link ExecutionStatus} that the service accepts. */
910
948
  export enum KnownExecutionStatus {
911
- /** Success */
949
+ /** Step execution succeeded. */
912
950
  Success = "Success",
913
- /** Running */
951
+ /** Step execution running */
914
952
  Running = "Running",
915
- /** Failed */
953
+ /** Step execution failed */
916
954
  Failed = "Failed",
917
- /** Warning */
955
+ /** Step execution warning */
918
956
  Warning = "Warning"
919
957
  }
920
958
 
@@ -923,10 +961,10 @@ export enum KnownExecutionStatus {
923
961
  * {@link KnownExecutionStatus} can be used interchangeably with ExecutionStatus,
924
962
  * this enum contains the known values that the service supports.
925
963
  * ### Known values supported by the service
926
- * **Success** \
927
- * **Running** \
928
- * **Failed** \
929
- * **Warning**
964
+ * **Success**: Step execution succeeded. \
965
+ * **Running**: Step execution running \
966
+ * **Failed**: Step execution failed \
967
+ * **Warning**: Step execution warning
930
968
  */
931
969
  export type ExecutionStatus = string;
932
970
 
@@ -954,6 +992,30 @@ export enum KnownType {
954
992
  */
955
993
  export type Type = string;
956
994
 
995
+ /** Known values of {@link QuestionType} that the service accepts. */
996
+ export enum KnownQuestionType {
997
+ /** SingleChoice radio button */
998
+ RadioButton = "RadioButton",
999
+ /** SingleChoice dropdown. */
1000
+ Dropdown = "Dropdown",
1001
+ /** Text Input */
1002
+ TextInput = "TextInput",
1003
+ /** MultiLineInfoBox */
1004
+ MultiLineInfoBox = "MultiLineInfoBox"
1005
+ }
1006
+
1007
+ /**
1008
+ * Defines values for QuestionType. \
1009
+ * {@link KnownQuestionType} can be used interchangeably with QuestionType,
1010
+ * this enum contains the known values that the service supports.
1011
+ * ### Known values supported by the service
1012
+ * **RadioButton**: SingleChoice radio button \
1013
+ * **Dropdown**: SingleChoice dropdown. \
1014
+ * **TextInput**: Text Input \
1015
+ * **MultiLineInfoBox**: MultiLineInfoBox
1016
+ */
1017
+ export type QuestionType = string;
1018
+
957
1019
  /** Known values of {@link QuestionContentType} that the service accepts. */
958
1020
  export enum KnownQuestionContentType {
959
1021
  /** Text */
@@ -999,30 +1061,6 @@ export enum KnownAutomatedCheckResultType {
999
1061
  */
1000
1062
  export type AutomatedCheckResultType = string;
1001
1063
 
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
-
1026
1064
  /** Optional parameters. */
1027
1065
  export interface OperationsListOptionalParams
1028
1066
  extends coreClient.OperationOptions {}
@@ -1071,7 +1109,7 @@ export type DiagnosticsGetResponse = DiagnosticResource;
1071
1109
  /** Optional parameters. */
1072
1110
  export interface DiscoverySolutionListOptionalParams
1073
1111
  extends coreClient.OperationOptions {
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' */
1112
+ /** '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' */
1075
1113
  filter?: string;
1076
1114
  /** Skiptoken is only used if a previous operation returned a partial result. */
1077
1115
  skiptoken?: string;
@@ -549,114 +549,6 @@ export const SolutionMetadataProperties: coreClient.CompositeMapper = {
549
549
  }
550
550
  };
551
551
 
552
- export const SolutionResource: coreClient.CompositeMapper = {
553
- type: {
554
- name: "Composite",
555
- className: "SolutionResource",
556
- modelProperties: {
557
- id: {
558
- serializedName: "id",
559
- readOnly: true,
560
- type: {
561
- name: "String"
562
- }
563
- },
564
- type: {
565
- serializedName: "type",
566
- readOnly: true,
567
- type: {
568
- name: "String"
569
- }
570
- },
571
- name: {
572
- serializedName: "name",
573
- readOnly: true,
574
- type: {
575
- name: "String"
576
- }
577
- },
578
- properties: {
579
- serializedName: "properties",
580
- type: {
581
- name: "Composite",
582
- className: "SolutionResourceProperties"
583
- }
584
- }
585
- }
586
- }
587
- };
588
-
589
- export const SolutionResourceProperties: coreClient.CompositeMapper = {
590
- type: {
591
- name: "Composite",
592
- className: "SolutionResourceProperties",
593
- modelProperties: {
594
- triggerCriteria: {
595
- serializedName: "triggerCriteria",
596
- type: {
597
- name: "Sequence",
598
- element: {
599
- type: {
600
- name: "Composite",
601
- className: "TriggerCriterion"
602
- }
603
- }
604
- }
605
- },
606
- parameters: {
607
- serializedName: "parameters",
608
- type: {
609
- name: "Dictionary",
610
- value: { type: { name: "String" } }
611
- }
612
- },
613
- solutionId: {
614
- serializedName: "solutionId",
615
- type: {
616
- name: "String"
617
- }
618
- },
619
- provisioningState: {
620
- serializedName: "provisioningState",
621
- type: {
622
- name: "String"
623
- }
624
- },
625
- title: {
626
- serializedName: "title",
627
- type: {
628
- name: "String"
629
- }
630
- },
631
- content: {
632
- serializedName: "content",
633
- type: {
634
- name: "String"
635
- }
636
- },
637
- replacementMaps: {
638
- serializedName: "replacementMaps",
639
- type: {
640
- name: "Composite",
641
- className: "ReplacementMaps"
642
- }
643
- },
644
- sections: {
645
- serializedName: "sections",
646
- type: {
647
- name: "Sequence",
648
- element: {
649
- type: {
650
- name: "Composite",
651
- className: "Section"
652
- }
653
- }
654
- }
655
- }
656
- }
657
- }
658
- };
659
-
660
552
  export const TriggerCriterion: coreClient.CompositeMapper = {
661
553
  type: {
662
554
  name: "Composite",
@@ -1101,11 +993,71 @@ export const SolutionPatchRequestBody: coreClient.CompositeMapper = {
1101
993
  name: "Composite",
1102
994
  className: "SolutionPatchRequestBody",
1103
995
  modelProperties: {
1104
- properties: {
1105
- serializedName: "properties",
996
+ triggerCriteria: {
997
+ serializedName: "properties.triggerCriteria",
998
+ type: {
999
+ name: "Sequence",
1000
+ element: {
1001
+ type: {
1002
+ name: "Composite",
1003
+ className: "TriggerCriterion"
1004
+ }
1005
+ }
1006
+ }
1007
+ },
1008
+ parameters: {
1009
+ serializedName: "properties.parameters",
1010
+ type: {
1011
+ name: "Dictionary",
1012
+ value: { type: { name: "String" } }
1013
+ }
1014
+ },
1015
+ solutionId: {
1016
+ serializedName: "properties.solutionId",
1017
+ readOnly: true,
1018
+ type: {
1019
+ name: "String"
1020
+ }
1021
+ },
1022
+ provisioningState: {
1023
+ serializedName: "properties.provisioningState",
1024
+ readOnly: true,
1025
+ type: {
1026
+ name: "String"
1027
+ }
1028
+ },
1029
+ title: {
1030
+ serializedName: "properties.title",
1031
+ readOnly: true,
1032
+ type: {
1033
+ name: "String"
1034
+ }
1035
+ },
1036
+ content: {
1037
+ serializedName: "properties.content",
1038
+ readOnly: true,
1039
+ type: {
1040
+ name: "String"
1041
+ }
1042
+ },
1043
+ replacementMaps: {
1044
+ serializedName: "properties.replacementMaps",
1106
1045
  type: {
1107
1046
  name: "Composite",
1108
- className: "SolutionResourceProperties"
1047
+ className: "ReplacementMaps"
1048
+ }
1049
+ },
1050
+ sections: {
1051
+ serializedName: "properties.sections",
1052
+ readOnly: true,
1053
+ type: {
1054
+ name: "Sequence",
1055
+ element: {
1056
+ type: {
1057
+ name: "Composite",
1058
+ className: "Section"
1059
+ }
1060
+ }
1109
1061
  }
1110
1062
  }
1111
1063
  }
@@ -1526,6 +1478,83 @@ export const SolutionMetadataResource: coreClient.CompositeMapper = {
1526
1478
  }
1527
1479
  };
1528
1480
 
1481
+ export const SolutionResource: coreClient.CompositeMapper = {
1482
+ type: {
1483
+ name: "Composite",
1484
+ className: "SolutionResource",
1485
+ modelProperties: {
1486
+ ...ProxyResource.type.modelProperties,
1487
+ triggerCriteria: {
1488
+ serializedName: "properties.triggerCriteria",
1489
+ type: {
1490
+ name: "Sequence",
1491
+ element: {
1492
+ type: {
1493
+ name: "Composite",
1494
+ className: "TriggerCriterion"
1495
+ }
1496
+ }
1497
+ }
1498
+ },
1499
+ parameters: {
1500
+ serializedName: "properties.parameters",
1501
+ type: {
1502
+ name: "Dictionary",
1503
+ value: { type: { name: "String" } }
1504
+ }
1505
+ },
1506
+ solutionId: {
1507
+ serializedName: "properties.solutionId",
1508
+ readOnly: true,
1509
+ type: {
1510
+ name: "String"
1511
+ }
1512
+ },
1513
+ provisioningState: {
1514
+ serializedName: "properties.provisioningState",
1515
+ readOnly: true,
1516
+ type: {
1517
+ name: "String"
1518
+ }
1519
+ },
1520
+ title: {
1521
+ serializedName: "properties.title",
1522
+ readOnly: true,
1523
+ type: {
1524
+ name: "String"
1525
+ }
1526
+ },
1527
+ content: {
1528
+ serializedName: "properties.content",
1529
+ readOnly: true,
1530
+ type: {
1531
+ name: "String"
1532
+ }
1533
+ },
1534
+ replacementMaps: {
1535
+ serializedName: "properties.replacementMaps",
1536
+ type: {
1537
+ name: "Composite",
1538
+ className: "ReplacementMaps"
1539
+ }
1540
+ },
1541
+ sections: {
1542
+ serializedName: "properties.sections",
1543
+ readOnly: true,
1544
+ type: {
1545
+ name: "Sequence",
1546
+ element: {
1547
+ type: {
1548
+ name: "Composite",
1549
+ className: "Section"
1550
+ }
1551
+ }
1552
+ }
1553
+ }
1554
+ }
1555
+ }
1556
+ };
1557
+
1529
1558
  export const TroubleshooterResource: coreClient.CompositeMapper = {
1530
1559
  type: {
1531
1560
  name: "Composite",
@@ -31,8 +31,9 @@ export class CheckNameAvailabilityImpl implements CheckNameAvailability {
31
31
  /**
32
32
  * This API is used to check the uniqueness of a resource name used for a diagnostic, troubleshooter or
33
33
  * solutions
34
- * @param scope This is an extension resource provider and only resource level extension is supported
35
- * at the moment.
34
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
35
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
36
+ *
36
37
  * @param options The options parameters.
37
38
  */
38
39
  post(
@@ -38,12 +38,13 @@ export class DiagnosticsImpl implements Diagnostics {
38
38
 
39
39
  /**
40
40
  * Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery
41
- * solutions. <br/>Diagnostics tells you precisely the root cause of the issue and the steps to address
42
- * it. You can get diagnostics once you discover the relevant solution for your Azure issue. <br/><br/>
43
- * <b>Note: </b> requiredInputs’ from Discovery solutions response must be passed via
44
- * ‘additionalParameters’ as an input to Diagnostics API.
45
- * @param scope This is an extension resource provider and only resource level extension is supported
46
- * at the moment.
41
+ * solutions. <br/>Diagnostics are powerful solutions that access product resources or other relevant
42
+ * data and provide the root cause of the issue and the steps to address the issue.<br/><br/> <b>Note:
43
+ * </b> requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as
44
+ * an input to Diagnostics API.
45
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
46
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
47
+ *
47
48
  * @param diagnosticsResourceName Unique resource name for insight resources
48
49
  * @param options The options parameters.
49
50
  */
@@ -115,12 +116,13 @@ export class DiagnosticsImpl implements Diagnostics {
115
116
 
116
117
  /**
117
118
  * Creates a diagnostic for the specific resource using solutionId and requiredInputs* from discovery
118
- * solutions. <br/>Diagnostics tells you precisely the root cause of the issue and the steps to address
119
- * it. You can get diagnostics once you discover the relevant solution for your Azure issue. <br/><br/>
120
- * <b>Note: </b> requiredInputs’ from Discovery solutions response must be passed via
121
- * ‘additionalParameters’ as an input to Diagnostics API.
122
- * @param scope This is an extension resource provider and only resource level extension is supported
123
- * at the moment.
119
+ * solutions. <br/>Diagnostics are powerful solutions that access product resources or other relevant
120
+ * data and provide the root cause of the issue and the steps to address the issue.<br/><br/> <b>Note:
121
+ * </b> requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as
122
+ * an input to Diagnostics API.
123
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
124
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
125
+ *
124
126
  * @param diagnosticsResourceName Unique resource name for insight resources
125
127
  * @param options The options parameters.
126
128
  */
@@ -139,8 +141,9 @@ export class DiagnosticsImpl implements Diagnostics {
139
141
 
140
142
  /**
141
143
  * Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
142
- * @param scope This is an extension resource provider and only resource level extension is supported
143
- * at the moment.
144
+ * @param scope scope = resourceUri of affected resource.<br/> For example:
145
+ * /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
146
+ *
144
147
  * @param diagnosticsResourceName Unique resource name for insight resources
145
148
  * @param options The options parameters.
146
149
  */