@azure/arm-selfhelp 2.0.0-beta.2 → 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +120 -0
- package/LICENSE +1 -1
- package/README.md +3 -2
- package/dist/index.js +1589 -861
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityPostSample.js +7 -7
- package/dist-esm/samples-dev/checkNameAvailabilityPostSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticsCreateSample.js +4 -13
- package/dist-esm/samples-dev/diagnosticsCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/diagnosticsGetSample.js +1 -1
- package/dist-esm/samples-dev/discoverySolutionListSample.js +6 -41
- package/dist-esm/samples-dev/discoverySolutionListSample.js.map +1 -1
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.d.ts +2 -0
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.js +45 -0
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.js.map +1 -0
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.d.ts +2 -0
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.js +43 -0
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +5 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.js +46 -0
- package/dist-esm/samples-dev/simplifiedSolutionsCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/simplifiedSolutionsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/simplifiedSolutionsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/simplifiedSolutionsGetSample.js +37 -0
- package/dist-esm/samples-dev/simplifiedSolutionsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionCreateSample.js +8 -5
- package/dist-esm/samples-dev/solutionCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/solutionGetSample.js +1 -1
- package/dist-esm/samples-dev/solutionSelfHelpGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionSelfHelpGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionSelfHelpGetSample.js +36 -0
- package/dist-esm/samples-dev/solutionSelfHelpGetSample.js.map +1 -0
- package/dist-esm/samples-dev/solutionUpdateSample.js +2 -11
- package/dist-esm/samples-dev/solutionUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/solutionWarmUpSample.d.ts +2 -0
- package/dist-esm/samples-dev/solutionWarmUpSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/solutionWarmUpSample.js +37 -0
- package/dist-esm/samples-dev/solutionWarmUpSample.js.map +1 -0
- package/dist-esm/samples-dev/troubleshootersContinueSample.js +6 -6
- package/dist-esm/samples-dev/troubleshootersContinueSample.js.map +1 -1
- package/dist-esm/samples-dev/troubleshootersCreateSample.js +5 -5
- package/dist-esm/samples-dev/troubleshootersCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/troubleshootersEndSample.js +1 -1
- package/dist-esm/samples-dev/troubleshootersGetSample.js +1 -1
- package/dist-esm/samples-dev/troubleshootersRestartSample.js +1 -1
- package/dist-esm/src/helpRP.d.ts +8 -1
- package/dist-esm/src/helpRP.d.ts.map +1 -1
- package/dist-esm/src/helpRP.js +25 -15
- package/dist-esm/src/helpRP.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +227 -7
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +24 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +9 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +860 -523
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +6 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +95 -44
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.js +4 -4
- package/dist-esm/src/operations/diagnostics.d.ts +6 -10
- package/dist-esm/src/operations/diagnostics.d.ts.map +1 -1
- package/dist-esm/src/operations/diagnostics.js +24 -28
- package/dist-esm/src/operations/diagnostics.js.map +1 -1
- package/dist-esm/src/operations/discoverySolution.d.ts +3 -12
- package/dist-esm/src/operations/discoverySolution.d.ts.map +1 -1
- package/dist-esm/src/operations/discoverySolution.js +27 -36
- package/dist-esm/src/operations/discoverySolution.js.map +1 -1
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.d.ts +19 -0
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.d.ts.map +1 -0
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.js +49 -0
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.js.map +1 -0
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.d.ts +19 -0
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.d.ts.map +1 -0
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.js +49 -0
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +4 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/simplifiedSolutions.d.ts +52 -0
- package/dist-esm/src/operations/simplifiedSolutions.d.ts.map +1 -0
- package/dist-esm/src/operations/simplifiedSolutions.js +159 -0
- package/dist-esm/src/operations/simplifiedSolutions.js.map +1 -0
- package/dist-esm/src/operations/solution.d.ts +20 -25
- package/dist-esm/src/operations/solution.d.ts.map +1 -1
- package/dist-esm/src/operations/solution.js +71 -54
- package/dist-esm/src/operations/solution.js.map +1 -1
- package/dist-esm/src/operations/solutionSelfHelp.d.ts +23 -0
- package/dist-esm/src/operations/solutionSelfHelp.d.ts.map +1 -0
- package/dist-esm/src/operations/solutionSelfHelp.js +51 -0
- package/dist-esm/src/operations/solutionSelfHelp.js.map +1 -0
- package/dist-esm/src/operations/troubleshooters.js +26 -26
- package/dist-esm/src/operations/troubleshooters.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/diagnostics.d.ts +6 -10
- package/dist-esm/src/operationsInterfaces/diagnostics.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts +2 -5
- package/dist-esm/src/operationsInterfaces/discoverySolution.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.js +9 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.js +9 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +4 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/simplifiedSolutions.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/simplifiedSolutions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/simplifiedSolutions.js +9 -0
- package/dist-esm/src/operationsInterfaces/simplifiedSolutions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/solution.d.ts +20 -25
- package/dist-esm/src/operationsInterfaces/solution.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/solutionSelfHelp.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/solutionSelfHelp.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/solutionSelfHelp.js +9 -0
- package/dist-esm/src/operationsInterfaces/solutionSelfHelp.js.map +1 -0
- package/dist-esm/src/pagingHelper.js.map +1 -1
- package/dist-esm/test/selfhelp_operations_test.spec.js +2 -2
- package/dist-esm/test/selfhelp_operations_test.spec.js.map +1 -1
- package/package.json +8 -10
- package/review/arm-selfhelp.api.md +177 -2
- package/src/helpRP.ts +58 -17
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +263 -22
- package/src/models/mappers.ts +898 -529
- package/src/models/parameters.ts +105 -45
- package/src/operations/checkNameAvailability.ts +7 -7
- package/src/operations/diagnostics.ts +39 -46
- package/src/operations/discoverySolution.ts +29 -46
- package/src/operations/discoverySolutionNLPSubscriptionScope.ts +64 -0
- package/src/operations/discoverySolutionNLPTenantScope.ts +64 -0
- package/src/operations/index.ts +4 -0
- package/src/operations/operations.ts +16 -16
- package/src/operations/simplifiedSolutions.ts +216 -0
- package/src/operations/solution.ts +101 -77
- package/src/operations/solutionSelfHelp.ts +68 -0
- package/src/operations/troubleshooters.ts +42 -47
- package/src/operationsInterfaces/checkNameAvailability.ts +2 -2
- package/src/operationsInterfaces/diagnostics.ts +10 -14
- package/src/operationsInterfaces/discoverySolution.ts +3 -7
- package/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.ts +24 -0
- package/src/operationsInterfaces/discoverySolutionNLPTenantScope.ts +24 -0
- package/src/operationsInterfaces/index.ts +4 -0
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/simplifiedSolutions.ts +74 -0
- package/src/operationsInterfaces/solution.ts +30 -30
- package/src/operationsInterfaces/solutionSelfHelp.ts +29 -0
- package/src/operationsInterfaces/troubleshooters.ts +6 -6
- package/src/pagingHelper.ts +1 -1
- package/types/arm-selfhelp.d.ts +359 -46
- package/types/tsdoc-metadata.json +1 -1
|
@@ -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
|
|
|
@@ -314,8 +373,10 @@ export enum KnownQuestionContentType {
|
|
|
314
373
|
|
|
315
374
|
// @public
|
|
316
375
|
export enum KnownQuestionType {
|
|
376
|
+
DateTimePicker = "DateTimePicker",
|
|
317
377
|
Dropdown = "Dropdown",
|
|
318
378
|
MultiLineInfoBox = "MultiLineInfoBox",
|
|
379
|
+
MultiSelect = "MultiSelect",
|
|
319
380
|
RadioButton = "RadioButton",
|
|
320
381
|
TextInput = "TextInput"
|
|
321
382
|
}
|
|
@@ -338,7 +399,9 @@ export enum KnownSolutionProvisioningState {
|
|
|
338
399
|
// @public
|
|
339
400
|
export enum KnownSolutionType {
|
|
340
401
|
Diagnostics = "Diagnostics",
|
|
341
|
-
|
|
402
|
+
SelfHelp = "SelfHelp",
|
|
403
|
+
Solutions = "Solutions",
|
|
404
|
+
Troubleshooters = "Troubleshooters"
|
|
342
405
|
}
|
|
343
406
|
|
|
344
407
|
// @public
|
|
@@ -363,10 +426,20 @@ export enum KnownTroubleshooterProvisioningState {
|
|
|
363
426
|
export enum KnownType {
|
|
364
427
|
AutomatedCheck = "AutomatedCheck",
|
|
365
428
|
Decision = "Decision",
|
|
429
|
+
Input = "Input",
|
|
366
430
|
Insight = "Insight",
|
|
367
431
|
Solution = "Solution"
|
|
368
432
|
}
|
|
369
433
|
|
|
434
|
+
// @public
|
|
435
|
+
export enum KnownValidationScope {
|
|
436
|
+
GuidFormat = "GuidFormat",
|
|
437
|
+
IpAddressFormat = "IpAddressFormat",
|
|
438
|
+
None = "None",
|
|
439
|
+
NumberOnlyFormat = "NumberOnlyFormat",
|
|
440
|
+
URLFormat = "URLFormat"
|
|
441
|
+
}
|
|
442
|
+
|
|
370
443
|
// @public
|
|
371
444
|
export interface MetricsBasedChart {
|
|
372
445
|
aggregationType?: AggregationType;
|
|
@@ -445,6 +518,13 @@ export interface ReplacementMaps {
|
|
|
445
518
|
webResults?: WebResult[];
|
|
446
519
|
}
|
|
447
520
|
|
|
521
|
+
// @public
|
|
522
|
+
export interface ReplacementMapsSelfHelp {
|
|
523
|
+
videoGroups?: VideoGroup[];
|
|
524
|
+
videos?: Video[];
|
|
525
|
+
webResults?: WebResult[];
|
|
526
|
+
}
|
|
527
|
+
|
|
448
528
|
// @public
|
|
449
529
|
export interface Resource {
|
|
450
530
|
readonly id?: string;
|
|
@@ -465,6 +545,7 @@ export interface ResponseValidationProperties {
|
|
|
465
545
|
maxLength?: number;
|
|
466
546
|
regex?: string;
|
|
467
547
|
validationErrorMessage?: string;
|
|
548
|
+
validationScope?: ValidationScope;
|
|
468
549
|
}
|
|
469
550
|
|
|
470
551
|
// @public
|
|
@@ -494,6 +575,51 @@ export interface Section {
|
|
|
494
575
|
title?: string;
|
|
495
576
|
}
|
|
496
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
|
+
|
|
497
623
|
// @public
|
|
498
624
|
export interface Solution {
|
|
499
625
|
beginCreate(scope: string, solutionResourceName: string, options?: SolutionCreateOptionalParams): Promise<SimplePollerLike<OperationState<SolutionCreateResponse>, SolutionCreateResponse>>;
|
|
@@ -501,6 +627,7 @@ export interface Solution {
|
|
|
501
627
|
beginUpdate(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SolutionUpdateResponse>, SolutionUpdateResponse>>;
|
|
502
628
|
beginUpdateAndWait(scope: string, solutionResourceName: string, options?: SolutionUpdateOptionalParams): Promise<SolutionUpdateResponse>;
|
|
503
629
|
get(scope: string, solutionResourceName: string, options?: SolutionGetOptionalParams): Promise<SolutionGetResponse>;
|
|
630
|
+
warmUp(scope: string, solutionResourceName: string, options?: SolutionWarmUpOptionalParams): Promise<void>;
|
|
504
631
|
}
|
|
505
632
|
|
|
506
633
|
// @public
|
|
@@ -533,6 +660,16 @@ export interface SolutionMetadataResource extends ProxyResource {
|
|
|
533
660
|
solutions?: SolutionMetadataProperties[];
|
|
534
661
|
}
|
|
535
662
|
|
|
663
|
+
// @public
|
|
664
|
+
export interface SolutionNlpMetadataResource extends ProxyResource {
|
|
665
|
+
problemClassificationId?: string;
|
|
666
|
+
problemDescription?: string;
|
|
667
|
+
problemTitle?: string;
|
|
668
|
+
relatedServices?: ClassificationService[];
|
|
669
|
+
serviceId?: string;
|
|
670
|
+
solutions?: SolutionMetadataProperties[];
|
|
671
|
+
}
|
|
672
|
+
|
|
536
673
|
// @public
|
|
537
674
|
export interface SolutionPatchRequestBody {
|
|
538
675
|
readonly content?: string;
|
|
@@ -564,8 +701,18 @@ export interface SolutionResource extends ProxyResource {
|
|
|
564
701
|
triggerCriteria?: TriggerCriterion[];
|
|
565
702
|
}
|
|
566
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
|
+
|
|
567
713
|
// @public
|
|
568
714
|
export interface SolutionsDiagnostic {
|
|
715
|
+
estimatedCompletionTime?: string;
|
|
569
716
|
insights?: Insight[];
|
|
570
717
|
replacementKey?: string;
|
|
571
718
|
requiredParameters?: string[];
|
|
@@ -574,6 +721,18 @@ export interface SolutionsDiagnostic {
|
|
|
574
721
|
statusDetails?: string;
|
|
575
722
|
}
|
|
576
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
|
+
|
|
577
736
|
// @public
|
|
578
737
|
export interface SolutionsTroubleshooters {
|
|
579
738
|
solutionId?: string;
|
|
@@ -600,6 +759,18 @@ export interface SolutionUpdateOptionalParams extends coreClient.OperationOption
|
|
|
600
759
|
// @public
|
|
601
760
|
export type SolutionUpdateResponse = SolutionUpdateHeaders & SolutionResource;
|
|
602
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
|
+
|
|
603
774
|
// @public
|
|
604
775
|
export type Status = string;
|
|
605
776
|
|
|
@@ -626,6 +797,7 @@ export interface StepInput {
|
|
|
626
797
|
questionContent?: string;
|
|
627
798
|
questionContentType?: QuestionContentType;
|
|
628
799
|
questionId?: string;
|
|
800
|
+
questionTitle?: string;
|
|
629
801
|
questionType?: QuestionType;
|
|
630
802
|
recommendedOption?: string;
|
|
631
803
|
responseHint?: string;
|
|
@@ -738,6 +910,9 @@ export type TroubleshootersRestartResponse = TroubleshootersRestartHeaders & Res
|
|
|
738
910
|
// @public
|
|
739
911
|
export type Type = string;
|
|
740
912
|
|
|
913
|
+
// @public
|
|
914
|
+
export type ValidationScope = string;
|
|
915
|
+
|
|
741
916
|
// @public
|
|
742
917
|
export interface Video extends VideoGroupVideo {
|
|
743
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
|
}
|