{
  "description": "MattermostRestoreDB is the Schema for the mattermostrestoredbs 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",
        "null"
      ]
    },
    "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",
        "null"
      ]
    },
    "metadata": {
      "type": [
        "object",
        "null"
      ]
    },
    "spec": {
      "additionalProperties": false,
      "description": "MattermostRestoreDBSpec defines the desired state of MattermostRestoreDB",
      "properties": {
        "initBucketURL": {
          "description": "InitBucketURL defines where the DB backup file is located.",
          "type": [
            "string",
            "null"
          ]
        },
        "mattermostClusterName": {
          "description": "MattermostClusterName defines the ClusterInstallation name.",
          "type": [
            "string",
            "null"
          ]
        },
        "mattermostDBName": {
          "description": "MattermostDBName defines the database name.\nNeed to set if different from `mattermost`.",
          "type": [
            "string",
            "null"
          ]
        },
        "mattermostDBPassword": {
          "description": "MattermostDBPassword defines the user password to access the database.\nNeed to set if the user is different from the one created by the operator.",
          "type": [
            "string",
            "null"
          ]
        },
        "mattermostDBUser": {
          "description": "MattermostDBUser defines the user to access the database.\nNeed to set if the user is different from `mmuser`.",
          "type": [
            "string",
            "null"
          ]
        },
        "restoreSecret": {
          "description": "RestoreSecret defines the secret that holds the credentials to\nMySQL Operator be able to download the DB backup file",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    },
    "status": {
      "additionalProperties": false,
      "description": "MattermostRestoreDBStatus defines the observed state of MattermostRestoreDB",
      "properties": {
        "originalDBReplicas": {
          "description": "The original number of database replicas. will be used to restore after applying the db restore process.",
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "state": {
          "description": "Represents the state of the Mattermost restore Database.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": [
        "object",
        "null"
      ]
    }
  },
  "type": "object"
}