{
  "type": "panel",
  "label": "Google Drive",
  "items": {
    "_checkConfig": {
      // this component is not visible in the UI
      // it checks the configuration
      "type": "custom",
      "i18n": true,
      "url": "custom/customComponents.js",
      "name": "ConfigCustomBackItUpSet/Components/CheckAllConfigInvisible"
    },
    "_header": {
      "type": "header",
      "size": 2,
      "text": "Google Drive",
      "sm": 12,
    },
    "_googleDrive": {
      "newLine": true,
      "type": "custom",
      "i18n": true,
      "url": "custom/customComponents.js",
      "name": "ConfigCustomBackItUpSet/Components/GoogleDrive",
      "value": false,
      "xs": 12,
      "sm": 12,
      "md": 12,
      "lg": 12,
    },
    "googledriveDeleteOldBackup": {
      "type": "checkbox",
      "label": "Delete old Google Drive-Backups",
      "xs": 12,
      "sm": 9,
      "md": 6,
      "lg": 4,
      "newLine": true
    },
    "googledriveOwnDir": {
      "type": "checkbox",
      "label": "Extra path for backup types",
      "xs": 12,
      "sm": 9,
      "md": 6,
      "lg": 4,
    },
    "googledriveDeleteAfter": {
      "newLine": true,
      "hidden": "!data.googledriveDeleteOldBackup || !data.advancedDelete",
      "xs": 12,
      "sm": 9,
      "md": 6,
      "lg": 4,
      "min": 1,
      "max": 100,
      "type": "number",
      "label": "piece",
      "help": "Delete old ioBroker backups with the exception of the last X pieces"
    },
    "googledriveMinimalDir": {
      "hidden": "!data.googledriveOwnDir",
      "xs": 12,
      "sm": 9,
      "md": 6,
      "lg": 4,
      "type": "text",
      "label": "Google Drive Path for ioBroker backup",
      "newLine": true
    },
    "googledriveCcuDir": {
      "hidden": "!data.googledriveOwnDir",
      "xs": 12,
      "sm": 9,
      "md": 6,
      "lg": 4,
      "type": "text",
      "label": "Google Drive Path for CCU backup",
    },
    "googledriveDir": {
      "hidden": "data.googledriveOwnDir",
      "xs": 12,
      "sm": 9,
      "md": 6,
      "lg": 4,
      "type": "text",
      "label": "Google Drive path",
      "newLine": true
    },
  }
}
