{
  "description": "DatabaseClusterRestore is the Schema for the databaseclusterrestores 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": "DatabaseClusterRestoreSpec defines the desired state of DatabaseClusterRestore.",
      "properties": {
        "dataSource": {
          "description": "DataSource defines a data source for restoration.",
          "properties": {
            "backupSource": {
              "description": "BackupSource is the backup source to restore from.\nShall be set either this field or DBClusterBackupName.",
              "properties": {
                "backupStorageName": {
                  "description": "BackupStorageName is the name of the BackupStorage used for storing backups.\nThe BackupStorage must be created in the same namespace as the DatabaseCluster.",
                  "type": "string"
                },
                "path": {
                  "description": "Path is the path to the backup file/directory.",
                  "type": "string"
                }
              },
              "required": [
                "backupStorageName",
                "path"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "dbClusterBackupName": {
              "description": "DBClusterBackupName is the name of the DB cluster backup to restore from.\nShall be set either this field or BackupSource.",
              "type": "string"
            },
            "pitr": {
              "description": "PITR is the point-in-time recovery configuration.\nMay be set in addition to DBClusterBackupName or BackupSource to perform PITR restore.",
              "properties": {
                "date": {
                  "description": "Date is the UTC date to recover to. The accepted format: \"2006-01-02T15:04:05Z\".",
                  "type": "string"
                },
                "type": {
                  "default": "date",
                  "description": "Type is the type of recovery.",
                  "enum": [
                    "date",
                    "latest"
                  ],
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "dbClusterName": {
          "description": "DBClusterName defines the target database cluster name that needs to be restored from backup.",
          "type": "string"
        }
      },
      "required": [
        "dataSource",
        "dbClusterName"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "DatabaseClusterRestoreStatus defines the observed state of DatabaseClusterRestore.",
      "properties": {
        "completed": {
          "format": "date-time",
          "type": "string"
        },
        "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"
        },
        "message": {
          "type": "string"
        },
        "state": {
          "description": "RestoreState represents state of restoration.",
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
