{
  "description": "DbInstance is the Schema for the dbinstances 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": "DbInstanceSpec defines the desired state of DbInstance",
      "properties": {
        "adminSecretRef": {
          "description": "NamespacedName is a fork of the kubernetes api type of the same name.\nSadly this is required because CRD structs must have all fields json tagged and the kubernetes type is not tagged.",
          "properties": {
            "Name": {
              "type": "string"
            },
            "Namespace": {
              "type": "string"
            }
          },
          "required": [
            "Name",
            "Namespace"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "backup": {
          "description": "DbInstanceBackup defines name of google bucket to use for storing database dumps for backup when backup is enabled",
          "properties": {
            "bucket": {
              "type": "string"
            }
          },
          "required": [
            "bucket"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "engine": {
          "description": "Important: Run \"make generate\" to regenerate code after modifying this file",
          "type": "string"
        },
        "generic": {
          "description": "GenericInstance is used when instance type is generic\nand describes necessary informations to use instance\ngeneric instance can be any backend, it must be reachable by described address and port",
          "properties": {
            "backupHost": {
              "description": "BackupHost address will be used for dumping database for backup\nUsually secondary address for primary-secondary setup or cluster lb address\nIf it's not defined, above Host will be used as backup host address.",
              "type": "string"
            },
            "host": {
              "type": "string"
            },
            "port": {
              "type": "integer"
            },
            "publicIp": {
              "type": "string"
            }
          },
          "required": [
            "host",
            "port"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "google": {
          "description": "GoogleInstance is used when instance type is Google Cloud SQL\nand describes necessary informations to use google API to create sql instances",
          "properties": {
            "apiEndpoint": {
              "type": "string"
            },
            "clientSecretRef": {
              "description": "NamespacedName is a fork of the kubernetes api type of the same name.\nSadly this is required because CRD structs must have all fields json tagged and the kubernetes type is not tagged.",
              "properties": {
                "Name": {
                  "type": "string"
                },
                "Namespace": {
                  "type": "string"
                }
              },
              "required": [
                "Name",
                "Namespace"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "configmapRef": {
              "description": "NamespacedName is a fork of the kubernetes api type of the same name.\nSadly this is required because CRD structs must have all fields json tagged and the kubernetes type is not tagged.",
              "properties": {
                "Name": {
                  "type": "string"
                },
                "Namespace": {
                  "type": "string"
                }
              },
              "required": [
                "Name",
                "Namespace"
              ],
              "type": "object",
              "additionalProperties": false
            },
            "instance": {
              "type": "string"
            }
          },
          "required": [
            "configmapRef",
            "instance"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "monitoring": {
          "description": "DbInstanceMonitoring defines if exporter",
          "properties": {
            "enabled": {
              "type": "boolean"
            }
          },
          "required": [
            "enabled"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "sslConnection": {
          "description": "DbInstanceSSLConnection defines weather connection from db-operator to instance has to be ssl or not",
          "properties": {
            "enabled": {
              "type": "boolean"
            },
            "skip-verify": {
              "description": "SkipVerity use SSL connection, but don't check against a CA",
              "type": "boolean"
            }
          },
          "required": [
            "enabled",
            "skip-verify"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "adminSecretRef",
        "engine"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "DbInstanceStatus defines the observed state of DbInstance",
      "properties": {
        "checksums": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "info": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "phase": {
          "description": "Important: Run \"make generate\" to regenerate code after modifying this file",
          "type": "string"
        },
        "status": {
          "type": "boolean"
        }
      },
      "required": [
        "phase",
        "status"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
