@azure/arm-selfhelp 2.0.0-beta.3 → 2.0.0-beta.5
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 +245 -6
- package/README.md +2 -3
- package/dist/index.js +58 -83
- 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/checkNameAvailabilityCheckAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/checkNameAvailabilityCheckAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{checkNameAvailabilityPostSample.js → checkNameAvailabilityCheckAvailabilitySample.js} +3 -3
- package/dist-esm/samples-dev/checkNameAvailabilityCheckAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/discoverySolutionNlpDiscoverSolutionsBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/discoverySolutionNlpDiscoverSolutionsBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{discoverySolutionNlpSubscriptionScopePostSample.js → discoverySolutionNlpDiscoverSolutionsBySubscriptionSample.js} +5 -8
- package/dist-esm/samples-dev/discoverySolutionNlpDiscoverSolutionsBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/discoverySolutionNlpDiscoverSolutionsSample.d.ts +2 -0
- package/dist-esm/samples-dev/discoverySolutionNlpDiscoverSolutionsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/{discoverySolutionNlpTenantScopePostSample.js → discoverySolutionNlpDiscoverSolutionsSample.js} +2 -3
- package/dist-esm/samples-dev/discoverySolutionNlpDiscoverSolutionsSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +1 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/src/helpRP.d.ts +2 -6
- package/dist-esm/src/helpRP.d.ts.map +1 -1
- package/dist-esm/src/helpRP.js +9 -16
- package/dist-esm/src/helpRP.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +10 -10
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +2 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.d.ts +2 -2
- package/dist-esm/src/operations/checkNameAvailability.d.ts.map +1 -1
- package/dist-esm/src/operations/checkNameAvailability.js +3 -3
- package/dist-esm/src/operations/checkNameAvailability.js.map +1 -1
- package/dist-esm/src/operations/discoverySolutionNLP.d.ts +26 -0
- package/dist-esm/src/operations/discoverySolutionNLP.d.ts.map +1 -0
- package/dist-esm/src/operations/{discoverySolutionNLPSubscriptionScope.js → discoverySolutionNLP.js} +34 -7
- package/dist-esm/src/operations/discoverySolutionNLP.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +1 -2
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/checkNameAvailability.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLP.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLP.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/{discoverySolutionNLPTenantScope.js → discoverySolutionNLP.js} +1 -1
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLP.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -2
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -2
- package/dist-esm/src/operationsInterfaces/index.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 +4 -3
- package/review/arm-selfhelp.api.md +11 -20
- package/src/helpRP.ts +5 -33
- package/src/models/index.ts +12 -10
- package/src/models/parameters.ts +2 -1
- package/src/operations/checkNameAvailability.ts +7 -7
- package/src/operations/discoverySolutionNLP.ts +101 -0
- package/src/operations/index.ts +1 -2
- package/src/operationsInterfaces/checkNameAvailability.ts +5 -5
- package/src/operationsInterfaces/discoverySolutionNLP.ts +36 -0
- package/src/operationsInterfaces/index.ts +1 -2
- package/types/arm-selfhelp.d.ts +22 -29
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/checkNameAvailabilityPostSample.d.ts +0 -2
- package/dist-esm/samples-dev/checkNameAvailabilityPostSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/checkNameAvailabilityPostSample.js.map +0 -1
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.d.ts +0 -2
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/discoverySolutionNlpSubscriptionScopePostSample.js.map +0 -1
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.d.ts +0 -2
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/discoverySolutionNlpTenantScopePostSample.js.map +0 -1
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.d.ts +0 -19
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.d.ts.map +0 -1
- package/dist-esm/src/operations/discoverySolutionNLPSubscriptionScope.js.map +0 -1
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.d.ts +0 -19
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.d.ts.map +0 -1
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.js +0 -49
- package/dist-esm/src/operations/discoverySolutionNLPTenantScope.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.js +0 -9
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/discoverySolutionNLPTenantScope.js.map +0 -1
- package/src/operations/discoverySolutionNLPSubscriptionScope.ts +0 -64
- package/src/operations/discoverySolutionNLPTenantScope.ts +0 -64
- package/src/operationsInterfaces/discoverySolutionNLPSubscriptionScope.ts +0 -24
- package/src/operationsInterfaces/discoverySolutionNLPTenantScope.ts +0 -24
package/dist/index.js
CHANGED
|
@@ -2478,9 +2478,10 @@ const subscriptionId = {
|
|
|
2478
2478
|
serializedName: "subscriptionId",
|
|
2479
2479
|
required: true,
|
|
2480
2480
|
type: {
|
|
2481
|
-
name: "
|
|
2481
|
+
name: "String",
|
|
2482
2482
|
},
|
|
2483
2483
|
},
|
|
2484
|
+
skipEncoding: true,
|
|
2484
2485
|
};
|
|
2485
2486
|
|
|
2486
2487
|
/*
|
|
@@ -2578,7 +2579,7 @@ class OperationsImpl {
|
|
|
2578
2579
|
}
|
|
2579
2580
|
}
|
|
2580
2581
|
// Operation Specifications
|
|
2581
|
-
const serializer$
|
|
2582
|
+
const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2582
2583
|
const listOperationSpec$1 = {
|
|
2583
2584
|
path: "/providers/Microsoft.Help/operations",
|
|
2584
2585
|
httpMethod: "GET",
|
|
@@ -2593,7 +2594,7 @@ const listOperationSpec$1 = {
|
|
|
2593
2594
|
queryParameters: [apiVersion],
|
|
2594
2595
|
urlParameters: [$host],
|
|
2595
2596
|
headerParameters: [accept],
|
|
2596
|
-
serializer: serializer$
|
|
2597
|
+
serializer: serializer$8,
|
|
2597
2598
|
};
|
|
2598
2599
|
const listNextOperationSpec$1 = {
|
|
2599
2600
|
path: "{nextLink}",
|
|
@@ -2608,7 +2609,7 @@ const listNextOperationSpec$1 = {
|
|
|
2608
2609
|
},
|
|
2609
2610
|
urlParameters: [$host, nextLink],
|
|
2610
2611
|
headerParameters: [accept],
|
|
2611
|
-
serializer: serializer$
|
|
2612
|
+
serializer: serializer$8,
|
|
2612
2613
|
};
|
|
2613
2614
|
|
|
2614
2615
|
/*
|
|
@@ -2635,13 +2636,13 @@ class CheckNameAvailabilityImpl {
|
|
|
2635
2636
|
*
|
|
2636
2637
|
* @param options The options parameters.
|
|
2637
2638
|
*/
|
|
2638
|
-
|
|
2639
|
-
return this.client.sendOperationRequest({ scope, options },
|
|
2639
|
+
checkAvailability(scope, options) {
|
|
2640
|
+
return this.client.sendOperationRequest({ scope, options }, checkAvailabilityOperationSpec);
|
|
2640
2641
|
}
|
|
2641
2642
|
}
|
|
2642
2643
|
// Operation Specifications
|
|
2643
|
-
const serializer$
|
|
2644
|
-
const
|
|
2644
|
+
const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2645
|
+
const checkAvailabilityOperationSpec = {
|
|
2645
2646
|
path: "/{scope}/providers/Microsoft.Help/checkNameAvailability",
|
|
2646
2647
|
httpMethod: "POST",
|
|
2647
2648
|
responses: {
|
|
@@ -2657,7 +2658,7 @@ const postOperationSpec$2 = {
|
|
|
2657
2658
|
urlParameters: [$host, scope],
|
|
2658
2659
|
headerParameters: [accept, contentType],
|
|
2659
2660
|
mediaType: "json",
|
|
2660
|
-
serializer: serializer$
|
|
2661
|
+
serializer: serializer$7,
|
|
2661
2662
|
};
|
|
2662
2663
|
|
|
2663
2664
|
/*
|
|
@@ -2773,7 +2774,7 @@ class DiagnosticsImpl {
|
|
|
2773
2774
|
}
|
|
2774
2775
|
}
|
|
2775
2776
|
// Operation Specifications
|
|
2776
|
-
const serializer$
|
|
2777
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2777
2778
|
const createOperationSpec$3 = {
|
|
2778
2779
|
path: "/{scope}/providers/Microsoft.Help/diagnostics/{diagnosticsResourceName}",
|
|
2779
2780
|
httpMethod: "PUT",
|
|
@@ -2803,7 +2804,7 @@ const createOperationSpec$3 = {
|
|
|
2803
2804
|
],
|
|
2804
2805
|
headerParameters: [accept, contentType],
|
|
2805
2806
|
mediaType: "json",
|
|
2806
|
-
serializer: serializer$
|
|
2807
|
+
serializer: serializer$6,
|
|
2807
2808
|
};
|
|
2808
2809
|
const getOperationSpec$4 = {
|
|
2809
2810
|
path: "/{scope}/providers/Microsoft.Help/diagnostics/{diagnosticsResourceName}",
|
|
@@ -2823,7 +2824,7 @@ const getOperationSpec$4 = {
|
|
|
2823
2824
|
diagnosticsResourceName,
|
|
2824
2825
|
],
|
|
2825
2826
|
headerParameters: [accept],
|
|
2826
|
-
serializer: serializer$
|
|
2827
|
+
serializer: serializer$6,
|
|
2827
2828
|
};
|
|
2828
2829
|
|
|
2829
2830
|
/*
|
|
@@ -2937,7 +2938,7 @@ class DiscoverySolutionImpl {
|
|
|
2937
2938
|
}
|
|
2938
2939
|
}
|
|
2939
2940
|
// Operation Specifications
|
|
2940
|
-
const serializer$
|
|
2941
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2941
2942
|
const listOperationSpec = {
|
|
2942
2943
|
path: "/providers/Microsoft.Help/discoverySolutions",
|
|
2943
2944
|
httpMethod: "GET",
|
|
@@ -2956,7 +2957,7 @@ const listOperationSpec = {
|
|
|
2956
2957
|
],
|
|
2957
2958
|
urlParameters: [$host],
|
|
2958
2959
|
headerParameters: [accept],
|
|
2959
|
-
serializer: serializer$
|
|
2960
|
+
serializer: serializer$5,
|
|
2960
2961
|
};
|
|
2961
2962
|
const listNextOperationSpec = {
|
|
2962
2963
|
path: "{nextLink}",
|
|
@@ -2971,7 +2972,7 @@ const listNextOperationSpec = {
|
|
|
2971
2972
|
},
|
|
2972
2973
|
urlParameters: [$host, nextLink],
|
|
2973
2974
|
headerParameters: [accept],
|
|
2974
|
-
serializer: serializer$
|
|
2975
|
+
serializer: serializer$5,
|
|
2975
2976
|
};
|
|
2976
2977
|
|
|
2977
2978
|
/*
|
|
@@ -3148,7 +3149,7 @@ class SolutionImpl {
|
|
|
3148
3149
|
}
|
|
3149
3150
|
}
|
|
3150
3151
|
// Operation Specifications
|
|
3151
|
-
const serializer$
|
|
3152
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3152
3153
|
const createOperationSpec$2 = {
|
|
3153
3154
|
path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
|
|
3154
3155
|
httpMethod: "PUT",
|
|
@@ -3178,7 +3179,7 @@ const createOperationSpec$2 = {
|
|
|
3178
3179
|
],
|
|
3179
3180
|
headerParameters: [accept, contentType],
|
|
3180
3181
|
mediaType: "json",
|
|
3181
|
-
serializer: serializer$
|
|
3182
|
+
serializer: serializer$4,
|
|
3182
3183
|
};
|
|
3183
3184
|
const getOperationSpec$3 = {
|
|
3184
3185
|
path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
|
|
@@ -3198,7 +3199,7 @@ const getOperationSpec$3 = {
|
|
|
3198
3199
|
solutionResourceName,
|
|
3199
3200
|
],
|
|
3200
3201
|
headerParameters: [accept],
|
|
3201
|
-
serializer: serializer$
|
|
3202
|
+
serializer: serializer$4,
|
|
3202
3203
|
};
|
|
3203
3204
|
const updateOperationSpec = {
|
|
3204
3205
|
path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}",
|
|
@@ -3233,7 +3234,7 @@ const updateOperationSpec = {
|
|
|
3233
3234
|
],
|
|
3234
3235
|
headerParameters: [accept, contentType],
|
|
3235
3236
|
mediaType: "json",
|
|
3236
|
-
serializer: serializer$
|
|
3237
|
+
serializer: serializer$4,
|
|
3237
3238
|
};
|
|
3238
3239
|
const warmUpOperationSpec = {
|
|
3239
3240
|
path: "/{scope}/providers/Microsoft.Help/solutions/{solutionResourceName}/warmup",
|
|
@@ -3253,7 +3254,7 @@ const warmUpOperationSpec = {
|
|
|
3253
3254
|
],
|
|
3254
3255
|
headerParameters: [accept, contentType],
|
|
3255
3256
|
mediaType: "json",
|
|
3256
|
-
serializer: serializer$
|
|
3257
|
+
serializer: serializer$4,
|
|
3257
3258
|
};
|
|
3258
3259
|
|
|
3259
3260
|
/*
|
|
@@ -3356,7 +3357,7 @@ class SimplifiedSolutionsImpl {
|
|
|
3356
3357
|
}
|
|
3357
3358
|
}
|
|
3358
3359
|
// Operation Specifications
|
|
3359
|
-
const serializer$
|
|
3360
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3360
3361
|
const createOperationSpec$1 = {
|
|
3361
3362
|
path: "/{scope}/providers/Microsoft.Help/simplifiedSolutions/{simplifiedSolutionsResourceName}",
|
|
3362
3363
|
httpMethod: "PUT",
|
|
@@ -3386,7 +3387,7 @@ const createOperationSpec$1 = {
|
|
|
3386
3387
|
],
|
|
3387
3388
|
headerParameters: [accept, contentType],
|
|
3388
3389
|
mediaType: "json",
|
|
3389
|
-
serializer: serializer$
|
|
3390
|
+
serializer: serializer$3,
|
|
3390
3391
|
};
|
|
3391
3392
|
const getOperationSpec$2 = {
|
|
3392
3393
|
path: "/{scope}/providers/Microsoft.Help/simplifiedSolutions/{simplifiedSolutionsResourceName}",
|
|
@@ -3406,7 +3407,7 @@ const getOperationSpec$2 = {
|
|
|
3406
3407
|
simplifiedSolutionsResourceName,
|
|
3407
3408
|
],
|
|
3408
3409
|
headerParameters: [accept],
|
|
3409
|
-
serializer: serializer$
|
|
3410
|
+
serializer: serializer$3,
|
|
3410
3411
|
};
|
|
3411
3412
|
|
|
3412
3413
|
/*
|
|
@@ -3497,7 +3498,7 @@ class TroubleshootersImpl {
|
|
|
3497
3498
|
}
|
|
3498
3499
|
}
|
|
3499
3500
|
// Operation Specifications
|
|
3500
|
-
const serializer$
|
|
3501
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3501
3502
|
const createOperationSpec = {
|
|
3502
3503
|
path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
|
|
3503
3504
|
httpMethod: "PUT",
|
|
@@ -3521,7 +3522,7 @@ const createOperationSpec = {
|
|
|
3521
3522
|
],
|
|
3522
3523
|
headerParameters: [accept, contentType],
|
|
3523
3524
|
mediaType: "json",
|
|
3524
|
-
serializer: serializer$
|
|
3525
|
+
serializer: serializer$2,
|
|
3525
3526
|
};
|
|
3526
3527
|
const getOperationSpec$1 = {
|
|
3527
3528
|
path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}",
|
|
@@ -3541,7 +3542,7 @@ const getOperationSpec$1 = {
|
|
|
3541
3542
|
troubleshooterName,
|
|
3542
3543
|
],
|
|
3543
3544
|
headerParameters: [accept],
|
|
3544
|
-
serializer: serializer$
|
|
3545
|
+
serializer: serializer$2,
|
|
3545
3546
|
};
|
|
3546
3547
|
const continueOperationSpec = {
|
|
3547
3548
|
path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/continue",
|
|
@@ -3563,7 +3564,7 @@ const continueOperationSpec = {
|
|
|
3563
3564
|
],
|
|
3564
3565
|
headerParameters: [accept, contentType],
|
|
3565
3566
|
mediaType: "json",
|
|
3566
|
-
serializer: serializer$
|
|
3567
|
+
serializer: serializer$2,
|
|
3567
3568
|
};
|
|
3568
3569
|
const endOperationSpec = {
|
|
3569
3570
|
path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/end",
|
|
@@ -3583,7 +3584,7 @@ const endOperationSpec = {
|
|
|
3583
3584
|
troubleshooterName,
|
|
3584
3585
|
],
|
|
3585
3586
|
headerParameters: [accept],
|
|
3586
|
-
serializer: serializer$
|
|
3587
|
+
serializer: serializer$2,
|
|
3587
3588
|
};
|
|
3588
3589
|
const restartOperationSpec = {
|
|
3589
3590
|
path: "/{scope}/providers/Microsoft.Help/troubleshooters/{troubleshooterName}/restart",
|
|
@@ -3604,7 +3605,7 @@ const restartOperationSpec = {
|
|
|
3604
3605
|
troubleshooterName,
|
|
3605
3606
|
],
|
|
3606
3607
|
headerParameters: [accept],
|
|
3607
|
-
serializer: serializer$
|
|
3608
|
+
serializer: serializer$2,
|
|
3608
3609
|
};
|
|
3609
3610
|
|
|
3610
3611
|
/*
|
|
@@ -3637,7 +3638,7 @@ class SolutionSelfHelpImpl {
|
|
|
3637
3638
|
}
|
|
3638
3639
|
}
|
|
3639
3640
|
// Operation Specifications
|
|
3640
|
-
const serializer$
|
|
3641
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3641
3642
|
const getOperationSpec = {
|
|
3642
3643
|
path: "/providers/Microsoft.Help/selfHelp/{solutionId}",
|
|
3643
3644
|
httpMethod: "GET",
|
|
@@ -3652,7 +3653,7 @@ const getOperationSpec = {
|
|
|
3652
3653
|
queryParameters: [apiVersion],
|
|
3653
3654
|
urlParameters: [$host, solutionId],
|
|
3654
3655
|
headerParameters: [accept],
|
|
3655
|
-
serializer: serializer$
|
|
3656
|
+
serializer: serializer$1,
|
|
3656
3657
|
};
|
|
3657
3658
|
|
|
3658
3659
|
/*
|
|
@@ -3662,10 +3663,10 @@ const getOperationSpec = {
|
|
|
3662
3663
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3663
3664
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3664
3665
|
*/
|
|
3665
|
-
/** Class containing
|
|
3666
|
-
class
|
|
3666
|
+
/** Class containing DiscoverySolutionNLP operations. */
|
|
3667
|
+
class DiscoverySolutionNLPImpl {
|
|
3667
3668
|
/**
|
|
3668
|
-
* Initialize a new instance of the class
|
|
3669
|
+
* Initialize a new instance of the class DiscoverySolutionNLP class.
|
|
3669
3670
|
* @param client Reference to the service client
|
|
3670
3671
|
*/
|
|
3671
3672
|
constructor(client) {
|
|
@@ -3676,13 +3677,22 @@ class DiscoverySolutionNLPTenantScopeImpl {
|
|
|
3676
3677
|
* summary.
|
|
3677
3678
|
* @param options The options parameters.
|
|
3678
3679
|
*/
|
|
3679
|
-
|
|
3680
|
-
return this.client.sendOperationRequest({ options },
|
|
3680
|
+
discoverSolutions(options) {
|
|
3681
|
+
return this.client.sendOperationRequest({ options }, discoverSolutionsOperationSpec);
|
|
3682
|
+
}
|
|
3683
|
+
/**
|
|
3684
|
+
* Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
|
|
3685
|
+
* summary and subscription.
|
|
3686
|
+
* @param subscriptionId The Azure subscription ID.
|
|
3687
|
+
* @param options The options parameters.
|
|
3688
|
+
*/
|
|
3689
|
+
discoverSolutionsBySubscription(subscriptionId, options) {
|
|
3690
|
+
return this.client.sendOperationRequest({ subscriptionId, options }, discoverSolutionsBySubscriptionOperationSpec);
|
|
3681
3691
|
}
|
|
3682
3692
|
}
|
|
3683
3693
|
// Operation Specifications
|
|
3684
|
-
const serializer
|
|
3685
|
-
const
|
|
3694
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3695
|
+
const discoverSolutionsOperationSpec = {
|
|
3686
3696
|
path: "/providers/Microsoft.Help/discoverSolutions",
|
|
3687
3697
|
httpMethod: "POST",
|
|
3688
3698
|
responses: {
|
|
@@ -3698,37 +3708,9 @@ const postOperationSpec$1 = {
|
|
|
3698
3708
|
urlParameters: [$host],
|
|
3699
3709
|
headerParameters: [accept, contentType],
|
|
3700
3710
|
mediaType: "json",
|
|
3701
|
-
serializer
|
|
3711
|
+
serializer,
|
|
3702
3712
|
};
|
|
3703
|
-
|
|
3704
|
-
/*
|
|
3705
|
-
* Copyright (c) Microsoft Corporation.
|
|
3706
|
-
* Licensed under the MIT License.
|
|
3707
|
-
*
|
|
3708
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3709
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3710
|
-
*/
|
|
3711
|
-
/** Class containing DiscoverySolutionNLPSubscriptionScope operations. */
|
|
3712
|
-
class DiscoverySolutionNLPSubscriptionScopeImpl {
|
|
3713
|
-
/**
|
|
3714
|
-
* Initialize a new instance of the class DiscoverySolutionNLPSubscriptionScope class.
|
|
3715
|
-
* @param client Reference to the service client
|
|
3716
|
-
*/
|
|
3717
|
-
constructor(client) {
|
|
3718
|
-
this.client = client;
|
|
3719
|
-
}
|
|
3720
|
-
/**
|
|
3721
|
-
* Search for relevant Azure Diagnostics, Solutions and Troubleshooters using a natural language issue
|
|
3722
|
-
* summary and subscription.
|
|
3723
|
-
* @param options The options parameters.
|
|
3724
|
-
*/
|
|
3725
|
-
post(options) {
|
|
3726
|
-
return this.client.sendOperationRequest({ options }, postOperationSpec);
|
|
3727
|
-
}
|
|
3728
|
-
}
|
|
3729
|
-
// Operation Specifications
|
|
3730
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
3731
|
-
const postOperationSpec = {
|
|
3713
|
+
const discoverSolutionsBySubscriptionOperationSpec = {
|
|
3732
3714
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Help/discoverSolutions",
|
|
3733
3715
|
httpMethod: "POST",
|
|
3734
3716
|
responses: {
|
|
@@ -3755,18 +3737,16 @@ const postOperationSpec = {
|
|
|
3755
3737
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3756
3738
|
*/
|
|
3757
3739
|
class HelpRP extends coreClient__namespace.ServiceClient {
|
|
3758
|
-
|
|
3740
|
+
/**
|
|
3741
|
+
* Initializes a new instance of the HelpRP class.
|
|
3742
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
3743
|
+
* @param options The parameter options
|
|
3744
|
+
*/
|
|
3745
|
+
constructor(credentials, options) {
|
|
3759
3746
|
var _a, _b, _c;
|
|
3760
3747
|
if (credentials === undefined) {
|
|
3761
3748
|
throw new Error("'credentials' cannot be null");
|
|
3762
3749
|
}
|
|
3763
|
-
let subscriptionId;
|
|
3764
|
-
if (typeof subscriptionIdOrOptions === "string") {
|
|
3765
|
-
subscriptionId = subscriptionIdOrOptions;
|
|
3766
|
-
}
|
|
3767
|
-
else if (typeof subscriptionIdOrOptions === "object") {
|
|
3768
|
-
options = subscriptionIdOrOptions;
|
|
3769
|
-
}
|
|
3770
3750
|
// Initializing default values for options
|
|
3771
3751
|
if (!options) {
|
|
3772
3752
|
options = {};
|
|
@@ -3775,7 +3755,7 @@ class HelpRP extends coreClient__namespace.ServiceClient {
|
|
|
3775
3755
|
requestContentType: "application/json; charset=utf-8",
|
|
3776
3756
|
credential: credentials,
|
|
3777
3757
|
};
|
|
3778
|
-
const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.
|
|
3758
|
+
const packageDetails = `azsdk-js-arm-selfhelp/2.0.0-beta.5`;
|
|
3779
3759
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3780
3760
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3781
3761
|
: `${packageDetails}`;
|
|
@@ -3804,8 +3784,6 @@ class HelpRP extends coreClient__namespace.ServiceClient {
|
|
|
3804
3784
|
},
|
|
3805
3785
|
}));
|
|
3806
3786
|
}
|
|
3807
|
-
// Parameter assignments
|
|
3808
|
-
this.subscriptionId = subscriptionId;
|
|
3809
3787
|
// Assigning values to Constant parameters
|
|
3810
3788
|
this.$host = options.$host || "https://management.azure.com";
|
|
3811
3789
|
this.apiVersion = options.apiVersion || "2024-03-01-preview";
|
|
@@ -3817,10 +3795,7 @@ class HelpRP extends coreClient__namespace.ServiceClient {
|
|
|
3817
3795
|
this.simplifiedSolutions = new SimplifiedSolutionsImpl(this);
|
|
3818
3796
|
this.troubleshooters = new TroubleshootersImpl(this);
|
|
3819
3797
|
this.solutionSelfHelp = new SolutionSelfHelpImpl(this);
|
|
3820
|
-
this.
|
|
3821
|
-
new DiscoverySolutionNLPTenantScopeImpl(this);
|
|
3822
|
-
this.discoverySolutionNLPSubscriptionScope =
|
|
3823
|
-
new DiscoverySolutionNLPSubscriptionScopeImpl(this);
|
|
3798
|
+
this.discoverySolutionNLP = new DiscoverySolutionNLPImpl(this);
|
|
3824
3799
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
3825
3800
|
}
|
|
3826
3801
|
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|