{
  "description": "PerconaPGRestore is the CRD that defines a Percona PostgreSQL Restore",
  "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": {
        "options": {
          "description": "Command line options to include when running the pgBackRest restore command. https://pgbackrest.org/command.html#command-restore",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "pgCluster": {
          "description": "The name of the PerconaPGCluster to perform restore.",
          "type": "string"
        },
        "repoName": {
          "description": "The name of the pgBackRest repo within the source PostgresCluster that contains the backups that should be utilized to perform a pgBackRest restore when initializing the data source for the new PostgresCluster.",
          "pattern": "^repo[1-4]",
          "type": "string"
        }
      },
      "required": [
        "pgCluster",
        "repoName"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "properties": {
        "completed": {
          "format": "date-time",
          "type": "string"
        },
        "jobName": {
          "type": "string"
        },
        "state": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "metadata",
    "spec"
  ],
  "type": "object"
}
