{
  "description": "KeycloakClientScope is the Schema for the keycloakclientscopes 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": "KeycloakClientScopeSpec defines the desired state of KeycloakClientScope.",
      "properties": {
        "attributes": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Attributes is a map of client scope attributes.",
          "nullable": true,
          "type": "object"
        },
        "default": {
          "description": "Default is a flag to set client scope as default.",
          "type": "boolean"
        },
        "description": {
          "description": "Description is a description of client scope.",
          "type": "string"
        },
        "name": {
          "description": "Name of keycloak client scope.",
          "type": "string"
        },
        "protocol": {
          "description": "Protocol is SSO protocol configuration which is being supplied by this client scope.",
          "type": "string"
        },
        "protocolMappers": {
          "description": "ProtocolMappers is a list of protocol mappers assigned to client scope.",
          "items": {
            "properties": {
              "config": {
                "additionalProperties": {
                  "type": "string"
                },
                "description": "Config is a map of protocol mapper configuration.",
                "nullable": true,
                "type": "object"
              },
              "name": {
                "description": "Name is a protocol mapper name.",
                "type": "string"
              },
              "protocol": {
                "description": "Protocol is a protocol name.",
                "type": "string"
              },
              "protocolMapper": {
                "description": "ProtocolMapper is a protocol mapper name.",
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "nullable": true,
          "type": "array"
        },
        "realmRef": {
          "description": "RealmRef is reference to Realm custom resource.",
          "properties": {
            "kind": {
              "default": "KeycloakRealm",
              "description": "Kind specifies the kind of the Keycloak resource.",
              "enum": [
                "KeycloakRealm",
                "ClusterKeycloakRealm"
              ],
              "type": "string"
            },
            "name": {
              "description": "Name specifies the name of the Keycloak resource.",
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "name",
        "protocol",
        "realmRef"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "KeycloakClientScopeStatus defines the observed state of KeycloakClientScope.",
      "properties": {
        "failureCount": {
          "format": "int64",
          "type": "integer"
        },
        "id": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
