parameters:
  "java-sdk-folder":
    default: "{project-root}/azure-sdk-for-java/"
  "js-sdk-folder":
    default: "{project-root}/azure-sdk-for-js/"
  "csharp-sdk-folder":
    default: "{project-root}/azure-sdk-for-net/"
  "service-directory-name":
    default: "anomalydetector"
emit:
  - "@azure-tools/typespec-autorest"
linter:
  extends:
    - "@azure-tools/typespec-azure-rulesets/data-plane"
options:
  "@azure-tools/typespec-autorest":
    azure-resource-provider-folder: "data-plane"
    emit-lro-options: "none"
    omit-unreachable-types: true
    output-file: "{azure-resource-provider-folder}/{service-name}/{version-status}/{version}/openapi.json"
    emitter-output-dir: "{project-root}/../"
  # Uncomment this line and add "@azure-tools/typespec-java" to your package.json to generate Java code
  "@azure-tools/typespec-java":
    namespace: com.azure.ai.anomalydetector
    partial-update: true
    emitter-output-dir: "{java-sdk-folder}/sdk/{service-directory-name}/azure-ai-anomalydetector"
    flavor: azure
  # Uncomment this line and add "@azure-tools/typespec-csharp" to your package.json to generate C# code
  "@azure-tools/typespec-csharp":
    save-inputs: false
    clear-output-folder: true
    namespace: Azure.AI.AnomalyDetector
    model-namespace: false
    flavor: azure
  "@azure-tools/typespec-ts":
    emitter-output-dir: "{js-sdk-folder}/sdk/{service-directory-name}/ai-anomaly-detector-rest"
    generateMetadata: true
    generateTest: true
    packageDetails:
      name: "@azure-rest/ai-anomaly-detector"
    flavor: azure
