Skip to content

Commit b69d13e

Browse files
[AnomalyDetector] Fix for SDK clients due to associative arrays (#23664)
* do not generate convenient api for univariate entire detect op * clean up client.tsp * Update tspconfig.yaml Added options for ts emitter java emitter. --------- Co-authored-by: Ray Chen <raychen@microsoft.com>
1 parent c03cc8f commit b69d13e

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

specification/cognitiveservices/AnomalyDetector/client.tsp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,4 @@ import "./main.tsp";
33

44
using Azure.ClientGenerator.Core;
55

6-
@@convenientAPI(AnomalyDetector.Multivariate.GetMultivariateBatchDetectionResult, true)
7-
@@convenientAPI(AnomalyDetector.Multivariate.TrainMultivariateModel, true)
8-
@@convenientAPI(AnomalyDetector.Multivariate.ListMultivariateModels, true)
9-
@@convenientAPI(AnomalyDetector.Multivariate.DeleteMultivariateModel, true)
10-
@@convenientAPI(AnomalyDetector.Multivariate.GetMultivariateModel, true)
11-
@@convenientAPI(AnomalyDetector.Multivariate.DetectMultivariateBatchAnomaly, true)
12-
@@convenientAPI(AnomalyDetector.Multivariate.DetectMultivariateLastAnomaly, true)
13-
14-
@@convenientAPI(AnomalyDetector.Univariate.DetectUnivariateEntireSeries, true)
15-
@@convenientAPI(AnomalyDetector.Univariate.DetectUnivariateLastPoint, true)
16-
@@convenientAPI(AnomalyDetector.Univariate.DetectUnivariateChangePoint, true)
6+
@@convenientAPI(AnomalyDetector.Univariate.DetectUnivariateEntireSeries, false)

specification/cognitiveservices/AnomalyDetector/tspconfig.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
parameters:
22
"python-sdk-folder":
33
default: "{project-root}/azure-sdk-for-python/"
4+
"java-sdk-folder":
5+
default: "{project-root}/azure-sdk-for-java/"
6+
"js-sdk-folder":
7+
default: "{project-root}/azure-sdk-for-js/"
8+
"csharp-sdk-folder":
9+
default: "{project-root}/azure-sdk-for-net/"
410
"service-directory-name":
511
default: "anomalydetector"
612
emit: [
@@ -22,9 +28,16 @@ options:
2228
"@azure-tools/typespec-java":
2329
namespace: com.azure.ai.anomalydetector
2430
partial-update: true
31+
emitter-output-dir: "{java-sdk-folder}/sdk/{service-directory-name}/azure-ai-anomalydetector"
2532
# Uncomment this line and add "@azure-tools/typespec-csharp" to your package.json to generate C# code
2633
"@azure-tools/typespec-csharp":
2734
save-inputs: false
2835
clear-output-folder: true
2936
namespace: Azure.AI.AnomalyDetector
3037
model-namespace: false
38+
"@azure-tools/typespec-ts":
39+
emitter-output-dir: "{js-sdk-folder}/sdk/{service-directory-name}/ai-anomaly-detector-rest"
40+
generateMetadata: true
41+
generateTest: true
42+
packageDetails:
43+
name: "@azure-rest/ai-anomaly-detector"

0 commit comments

Comments
 (0)