{
  "description": "BackupStorage is the Schema for the backupstorages 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": "BackupStorageSpec defines the desired state of BackupStorage.",
      "properties": {
        "allowedNamespaces": {
          "description": "AllowedNamespaces is the list of namespaces where the operator will copy secrets provided in the CredentialsSecretsName.\n\nDeprecated: BackupStorages are now used only in the namespaces where they are created.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "bucket": {
          "description": "Bucket is a name of bucket.",
          "type": "string"
        },
        "credentialsSecretName": {
          "description": "CredentialsSecretName is the name of the secret with credentials.",
          "type": "string"
        },
        "description": {
          "description": "Description stores description of a backup storage.",
          "type": "string"
        },
        "endpointURL": {
          "description": "EndpointURL is an endpoint URL of backup storage.",
          "type": "string"
        },
        "forcePathStyle": {
          "default": false,
          "description": "ForcePathStyle is set to use path-style URLs.\nIf unspecified, the default value is false.",
          "type": "boolean"
        },
        "region": {
          "description": "Region is a region where the bucket is located.",
          "type": "string"
        },
        "type": {
          "description": "Type is a type of backup storage.",
          "enum": [
            "s3",
            "azure"
          ],
          "type": "string"
        },
        "verifyTLS": {
          "default": true,
          "description": "VerifyTLS is set to ensure TLS/SSL verification.\nIf unspecified, the default value is true.",
          "type": "boolean"
        }
      },
      "required": [
        "bucket",
        "credentialsSecretName",
        "type"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "default": {
        "inUse": false
      },
      "description": "BackupStorageStatus defines the observed state of BackupStorage.",
      "properties": {
        "inUse": {
          "default": false,
          "description": "InUse is a flag that indicates if any DB cluster uses the backup storage.",
          "type": "boolean"
        },
        "lastObservedGeneration": {
          "description": "LastObservedGeneration is the most recent generation observed for this BackupStorage.",
          "format": "int64",
          "type": "integer"
        },
        "usedNamespaces": {
          "additionalProperties": {
            "type": "boolean"
          },
          "description": "Deprecated: BackupStorages are now used only in the namespaces where they are created.",
          "type": "object"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
