AzureDevOpsDscNative.AzDoBranchPolicy.dsc.adaptedResource.json

{
  "$schema": "https://aka.ms/dsc/schemas/v3/bundled/adaptedresource/manifest.json",
  "type": "AzureDevOpsDscNative/AzDoBranchPolicy",
  "kind": "resource",
  "version": "1.0.0",
  "capabilities": [
    "set",
    "test",
    "get"
  ],
  "description": "DSC resource for managing Azure DevOps branch policies.",
  "author": "ZanattaMichael",
  "requireAdapter": "Microsoft.Adapter/PowerShell",
  "path": "AzureDevOpsDscNative.psd1",
  "schema": {
    "embedded": {
      "required": [
        "ProjectName",
        "RepositoryName",
        "BranchName",
        "PolicyType"
      ],
      "title": "AzureDevOpsDscNative/AzDoBranchPolicy",
      "properties": {
        "Ensure": {
          "type": "string",
          "enum": [
            "Present",
            "Absent"
          ],
          "title": "Ensure",
          "description": "The Ensure property."
        },
        "LookupResult": {
          "type": "object",
          "title": "LookupResult",
          "readOnly": true,
          "description": "The LookupResult property."
        },
        "ProjectName": {
          "type": "string",
          "title": "ProjectName",
          "description": "The Azure DevOps project name."
        },
        "RepositoryName": {
          "type": "string",
          "title": "RepositoryName",
          "description": "The Git repository name."
        },
        "BranchName": {
          "type": "string",
          "title": "BranchName",
          "description": "The branch ref name (e.g. 'refs/heads/main')."
        },
        "PolicyType": {
          "type": "string",
          "title": "PolicyType",
          "description": "The policy type display name (e.g. 'MinimumReviewerCount')."
        },
        "isEnabled": {
          "type": "boolean",
          "title": "isEnabled",
          "description": "Whether the policy is enabled. Default is $true."
        },
        "isBlocking": {
          "type": "boolean",
          "title": "isBlocking",
          "description": "Whether the policy is blocking. Default is $true."
        },
        "PolicySettings": {
          "type": "object",
          "title": "PolicySettings",
          "description": "Policy-type-specific settings hashtable."
        }
      },
      "description": "DSC resource for managing Azure DevOps branch policies.",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "type": "object"
    }
  }
}