{
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "clustersScopeByIds": {
          "properties": {
            "cmfId": {
              "minLength": 1,
              "type": "string"
            },
            "connectClusterId": {
              "minLength": 1,
              "type": "string"
            },
            "flinkEnvironmentId": {
              "minLength": 1,
              "type": "string"
            },
            "kafkaClusterId": {
              "minLength": 1,
              "type": "string"
            },
            "ksqlClusterId": {
              "minLength": 1,
              "type": "string"
            },
            "schemaRegistryClusterId": {
              "minLength": 1,
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "clustersScopeByRegistryName": {
          "minLength": 1,
          "type": "string"
        },
        "kafkaRestClassRef": {
          "properties": {
            "name": {
              "minLength": 1,
              "type": "string"
            },
            "namespace": {
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "principal": {
          "properties": {
            "name": {
              "minLength": 1,
              "type": "string"
            },
            "type": {
              "enum": [
                "user",
                "group"
              ],
              "type": "string"
            }
          },
          "required": [
            "name",
            "type"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "resourcePatterns": {
          "items": {
            "properties": {
              "name": {
                "minLength": 1,
                "type": "string"
              },
              "patternType": {
                "enum": [
                  "PREFIXED",
                  "LITERAL"
                ],
                "type": "string"
              },
              "resourceType": {
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name",
              "resourceType"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "role": {
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "principal",
        "role"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "properties": {
        "appState": {
          "default": "Unknown",
          "enum": [
            "Unknown",
            "Created",
            "Failed",
            "Deleted"
          ],
          "type": "string"
        },
        "clusterRegistryName": {
          "type": "string"
        },
        "conditions": {
          "items": {
            "properties": {
              "lastProbeTime": {
                "format": "date-time",
                "type": "string"
              },
              "lastTransitionTime": {
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "kafkaCluster": {
          "type": "string"
        },
        "kafkaClusterID": {
          "type": "string"
        },
        "kafkaRestClass": {
          "type": "string"
        },
        "mdsEndpoint": {
          "type": "string"
        },
        "observedGeneration": {
          "format": "int64",
          "type": "integer"
        },
        "principal": {
          "type": "string"
        },
        "resourcePatterns": {
          "items": {
            "properties": {
              "name": {
                "minLength": 1,
                "type": "string"
              },
              "patternType": {
                "enum": [
                  "PREFIXED",
                  "LITERAL"
                ],
                "type": "string"
              },
              "resourceType": {
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "name",
              "resourceType"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "role": {
          "type": "string"
        },
        "state": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "spec"
  ],
  "type": "object"
}
