parameters:
  "service-dir":
    default: "sdk/workloads"
emit:
  - "@azure-tools/typespec-autorest"
options:
  "@azure-tools/typespec-autorest":
    use-read-only-status-schema: true
    omit-unreachable-types: true
    emitter-output-dir: "{project-root}/.."
    azure-resource-provider-folder: "resource-manager"
    emit-common-types-schema: "never"
    # `arm-resource-flattening` is only used for back-compat for specs existed on July 2024. All new service spec should NOT use this flag
    arm-resource-flattening: true
    output-file: "{azure-resource-provider-folder}/{service-name}/SAPVirtualInstance/{version-status}/{version}/SAPVirtualInstance.json"
  "@azure-tools/typespec-csharp":
    service-dir: "sdk/workloadssapvirtualinstance"
    flavor: azure
    package-dir: "Azure.ResourceManager.SapVirtualInstances"
    clear-output-folder: true
    model-namespace: false
    namespace: "{package-dir}"
  "@azure-tools/typespec-ts":
    azureSdkForJs: true
    isModularLibrary: true
    generateMetadata: true
    hierarchyClient: false
    experimentalExtensibleEnums: true
    enableOperationGroup: true
    package-dir: "arm-workloadssapvirtualinstance"
    flavor: "azure"
    packageDetails:
      name: "@azure/arm-workloadssapvirtualinstance"
  "@azure-tools/typespec-python":
    package-dir: "azure-mgmt-workloadssapvirtualinstance"
    package-name: "{package-dir}"
    flavor: "azure"
    generate-test: true
    generate-sample: true
  "@azure-tools/typespec-java":
    service-dir: "sdk/workloadssapvirtualinstance"
    package-dir: "azure-resourcemanager-workloadssapvirtualinstance"
    namespace: "com.azure.resourcemanager.workloadssapvirtualinstance"
    service-name: "Workloads Sap Virtual Instance"
    flavor: "azure"
  "@azure-tools/typespec-go":
    service-dir: "sdk/resourcemanager/workloadssapvirtualinstance"
    package-dir: "armworkloadssapvirtualinstance"
    module: "github.com/Azure/azure-sdk-for-go/{service-dir}/{package-dir}"
    fix-const-stuttering: true
    flavor: "azure"
    generate-examples: true
    generate-fakes: true
    head-as-boolean: true
    inject-spans: true
  "@azure-tools/typespec-powershell":
    service-dir: "src"
    package-dir: "SAPVirtualInstance/SAPVirtualInstance.Autorest"
    clear-output-folder: true
    remove-lro-headers: false
    module-version: 0.1.0
    prefix: 'Az'
    subject-prefix: 'SAPVirtualInstance'
    service-name: SAPVirtualInstance
    module-name: "{prefix}.{service-name}"
    # output-folder: "{output-dir}"
    exclude-tableview-properties:
      - Id
      - Type
    directive:
      - where:
          subject: Operation
        hide: true
      - where:
          parameter-name: SubscriptionId
        set:
          default:
            script: '(Get-AzContext).Subscription.Id'
      - where:
          variant: ^(Create|Update)(?!.*?Expanded|ViaJsonString|ViaJsonFilePath)
        remove: true
      - where:
          verb: Set
        hide: true
linter:
  extends:
    - "@azure-tools/typespec-azure-rulesets/resource-manager"
