{
  "description": "DatabaseClusterBackup is the Schema for the databaseclusterbackups API.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore 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.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "DatabaseClusterBackupSpec defines the desired state of DatabaseClusterBackup.",
      "properties": {
        "backupStorageName": {
          "description": "BackupStorageName is the name of the BackupStorage used for backups.\nThe BackupStorage must be created in the same namespace as the DatabaseCluster.",
          "type": "string"
        },
        "dbClusterName": {
          "description": "DBClusterName is the original database cluster name.",
          "type": "string"
        }
      },
      "required": [
        "backupStorageName",
        "dbClusterName"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "DatabaseClusterBackupStatus defines the observed state of DatabaseClusterBackup.",
      "properties": {
        "completed": {
          "description": "Completed is the time when the job was completed.",
          "format": "date-time",
          "type": "string"
        },
        "created": {
          "description": "Created is the timestamp of the upstream backup's creation.",
          "format": "date-time",
          "type": "string"
        },
        "destination": {
          "description": "Destination is the full path to the backup.",
          "type": "string"
        },
        "gaps": {
          "description": "Gaps identifies if there are gaps detected in the PITR logs",
          "type": "boolean"
        },
        "inUse": {
          "default": false,
          "description": "InUse is a flag that indicates if this restore resource is being used to restore DB cluster from backup.",
          "type": "boolean"
        },
        "latestRestorableTime": {
          "description": "LatestRestorableTime is the latest time that can be used for PITR restore",
          "format": "date-time",
          "type": "string"
        },
        "state": {
          "description": "State is the DatabaseBackup state.",
          "type": "string"
        }
      },
      "required": [
        "gaps"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
