{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "bucketName": {
          "type": "string"
        },
        "managePolicy": {
          "default": true,
          "type": "boolean"
        },
        "objectLock": {
          "properties": {
            "days": {
              "format": "int32",
              "type": "integer"
            },
            "enabled": {
              "type": "boolean"
            },
            "mode": {
              "enum": [
                "GOVERNANCE",
                "COMPLIANCE"
              ],
              "type": "string"
            },
            "years": {
              "format": "int32",
              "type": "integer"
            }
          },
          "required": [
            "enabled"
          ],
          "type": "object"
        },
        "ownerRef": {
          "type": "string"
        },
        "placementTarget": {
          "type": "string"
        },
        "purgeOnDelete": {
          "type": "boolean"
        },
        "quota": {
          "properties": {
            "enabled": {
              "default": true,
              "type": "boolean"
            },
            "maxObjects": {
              "format": "int64",
              "type": "integer"
            },
            "maxSizeBytes": {
              "format": "int64",
              "type": "integer"
            }
          },
          "type": "object"
        },
        "retainOnDelete": {
          "type": "boolean"
        },
        "tags": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "versioning": {
          "type": "boolean"
        },
        "zonegroup": {
          "type": "string"
        }
      },
      "required": [
        "ownerRef"
      ],
      "type": "object"
    },
    "status": {
      "properties": {
        "adopted": {
          "type": "boolean"
        },
        "bucketID": {
          "type": "string"
        },
        "bucketName": {
          "type": "string"
        },
        "conditions": {
          "items": {
            "properties": {
              "lastTransitionTime": {
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "maxLength": 32768,
                "type": "string"
              },
              "observedGeneration": {
                "format": "int64",
                "minimum": 0,
                "type": "integer"
              },
              "reason": {
                "maxLength": 1024,
                "minLength": 1,
                "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
                "type": "string"
              },
              "status": {
                "enum": [
                  "True",
                  "False",
                  "Unknown"
                ],
                "type": "string"
              },
              "type": {
                "maxLength": 316,
                "pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
                "type": "string"
              }
            },
            "required": [
              "lastTransitionTime",
              "message",
              "reason",
              "status",
              "type"
            ],
            "type": "object"
          },
          "type": "array",
          "x-kubernetes-list-map-keys": [
            "type"
          ],
          "x-kubernetes-list-type": "map"
        },
        "observedGeneration": {
          "format": "int64",
          "type": "integer"
        },
        "owner": {
          "type": "string"
        },
        "phase": {
          "type": "string"
        },
        "policyPrincipals": {
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    }
  },
  "type": "object"
}
