@azure/arm-selfhelp 2.0.0-beta.2 → 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 +120 -0
- package/LICENSE +1 -1
- package/README.md +3 -2
- package/dist/index.js +1589 -861
- 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 +4 -13
- package/dist-esm/samples-dev/diagnosticsCreateSample.js.map +1 -1
- 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 -5
- 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 +2 -11
- package/dist-esm/samples-dev/solutionUpdateSample.js.map +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 +5 -5
- 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 +227 -7
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +24 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +9 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +860 -523
- 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.js +4 -4
- package/dist-esm/src/operations/diagnostics.d.ts +6 -10
- package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
- package/dist-esm/src/operations/diagnostics.js +24 -28
- package/dist-esm/src/operations/diagnostics.js.map +1 -1
- package/dist-esm/src/operations/discoverySolution.d.ts +3 -12
- package/dist-esm/src/operations/discoverySolution.d.ts.map +1 -1
- package/dist-esm/src/operations/discoverySolution.js +27 -36
- 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 +20 -25
- package/dist-esm/src/operations/solution.d.ts.map +1 -1
- package/dist-esm/src/operations/solution.js +71 -54
- 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.js +26 -26
- package/dist-esm/src/operations/troubleshooters.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/diagnostics.d.ts +6 -10
- package/dist-esm/src/operationsInterfaces/diagnostics.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts +2 -5
- 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 +20 -25
- 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/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 +8 -10
- package/review/arm-selfhelp.api.md +177 -2
- package/src/helpRP.ts +58 -17
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +263 -22
- package/src/models/mappers.ts +898 -529
- package/src/models/parameters.ts +105 -45
- package/src/operations/checkNameAvailability.ts +7 -7
- package/src/operations/diagnostics.ts +39 -46
- package/src/operations/discoverySolution.ts +29 -46
- 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 +101 -77
- package/src/operations/solutionSelfHelp.ts +68 -0
- package/src/operations/troubleshooters.ts +42 -47
- package/src/operationsInterfaces/checkNameAvailability.ts +2 -2
- package/src/operationsInterfaces/diagnostics.ts +10 -14
- package/src/operationsInterfaces/discoverySolution.ts +3 -7
- 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 +30 -30
- package/src/operationsInterfaces/solutionSelfHelp.ts +29 -0
- package/src/operationsInterfaces/troubleshooters.ts +6 -6
- package/src/pagingHelper.ts +1 -1
- package/types/arm-selfhelp.d.ts +359 -46
- package/types/tsdoc-metadata.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
10
|
CheckNameAvailabilityPostOptionalParams,
|
|
11
|
-
CheckNameAvailabilityPostResponse
|
|
11
|
+
CheckNameAvailabilityPostResponse,
|
|
12
12
|
} from "../models";
|
|
13
13
|
|
|
14
14
|
/** Interface representing a CheckNameAvailability. */
|
|
@@ -23,6 +23,6 @@ export interface CheckNameAvailability {
|
|
|
23
23
|
*/
|
|
24
24
|
post(
|
|
25
25
|
scope: string,
|
|
26
|
-
options?: CheckNameAvailabilityPostOptionalParams
|
|
26
|
+
options?: CheckNameAvailabilityPostOptionalParams,
|
|
27
27
|
): Promise<CheckNameAvailabilityPostResponse>;
|
|
28
28
|
}
|
|
@@ -11,17 +11,15 @@ import {
|
|
|
11
11
|
DiagnosticsCreateOptionalParams,
|
|
12
12
|
DiagnosticsCreateResponse,
|
|
13
13
|
DiagnosticsGetOptionalParams,
|
|
14
|
-
DiagnosticsGetResponse
|
|
14
|
+
DiagnosticsGetResponse,
|
|
15
15
|
} from "../models";
|
|
16
16
|
|
|
17
17
|
/** Interface representing a Diagnostics. */
|
|
18
18
|
export interface Diagnostics {
|
|
19
19
|
/**
|
|
20
|
-
* Creates a diagnostic for the specific resource using solutionId
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* </b> ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as
|
|
24
|
-
* an input to Diagnostics API.
|
|
20
|
+
* Creates a diagnostic for the specific resource using solutionId from discovery solutions.
|
|
21
|
+
* <br/>Diagnostics are powerful solutions that access product resources or other relevant data and
|
|
22
|
+
* provide the root cause of the issue and the steps to address the issue.<br/><br/>
|
|
25
23
|
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
26
24
|
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
27
25
|
*
|
|
@@ -31,7 +29,7 @@ export interface Diagnostics {
|
|
|
31
29
|
beginCreate(
|
|
32
30
|
scope: string,
|
|
33
31
|
diagnosticsResourceName: string,
|
|
34
|
-
options?: DiagnosticsCreateOptionalParams
|
|
32
|
+
options?: DiagnosticsCreateOptionalParams,
|
|
35
33
|
): Promise<
|
|
36
34
|
SimplePollerLike<
|
|
37
35
|
OperationState<DiagnosticsCreateResponse>,
|
|
@@ -39,11 +37,9 @@ export interface Diagnostics {
|
|
|
39
37
|
>
|
|
40
38
|
>;
|
|
41
39
|
/**
|
|
42
|
-
* Creates a diagnostic for the specific resource using solutionId
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* </b> ‘requiredInputs’ from Discovery solutions response must be passed via ‘additionalParameters’ as
|
|
46
|
-
* an input to Diagnostics API.
|
|
40
|
+
* Creates a diagnostic for the specific resource using solutionId from discovery solutions.
|
|
41
|
+
* <br/>Diagnostics are powerful solutions that access product resources or other relevant data and
|
|
42
|
+
* provide the root cause of the issue and the steps to address the issue.<br/><br/>
|
|
47
43
|
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
48
44
|
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
49
45
|
*
|
|
@@ -53,7 +49,7 @@ export interface Diagnostics {
|
|
|
53
49
|
beginCreateAndWait(
|
|
54
50
|
scope: string,
|
|
55
51
|
diagnosticsResourceName: string,
|
|
56
|
-
options?: DiagnosticsCreateOptionalParams
|
|
52
|
+
options?: DiagnosticsCreateOptionalParams,
|
|
57
53
|
): Promise<DiagnosticsCreateResponse>;
|
|
58
54
|
/**
|
|
59
55
|
* Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the diagnostic.
|
|
@@ -66,6 +62,6 @@ export interface Diagnostics {
|
|
|
66
62
|
get(
|
|
67
63
|
scope: string,
|
|
68
64
|
diagnosticsResourceName: string,
|
|
69
|
-
options?: DiagnosticsGetOptionalParams
|
|
65
|
+
options?: DiagnosticsGetOptionalParams,
|
|
70
66
|
): Promise<DiagnosticsGetResponse>;
|
|
71
67
|
}
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
10
|
import {
|
|
11
11
|
SolutionMetadataResource,
|
|
12
|
-
DiscoverySolutionListOptionalParams
|
|
12
|
+
DiscoverySolutionListOptionalParams,
|
|
13
13
|
} from "../models";
|
|
14
14
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Interface representing a DiscoverySolution. */
|
|
17
17
|
export interface DiscoverySolution {
|
|
18
18
|
/**
|
|
19
|
-
* Lists the relevant Azure
|
|
19
|
+
* Lists the relevant Azure Diagnostics, Solutions and Troubleshooters using [problemClassification
|
|
20
20
|
* API](https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP)) AND
|
|
21
21
|
* resourceUri or resourceType.<br/> Discovery Solutions is the initial entry point within Help API,
|
|
22
22
|
* which identifies relevant Azure diagnostics and solutions. <br/><br/> Required Input :
|
|
@@ -25,13 +25,9 @@ export interface DiscoverySolution {
|
|
|
25
25
|
* <br/>Optional input: resourceUri OR resource Type <br/><br/> <b>Note: </b> ‘requiredInputs’ from
|
|
26
26
|
* Discovery solutions response must be passed via ‘additionalParameters’ as an input to Diagnostics
|
|
27
27
|
* and Solutions API.
|
|
28
|
-
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
29
|
-
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
30
|
-
*
|
|
31
28
|
* @param options The options parameters.
|
|
32
29
|
*/
|
|
33
30
|
list(
|
|
34
|
-
|
|
35
|
-
options?: DiscoverySolutionListOptionalParams
|
|
31
|
+
options?: DiscoverySolutionListOptionalParams,
|
|
36
32
|
): PagedAsyncIterableIterator<SolutionMetadataResource>;
|
|
37
33
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
DiscoverySolutionNLPSubscriptionScopePostOptionalParams,
|
|
11
|
+
DiscoverySolutionNLPSubscriptionScopePostResponse,
|
|
12
|
+
} from "../models";
|
|
13
|
+
|
|
14
|
+
/** Interface representing a DiscoverySolutionNLPSubscriptionScope. */
|
|
15
|
+
export interface DiscoverySolutionNLPSubscriptionScope {
|
|
16
|
+
/**
|
|
17
|
+
* Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
|
|
18
|
+
* summary and subscription.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
post(
|
|
22
|
+
options?: DiscoverySolutionNLPSubscriptionScopePostOptionalParams,
|
|
23
|
+
): Promise<DiscoverySolutionNLPSubscriptionScopePostResponse>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
DiscoverySolutionNLPTenantScopePostOptionalParams,
|
|
11
|
+
DiscoverySolutionNLPTenantScopePostResponse,
|
|
12
|
+
} from "../models";
|
|
13
|
+
|
|
14
|
+
/** Interface representing a DiscoverySolutionNLPTenantScope. */
|
|
15
|
+
export interface DiscoverySolutionNLPTenantScope {
|
|
16
|
+
/**
|
|
17
|
+
* Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
|
|
18
|
+
* summary.
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
post(
|
|
22
|
+
options?: DiscoverySolutionNLPTenantScopePostOptionalParams,
|
|
23
|
+
): Promise<DiscoverySolutionNLPTenantScopePostResponse>;
|
|
24
|
+
}
|
|
@@ -11,4 +11,8 @@ export * from "./checkNameAvailability";
|
|
|
11
11
|
export * from "./diagnostics";
|
|
12
12
|
export * from "./discoverySolution";
|
|
13
13
|
export * from "./solution";
|
|
14
|
+
export * from "./simplifiedSolutions";
|
|
14
15
|
export * from "./troubleshooters";
|
|
16
|
+
export * from "./solutionSelfHelp";
|
|
17
|
+
export * from "./discoverySolutionNLPTenantScope";
|
|
18
|
+
export * from "./discoverySolutionNLPSubscriptionScope";
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
10
|
+
import {
|
|
11
|
+
SimplifiedSolutionsCreateOptionalParams,
|
|
12
|
+
SimplifiedSolutionsCreateResponse,
|
|
13
|
+
SimplifiedSolutionsGetOptionalParams,
|
|
14
|
+
SimplifiedSolutionsGetResponse,
|
|
15
|
+
} from "../models";
|
|
16
|
+
|
|
17
|
+
/** Interface representing a SimplifiedSolutions. */
|
|
18
|
+
export interface SimplifiedSolutions {
|
|
19
|
+
/**
|
|
20
|
+
* Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions
|
|
21
|
+
* as the input. <br/><br/> Simplified Solutions API makes the consumption of solutions APIs easier
|
|
22
|
+
* while still providing access to the same powerful solutions rendered in Solutions API. With
|
|
23
|
+
* Simplified Solutions, users don't have to worry about stitching together the article using
|
|
24
|
+
* replacement maps and can use the content in the API response to directly render as HTML
|
|
25
|
+
* content.<br/>
|
|
26
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
27
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
28
|
+
*
|
|
29
|
+
* @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
beginCreate(
|
|
33
|
+
scope: string,
|
|
34
|
+
simplifiedSolutionsResourceName: string,
|
|
35
|
+
options?: SimplifiedSolutionsCreateOptionalParams,
|
|
36
|
+
): Promise<
|
|
37
|
+
SimplePollerLike<
|
|
38
|
+
OperationState<SimplifiedSolutionsCreateResponse>,
|
|
39
|
+
SimplifiedSolutionsCreateResponse
|
|
40
|
+
>
|
|
41
|
+
>;
|
|
42
|
+
/**
|
|
43
|
+
* Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions
|
|
44
|
+
* as the input. <br/><br/> Simplified Solutions API makes the consumption of solutions APIs easier
|
|
45
|
+
* while still providing access to the same powerful solutions rendered in Solutions API. With
|
|
46
|
+
* Simplified Solutions, users don't have to worry about stitching together the article using
|
|
47
|
+
* replacement maps and can use the content in the API response to directly render as HTML
|
|
48
|
+
* content.<br/>
|
|
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
|
+
* @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
beginCreateAndWait(
|
|
56
|
+
scope: string,
|
|
57
|
+
simplifiedSolutionsResourceName: string,
|
|
58
|
+
options?: SimplifiedSolutionsCreateOptionalParams,
|
|
59
|
+
): Promise<SimplifiedSolutionsCreateResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Get the simplified Solutions using the applicable solutionResourceName while creating the simplified
|
|
62
|
+
* Solutions.
|
|
63
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
64
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
65
|
+
*
|
|
66
|
+
* @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
get(
|
|
70
|
+
scope: string,
|
|
71
|
+
simplifiedSolutionsResourceName: string,
|
|
72
|
+
options?: SimplifiedSolutionsGetOptionalParams,
|
|
73
|
+
): Promise<SimplifiedSolutionsGetResponse>;
|
|
74
|
+
}
|
|
@@ -13,7 +13,8 @@ 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. */
|
|
@@ -22,18 +23,11 @@ export interface Solution {
|
|
|
22
23
|
* Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
|
|
23
24
|
* requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
|
|
24
25
|
* self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
|
|
25
|
-
* resolving typical troubleshooting issues. These solutions encompass (1.)
|
|
26
|
-
* diagnostics, guided troubleshooting wizards, and data visualizations
|
|
27
|
-
* tutorials and illustrative diagrams and images
|
|
28
|
-
* troubleshooting instructions. All these components are seamlessly converged
|
|
29
|
-
* tailored to address a specific support problem area.
|
|
30
|
-
* ‘requiredParameters’ that are required to execute the individual solution component. In the absence
|
|
31
|
-
* of the ‘requiredParameters’ it is likely that some of the solutions might fail execution, and you
|
|
32
|
-
* might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from Discovery
|
|
33
|
-
* solutions response must be passed via ‘parameters’ in the request body of Solutions API. <br/>2.
|
|
34
|
-
* ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the
|
|
35
|
-
* request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
|
|
36
|
-
* ‘properties.parameters’ in the request for Troubleshooters
|
|
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.
|
|
37
31
|
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
38
32
|
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
39
33
|
*
|
|
@@ -43,7 +37,7 @@ export interface Solution {
|
|
|
43
37
|
beginCreate(
|
|
44
38
|
scope: string,
|
|
45
39
|
solutionResourceName: string,
|
|
46
|
-
options?: SolutionCreateOptionalParams
|
|
40
|
+
options?: SolutionCreateOptionalParams,
|
|
47
41
|
): Promise<
|
|
48
42
|
SimplePollerLike<
|
|
49
43
|
OperationState<SolutionCreateResponse>,
|
|
@@ -54,18 +48,11 @@ export interface Solution {
|
|
|
54
48
|
* Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
|
|
55
49
|
* requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
|
|
56
50
|
* self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
|
|
57
|
-
* resolving typical troubleshooting issues. These solutions encompass (1.)
|
|
58
|
-
* diagnostics, guided troubleshooting wizards, and data visualizations
|
|
59
|
-
* tutorials and illustrative diagrams and images
|
|
60
|
-
* troubleshooting instructions. All these components are seamlessly converged
|
|
61
|
-
* tailored to address a specific support problem area.
|
|
62
|
-
* ‘requiredParameters’ that are required to execute the individual solution component. In the absence
|
|
63
|
-
* of the ‘requiredParameters’ it is likely that some of the solutions might fail execution, and you
|
|
64
|
-
* might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from Discovery
|
|
65
|
-
* solutions response must be passed via ‘parameters’ in the request body of Solutions API. <br/>2.
|
|
66
|
-
* ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the
|
|
67
|
-
* request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
|
|
68
|
-
* ‘properties.parameters’ in the request for Troubleshooters
|
|
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.
|
|
69
56
|
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
70
57
|
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
71
58
|
*
|
|
@@ -75,7 +62,7 @@ export interface Solution {
|
|
|
75
62
|
beginCreateAndWait(
|
|
76
63
|
scope: string,
|
|
77
64
|
solutionResourceName: string,
|
|
78
|
-
options?: SolutionCreateOptionalParams
|
|
65
|
+
options?: SolutionCreateOptionalParams,
|
|
79
66
|
): Promise<SolutionCreateResponse>;
|
|
80
67
|
/**
|
|
81
68
|
* Get the solution using the applicable solutionResourceName while creating the solution.
|
|
@@ -88,7 +75,7 @@ export interface Solution {
|
|
|
88
75
|
get(
|
|
89
76
|
scope: string,
|
|
90
77
|
solutionResourceName: string,
|
|
91
|
-
options?: SolutionGetOptionalParams
|
|
78
|
+
options?: SolutionGetOptionalParams,
|
|
92
79
|
): Promise<SolutionGetResponse>;
|
|
93
80
|
/**
|
|
94
81
|
* Update the requiredInputs or additional information needed to execute the solution
|
|
@@ -101,7 +88,7 @@ export interface Solution {
|
|
|
101
88
|
beginUpdate(
|
|
102
89
|
scope: string,
|
|
103
90
|
solutionResourceName: string,
|
|
104
|
-
options?: SolutionUpdateOptionalParams
|
|
91
|
+
options?: SolutionUpdateOptionalParams,
|
|
105
92
|
): Promise<
|
|
106
93
|
SimplePollerLike<
|
|
107
94
|
OperationState<SolutionUpdateResponse>,
|
|
@@ -119,6 +106,19 @@ export interface Solution {
|
|
|
119
106
|
beginUpdateAndWait(
|
|
120
107
|
scope: string,
|
|
121
108
|
solutionResourceName: string,
|
|
122
|
-
options?: SolutionUpdateOptionalParams
|
|
109
|
+
options?: SolutionUpdateOptionalParams,
|
|
123
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>;
|
|
124
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,7 +16,7 @@ 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. */
|
|
@@ -39,7 +39,7 @@ export interface Troubleshooters {
|
|
|
39
39
|
create(
|
|
40
40
|
scope: string,
|
|
41
41
|
troubleshooterName: string,
|
|
42
|
-
options?: TroubleshootersCreateOptionalParams
|
|
42
|
+
options?: TroubleshootersCreateOptionalParams,
|
|
43
43
|
): Promise<TroubleshootersCreateResponse>;
|
|
44
44
|
/**
|
|
45
45
|
* Gets troubleshooter instance result which includes the step status/result of the troubleshooter
|
|
@@ -55,7 +55,7 @@ export interface Troubleshooters {
|
|
|
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
|
|
@@ -71,7 +71,7 @@ export interface Troubleshooters {
|
|
|
71
71
|
continue(
|
|
72
72
|
scope: string,
|
|
73
73
|
troubleshooterName: string,
|
|
74
|
-
options?: TroubleshootersContinueOptionalParams
|
|
74
|
+
options?: TroubleshootersContinueOptionalParams,
|
|
75
75
|
): Promise<TroubleshootersContinueResponse>;
|
|
76
76
|
/**
|
|
77
77
|
* Ends the troubleshooter action
|
|
@@ -84,7 +84,7 @@ export interface Troubleshooters {
|
|
|
84
84
|
end(
|
|
85
85
|
scope: string,
|
|
86
86
|
troubleshooterName: string,
|
|
87
|
-
options?: TroubleshootersEndOptionalParams
|
|
87
|
+
options?: TroubleshootersEndOptionalParams,
|
|
88
88
|
): Promise<TroubleshootersEndResponse>;
|
|
89
89
|
/**
|
|
90
90
|
* Restarts the troubleshooter API using applicable troubleshooter resource name as the input.<br/> It
|
|
@@ -99,6 +99,6 @@ export interface Troubleshooters {
|
|
|
99
99
|
restart(
|
|
100
100
|
scope: string,
|
|
101
101
|
troubleshooterName: string,
|
|
102
|
-
options?: TroubleshootersRestartOptionalParams
|
|
102
|
+
options?: TroubleshootersRestartOptionalParams,
|
|
103
103
|
): Promise<TroubleshootersRestartResponse>;
|
|
104
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;
|