@azure/arm-selfhelp 2.0.0-beta.2 → 2.0.0-beta.4
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 +239 -0
- package/LICENSE +1 -1
- package/dist/index.js +1582 -856
- 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 +44 -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 +42 -0
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +2 -2
- 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 +5 -1
- package/dist-esm/src/helpRP.d.ts.map +1 -1
- package/dist-esm/src/helpRP.js +15 -9
- 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 +96 -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 +20 -0
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.d.ts.map +1 -0
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.js +50 -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 +12 -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 +6 -1
- package/dist-esm/test/selfhelp_operations_test.spec.js.map +1 -1
- package/package.json +8 -9
- package/review/arm-selfhelp.api.md +174 -2
- package/src/helpRP.ts +36 -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 +106 -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 +69 -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 +26 -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 +357 -46
- package/types/tsdoc-metadata.json +1 -1
|
@@ -0,0 +1,159 @@
|
|
|
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
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
13
|
+
import { createLroSpec } from "../lroImpl";
|
|
14
|
+
/** Class containing SimplifiedSolutions operations. */
|
|
15
|
+
export class SimplifiedSolutionsImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class SimplifiedSolutions class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions
|
|
25
|
+
* as the input. <br/><br/> Simplified Solutions API makes the consumption of solutions APIs easier
|
|
26
|
+
* while still providing access to the same powerful solutions rendered in Solutions API. With
|
|
27
|
+
* Simplified Solutions, users don't have to worry about stitching together the article using
|
|
28
|
+
* replacement maps and can use the content in the API response to directly render as HTML
|
|
29
|
+
* content.<br/>
|
|
30
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
31
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
32
|
+
*
|
|
33
|
+
* @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
|
|
34
|
+
* @param options The options parameters.
|
|
35
|
+
*/
|
|
36
|
+
beginCreate(scope, simplifiedSolutionsResourceName, options) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
return this.client.sendOperationRequest(args, spec);
|
|
40
|
+
});
|
|
41
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
var _a;
|
|
43
|
+
let currentRawResponse = undefined;
|
|
44
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
45
|
+
const callback = (rawResponse, flatResponse) => {
|
|
46
|
+
currentRawResponse = rawResponse;
|
|
47
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
48
|
+
};
|
|
49
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
50
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
51
|
+
return {
|
|
52
|
+
flatResponse,
|
|
53
|
+
rawResponse: {
|
|
54
|
+
statusCode: currentRawResponse.status,
|
|
55
|
+
body: currentRawResponse.parsedBody,
|
|
56
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
const lro = createLroSpec({
|
|
61
|
+
sendOperationFn,
|
|
62
|
+
args: { scope, simplifiedSolutionsResourceName, options },
|
|
63
|
+
spec: createOperationSpec,
|
|
64
|
+
});
|
|
65
|
+
const poller = yield createHttpPoller(lro, {
|
|
66
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
67
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
68
|
+
resourceLocationConfig: "azure-async-operation",
|
|
69
|
+
});
|
|
70
|
+
yield poller.poll();
|
|
71
|
+
return poller;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Creates Simplified Solutions for an Azure subscription using 'solutionId' from Discovery Solutions
|
|
76
|
+
* as the input. <br/><br/> Simplified Solutions API makes the consumption of solutions APIs easier
|
|
77
|
+
* while still providing access to the same powerful solutions rendered in Solutions API. With
|
|
78
|
+
* Simplified Solutions, users don't have to worry about stitching together the article using
|
|
79
|
+
* replacement maps and can use the content in the API response to directly render as HTML
|
|
80
|
+
* content.<br/>
|
|
81
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
82
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
83
|
+
*
|
|
84
|
+
* @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
beginCreateAndWait(scope, simplifiedSolutionsResourceName, options) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const poller = yield this.beginCreate(scope, simplifiedSolutionsResourceName, options);
|
|
90
|
+
return poller.pollUntilDone();
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Get the simplified Solutions using the applicable solutionResourceName while creating the simplified
|
|
95
|
+
* Solutions.
|
|
96
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
97
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
98
|
+
*
|
|
99
|
+
* @param simplifiedSolutionsResourceName Simplified Solutions Resource Name.
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
get(scope, simplifiedSolutionsResourceName, options) {
|
|
103
|
+
return this.client.sendOperationRequest({ scope, simplifiedSolutionsResourceName, options }, getOperationSpec);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
// Operation Specifications
|
|
107
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
108
|
+
const createOperationSpec = {
|
|
109
|
+
path: "/{scope}/providers/Microsoft.Help/simplifiedSolutions/{simplifiedSolutionsResourceName}",
|
|
110
|
+
httpMethod: "PUT",
|
|
111
|
+
responses: {
|
|
112
|
+
200: {
|
|
113
|
+
bodyMapper: Mappers.SimplifiedSolutionsResource,
|
|
114
|
+
},
|
|
115
|
+
201: {
|
|
116
|
+
bodyMapper: Mappers.SimplifiedSolutionsResource,
|
|
117
|
+
},
|
|
118
|
+
202: {
|
|
119
|
+
bodyMapper: Mappers.SimplifiedSolutionsResource,
|
|
120
|
+
},
|
|
121
|
+
204: {
|
|
122
|
+
bodyMapper: Mappers.SimplifiedSolutionsResource,
|
|
123
|
+
},
|
|
124
|
+
default: {
|
|
125
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
requestBody: Parameters.simplifiedSolutionsRequestBody,
|
|
129
|
+
queryParameters: [Parameters.apiVersion],
|
|
130
|
+
urlParameters: [
|
|
131
|
+
Parameters.$host,
|
|
132
|
+
Parameters.scope,
|
|
133
|
+
Parameters.simplifiedSolutionsResourceName,
|
|
134
|
+
],
|
|
135
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
136
|
+
mediaType: "json",
|
|
137
|
+
serializer,
|
|
138
|
+
};
|
|
139
|
+
const getOperationSpec = {
|
|
140
|
+
path: "/{scope}/providers/Microsoft.Help/simplifiedSolutions/{simplifiedSolutionsResourceName}",
|
|
141
|
+
httpMethod: "GET",
|
|
142
|
+
responses: {
|
|
143
|
+
200: {
|
|
144
|
+
bodyMapper: Mappers.SimplifiedSolutionsResource,
|
|
145
|
+
},
|
|
146
|
+
default: {
|
|
147
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
queryParameters: [Parameters.apiVersion],
|
|
151
|
+
urlParameters: [
|
|
152
|
+
Parameters.$host,
|
|
153
|
+
Parameters.scope,
|
|
154
|
+
Parameters.simplifiedSolutionsResourceName,
|
|
155
|
+
],
|
|
156
|
+
headerParameters: [Parameters.accept],
|
|
157
|
+
serializer,
|
|
158
|
+
};
|
|
159
|
+
//# sourceMappingURL=simplifiedSolutions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simplifiedSolutions.js","sourceRoot":"","sources":["../../../src/operations/simplifiedSolutions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAQ3C,uDAAuD;AACvD,MAAM,OAAO,uBAAuB;IAGlC;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;OAYG;IACG,WAAW,CACf,KAAa,EACb,+BAAuC,EACvC,OAAiD;;YAOjD,MAAM,mBAAmB,GAAG,CAC1B,IAAmC,EACnC,IAA8B,EACc,EAAE;gBAC9C,OAAO,IAAI,CAAC,MAAM,CAAC,o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AgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,yFAAyF;IAC/F,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,+BAA+B;KAC3C;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Solution } from "../operationsInterfaces";
|
|
2
2
|
import { HelpRP } from "../helpRP";
|
|
3
3
|
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
4
|
-
import { SolutionCreateOptionalParams, SolutionCreateResponse, SolutionGetOptionalParams, SolutionGetResponse, SolutionUpdateOptionalParams, SolutionUpdateResponse } from "../models";
|
|
4
|
+
import { SolutionCreateOptionalParams, SolutionCreateResponse, SolutionGetOptionalParams, SolutionGetResponse, SolutionUpdateOptionalParams, SolutionUpdateResponse, SolutionWarmUpOptionalParams } from "../models";
|
|
5
5
|
/** Class containing Solution operations. */
|
|
6
6
|
export declare class SolutionImpl implements Solution {
|
|
7
7
|
private readonly client;
|
|
@@ -14,18 +14,11 @@ export declare class SolutionImpl implements Solution {
|
|
|
14
14
|
* Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
|
|
15
15
|
* requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
|
|
16
16
|
* self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
|
|
17
|
-
* resolving typical troubleshooting issues. These solutions encompass (1.)
|
|
18
|
-
* diagnostics, guided troubleshooting wizards, and data visualizations
|
|
19
|
-
* tutorials and illustrative diagrams and images
|
|
20
|
-
* troubleshooting instructions. All these components are seamlessly converged
|
|
21
|
-
* tailored to address a specific support problem area.
|
|
22
|
-
* ‘requiredParameters’ that are required to execute the individual solution component. In the absence
|
|
23
|
-
* of the ‘requiredParameters’ it is likely that some of the solutions might fail execution, and you
|
|
24
|
-
* might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from Discovery
|
|
25
|
-
* solutions response must be passed via ‘parameters’ in the request body of Solutions API. <br/>2.
|
|
26
|
-
* ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the
|
|
27
|
-
* request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
|
|
28
|
-
* ‘properties.parameters’ in the request for Troubleshooters
|
|
17
|
+
* resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
|
|
18
|
+
* context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
|
|
19
|
+
* instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
|
|
20
|
+
* assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
|
|
21
|
+
* into unified solutions tailored to address a specific support problem area.
|
|
29
22
|
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
30
23
|
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
31
24
|
*
|
|
@@ -37,18 +30,11 @@ export declare class SolutionImpl implements Solution {
|
|
|
37
30
|
* Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
|
|
38
31
|
* requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
|
|
39
32
|
* self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
|
|
40
|
-
* resolving typical troubleshooting issues. These solutions encompass (1.)
|
|
41
|
-
* diagnostics, guided troubleshooting wizards, and data visualizations
|
|
42
|
-
* tutorials and illustrative diagrams and images
|
|
43
|
-
* troubleshooting instructions. All these components are seamlessly converged
|
|
44
|
-
* tailored to address a specific support problem area.
|
|
45
|
-
* ‘requiredParameters’ that are required to execute the individual solution component. In the absence
|
|
46
|
-
* of the ‘requiredParameters’ it is likely that some of the solutions might fail execution, and you
|
|
47
|
-
* might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from Discovery
|
|
48
|
-
* solutions response must be passed via ‘parameters’ in the request body of Solutions API. <br/>2.
|
|
49
|
-
* ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the
|
|
50
|
-
* request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
|
|
51
|
-
* ‘properties.parameters’ in the request for Troubleshooters
|
|
33
|
+
* resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
|
|
34
|
+
* context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
|
|
35
|
+
* instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
|
|
36
|
+
* assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
|
|
37
|
+
* into unified solutions tailored to address a specific support problem area.
|
|
52
38
|
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
53
39
|
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
54
40
|
*
|
|
@@ -83,5 +69,14 @@ export declare class SolutionImpl implements Solution {
|
|
|
83
69
|
* @param options The options parameters.
|
|
84
70
|
*/
|
|
85
71
|
beginUpdateAndWait(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SolutionUpdateResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* Warm up the solution resource by preloading asynchronous diagnostics results into cache
|
|
74
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
75
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
76
|
+
*
|
|
77
|
+
* @param solutionResourceName Solution resource Name.
|
|
78
|
+
* @param options The options parameters.
|
|
79
|
+
*/
|
|
80
|
+
warmUp(scope: string, solutionResourceName: string, options?: SolutionWarmUpOptionalParams): Promise<void>;
|
|
86
81
|
}
|
|
87
82
|
//# sourceMappingURL=solution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solution.d.ts","sourceRoot":"","sources":["../../../src/operations/solution.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,
|
|
1
|
+
{"version":3,"file":"solution.d.ts","sourceRoot":"","sources":["../../../src/operations/solution.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,gBAAgB,EAChB,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,sBAAsB,EACtB,4BAA4B,EAC7B,MAAM,WAAW,CAAC;AAEnB,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;;;;;;;OAcG;IACG,WAAW,CACf,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,sBAAsB,CAAC,EACtC,sBAAsB,CACvB,CACF;IAwDD;;;;;;;;;;;;;;OAcG;IACG,kBAAkB,CACtB,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAKlC;;;;;;;OAOG;IACH,GAAG,CACD,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAO/B;;;;;;;OAOG;IACG,WAAW,CACf,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,sBAAsB,CAAC,EACtC,sBAAsB,CACvB,CACF;IAwDD;;;;;;;OAOG;IACG,kBAAkB,CACtB,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,sBAAsB,CAAC;IAKlC;;;;;;;OAOG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,oBAAoB,EAAE,MAAM,EAC5B,OAAO,CAAC,EAAE,4BAA4B,GACrC,OAAO,CAAC,IAAI,CAAC;CAMjB"}
|
|
@@ -9,7 +9,7 @@ import { __awaiter } from "tslib";
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as Mappers from "../models/mappers";
|
|
11
11
|
import * as Parameters from "../models/parameters";
|
|
12
|
-
import { createHttpPoller } from "@azure/core-lro";
|
|
12
|
+
import { createHttpPoller, } from "@azure/core-lro";
|
|
13
13
|
import { createLroSpec } from "../lroImpl";
|
|
14
14
|
/** Class containing Solution operations. */
|
|
15
15
|
export class SolutionImpl {
|
|
@@ -24,18 +24,11 @@ export class SolutionImpl {
|
|
|
24
24
|
* Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
|
|
25
25
|
* requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
|
|
26
26
|
* self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
|
|
27
|
-
* resolving typical troubleshooting issues. These solutions encompass (1.)
|
|
28
|
-
* diagnostics, guided troubleshooting wizards, and data visualizations
|
|
29
|
-
* tutorials and illustrative diagrams and images
|
|
30
|
-
* troubleshooting instructions. All these components are seamlessly converged
|
|
31
|
-
* tailored to address a specific support problem area.
|
|
32
|
-
* ‘requiredParameters’ that are required to execute the individual solution component. In the absence
|
|
33
|
-
* of the ‘requiredParameters’ it is likely that some of the solutions might fail execution, and you
|
|
34
|
-
* might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from Discovery
|
|
35
|
-
* solutions response must be passed via ‘parameters’ in the request body of Solutions API. <br/>2.
|
|
36
|
-
* ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the
|
|
37
|
-
* request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
|
|
38
|
-
* ‘properties.parameters’ in the request for Troubleshooters
|
|
27
|
+
* resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
|
|
28
|
+
* context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
|
|
29
|
+
* instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
|
|
30
|
+
* assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
|
|
31
|
+
* into unified solutions tailored to address a specific support problem area.
|
|
39
32
|
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
40
33
|
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
41
34
|
*
|
|
@@ -62,19 +55,19 @@ export class SolutionImpl {
|
|
|
62
55
|
rawResponse: {
|
|
63
56
|
statusCode: currentRawResponse.status,
|
|
64
57
|
body: currentRawResponse.parsedBody,
|
|
65
|
-
headers: currentRawResponse.headers.toJSON()
|
|
66
|
-
}
|
|
58
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
59
|
+
},
|
|
67
60
|
};
|
|
68
61
|
});
|
|
69
62
|
const lro = createLroSpec({
|
|
70
63
|
sendOperationFn,
|
|
71
64
|
args: { scope, solutionResourceName, options },
|
|
72
|
-
spec: createOperationSpec
|
|
65
|
+
spec: createOperationSpec,
|
|
73
66
|
});
|
|
74
67
|
const poller = yield createHttpPoller(lro, {
|
|
75
68
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
76
69
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
77
|
-
resourceLocationConfig: "azure-async-operation"
|
|
70
|
+
resourceLocationConfig: "azure-async-operation",
|
|
78
71
|
});
|
|
79
72
|
yield poller.poll();
|
|
80
73
|
return poller;
|
|
@@ -84,18 +77,11 @@ export class SolutionImpl {
|
|
|
84
77
|
* Creates a solution for the specific Azure resource or subscription using the inputs ‘solutionId and
|
|
85
78
|
* requiredInputs’ from discovery solutions. <br/> Azure solutions comprise a comprehensive library of
|
|
86
79
|
* self-help resources that have been thoughtfully curated by Azure engineers to aid customers in
|
|
87
|
-
* resolving typical troubleshooting issues. These solutions encompass (1.)
|
|
88
|
-
* diagnostics, guided troubleshooting wizards, and data visualizations
|
|
89
|
-
* tutorials and illustrative diagrams and images
|
|
90
|
-
* troubleshooting instructions. All these components are seamlessly converged
|
|
91
|
-
* tailored to address a specific support problem area.
|
|
92
|
-
* ‘requiredParameters’ that are required to execute the individual solution component. In the absence
|
|
93
|
-
* of the ‘requiredParameters’ it is likely that some of the solutions might fail execution, and you
|
|
94
|
-
* might see an empty response. <br/><br/> <b>Note:</b> <br/>1. ‘requiredInputs’ from Discovery
|
|
95
|
-
* solutions response must be passed via ‘parameters’ in the request body of Solutions API. <br/>2.
|
|
96
|
-
* ‘requiredParameters’ from the Solutions response is the same as ‘ additionalParameters’ in the
|
|
97
|
-
* request for diagnostics <br/>3. ‘requiredParameters’ from the Solutions response is the same as
|
|
98
|
-
* ‘properties.parameters’ in the request for Troubleshooters
|
|
80
|
+
* resolving typical troubleshooting issues. These solutions encompass: <br/> (1.) Dynamic and
|
|
81
|
+
* context-aware diagnostics, guided troubleshooting wizards, and data visualizations. <br/> (2.) Rich
|
|
82
|
+
* instructional video tutorials and illustrative diagrams and images. <br/> (3.) Thoughtfully
|
|
83
|
+
* assembled textual troubleshooting instructions. <br/> All these components are seamlessly converged
|
|
84
|
+
* into unified solutions tailored to address a specific support problem area.
|
|
99
85
|
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
100
86
|
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
101
87
|
*
|
|
@@ -147,19 +133,19 @@ export class SolutionImpl {
|
|
|
147
133
|
rawResponse: {
|
|
148
134
|
statusCode: currentRawResponse.status,
|
|
149
135
|
body: currentRawResponse.parsedBody,
|
|
150
|
-
headers: currentRawResponse.headers.toJSON()
|
|
151
|
-
}
|
|
136
|
+
headers: currentRawResponse.headers.toJSON(),
|
|
137
|
+
},
|
|
152
138
|
};
|
|
153
139
|
});
|
|
154
140
|
const lro = createLroSpec({
|
|
155
141
|
sendOperationFn,
|
|
156
142
|
args: { scope, solutionResourceName, options },
|
|
157
|
-
spec: updateOperationSpec
|
|
143
|
+
spec: updateOperationSpec,
|
|
158
144
|
});
|
|
159
145
|
const poller = yield createHttpPoller(lro, {
|
|
160
146
|
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
161
147
|
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
162
|
-
resourceLocationConfig: "azure-async-operation"
|
|
148
|
+
resourceLocationConfig: "azure-async-operation",
|
|
163
149
|
});
|
|
164
150
|
yield poller.poll();
|
|
165
151
|
return poller;
|
|
@@ -179,6 +165,17 @@ export class SolutionImpl {
|
|
|
179
165
|
return poller.pollUntilDone();
|
|
180
166
|
});
|
|
181
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* Warm up the solution resource by preloading asynchronous diagnostics results into cache
|
|
170
|
+
* @param scope scope = resourceUri of affected resource.<br/> For example:
|
|
171
|
+
* /subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read
|
|
172
|
+
*
|
|
173
|
+
* @param solutionResourceName Solution resource Name.
|
|
174
|
+
* @param options The options parameters.
|
|
175
|
+
*/
|
|
176
|
+
warmUp(scope, solutionResourceName, options) {
|
|
177
|
+
return this.client.sendOperationRequest({ scope, solutionResourceName, options }, warmUpOperationSpec);
|
|
178
|
+
}
|
|
182
179
|
}
|
|
183
180
|
// Operation Specifications
|
|
184
181
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
@@ -187,51 +184,51 @@ const createOperationSpec = {
|
|
|
187
184
|
httpMethod: "PUT",
|
|
188
185
|
responses: {
|
|
189
186
|
200: {
|
|
190
|
-
bodyMapper: Mappers.SolutionResource
|
|
187
|
+
bodyMapper: Mappers.SolutionResource,
|
|
191
188
|
},
|
|
192
189
|
201: {
|
|
193
|
-
bodyMapper: Mappers.SolutionResource
|
|
190
|
+
bodyMapper: Mappers.SolutionResource,
|
|
194
191
|
},
|
|
195
192
|
202: {
|
|
196
|
-
bodyMapper: Mappers.SolutionResource
|
|
193
|
+
bodyMapper: Mappers.SolutionResource,
|
|
197
194
|
},
|
|
198
195
|
204: {
|
|
199
|
-
bodyMapper: Mappers.SolutionResource
|
|
196
|
+
bodyMapper: Mappers.SolutionResource,
|
|
200
197
|
},
|
|
201
198
|
default: {
|
|
202
|
-
bodyMapper: Mappers.ErrorResponse
|
|
203
|
-
}
|
|
199
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
200
|
+
},
|
|
204
201
|
},
|
|
205
202
|
requestBody: Parameters.solutionRequestBody,
|
|
206
203
|
queryParameters: [Parameters.apiVersion],
|
|
207
204
|
urlParameters: [
|
|
208
205
|
Parameters.$host,
|
|
209
206
|
Parameters.scope,
|
|
210
|
-
Parameters.solutionResourceName
|
|
207
|
+
Parameters.solutionResourceName,
|
|
211
208
|
],
|
|
212
209
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
213
210
|
mediaType: "json",
|
|
214
|
-
serializer
|
|
211
|
+
serializer,
|
|
215
212
|
};
|
|
216
213
|
const getOperationSpec = {
|
|
217
214
|
path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
|
|
218
215
|
httpMethod: "GET",
|
|
219
216
|
responses: {
|
|
220
217
|
200: {
|
|
221
|
-
bodyMapper: Mappers.SolutionResource
|
|
218
|
+
bodyMapper: Mappers.SolutionResource,
|
|
222
219
|
},
|
|
223
220
|
default: {
|
|
224
|
-
bodyMapper: Mappers.ErrorResponse
|
|
225
|
-
}
|
|
221
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
222
|
+
},
|
|
226
223
|
},
|
|
227
224
|
queryParameters: [Parameters.apiVersion],
|
|
228
225
|
urlParameters: [
|
|
229
226
|
Parameters.$host,
|
|
230
227
|
Parameters.scope,
|
|
231
|
-
Parameters.solutionResourceName
|
|
228
|
+
Parameters.solutionResourceName,
|
|
232
229
|
],
|
|
233
230
|
headerParameters: [Parameters.accept],
|
|
234
|
-
serializer
|
|
231
|
+
serializer,
|
|
235
232
|
};
|
|
236
233
|
const updateOperationSpec = {
|
|
237
234
|
path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
|
|
@@ -239,33 +236,53 @@ const updateOperationSpec = {
|
|
|
239
236
|
responses: {
|
|
240
237
|
200: {
|
|
241
238
|
bodyMapper: Mappers.SolutionResource,
|
|
242
|
-
headersMapper: Mappers.SolutionUpdateHeaders
|
|
239
|
+
headersMapper: Mappers.SolutionUpdateHeaders,
|
|
243
240
|
},
|
|
244
241
|
201: {
|
|
245
242
|
bodyMapper: Mappers.SolutionResource,
|
|
246
|
-
headersMapper: Mappers.SolutionUpdateHeaders
|
|
243
|
+
headersMapper: Mappers.SolutionUpdateHeaders,
|
|
247
244
|
},
|
|
248
245
|
202: {
|
|
249
246
|
bodyMapper: Mappers.SolutionResource,
|
|
250
|
-
headersMapper: Mappers.SolutionUpdateHeaders
|
|
247
|
+
headersMapper: Mappers.SolutionUpdateHeaders,
|
|
251
248
|
},
|
|
252
249
|
204: {
|
|
253
250
|
bodyMapper: Mappers.SolutionResource,
|
|
254
|
-
headersMapper: Mappers.SolutionUpdateHeaders
|
|
251
|
+
headersMapper: Mappers.SolutionUpdateHeaders,
|
|
255
252
|
},
|
|
256
253
|
default: {
|
|
257
|
-
bodyMapper: Mappers.ErrorResponse
|
|
258
|
-
}
|
|
254
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
255
|
+
},
|
|
259
256
|
},
|
|
260
257
|
requestBody: Parameters.solutionPatchRequestBody,
|
|
261
258
|
queryParameters: [Parameters.apiVersion],
|
|
262
259
|
urlParameters: [
|
|
263
260
|
Parameters.$host,
|
|
264
261
|
Parameters.scope,
|
|
265
|
-
Parameters.solutionResourceName
|
|
262
|
+
Parameters.solutionResourceName,
|
|
263
|
+
],
|
|
264
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
265
|
+
mediaType: "json",
|
|
266
|
+
serializer,
|
|
267
|
+
};
|
|
268
|
+
const warmUpOperationSpec = {
|
|
269
|
+
path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}/warmup",
|
|
270
|
+
httpMethod: "POST",
|
|
271
|
+
responses: {
|
|
272
|
+
204: {},
|
|
273
|
+
default: {
|
|
274
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
275
|
+
},
|
|
276
|
+
},
|
|
277
|
+
requestBody: Parameters.solutionWarmUpRequestBody,
|
|
278
|
+
queryParameters: [Parameters.apiVersion],
|
|
279
|
+
urlParameters: [
|
|
280
|
+
Parameters.$host,
|
|
281
|
+
Parameters.scope,
|
|
282
|
+
Parameters.solutionResourceName,
|
|
266
283
|
],
|
|
267
284
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
268
285
|
mediaType: "json",
|
|
269
|
-
serializer
|
|
286
|
+
serializer,
|
|
270
287
|
};
|
|
271
288
|
//# sourceMappingURL=solution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solution.js","sourceRoot":"","sources":["../../../src/operations/solution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAGL,gBAAgB,
|
|
1
|
+
{"version":3,"file":"solution.js","sourceRoot":"","sources":["../../../src/operations/solution.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAW3C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACG,WAAW,CACf,KAAa,EACb,oBAA4B,EAC5B,OAAsC;;YAOtC,MAAM,mBAAmB,GAAG,CAC1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aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,oBAAoB;KAChC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SolutionSelfHelp } from "../operationsInterfaces";
|
|
2
|
+
import { HelpRP } from "../helpRP";
|
|
3
|
+
import { SolutionSelfHelpGetOptionalParams, SolutionSelfHelpGetResponse } from "../models";
|
|
4
|
+
/** Class containing SolutionSelfHelp operations. */
|
|
5
|
+
export declare class SolutionSelfHelpImpl implements SolutionSelfHelp {
|
|
6
|
+
private readonly client;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize a new instance of the class SolutionSelfHelp class.
|
|
9
|
+
* @param client Reference to the service client
|
|
10
|
+
*/
|
|
11
|
+
constructor(client: HelpRP);
|
|
12
|
+
/**
|
|
13
|
+
* Gets Self Help Solutions for a given solutionId. Self Help Solutions consist of rich instructional
|
|
14
|
+
* video tutorials, links and guides to public documentation related to a specific problem that enables
|
|
15
|
+
* users to troubleshoot Azure issues.
|
|
16
|
+
* @param solutionId SolutionId is a unique id to identify a solution. You can retrieve the solution id
|
|
17
|
+
* using the Discovery api -
|
|
18
|
+
* https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
|
|
19
|
+
* @param options The options parameters.
|
|
20
|
+
*/
|
|
21
|
+
get(solutionId: string, options?: SolutionSelfHelpGetOptionalParams): Promise<SolutionSelfHelpGetResponse>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=solutionSelfHelp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solutionSelfHelp.d.ts","sourceRoot":"","sources":["../../../src/operations/solutionSelfHelp.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EACL,iCAAiC,EACjC,2BAA2B,EAC5B,MAAM,WAAW,CAAC;AAEnB,oDAAoD;AACpD,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC;;;OAGG;gBACS,MAAM,EAAE,MAAM;IAI1B;;;;;;;;OAQG;IACH,GAAG,CACD,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,iCAAiC,GAC1C,OAAO,CAAC,2BAA2B,CAAC;CAMxC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as Mappers from "../models/mappers";
|
|
10
|
+
import * as Parameters from "../models/parameters";
|
|
11
|
+
/** Class containing SolutionSelfHelp operations. */
|
|
12
|
+
export class SolutionSelfHelpImpl {
|
|
13
|
+
/**
|
|
14
|
+
* Initialize a new instance of the class SolutionSelfHelp class.
|
|
15
|
+
* @param client Reference to the service client
|
|
16
|
+
*/
|
|
17
|
+
constructor(client) {
|
|
18
|
+
this.client = client;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Gets Self Help Solutions for a given solutionId. Self Help Solutions consist of rich instructional
|
|
22
|
+
* video tutorials, links and guides to public documentation related to a specific problem that enables
|
|
23
|
+
* users to troubleshoot Azure issues.
|
|
24
|
+
* @param solutionId SolutionId is a unique id to identify a solution. You can retrieve the solution id
|
|
25
|
+
* using the Discovery api -
|
|
26
|
+
* https://learn.microsoft.com/en-us/rest/api/help/discovery-solution/list?view=rest-help-2023-09-01-preview&tabs=HTTP
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
get(solutionId, options) {
|
|
30
|
+
return this.client.sendOperationRequest({ solutionId, options }, getOperationSpec);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
// Operation Specifications
|
|
34
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
35
|
+
const getOperationSpec = {
|
|
36
|
+
path: "/providers/Microsoft.Help/selfHelp/{solutionId}",
|
|
37
|
+
httpMethod: "GET",
|
|
38
|
+
responses: {
|
|
39
|
+
200: {
|
|
40
|
+
bodyMapper: Mappers.SolutionResourceSelfHelp,
|
|
41
|
+
},
|
|
42
|
+
default: {
|
|
43
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
queryParameters: [Parameters.apiVersion],
|
|
47
|
+
urlParameters: [Parameters.$host, Parameters.solutionId],
|
|
48
|
+
headerParameters: [Parameters.accept],
|
|
49
|
+
serializer,
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=solutionSelfHelp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"solutionSelfHelp.js","sourceRoot":"","sources":["../../../src/operations/solutionSelfHelp.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,UAAkB,EAClB,OAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,UAAU,EAAE,OAAO,EAAE,EACvB,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,iDAAiD;IACvD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC;IACxD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|