{
  "description": "GrafanaFolder is the Schema for the grafana folders and folderpermissions API",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "permissions": {
          "description": "FolderPermissions shall contain the _complete_ permissions for the folder. Any permission not listed here, will be removed from the folder.",
          "items": {
            "properties": {
              "permissionLevel": {
                "type": "integer"
              },
              "permissionTarget": {
                "type": "string"
              },
              "permissionTargetType": {
                "type": "string"
              }
            },
            "required": [
              "permissionLevel",
              "permissionTarget",
              "permissionTargetType"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "title": {
          "description": "FolderName is the display-name of the folder and must match CustomFolderName of any GrafanaDashboard you want to put in",
          "type": "string"
        }
      },
      "required": [
        "title"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
