AzureDevOpsDscNative.AzDoRepositorySettings.dsc.adaptedResource.json

{
  "$schema": "https://aka.ms/dsc/schemas/v3/bundled/adaptedresource/manifest.json",
  "type": "AzureDevOpsDscNative/AzDoRepositorySettings",
  "kind": "resource",
  "version": "1.1.0",
  "capabilities": [
    "set",
    "test",
    "get"
  ],
  "description": "DSC resource for managing per-repository settings (singleton).",
  "author": "ZanattaMichael",
  "requireAdapter": "Microsoft.Adapter/PowerShell",
  "path": "AzureDevOpsDscNative.psd1",
  "schema": {
    "embedded": {
      "additionalProperties": false,
      "type": "object",
      "description": "DSC resource for managing per-repository settings (singleton).",
      "title": "AzureDevOpsDscNative/AzDoRepositorySettings",
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "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 name of the Azure DevOps project. This property is mandatory and serves as a key property for the resource. It cannot be changed after creation."
        },
        "RepositoryName": {
          "type": "string",
          "title": "RepositoryName",
          "description": "The name of the Git repository. This is a key property. It cannot be changed after creation."
        },
        "DefaultBranch": {
          "type": "string",
          "title": "DefaultBranch",
          "description": "The default branch name for the repository. Defaults to main."
        },
        "AllowSquashMerge": {
          "type": "boolean",
          "title": "AllowSquashMerge",
          "description": "Whether squash merges are allowed for pull requests. Defaults to $true."
        },
        "AllowRebaseMerge": {
          "type": "boolean",
          "title": "AllowRebaseMerge",
          "description": "Whether rebase merges are allowed for pull requests. Defaults to $true."
        },
        "AllowNoFastForward": {
          "type": "boolean",
          "title": "AllowNoFastForward",
          "description": "Whether regular (no-fast-forward) merges are allowed for pull requests. Defaults to $true."
        },
        "DisableForking": {
          "type": "boolean",
          "title": "DisableForking",
          "description": "Whether forking the repository is disabled. Defaults to $false."
        }
      },
      "required": [
        "ProjectName",
        "RepositoryName"
      ]
    }
  }
}