@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
|
@@ -19,7 +19,9 @@ export type AggregationType = string;
|
|
|
19
19
|
// @public
|
|
20
20
|
export interface AutomatedCheckResult {
|
|
21
21
|
result?: string;
|
|
22
|
+
status?: string;
|
|
22
23
|
type?: AutomatedCheckResultType;
|
|
24
|
+
version?: string;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
// @public
|
|
@@ -51,6 +53,13 @@ export interface CheckNameAvailabilityResponse {
|
|
|
51
53
|
reason?: string;
|
|
52
54
|
}
|
|
53
55
|
|
|
56
|
+
// @public
|
|
57
|
+
export interface ClassificationService {
|
|
58
|
+
readonly displayName?: string;
|
|
59
|
+
resourceTypes?: string[];
|
|
60
|
+
readonly serviceId?: string;
|
|
61
|
+
}
|
|
62
|
+
|
|
54
63
|
// @public
|
|
55
64
|
export type Confidence = string;
|
|
56
65
|
|
|
@@ -118,6 +127,19 @@ export interface DiagnosticsGetOptionalParams extends coreClient.OperationOption
|
|
|
118
127
|
// @public
|
|
119
128
|
export type DiagnosticsGetResponse = DiagnosticResource;
|
|
120
129
|
|
|
130
|
+
// @public
|
|
131
|
+
export interface DiscoveryNlpRequest {
|
|
132
|
+
additionalContext?: string;
|
|
133
|
+
issueSummary: string;
|
|
134
|
+
resourceId?: string;
|
|
135
|
+
serviceId?: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// @public
|
|
139
|
+
export interface DiscoveryNlpResponse {
|
|
140
|
+
value?: SolutionNlpMetadataResource[];
|
|
141
|
+
}
|
|
142
|
+
|
|
121
143
|
// @public
|
|
122
144
|
export interface DiscoveryResponse {
|
|
123
145
|
nextLink?: string;
|
|
@@ -126,7 +148,7 @@ export interface DiscoveryResponse {
|
|
|
126
148
|
|
|
127
149
|
// @public
|
|
128
150
|
export interface DiscoverySolution {
|
|
129
|
-
list(
|
|
151
|
+
list(options?: DiscoverySolutionListOptionalParams): PagedAsyncIterableIterator<SolutionMetadataResource>;
|
|
130
152
|
}
|
|
131
153
|
|
|
132
154
|
// @public
|
|
@@ -145,6 +167,32 @@ export interface DiscoverySolutionListOptionalParams extends coreClient.Operatio
|
|
|
145
167
|
// @public
|
|
146
168
|
export type DiscoverySolutionListResponse = DiscoveryResponse;
|
|
147
169
|
|
|
170
|
+
// @public
|
|
171
|
+
export interface DiscoverySolutionNLPSubscriptionScope {
|
|
172
|
+
post(options?: DiscoverySolutionNLPSubscriptionScopePostOptionalParams): Promise<DiscoverySolutionNLPSubscriptionScopePostResponse>;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// @public
|
|
176
|
+
export interface DiscoverySolutionNLPSubscriptionScopePostOptionalParams extends coreClient.OperationOptions {
|
|
177
|
+
discoverSolutionRequest?: DiscoveryNlpRequest;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// @public
|
|
181
|
+
export type DiscoverySolutionNLPSubscriptionScopePostResponse = DiscoveryNlpResponse;
|
|
182
|
+
|
|
183
|
+
// @public
|
|
184
|
+
export interface DiscoverySolutionNLPTenantScope {
|
|
185
|
+
post(options?: DiscoverySolutionNLPTenantScopePostOptionalParams): Promise<DiscoverySolutionNLPTenantScopePostResponse>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// @public
|
|
189
|
+
export interface DiscoverySolutionNLPTenantScopePostOptionalParams extends coreClient.OperationOptions {
|
|
190
|
+
discoverSolutionRequest?: DiscoveryNlpRequest;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// @public
|
|
194
|
+
export type DiscoverySolutionNLPTenantScopePostResponse = DiscoveryNlpResponse;
|
|
195
|
+
|
|
148
196
|
// @public
|
|
149
197
|
export interface ErrorAdditionalInfo {
|
|
150
198
|
readonly info?: Record<string, unknown>;
|
|
@@ -195,6 +243,7 @@ export function getContinuationToken(page: unknown): string | undefined;
|
|
|
195
243
|
export class HelpRP extends coreClient.ServiceClient {
|
|
196
244
|
// (undocumented)
|
|
197
245
|
$host: string;
|
|
246
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: HelpRPOptionalParams);
|
|
198
247
|
constructor(credentials: coreAuth.TokenCredential, options?: HelpRPOptionalParams);
|
|
199
248
|
// (undocumented)
|
|
200
249
|
apiVersion: string;
|
|
@@ -205,10 +254,20 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
205
254
|
// (undocumented)
|
|
206
255
|
discoverySolution: DiscoverySolution;
|
|
207
256
|
// (undocumented)
|
|
257
|
+
discoverySolutionNLPSubscriptionScope: DiscoverySolutionNLPSubscriptionScope;
|
|
258
|
+
// (undocumented)
|
|
259
|
+
discoverySolutionNLPTenantScope: DiscoverySolutionNLPTenantScope;
|
|
260
|
+
// (undocumented)
|
|
208
261
|
operations: Operations;
|
|
209
262
|
// (undocumented)
|
|
263
|
+
simplifiedSolutions: SimplifiedSolutions;
|
|
264
|
+
// (undocumented)
|
|
210
265
|
solution: Solution;
|
|
211
266
|
// (undocumented)
|
|
267
|
+
solutionSelfHelp: SolutionSelfHelp;
|
|
268
|
+
// (undocumented)
|
|
269
|
+
subscriptionId?: string;
|
|
270
|
+
// (undocumented)
|
|
212
271
|
troubleshooters: Troubleshooters;
|
|
213
272
|
}
|
|
214
273
|
|
|
@@ -272,6 +331,7 @@ export enum KnownDiagnosticProvisioningState {
|
|
|
272
331
|
Canceled = "Canceled",
|
|
273
332
|
Failed = "Failed",
|
|
274
333
|
PartialComplete = "PartialComplete",
|
|
334
|
+
Running = "Running",
|
|
275
335
|
Succeeded = "Succeeded"
|
|
276
336
|
}
|
|
277
337
|
|
|
@@ -313,8 +373,10 @@ export enum KnownQuestionContentType {
|
|
|
313
373
|
|
|
314
374
|
// @public
|
|
315
375
|
export enum KnownQuestionType {
|
|
376
|
+
DateTimePicker = "DateTimePicker",
|
|
316
377
|
Dropdown = "Dropdown",
|
|
317
378
|
MultiLineInfoBox = "MultiLineInfoBox",
|
|
379
|
+
MultiSelect = "MultiSelect",
|
|
318
380
|
RadioButton = "RadioButton",
|
|
319
381
|
TextInput = "TextInput"
|
|
320
382
|
}
|
|
@@ -329,13 +391,17 @@ export enum KnownResultType {
|
|
|
329
391
|
export enum KnownSolutionProvisioningState {
|
|
330
392
|
Canceled = "Canceled",
|
|
331
393
|
Failed = "Failed",
|
|
394
|
+
PartialComplete = "PartialComplete",
|
|
395
|
+
Running = "Running",
|
|
332
396
|
Succeeded = "Succeeded"
|
|
333
397
|
}
|
|
334
398
|
|
|
335
399
|
// @public
|
|
336
400
|
export enum KnownSolutionType {
|
|
337
401
|
Diagnostics = "Diagnostics",
|
|
338
|
-
|
|
402
|
+
SelfHelp = "SelfHelp",
|
|
403
|
+
Solutions = "Solutions",
|
|
404
|
+
Troubleshooters = "Troubleshooters"
|
|
339
405
|
}
|
|
340
406
|
|
|
341
407
|
// @public
|
|
@@ -360,10 +426,20 @@ export enum KnownTroubleshooterProvisioningState {
|
|
|
360
426
|
export enum KnownType {
|
|
361
427
|
AutomatedCheck = "AutomatedCheck",
|
|
362
428
|
Decision = "Decision",
|
|
429
|
+
Input = "Input",
|
|
363
430
|
Insight = "Insight",
|
|
364
431
|
Solution = "Solution"
|
|
365
432
|
}
|
|
366
433
|
|
|
434
|
+
// @public
|
|
435
|
+
export enum KnownValidationScope {
|
|
436
|
+
GuidFormat = "GuidFormat",
|
|
437
|
+
IpAddressFormat = "IpAddressFormat",
|
|
438
|
+
None = "None",
|
|
439
|
+
NumberOnlyFormat = "NumberOnlyFormat",
|
|
440
|
+
URLFormat = "URLFormat"
|
|
441
|
+
}
|
|
442
|
+
|
|
367
443
|
// @public
|
|
368
444
|
export interface MetricsBasedChart {
|
|
369
445
|
aggregationType?: AggregationType;
|
|
@@ -442,6 +518,13 @@ export interface ReplacementMaps {
|
|
|
442
518
|
webResults?: WebResult[];
|
|
443
519
|
}
|
|
444
520
|
|
|
521
|
+
// @public
|
|
522
|
+
export interface ReplacementMapsSelfHelp {
|
|
523
|
+
videoGroups?: VideoGroup[];
|
|
524
|
+
videos?: Video[];
|
|
525
|
+
webResults?: WebResult[];
|
|
526
|
+
}
|
|
527
|
+
|
|
445
528
|
// @public
|
|
446
529
|
export interface Resource {
|
|
447
530
|
readonly id?: string;
|
|
@@ -462,6 +545,7 @@ export interface ResponseValidationProperties {
|
|
|
462
545
|
maxLength?: number;
|
|
463
546
|
regex?: string;
|
|
464
547
|
validationErrorMessage?: string;
|
|
548
|
+
validationScope?: ValidationScope;
|
|
465
549
|
}
|
|
466
550
|
|
|
467
551
|
// @public
|
|
@@ -491,6 +575,51 @@ export interface Section {
|
|
|
491
575
|
title?: string;
|
|
492
576
|
}
|
|
493
577
|
|
|
578
|
+
// @public
|
|
579
|
+
export interface SectionSelfHelp {
|
|
580
|
+
content?: string;
|
|
581
|
+
replacementMaps?: ReplacementMapsSelfHelp;
|
|
582
|
+
title?: string;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
// @public
|
|
586
|
+
export interface SimplifiedSolutions {
|
|
587
|
+
beginCreate(scope: string, simplifiedSolutionsResourceName: string, options?: SimplifiedSolutionsCreateOptionalParams): Promise<SimplePollerLike<OperationState<SimplifiedSolutionsCreateResponse>, SimplifiedSolutionsCreateResponse>>;
|
|
588
|
+
beginCreateAndWait(scope: string, simplifiedSolutionsResourceName: string, options?: SimplifiedSolutionsCreateOptionalParams): Promise<SimplifiedSolutionsCreateResponse>;
|
|
589
|
+
get(scope: string, simplifiedSolutionsResourceName: string, options?: SimplifiedSolutionsGetOptionalParams): Promise<SimplifiedSolutionsGetResponse>;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
// @public
|
|
593
|
+
export interface SimplifiedSolutionsCreateOptionalParams extends coreClient.OperationOptions {
|
|
594
|
+
resumeFrom?: string;
|
|
595
|
+
simplifiedSolutionsRequestBody?: SimplifiedSolutionsResource;
|
|
596
|
+
updateIntervalInMs?: number;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
// @public
|
|
600
|
+
export type SimplifiedSolutionsCreateResponse = SimplifiedSolutionsResource;
|
|
601
|
+
|
|
602
|
+
// @public
|
|
603
|
+
export interface SimplifiedSolutionsGetOptionalParams extends coreClient.OperationOptions {
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
// @public
|
|
607
|
+
export type SimplifiedSolutionsGetResponse = SimplifiedSolutionsResource;
|
|
608
|
+
|
|
609
|
+
// @public
|
|
610
|
+
export interface SimplifiedSolutionsResource extends ProxyResource {
|
|
611
|
+
readonly appendix?: {
|
|
612
|
+
[propertyName: string]: string;
|
|
613
|
+
};
|
|
614
|
+
readonly content?: string;
|
|
615
|
+
parameters?: {
|
|
616
|
+
[propertyName: string]: string;
|
|
617
|
+
};
|
|
618
|
+
readonly provisioningState?: SolutionProvisioningState;
|
|
619
|
+
solutionId?: string;
|
|
620
|
+
readonly title?: string;
|
|
621
|
+
}
|
|
622
|
+
|
|
494
623
|
// @public
|
|
495
624
|
export interface Solution {
|
|
496
625
|
beginCreate(scope: string, solutionResourceName: string, options?: SolutionCreateOptionalParams): Promise<SimplePollerLike<OperationState<SolutionCreateResponse>, SolutionCreateResponse>>;
|
|
@@ -498,6 +627,7 @@ export interface Solution {
|
|
|
498
627
|
beginUpdate(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SolutionUpdateResponse>, SolutionUpdateResponse>>;
|
|
499
628
|
beginUpdateAndWait(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SolutionUpdateResponse>;
|
|
500
629
|
get(scope: string, solutionResourceName: string, options?: SolutionGetOptionalParams): Promise<SolutionGetResponse>;
|
|
630
|
+
warmUp(scope: string, solutionResourceName: string, options?: SolutionWarmUpOptionalParams): Promise<void>;
|
|
501
631
|
}
|
|
502
632
|
|
|
503
633
|
// @public
|
|
@@ -531,37 +661,58 @@ export interface SolutionMetadataResource extends ProxyResource {
|
|
|
531
661
|
}
|
|
532
662
|
|
|
533
663
|
// @public
|
|
534
|
-
export interface
|
|
535
|
-
|
|
664
|
+
export interface SolutionNlpMetadataResource extends ProxyResource {
|
|
665
|
+
problemClassificationId?: string;
|
|
666
|
+
problemDescription?: string;
|
|
667
|
+
problemTitle?: string;
|
|
668
|
+
relatedServices?: ClassificationService[];
|
|
669
|
+
serviceId?: string;
|
|
670
|
+
solutions?: SolutionMetadataProperties[];
|
|
536
671
|
}
|
|
537
672
|
|
|
538
673
|
// @public
|
|
539
|
-
export
|
|
674
|
+
export interface SolutionPatchRequestBody {
|
|
675
|
+
readonly content?: string;
|
|
676
|
+
parameters?: {
|
|
677
|
+
[propertyName: string]: string;
|
|
678
|
+
};
|
|
679
|
+
readonly provisioningState?: SolutionProvisioningState;
|
|
680
|
+
readonly replacementMaps?: ReplacementMaps;
|
|
681
|
+
readonly sections?: Section[];
|
|
682
|
+
readonly solutionId?: string;
|
|
683
|
+
readonly title?: string;
|
|
684
|
+
triggerCriteria?: TriggerCriterion[];
|
|
685
|
+
}
|
|
540
686
|
|
|
541
687
|
// @public
|
|
542
|
-
export
|
|
543
|
-
readonly id?: string;
|
|
544
|
-
readonly name?: string;
|
|
545
|
-
properties?: SolutionResourceProperties;
|
|
546
|
-
readonly type?: string;
|
|
547
|
-
}
|
|
688
|
+
export type SolutionProvisioningState = string;
|
|
548
689
|
|
|
549
690
|
// @public
|
|
550
|
-
export interface
|
|
551
|
-
content?: string;
|
|
691
|
+
export interface SolutionResource extends ProxyResource {
|
|
692
|
+
readonly content?: string;
|
|
552
693
|
parameters?: {
|
|
553
694
|
[propertyName: string]: string;
|
|
554
695
|
};
|
|
555
|
-
provisioningState?: SolutionProvisioningState;
|
|
556
|
-
replacementMaps?: ReplacementMaps;
|
|
557
|
-
sections?: Section[];
|
|
558
|
-
solutionId?: string;
|
|
559
|
-
title?: string;
|
|
696
|
+
readonly provisioningState?: SolutionProvisioningState;
|
|
697
|
+
readonly replacementMaps?: ReplacementMaps;
|
|
698
|
+
readonly sections?: Section[];
|
|
699
|
+
readonly solutionId?: string;
|
|
700
|
+
readonly title?: string;
|
|
560
701
|
triggerCriteria?: TriggerCriterion[];
|
|
561
702
|
}
|
|
562
703
|
|
|
704
|
+
// @public
|
|
705
|
+
export interface SolutionResourceSelfHelp extends ProxyResource {
|
|
706
|
+
readonly content?: string;
|
|
707
|
+
readonly replacementMaps?: ReplacementMapsSelfHelp;
|
|
708
|
+
readonly sections?: SectionSelfHelp[];
|
|
709
|
+
readonly solutionId?: string;
|
|
710
|
+
readonly title?: string;
|
|
711
|
+
}
|
|
712
|
+
|
|
563
713
|
// @public
|
|
564
714
|
export interface SolutionsDiagnostic {
|
|
715
|
+
estimatedCompletionTime?: string;
|
|
565
716
|
insights?: Insight[];
|
|
566
717
|
replacementKey?: string;
|
|
567
718
|
requiredParameters?: string[];
|
|
@@ -570,6 +721,18 @@ export interface SolutionsDiagnostic {
|
|
|
570
721
|
statusDetails?: string;
|
|
571
722
|
}
|
|
572
723
|
|
|
724
|
+
// @public
|
|
725
|
+
export interface SolutionSelfHelp {
|
|
726
|
+
get(solutionId: string, options?: SolutionSelfHelpGetOptionalParams): Promise<SolutionSelfHelpGetResponse>;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
// @public
|
|
730
|
+
export interface SolutionSelfHelpGetOptionalParams extends coreClient.OperationOptions {
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
// @public
|
|
734
|
+
export type SolutionSelfHelpGetResponse = SolutionResourceSelfHelp;
|
|
735
|
+
|
|
573
736
|
// @public
|
|
574
737
|
export interface SolutionsTroubleshooters {
|
|
575
738
|
solutionId?: string;
|
|
@@ -596,6 +759,18 @@ export interface SolutionUpdateOptionalParams extends coreClient.OperationOption
|
|
|
596
759
|
// @public
|
|
597
760
|
export type SolutionUpdateResponse = SolutionUpdateHeaders & SolutionResource;
|
|
598
761
|
|
|
762
|
+
// @public
|
|
763
|
+
export interface SolutionWarmUpOptionalParams extends coreClient.OperationOptions {
|
|
764
|
+
solutionWarmUpRequestBody?: SolutionWarmUpRequestBody;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
// @public
|
|
768
|
+
export interface SolutionWarmUpRequestBody {
|
|
769
|
+
parameters?: {
|
|
770
|
+
[propertyName: string]: string;
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
|
|
599
774
|
// @public
|
|
600
775
|
export type Status = string;
|
|
601
776
|
|
|
@@ -622,7 +797,8 @@ export interface StepInput {
|
|
|
622
797
|
questionContent?: string;
|
|
623
798
|
questionContentType?: QuestionContentType;
|
|
624
799
|
questionId?: string;
|
|
625
|
-
|
|
800
|
+
questionTitle?: string;
|
|
801
|
+
questionType?: QuestionType;
|
|
626
802
|
recommendedOption?: string;
|
|
627
803
|
responseHint?: string;
|
|
628
804
|
// (undocumented)
|
|
@@ -734,6 +910,9 @@ export type TroubleshootersRestartResponse = TroubleshootersRestartHeaders & Res
|
|
|
734
910
|
// @public
|
|
735
911
|
export type Type = string;
|
|
736
912
|
|
|
913
|
+
// @public
|
|
914
|
+
export type ValidationScope = string;
|
|
915
|
+
|
|
737
916
|
// @public
|
|
738
917
|
export interface Video extends VideoGroupVideo {
|
|
739
918
|
replacementKey?: string;
|
package/src/helpRP.ts
CHANGED
|
@@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
|
11
11
|
import {
|
|
12
12
|
PipelineRequest,
|
|
13
13
|
PipelineResponse,
|
|
14
|
-
SendRequest
|
|
14
|
+
SendRequest,
|
|
15
15
|
} from "@azure/core-rest-pipeline";
|
|
16
16
|
import * as coreAuth from "@azure/core-auth";
|
|
17
17
|
import {
|
|
@@ -20,7 +20,11 @@ import {
|
|
|
20
20
|
DiagnosticsImpl,
|
|
21
21
|
DiscoverySolutionImpl,
|
|
22
22
|
SolutionImpl,
|
|
23
|
-
|
|
23
|
+
SimplifiedSolutionsImpl,
|
|
24
|
+
TroubleshootersImpl,
|
|
25
|
+
SolutionSelfHelpImpl,
|
|
26
|
+
DiscoverySolutionNLPTenantScopeImpl,
|
|
27
|
+
DiscoverySolutionNLPSubscriptionScopeImpl,
|
|
24
28
|
} from "./operations";
|
|
25
29
|
import {
|
|
26
30
|
Operations,
|
|
@@ -28,37 +32,61 @@ import {
|
|
|
28
32
|
Diagnostics,
|
|
29
33
|
DiscoverySolution,
|
|
30
34
|
Solution,
|
|
31
|
-
|
|
35
|
+
SimplifiedSolutions,
|
|
36
|
+
Troubleshooters,
|
|
37
|
+
SolutionSelfHelp,
|
|
38
|
+
DiscoverySolutionNLPTenantScope,
|
|
39
|
+
DiscoverySolutionNLPSubscriptionScope,
|
|
32
40
|
} from "./operationsInterfaces";
|
|
33
41
|
import { HelpRPOptionalParams } from "./models";
|
|
34
42
|
|
|
35
43
|
export class HelpRP extends coreClient.ServiceClient {
|
|
36
44
|
$host: string;
|
|
37
45
|
apiVersion: string;
|
|
46
|
+
subscriptionId?: string;
|
|
38
47
|
|
|
39
48
|
/**
|
|
40
49
|
* Initializes a new instance of the HelpRP class.
|
|
41
50
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
51
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
42
52
|
* @param options The parameter options
|
|
43
53
|
*/
|
|
44
54
|
constructor(
|
|
45
55
|
credentials: coreAuth.TokenCredential,
|
|
46
|
-
|
|
56
|
+
subscriptionId: string,
|
|
57
|
+
options?: HelpRPOptionalParams,
|
|
58
|
+
);
|
|
59
|
+
constructor(
|
|
60
|
+
credentials: coreAuth.TokenCredential,
|
|
61
|
+
options?: HelpRPOptionalParams,
|
|
62
|
+
);
|
|
63
|
+
constructor(
|
|
64
|
+
credentials: coreAuth.TokenCredential,
|
|
65
|
+
subscriptionIdOrOptions?: HelpRPOptionalParams | string,
|
|
66
|
+
options?: HelpRPOptionalParams,
|
|
47
67
|
) {
|
|
48
68
|
if (credentials === undefined) {
|
|
49
69
|
throw new Error("'credentials' cannot be null");
|
|
50
70
|
}
|
|
51
71
|
|
|
72
|
+
let subscriptionId: string | undefined;
|
|
73
|
+
|
|
74
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
75
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
76
|
+
} else if (typeof subscriptionIdOrOptions === "object") {
|
|
77
|
+
options = subscriptionIdOrOptions;
|
|
78
|
+
}
|
|
79
|
+
|
|
52
80
|
// Initializing default values for options
|
|
53
81
|
if (!options) {
|
|
54
82
|
options = {};
|
|
55
83
|
}
|
|
56
84
|
const defaults: HelpRPOptionalParams = {
|
|
57
85
|
requestContentType: "application/json; charset=utf-8",
|
|
58
|
-
credential: credentials
|
|
86
|
+
credential: credentials,
|
|
59
87
|
};
|
|
60
88
|
|
|
61
|
-
const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.
|
|
89
|
+
const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.3`;
|
|
62
90
|
const userAgentPrefix =
|
|
63
91
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
64
92
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -68,20 +96,21 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
68
96
|
...defaults,
|
|
69
97
|
...options,
|
|
70
98
|
userAgentOptions: {
|
|
71
|
-
userAgentPrefix
|
|
99
|
+
userAgentPrefix,
|
|
72
100
|
},
|
|
73
101
|
endpoint:
|
|
74
|
-
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
102
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
75
103
|
};
|
|
76
104
|
super(optionsWithDefaults);
|
|
77
105
|
|
|
78
106
|
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
79
107
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
80
|
-
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
108
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
109
|
+
options.pipeline.getOrderedPolicies();
|
|
81
110
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
82
111
|
(pipelinePolicy) =>
|
|
83
112
|
pipelinePolicy.name ===
|
|
84
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
113
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
85
114
|
);
|
|
86
115
|
}
|
|
87
116
|
if (
|
|
@@ -91,7 +120,7 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
91
120
|
!bearerTokenAuthenticationPolicyFound
|
|
92
121
|
) {
|
|
93
122
|
this.pipeline.removePolicy({
|
|
94
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
123
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
95
124
|
});
|
|
96
125
|
this.pipeline.addPolicy(
|
|
97
126
|
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
@@ -101,21 +130,29 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
101
130
|
`${optionsWithDefaults.endpoint}/.default`,
|
|
102
131
|
challengeCallbacks: {
|
|
103
132
|
authorizeRequestOnChallenge:
|
|
104
|
-
coreClient.authorizeRequestOnClaimChallenge
|
|
105
|
-
}
|
|
106
|
-
})
|
|
133
|
+
coreClient.authorizeRequestOnClaimChallenge,
|
|
134
|
+
},
|
|
135
|
+
}),
|
|
107
136
|
);
|
|
108
137
|
}
|
|
138
|
+
// Parameter assignments
|
|
139
|
+
this.subscriptionId = subscriptionId;
|
|
109
140
|
|
|
110
141
|
// Assigning values to Constant parameters
|
|
111
142
|
this.$host = options.$host || "https://management.azure.com";
|
|
112
|
-
this.apiVersion = options.apiVersion || "
|
|
143
|
+
this.apiVersion = options.apiVersion || "2024-03-01-preview";
|
|
113
144
|
this.operations = new OperationsImpl(this);
|
|
114
145
|
this.checkNameAvailability = new CheckNameAvailabilityImpl(this);
|
|
115
146
|
this.diagnostics = new DiagnosticsImpl(this);
|
|
116
147
|
this.discoverySolution = new DiscoverySolutionImpl(this);
|
|
117
148
|
this.solution = new SolutionImpl(this);
|
|
149
|
+
this.simplifiedSolutions = new SimplifiedSolutionsImpl(this);
|
|
118
150
|
this.troubleshooters = new TroubleshootersImpl(this);
|
|
151
|
+
this.solutionSelfHelp = new SolutionSelfHelpImpl(this);
|
|
152
|
+
this.discoverySolutionNLPTenantScope =
|
|
153
|
+
new DiscoverySolutionNLPTenantScopeImpl(this);
|
|
154
|
+
this.discoverySolutionNLPSubscriptionScope =
|
|
155
|
+
new DiscoverySolutionNLPSubscriptionScopeImpl(this);
|
|
119
156
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
120
157
|
}
|
|
121
158
|
|
|
@@ -128,7 +165,7 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
128
165
|
name: "CustomApiVersionPolicy",
|
|
129
166
|
async sendRequest(
|
|
130
167
|
request: PipelineRequest,
|
|
131
|
-
next: SendRequest
|
|
168
|
+
next: SendRequest,
|
|
132
169
|
): Promise<PipelineResponse> {
|
|
133
170
|
const param = request.url.split("?");
|
|
134
171
|
if (param.length > 1) {
|
|
@@ -142,7 +179,7 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
142
179
|
request.url = param[0] + "?" + newParams.join("&");
|
|
143
180
|
}
|
|
144
181
|
return next(request);
|
|
145
|
-
}
|
|
182
|
+
},
|
|
146
183
|
};
|
|
147
184
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
148
185
|
}
|
|
@@ -152,5 +189,9 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
152
189
|
diagnostics: Diagnostics;
|
|
153
190
|
discoverySolution: DiscoverySolution;
|
|
154
191
|
solution: Solution;
|
|
192
|
+
simplifiedSolutions: SimplifiedSolutions;
|
|
155
193
|
troubleshooters: Troubleshooters;
|
|
194
|
+
solutionSelfHelp: SolutionSelfHelp;
|
|
195
|
+
discoverySolutionNLPTenantScope: DiscoverySolutionNLPTenantScope;
|
|
196
|
+
discoverySolutionNLPSubscriptionScope: DiscoverySolutionNLPSubscriptionScope;
|
|
156
197
|
}
|
package/src/lroImpl.ts
CHANGED
|
@@ -28,15 +28,15 @@ export function createLroSpec<T>(inputs: {
|
|
|
28
28
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
29
|
sendPollRequest: (
|
|
30
30
|
path: string,
|
|
31
|
-
options?: { abortSignal?: AbortSignalLike }
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike },
|
|
32
32
|
) => {
|
|
33
33
|
const { requestBody, ...restSpec } = spec;
|
|
34
34
|
return sendOperationFn(args, {
|
|
35
35
|
...restSpec,
|
|
36
36
|
httpMethod: "GET",
|
|
37
37
|
path,
|
|
38
|
-
abortSignal: options?.abortSignal
|
|
38
|
+
abortSignal: options?.abortSignal,
|
|
39
39
|
});
|
|
40
|
-
}
|
|
40
|
+
},
|
|
41
41
|
};
|
|
42
42
|
}
|