@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
|
@@ -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(subscriptionId: string, 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>;
|
|
@@ -205,10 +253,18 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
205
253
|
// (undocumented)
|
|
206
254
|
discoverySolution: DiscoverySolution;
|
|
207
255
|
// (undocumented)
|
|
256
|
+
discoverySolutionNLPSubscriptionScope: DiscoverySolutionNLPSubscriptionScope;
|
|
257
|
+
// (undocumented)
|
|
258
|
+
discoverySolutionNLPTenantScope: DiscoverySolutionNLPTenantScope;
|
|
259
|
+
// (undocumented)
|
|
208
260
|
operations: Operations;
|
|
209
261
|
// (undocumented)
|
|
262
|
+
simplifiedSolutions: SimplifiedSolutions;
|
|
263
|
+
// (undocumented)
|
|
210
264
|
solution: Solution;
|
|
211
265
|
// (undocumented)
|
|
266
|
+
solutionSelfHelp: SolutionSelfHelp;
|
|
267
|
+
// (undocumented)
|
|
212
268
|
troubleshooters: Troubleshooters;
|
|
213
269
|
}
|
|
214
270
|
|
|
@@ -314,8 +370,10 @@ export enum KnownQuestionContentType {
|
|
|
314
370
|
|
|
315
371
|
// @public
|
|
316
372
|
export enum KnownQuestionType {
|
|
373
|
+
DateTimePicker = "DateTimePicker",
|
|
317
374
|
Dropdown = "Dropdown",
|
|
318
375
|
MultiLineInfoBox = "MultiLineInfoBox",
|
|
376
|
+
MultiSelect = "MultiSelect",
|
|
319
377
|
RadioButton = "RadioButton",
|
|
320
378
|
TextInput = "TextInput"
|
|
321
379
|
}
|
|
@@ -338,7 +396,9 @@ export enum KnownSolutionProvisioningState {
|
|
|
338
396
|
// @public
|
|
339
397
|
export enum KnownSolutionType {
|
|
340
398
|
Diagnostics = "Diagnostics",
|
|
341
|
-
|
|
399
|
+
SelfHelp = "SelfHelp",
|
|
400
|
+
Solutions = "Solutions",
|
|
401
|
+
Troubleshooters = "Troubleshooters"
|
|
342
402
|
}
|
|
343
403
|
|
|
344
404
|
// @public
|
|
@@ -363,10 +423,20 @@ export enum KnownTroubleshooterProvisioningState {
|
|
|
363
423
|
export enum KnownType {
|
|
364
424
|
AutomatedCheck = "AutomatedCheck",
|
|
365
425
|
Decision = "Decision",
|
|
426
|
+
Input = "Input",
|
|
366
427
|
Insight = "Insight",
|
|
367
428
|
Solution = "Solution"
|
|
368
429
|
}
|
|
369
430
|
|
|
431
|
+
// @public
|
|
432
|
+
export enum KnownValidationScope {
|
|
433
|
+
GuidFormat = "GuidFormat",
|
|
434
|
+
IpAddressFormat = "IpAddressFormat",
|
|
435
|
+
None = "None",
|
|
436
|
+
NumberOnlyFormat = "NumberOnlyFormat",
|
|
437
|
+
URLFormat = "URLFormat"
|
|
438
|
+
}
|
|
439
|
+
|
|
370
440
|
// @public
|
|
371
441
|
export interface MetricsBasedChart {
|
|
372
442
|
aggregationType?: AggregationType;
|
|
@@ -445,6 +515,13 @@ export interface ReplacementMaps {
|
|
|
445
515
|
webResults?: WebResult[];
|
|
446
516
|
}
|
|
447
517
|
|
|
518
|
+
// @public
|
|
519
|
+
export interface ReplacementMapsSelfHelp {
|
|
520
|
+
videoGroups?: VideoGroup[];
|
|
521
|
+
videos?: Video[];
|
|
522
|
+
webResults?: WebResult[];
|
|
523
|
+
}
|
|
524
|
+
|
|
448
525
|
// @public
|
|
449
526
|
export interface Resource {
|
|
450
527
|
readonly id?: string;
|
|
@@ -465,6 +542,7 @@ export interface ResponseValidationProperties {
|
|
|
465
542
|
maxLength?: number;
|
|
466
543
|
regex?: string;
|
|
467
544
|
validationErrorMessage?: string;
|
|
545
|
+
validationScope?: ValidationScope;
|
|
468
546
|
}
|
|
469
547
|
|
|
470
548
|
// @public
|
|
@@ -494,6 +572,51 @@ export interface Section {
|
|
|
494
572
|
title?: string;
|
|
495
573
|
}
|
|
496
574
|
|
|
575
|
+
// @public
|
|
576
|
+
export interface SectionSelfHelp {
|
|
577
|
+
content?: string;
|
|
578
|
+
replacementMaps?: ReplacementMapsSelfHelp;
|
|
579
|
+
title?: string;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// @public
|
|
583
|
+
export interface SimplifiedSolutions {
|
|
584
|
+
beginCreate(scope: string, simplifiedSolutionsResourceName: string, options?: SimplifiedSolutionsCreateOptionalParams): Promise<SimplePollerLike<OperationState<SimplifiedSolutionsCreateResponse>, SimplifiedSolutionsCreateResponse>>;
|
|
585
|
+
beginCreateAndWait(scope: string, simplifiedSolutionsResourceName: string, options?: SimplifiedSolutionsCreateOptionalParams): Promise<SimplifiedSolutionsCreateResponse>;
|
|
586
|
+
get(scope: string, simplifiedSolutionsResourceName: string, options?: SimplifiedSolutionsGetOptionalParams): Promise<SimplifiedSolutionsGetResponse>;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
// @public
|
|
590
|
+
export interface SimplifiedSolutionsCreateOptionalParams extends coreClient.OperationOptions {
|
|
591
|
+
resumeFrom?: string;
|
|
592
|
+
simplifiedSolutionsRequestBody?: SimplifiedSolutionsResource;
|
|
593
|
+
updateIntervalInMs?: number;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
// @public
|
|
597
|
+
export type SimplifiedSolutionsCreateResponse = SimplifiedSolutionsResource;
|
|
598
|
+
|
|
599
|
+
// @public
|
|
600
|
+
export interface SimplifiedSolutionsGetOptionalParams extends coreClient.OperationOptions {
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// @public
|
|
604
|
+
export type SimplifiedSolutionsGetResponse = SimplifiedSolutionsResource;
|
|
605
|
+
|
|
606
|
+
// @public
|
|
607
|
+
export interface SimplifiedSolutionsResource extends ProxyResource {
|
|
608
|
+
readonly appendix?: {
|
|
609
|
+
[propertyName: string]: string;
|
|
610
|
+
};
|
|
611
|
+
readonly content?: string;
|
|
612
|
+
parameters?: {
|
|
613
|
+
[propertyName: string]: string;
|
|
614
|
+
};
|
|
615
|
+
readonly provisioningState?: SolutionProvisioningState;
|
|
616
|
+
solutionId?: string;
|
|
617
|
+
readonly title?: string;
|
|
618
|
+
}
|
|
619
|
+
|
|
497
620
|
// @public
|
|
498
621
|
export interface Solution {
|
|
499
622
|
beginCreate(scope: string, solutionResourceName: string, options?: SolutionCreateOptionalParams): Promise<SimplePollerLike<OperationState<SolutionCreateResponse>, SolutionCreateResponse>>;
|
|
@@ -501,6 +624,7 @@ export interface Solution {
|
|
|
501
624
|
beginUpdate(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SolutionUpdateResponse>, SolutionUpdateResponse>>;
|
|
502
625
|
beginUpdateAndWait(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SolutionUpdateResponse>;
|
|
503
626
|
get(scope: string, solutionResourceName: string, options?: SolutionGetOptionalParams): Promise<SolutionGetResponse>;
|
|
627
|
+
warmUp(scope: string, solutionResourceName: string, options?: SolutionWarmUpOptionalParams): Promise<void>;
|
|
504
628
|
}
|
|
505
629
|
|
|
506
630
|
// @public
|
|
@@ -533,6 +657,16 @@ export interface SolutionMetadataResource extends ProxyResource {
|
|
|
533
657
|
solutions?: SolutionMetadataProperties[];
|
|
534
658
|
}
|
|
535
659
|
|
|
660
|
+
// @public
|
|
661
|
+
export interface SolutionNlpMetadataResource extends ProxyResource {
|
|
662
|
+
problemClassificationId?: string;
|
|
663
|
+
problemDescription?: string;
|
|
664
|
+
problemTitle?: string;
|
|
665
|
+
relatedServices?: ClassificationService[];
|
|
666
|
+
serviceId?: string;
|
|
667
|
+
solutions?: SolutionMetadataProperties[];
|
|
668
|
+
}
|
|
669
|
+
|
|
536
670
|
// @public
|
|
537
671
|
export interface SolutionPatchRequestBody {
|
|
538
672
|
readonly content?: string;
|
|
@@ -564,8 +698,18 @@ export interface SolutionResource extends ProxyResource {
|
|
|
564
698
|
triggerCriteria?: TriggerCriterion[];
|
|
565
699
|
}
|
|
566
700
|
|
|
701
|
+
// @public
|
|
702
|
+
export interface SolutionResourceSelfHelp extends ProxyResource {
|
|
703
|
+
readonly content?: string;
|
|
704
|
+
readonly replacementMaps?: ReplacementMapsSelfHelp;
|
|
705
|
+
readonly sections?: SectionSelfHelp[];
|
|
706
|
+
readonly solutionId?: string;
|
|
707
|
+
readonly title?: string;
|
|
708
|
+
}
|
|
709
|
+
|
|
567
710
|
// @public
|
|
568
711
|
export interface SolutionsDiagnostic {
|
|
712
|
+
estimatedCompletionTime?: string;
|
|
569
713
|
insights?: Insight[];
|
|
570
714
|
replacementKey?: string;
|
|
571
715
|
requiredParameters?: string[];
|
|
@@ -574,6 +718,18 @@ export interface SolutionsDiagnostic {
|
|
|
574
718
|
statusDetails?: string;
|
|
575
719
|
}
|
|
576
720
|
|
|
721
|
+
// @public
|
|
722
|
+
export interface SolutionSelfHelp {
|
|
723
|
+
get(solutionId: string, options?: SolutionSelfHelpGetOptionalParams): Promise<SolutionSelfHelpGetResponse>;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// @public
|
|
727
|
+
export interface SolutionSelfHelpGetOptionalParams extends coreClient.OperationOptions {
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
// @public
|
|
731
|
+
export type SolutionSelfHelpGetResponse = SolutionResourceSelfHelp;
|
|
732
|
+
|
|
577
733
|
// @public
|
|
578
734
|
export interface SolutionsTroubleshooters {
|
|
579
735
|
solutionId?: string;
|
|
@@ -600,6 +756,18 @@ export interface SolutionUpdateOptionalParams extends coreClient.OperationOption
|
|
|
600
756
|
// @public
|
|
601
757
|
export type SolutionUpdateResponse = SolutionUpdateHeaders & SolutionResource;
|
|
602
758
|
|
|
759
|
+
// @public
|
|
760
|
+
export interface SolutionWarmUpOptionalParams extends coreClient.OperationOptions {
|
|
761
|
+
solutionWarmUpRequestBody?: SolutionWarmUpRequestBody;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
// @public
|
|
765
|
+
export interface SolutionWarmUpRequestBody {
|
|
766
|
+
parameters?: {
|
|
767
|
+
[propertyName: string]: string;
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
|
|
603
771
|
// @public
|
|
604
772
|
export type Status = string;
|
|
605
773
|
|
|
@@ -626,6 +794,7 @@ export interface StepInput {
|
|
|
626
794
|
questionContent?: string;
|
|
627
795
|
questionContentType?: QuestionContentType;
|
|
628
796
|
questionId?: string;
|
|
797
|
+
questionTitle?: string;
|
|
629
798
|
questionType?: QuestionType;
|
|
630
799
|
recommendedOption?: string;
|
|
631
800
|
responseHint?: string;
|
|
@@ -738,6 +907,9 @@ export type TroubleshootersRestartResponse = TroubleshootersRestartHeaders & Res
|
|
|
738
907
|
// @public
|
|
739
908
|
export type Type = string;
|
|
740
909
|
|
|
910
|
+
// @public
|
|
911
|
+
export type ValidationScope = string;
|
|
912
|
+
|
|
741
913
|
// @public
|
|
742
914
|
export interface Video extends VideoGroupVideo {
|
|
743
915
|
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,7 +32,11 @@ 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
|
|
|
@@ -43,7 +51,7 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
43
51
|
*/
|
|
44
52
|
constructor(
|
|
45
53
|
credentials: coreAuth.TokenCredential,
|
|
46
|
-
options?: HelpRPOptionalParams
|
|
54
|
+
options?: HelpRPOptionalParams,
|
|
47
55
|
) {
|
|
48
56
|
if (credentials === undefined) {
|
|
49
57
|
throw new Error("'credentials' cannot be null");
|
|
@@ -55,10 +63,10 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
55
63
|
}
|
|
56
64
|
const defaults: HelpRPOptionalParams = {
|
|
57
65
|
requestContentType: "application/json; charset=utf-8",
|
|
58
|
-
credential: credentials
|
|
66
|
+
credential: credentials,
|
|
59
67
|
};
|
|
60
68
|
|
|
61
|
-
const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.
|
|
69
|
+
const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.4`;
|
|
62
70
|
const userAgentPrefix =
|
|
63
71
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
64
72
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -68,20 +76,21 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
68
76
|
...defaults,
|
|
69
77
|
...options,
|
|
70
78
|
userAgentOptions: {
|
|
71
|
-
userAgentPrefix
|
|
79
|
+
userAgentPrefix,
|
|
72
80
|
},
|
|
73
81
|
endpoint:
|
|
74
|
-
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
82
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
75
83
|
};
|
|
76
84
|
super(optionsWithDefaults);
|
|
77
85
|
|
|
78
86
|
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
79
87
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
80
|
-
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
88
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
89
|
+
options.pipeline.getOrderedPolicies();
|
|
81
90
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
82
91
|
(pipelinePolicy) =>
|
|
83
92
|
pipelinePolicy.name ===
|
|
84
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
93
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
85
94
|
);
|
|
86
95
|
}
|
|
87
96
|
if (
|
|
@@ -91,7 +100,7 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
91
100
|
!bearerTokenAuthenticationPolicyFound
|
|
92
101
|
) {
|
|
93
102
|
this.pipeline.removePolicy({
|
|
94
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
103
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
95
104
|
});
|
|
96
105
|
this.pipeline.addPolicy(
|
|
97
106
|
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
@@ -101,21 +110,27 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
101
110
|
`${optionsWithDefaults.endpoint}/.default`,
|
|
102
111
|
challengeCallbacks: {
|
|
103
112
|
authorizeRequestOnChallenge:
|
|
104
|
-
coreClient.authorizeRequestOnClaimChallenge
|
|
105
|
-
}
|
|
106
|
-
})
|
|
113
|
+
coreClient.authorizeRequestOnClaimChallenge,
|
|
114
|
+
},
|
|
115
|
+
}),
|
|
107
116
|
);
|
|
108
117
|
}
|
|
109
118
|
|
|
110
119
|
// Assigning values to Constant parameters
|
|
111
120
|
this.$host = options.$host || "https://management.azure.com";
|
|
112
|
-
this.apiVersion = options.apiVersion || "
|
|
121
|
+
this.apiVersion = options.apiVersion || "2024-03-01-preview";
|
|
113
122
|
this.operations = new OperationsImpl(this);
|
|
114
123
|
this.checkNameAvailability = new CheckNameAvailabilityImpl(this);
|
|
115
124
|
this.diagnostics = new DiagnosticsImpl(this);
|
|
116
125
|
this.discoverySolution = new DiscoverySolutionImpl(this);
|
|
117
126
|
this.solution = new SolutionImpl(this);
|
|
127
|
+
this.simplifiedSolutions = new SimplifiedSolutionsImpl(this);
|
|
118
128
|
this.troubleshooters = new TroubleshootersImpl(this);
|
|
129
|
+
this.solutionSelfHelp = new SolutionSelfHelpImpl(this);
|
|
130
|
+
this.discoverySolutionNLPTenantScope =
|
|
131
|
+
new DiscoverySolutionNLPTenantScopeImpl(this);
|
|
132
|
+
this.discoverySolutionNLPSubscriptionScope =
|
|
133
|
+
new DiscoverySolutionNLPSubscriptionScopeImpl(this);
|
|
119
134
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
120
135
|
}
|
|
121
136
|
|
|
@@ -128,7 +143,7 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
128
143
|
name: "CustomApiVersionPolicy",
|
|
129
144
|
async sendRequest(
|
|
130
145
|
request: PipelineRequest,
|
|
131
|
-
next: SendRequest
|
|
146
|
+
next: SendRequest,
|
|
132
147
|
): Promise<PipelineResponse> {
|
|
133
148
|
const param = request.url.split("?");
|
|
134
149
|
if (param.length > 1) {
|
|
@@ -142,7 +157,7 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
142
157
|
request.url = param[0] + "?" + newParams.join("&");
|
|
143
158
|
}
|
|
144
159
|
return next(request);
|
|
145
|
-
}
|
|
160
|
+
},
|
|
146
161
|
};
|
|
147
162
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
148
163
|
}
|
|
@@ -152,5 +167,9 @@ export class HelpRP extends coreClient.ServiceClient {
|
|
|
152
167
|
diagnostics: Diagnostics;
|
|
153
168
|
discoverySolution: DiscoverySolution;
|
|
154
169
|
solution: Solution;
|
|
170
|
+
simplifiedSolutions: SimplifiedSolutions;
|
|
155
171
|
troubleshooters: Troubleshooters;
|
|
172
|
+
solutionSelfHelp: SolutionSelfHelp;
|
|
173
|
+
discoverySolutionNLPTenantScope: DiscoverySolutionNLPTenantScope;
|
|
174
|
+
discoverySolutionNLPSubscriptionScope: DiscoverySolutionNLPSubscriptionScope;
|
|
156
175
|
}
|
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
|
}
|