@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.
- package/CHANGELOG.md +214 -1
- package/LICENSE +1 -1
- package/README.md +3 -2
- package/dist/index.js +1679 -907
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityPostSample.js +7 -7
- package/dist-esm/samples-dev/checkNameAvailabilityPostSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticsCreateSample.js +3 -3
- package/dist-esm/samples-dev/diagnosticsGetSample.js +1 -1
- package/dist-esm/samples-dev/discoverySolutionListSample.js +6 -41
- package/dist-esm/samples-dev/discoverySolutionListSample.js.map +1 -1
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.d.ts +2 -0
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.js +45 -0
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.js.map +1 -0
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.d.ts +2 -0
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.js +43 -0
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +5 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.js +46 -0
- package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/simplifiedSolutionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/simplifiedSolutionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/simplifiedSolutionsGetSample.js +37 -0
- package/dist-esm/samples-dev/simplifiedSolutionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionCreateSample.js +8 -10
- package/dist-esm/samples-dev/solutionCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/solutionGetSample.js +1 -1
- package/dist-esm/samples-dev/solutionSelfHelpGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionSelfHelpGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionSelfHelpGetSample.js +36 -0
- package/dist-esm/samples-dev/solutionSelfHelpGetSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionUpdateSample.js +1 -1
- package/dist-esm/samples-dev/solutionWarmUpSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionWarmUpSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionWarmUpSample.js +37 -0
- package/dist-esm/samples-dev/solutionWarmUpSample.js.map +1 -0
- package/dist-esm/samples-dev/troubleshootersContinueSample.js +6 -6
- package/dist-esm/samples-dev/troubleshootersContinueSample.js.map +1 -1
- package/dist-esm/samples-dev/troubleshootersCreateSample.js +7 -7
- package/dist-esm/samples-dev/troubleshootersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/troubleshootersEndSample.js +1 -1
- package/dist-esm/samples-dev/troubleshootersGetSample.js +1 -1
- package/dist-esm/samples-dev/troubleshootersRestartSample.js +1 -1
- package/dist-esm/src/helpRP.d.ts +8 -1
- package/dist-esm/src/helpRP.d.ts.map +1 -1
- package/dist-esm/src/helpRP.js +25 -15
- package/dist-esm/src/helpRP.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +350 -89
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +49 -19
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +10 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +947 -590
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +95 -44
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.d.ts +3 -2
- package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.js +7 -6
- package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
- package/dist-esm/src/operations/diagnostics.d.ts +15 -16
- package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
- package/dist-esm/src/operations/diagnostics.js +33 -34
- package/dist-esm/src/operations/diagnostics.js.map +1 -1
- package/dist-esm/src/operations/discoverySolution.d.ts +5 -13
- package/dist-esm/src/operations/discoverySolution.d.ts.map +1 -1
- package/dist-esm/src/operations/discoverySolution.js +29 -37
- package/dist-esm/src/operations/discoverySolution.js.map +1 -1
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.d.ts +19 -0
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.d.ts.map +1 -0
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.js +49 -0
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.js.map +1 -0
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.d.ts +19 -0
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.d.ts.map +1 -0
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.js +49 -0
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +4 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/simplifiedSolutions.d.ts +52 -0
- package/dist-esm/src/operations/simplifiedSolutions.d.ts.map +1 -0
- package/dist-esm/src/operations/simplifiedSolutions.js +159 -0
- package/dist-esm/src/operations/simplifiedSolutions.js.map +1 -0
- package/dist-esm/src/operations/solution.d.ts +41 -37
- package/dist-esm/src/operations/solution.d.ts.map +1 -1
- package/dist-esm/src/operations/solution.js +92 -66
- package/dist-esm/src/operations/solution.js.map +1 -1
- package/dist-esm/src/operations/solutionSelfHelp.d.ts +23 -0
- package/dist-esm/src/operations/solutionSelfHelp.d.ts.map +1 -0
- package/dist-esm/src/operations/solutionSelfHelp.js +51 -0
- package/dist-esm/src/operations/solutionSelfHelp.js.map +1 -0
- package/dist-esm/src/operations/troubleshooters.d.ts +22 -19
- package/dist-esm/src/operations/troubleshooters.d.ts.map +1 -1
- package/dist-esm/src/operations/troubleshooters.js +48 -45
- package/dist-esm/src/operations/troubleshooters.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +3 -2
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/diagnostics.d.ts +15 -16
- package/dist-esm/src/operationsInterfaces/diagnostics.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts +3 -6
- package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.js +9 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.js +9 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +4 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/simplifiedSolutions.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/simplifiedSolutions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/simplifiedSolutions.js +9 -0
- package/dist-esm/src/operationsInterfaces/simplifiedSolutions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/solution.d.ts +41 -37
- package/dist-esm/src/operationsInterfaces/solution.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/solutionSelfHelp.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/solutionSelfHelp.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/solutionSelfHelp.js +9 -0
- package/dist-esm/src/operationsInterfaces/solutionSelfHelp.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts +22 -19
- package/dist-esm/src/operationsInterfaces/troubleshooters.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/selfhelp_operations_test.spec.js +2 -2
- package/dist-esm/test/selfhelp_operations_test.spec.js.map +1 -1
- package/package.json +11 -11
- package/review/arm-selfhelp.api.md +198 -19
- package/src/helpRP.ts +58 -17
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +385 -106
- package/src/models/mappers.ts +995 -597
- package/src/models/parameters.ts +105 -45
- package/src/operations/checkNameAvailability.ts +10 -9
- package/src/operations/diagnostics.ts +48 -52
- package/src/operations/discoverySolution.ts +31 -47
- package/src/operations/discoverySolutionNLPSubscriptionScope.ts +64 -0
- package/src/operations/discoverySolutionNLPTenantScope.ts +64 -0
- package/src/operations/index.ts +4 -0
- package/src/operations/operations.ts +16 -16
- package/src/operations/simplifiedSolutions.ts +216 -0
- package/src/operations/solution.ts +122 -89
- package/src/operations/solutionSelfHelp.ts +68 -0
- package/src/operations/troubleshooters.ts +64 -66
- package/src/operationsInterfaces/checkNameAvailability.ts +5 -4
- package/src/operationsInterfaces/diagnostics.ts +19 -20
- package/src/operationsInterfaces/discoverySolution.ts +4 -8
- package/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.ts +24 -0
- package/src/operationsInterfaces/discoverySolutionNLPTenantScope.ts +24 -0
- package/src/operationsInterfaces/index.ts +4 -0
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/simplifiedSolutions.ts +74 -0
- package/src/operationsInterfaces/solution.ts +51 -42
- package/src/operationsInterfaces/solutionSelfHelp.ts +29 -0
- package/src/operationsInterfaces/troubleshooters.ts +28 -25
- package/src/pagingHelper.ts +1 -1
- package/types/arm-selfhelp.d.ts +505 -136
- package/types/tsdoc-metadata.json +1 -1
|
@@ -13,34 +13,31 @@ import {
|
|
|
13
13
|
SolutionGetOptionalParams,
|
|
14
14
|
SolutionGetResponse,
|
|
15
15
|
SolutionUpdateOptionalParams,
|
|
16
|
-
SolutionUpdateResponse
|
|
16
|
+
SolutionUpdateResponse,
|
|
17
|
+
SolutionWarmUpOptionalParams,
|
|
17
18
|
} from "../models";
|
|
18
19
|
|
|
19
20
|
/** Interface representing a Solution. */
|
|
20
21
|
export interface Solution {
|
|
21
22
|
/**
|
|
22
|
-
* Creates a solution for the specific Azure resource or subscription using the
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* the request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
|
|
34
|
-
* ‘properties.parameters’ in the request for Troubleshooters
|
|
35
|
-
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
36
|
-
* at the moment.
|
|
23
|
+
* Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
|
|
24
|
+
* requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
|
|
25
|
+
* self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
|
|
26
|
+
* resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
|
|
27
|
+
* context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
|
|
28
|
+
* instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
|
|
29
|
+
* assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
|
|
30
|
+
* into unified solutions tailored to address a specific support problem area.
|
|
31
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
32
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
33
|
+
*
|
|
37
34
|
* @param solutionResourceName Solution resource Name.
|
|
38
35
|
* @param options The options parameters.
|
|
39
36
|
*/
|
|
40
37
|
beginCreate(
|
|
41
38
|
scope: string,
|
|
42
39
|
solutionResourceName: string,
|
|
43
|
-
options?: SolutionCreateOptionalParams
|
|
40
|
+
options?: SolutionCreateOptionalParams,
|
|
44
41
|
): Promise<
|
|
45
42
|
SimplePollerLike<
|
|
46
43
|
OperationState<SolutionCreateResponse>,
|
|
@@ -48,52 +45,50 @@ export interface Solution {
|
|
|
48
45
|
>
|
|
49
46
|
>;
|
|
50
47
|
/**
|
|
51
|
-
* Creates a solution for the specific Azure resource or subscription using the
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* the request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
|
|
63
|
-
* ‘properties.parameters’ in the request for Troubleshooters
|
|
64
|
-
* @param scope This is an extension resource provider and only resource level extension is supported
|
|
65
|
-
* at the moment.
|
|
48
|
+
* Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
|
|
49
|
+
* requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
|
|
50
|
+
* self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
|
|
51
|
+
* resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
|
|
52
|
+
* context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
|
|
53
|
+
* instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
|
|
54
|
+
* assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
|
|
55
|
+
* into unified solutions tailored to address a specific support problem area.
|
|
56
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
57
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
58
|
+
*
|
|
66
59
|
* @param solutionResourceName Solution resource Name.
|
|
67
60
|
* @param options The options parameters.
|
|
68
61
|
*/
|
|
69
62
|
beginCreateAndWait(
|
|
70
63
|
scope: string,
|
|
71
64
|
solutionResourceName: string,
|
|
72
|
-
options?: SolutionCreateOptionalParams
|
|
65
|
+
options?: SolutionCreateOptionalParams,
|
|
73
66
|
): Promise<SolutionCreateResponse>;
|
|
74
67
|
/**
|
|
75
68
|
* Get the solution using the applicable solutionResourceName while creating the solution.
|
|
76
|
-
* @param scope
|
|
77
|
-
*
|
|
69
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
70
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
71
|
+
*
|
|
78
72
|
* @param solutionResourceName Solution resource Name.
|
|
79
73
|
* @param options The options parameters.
|
|
80
74
|
*/
|
|
81
75
|
get(
|
|
82
76
|
scope: string,
|
|
83
77
|
solutionResourceName: string,
|
|
84
|
-
options?: SolutionGetOptionalParams
|
|
78
|
+
options?: SolutionGetOptionalParams,
|
|
85
79
|
): Promise<SolutionGetResponse>;
|
|
86
80
|
/**
|
|
87
81
|
* Update the requiredInputs or additional information needed to execute the solution
|
|
88
|
-
* @param scope
|
|
89
|
-
*
|
|
82
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
83
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
84
|
+
*
|
|
90
85
|
* @param solutionResourceName Solution resource Name.
|
|
91
86
|
* @param options The options parameters.
|
|
92
87
|
*/
|
|
93
88
|
beginUpdate(
|
|
94
89
|
scope: string,
|
|
95
90
|
solutionResourceName: string,
|
|
96
|
-
options?: SolutionUpdateOptionalParams
|
|
91
|
+
options?: SolutionUpdateOptionalParams,
|
|
97
92
|
): Promise<
|
|
98
93
|
SimplePollerLike<
|
|
99
94
|
OperationState<SolutionUpdateResponse>,
|
|
@@ -102,14 +97,28 @@ export interface Solution {
|
|
|
102
97
|
>;
|
|
103
98
|
/**
|
|
104
99
|
* Update the requiredInputs or additional information needed to execute the solution
|
|
105
|
-
* @param scope
|
|
106
|
-
*
|
|
100
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
101
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
102
|
+
*
|
|
107
103
|
* @param solutionResourceName Solution resource Name.
|
|
108
104
|
* @param options The options parameters.
|
|
109
105
|
*/
|
|
110
106
|
beginUpdateAndWait(
|
|
111
107
|
scope: string,
|
|
112
108
|
solutionResourceName: string,
|
|
113
|
-
options?: SolutionUpdateOptionalParams
|
|
109
|
+
options?: SolutionUpdateOptionalParams,
|
|
114
110
|
): Promise<SolutionUpdateResponse>;
|
|
111
|
+
/**
|
|
112
|
+
* Warm up the solution resource by preloading asynchronous diagnostics results into cache
|
|
113
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
114
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
115
|
+
*
|
|
116
|
+
* @param solutionResourceName Solution resource Name.
|
|
117
|
+
* @param options The options parameters.
|
|
118
|
+
*/
|
|
119
|
+
warmUp(
|
|
120
|
+
scope: string,
|
|
121
|
+
solutionResourceName: string,
|
|
122
|
+
options?: SolutionWarmUpOptionalParams,
|
|
123
|
+
): Promise<void>;
|
|
115
124
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
SolutionSelfHelpGetOptionalParams,
|
|
11
|
+
SolutionSelfHelpGetResponse,
|
|
12
|
+
} from "../models";
|
|
13
|
+
|
|
14
|
+
/** Interface representing a SolutionSelfHelp. */
|
|
15
|
+
export interface SolutionSelfHelp {
|
|
16
|
+
/**
|
|
17
|
+
* Gets Self Help Solutions for a given solutionId. Self Help Solutions consist of rich instructional
|
|
18
|
+
* video tutorials, links and guides to public documentation related to a specific problem that enables
|
|
19
|
+
* users to troubleshoot Azure issues.
|
|
20
|
+
* @param solutionId SolutionId is a unique id to identify a solution. You can retrieve the solution id
|
|
21
|
+
* using the Discovery api -
|
|
22
|
+
* https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
get(
|
|
26
|
+
solutionId: string,
|
|
27
|
+
options?: SolutionSelfHelpGetOptionalParams,
|
|
28
|
+
): Promise<SolutionSelfHelpGetResponse>;
|
|
29
|
+
}
|
|
@@ -16,86 +16,89 @@ import {
|
|
|
16
16
|
TroubleshootersEndOptionalParams,
|
|
17
17
|
TroubleshootersEndResponse,
|
|
18
18
|
TroubleshootersRestartOptionalParams,
|
|
19
|
-
TroubleshootersRestartResponse
|
|
19
|
+
TroubleshootersRestartResponse,
|
|
20
20
|
} from "../models";
|
|
21
21
|
|
|
22
22
|
/** Interface representing a Troubleshooters. */
|
|
23
23
|
export interface Troubleshooters {
|
|
24
24
|
/**
|
|
25
25
|
* Creates the specific troubleshooter action under a resource or subscription using the ‘solutionId’
|
|
26
|
-
* and ‘properties.parameters’ as the trigger. <br/> Troubleshooters
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* at the moment.
|
|
26
|
+
* and ‘properties.parameters’ as the trigger. <br/> Azure Troubleshooters help with hard to classify
|
|
27
|
+
* issues, reducing the gap between customer observed problems and solutions by guiding the user
|
|
28
|
+
* effortlessly through the troubleshooting process. Each Troubleshooter flow represents a problem area
|
|
29
|
+
* within Azure and has a complex tree-like structure that addresses many root causes. These flows are
|
|
30
|
+
* prepared with the help of Subject Matter experts and customer support engineers by carefully
|
|
31
|
+
* considering previous support requests raised by customers. Troubleshooters terminate at a well
|
|
32
|
+
* curated solution based off of resource backend signals and customer manual selections.
|
|
33
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
34
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
35
|
+
*
|
|
37
36
|
* @param troubleshooterName Troubleshooter resource Name.
|
|
38
37
|
* @param options The options parameters.
|
|
39
38
|
*/
|
|
40
39
|
create(
|
|
41
40
|
scope: string,
|
|
42
41
|
troubleshooterName: string,
|
|
43
|
-
options?: TroubleshootersCreateOptionalParams
|
|
42
|
+
options?: TroubleshootersCreateOptionalParams,
|
|
44
43
|
): Promise<TroubleshootersCreateResponse>;
|
|
45
44
|
/**
|
|
46
45
|
* Gets troubleshooter instance result which includes the step status/result of the troubleshooter
|
|
47
46
|
* resource name that is being executed.<br/> Get API is used to retrieve the result of a
|
|
48
47
|
* Troubleshooter instance, which includes the status and result of each step in the Troubleshooter
|
|
49
48
|
* workflow. This API requires the Troubleshooter resource name that was created using the Create API.
|
|
50
|
-
* @param scope
|
|
51
|
-
*
|
|
49
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
50
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
51
|
+
*
|
|
52
52
|
* @param troubleshooterName Troubleshooter resource Name.
|
|
53
53
|
* @param options The options parameters.
|
|
54
54
|
*/
|
|
55
55
|
get(
|
|
56
56
|
scope: string,
|
|
57
57
|
troubleshooterName: string,
|
|
58
|
-
options?: TroubleshootersGetOptionalParams
|
|
58
|
+
options?: TroubleshootersGetOptionalParams,
|
|
59
59
|
): Promise<TroubleshootersGetResponse>;
|
|
60
60
|
/**
|
|
61
61
|
* Uses ‘stepId’ and ‘responses’ as the trigger to continue the troubleshooting steps for the
|
|
62
62
|
* respective troubleshooter resource name. <br/>Continue API is used to provide inputs that are
|
|
63
63
|
* required for the specific troubleshooter to progress into the next step in the process. This API is
|
|
64
64
|
* used after the Troubleshooter has been created using the Create API.
|
|
65
|
-
* @param scope
|
|
66
|
-
*
|
|
65
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
66
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
67
|
+
*
|
|
67
68
|
* @param troubleshooterName Troubleshooter resource Name.
|
|
68
69
|
* @param options The options parameters.
|
|
69
70
|
*/
|
|
70
71
|
continue(
|
|
71
72
|
scope: string,
|
|
72
73
|
troubleshooterName: string,
|
|
73
|
-
options?: TroubleshootersContinueOptionalParams
|
|
74
|
+
options?: TroubleshootersContinueOptionalParams,
|
|
74
75
|
): Promise<TroubleshootersContinueResponse>;
|
|
75
76
|
/**
|
|
76
77
|
* Ends the troubleshooter action
|
|
77
|
-
* @param scope
|
|
78
|
-
*
|
|
78
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
79
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
80
|
+
*
|
|
79
81
|
* @param troubleshooterName Troubleshooter resource Name.
|
|
80
82
|
* @param options The options parameters.
|
|
81
83
|
*/
|
|
82
84
|
end(
|
|
83
85
|
scope: string,
|
|
84
86
|
troubleshooterName: string,
|
|
85
|
-
options?: TroubleshootersEndOptionalParams
|
|
87
|
+
options?: TroubleshootersEndOptionalParams,
|
|
86
88
|
): Promise<TroubleshootersEndResponse>;
|
|
87
89
|
/**
|
|
88
90
|
* Restarts the troubleshooter API using applicable troubleshooter resource name as the input.<br/> It
|
|
89
91
|
* returns new resource name which should be used in subsequent request. The old resource name is
|
|
90
92
|
* obsolete after this API is invoked.
|
|
91
|
-
* @param scope
|
|
92
|
-
*
|
|
93
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
94
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
95
|
+
*
|
|
93
96
|
* @param troubleshooterName Troubleshooter resource Name.
|
|
94
97
|
* @param options The options parameters.
|
|
95
98
|
*/
|
|
96
99
|
restart(
|
|
97
100
|
scope: string,
|
|
98
101
|
troubleshooterName: string,
|
|
99
|
-
options?: TroubleshootersRestartOptionalParams
|
|
102
|
+
options?: TroubleshootersRestartOptionalParams,
|
|
100
103
|
): Promise<TroubleshootersRestartResponse>;
|
|
101
104
|
}
|
package/src/pagingHelper.ts
CHANGED
|
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
|
|
|
28
28
|
|
|
29
29
|
export function setContinuationToken(
|
|
30
30
|
page: unknown,
|
|
31
|
-
continuationToken: string | undefined
|
|
31
|
+
continuationToken: string | undefined,
|
|
32
32
|
): void {
|
|
33
33
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
34
|
return;
|