parameters:
  "service-dir":
    default: "sdk/appcomplianceautomation"
  "dependencies":
    "additionalDirectories": []
    default: ""
emit:
  - "@azure-tools/typespec-autorest"
options:
  "@azure-tools/typespec-autorest":
    use-read-only-status-schema: 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}/{version-status}/{version}/appcomplianceautomation.json"
  "@azure-tools/typespec-ts":
    azureSdkForJs: true
    isModularLibrary: true
    generateMetadata: true
    hierarchyClient: false
    experimentalExtensibleEnums: true
    enableOperationGroup: true
    flavor: azure
    package-dir: "arm-appcomplianceautomation"
    packageDetails:
      name: "@azure/arm-appcomplianceautomation"
  "@azure-tools/typespec-python":
    package-dir: "azure-mgmt-appcomplianceautomation"
    package-name: "{package-dir}"
    flavor: "azure"
    generate-test: true
    generate-sample: true
  # "@azure-tools/typespec-java":
  #   flavor: azure
  #   package-dir: "azure-resourcemanager-appcomplianceautomation"
  #   namespace: "com.azure.resourcemanager.appcomplianceautomation"
  #   service-name: "App Compliance Automation"
  #   examples-directory: "{project-root}/examples"
  "@azure-tools/typespec-powershell":
    service-dir: "src"
    package-dir: "AppComplianceAutomation/AppComplianceAutomation.Autorest"
    clear-output-folder: true
    # azure: true
    module-version: 0.1.0
    # skip-model-cmdlets: false
    # help-link-prefix: https://learn.microsoft.com/powershell/module/
    metadata:
      authors: Microsoft Corporation
      owners: Microsoft Corporation
      description: 'Microsoft Azure PowerShell: AppComplianceAutomation cmdlets'
      copyright: Microsoft Corporation. All rights reserved.
      tags: Azure ResourceManager ARM PSModule Sphere
      companyName: Microsoft Corporation
      requireLicenseAcceptance: true
      licenseUri: https://aka.ms/azps-license
      projectUri: https://github.com/Azure/azure-powershell
    prefix: 'Az'
    subject-prefix: 'AppComplianceAutomation'
    service-name: AppComplianceAutomation
    module-name: "{prefix}.{service-name}"
    # namespace: "Microsoft.Azure.PowerShell.Cmdlets.{service-name}"
    # use-namespace-folders: false
    # 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"
