chocolatey.ChocolateySetting.dsc.adaptedResource.json

{
  "$schema": "https://aka.ms/dsc/schemas/v3/bundled/adaptedresource/manifest.json",
  "type": "chocolatey/ChocolateySetting",
  "kind": "resource",
  "version": "0.11.0",
  "capabilities": [
    "get",
    "test",
    "set"
  ],
  "description": "The `ChocolateySetting` DSC resource is used to set or unset Settings.",
  "author": "Gael Colas",
  "requireAdapter": "Microsoft.Adapter/PowerShell",
  "path": "chocolatey.psd1",
  "schema": {
    "embedded": {
      "type": "object",
      "title": "chocolatey/ChocolateySetting",
      "description": "The `ChocolateySetting` DSC resource is used to set or unset Settings.",
      "additionalProperties": false,
      "properties": {
        "Ensure": {
          "type": "string",
          "enum": [
            "Absent",
            "Present"
          ],
          "title": "Ensure",
          "description": "Indicate whether the Chocolatey Setting should be enabled or disabled on the system."
        },
        "Name": {
          "type": "string",
          "title": "Name",
          "description": "Name - the name of the Setting."
        },
        "Value": {
          "type": "string",
          "title": "Value",
          "description": "Value - the value of the Setting, if ensure is set to present. When Ensure is absent, the setting's value is cleared."
        },
        "Reasons": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Reasons",
          "readOnly": true,
          "description": "The Reasons property."
        }
      },
      "required": [
        "Name"
      ],
      "$schema": "https://json-schema.org/draft/2020-12/schema"
    }
  }
}