{
  "description": "KeycloakRealmRoleBatch is the Schema for the keycloak roles 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": "KeycloakRealmRoleBatchSpec defines the desired state of KeycloakRealmRoleBatch.",
      "properties": {
        "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
        },
        "roles": {
          "description": "Roles is a list of roles to be created.",
          "items": {
            "properties": {
              "attributes": {
                "additionalProperties": {
                  "items": {
                    "type": "string"
                  },
                  "type": "array"
                },
                "description": "Attributes is a map of role attributes.",
                "nullable": true,
                "type": "object"
              },
              "composite": {
                "description": "Composite is a flag if role is composite.",
                "type": "boolean"
              },
              "composites": {
                "description": "Composites is a list of composites roles assigned to role.",
                "items": {
                  "properties": {
                    "name": {
                      "description": "Name is a name of composite role.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "name"
                  ],
                  "type": "object",
                  "additionalProperties": false
                },
                "nullable": true,
                "type": "array"
              },
              "description": {
                "description": "Description is a role description.",
                "type": "string"
              },
              "isDefault": {
                "description": "IsDefault is a flag if role is default.",
                "type": "boolean"
              },
              "name": {
                "description": "Name of keycloak role.",
                "type": "string"
              }
            },
            "required": [
              "name"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        }
      },
      "required": [
        "realmRef",
        "roles"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "KeycloakRealmRoleBatchStatus defines the observed state of KeycloakRealmRoleBatch.",
      "properties": {
        "failureCount": {
          "format": "int64",
          "type": "integer"
        },
        "value": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
