{
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "contextRef": {
          "properties": {
            "kind": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "namespace": {
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "id": {
          "type": "string"
        },
        "members": {
          "items": {
            "properties": {
              "roles": {
                "additionalProperties": {
                  "type": "string"
                },
                "default": {},
                "type": "object"
              },
              "source": {
                "description": "Member source",
                "example": "gravitee",
                "type": "string"
              },
              "sourceId": {
                "description": "Member source ID",
                "example": "user@email.com",
                "type": "string"
              }
            },
            "required": [
              "source",
              "sourceId"
            ],
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "name": {
          "type": "string"
        },
        "notifyMembers": {
          "default": true,
          "description": "If true, new members added to the API spec will\nbe notified when the API is synced with APIM.",
          "type": "boolean"
        }
      },
      "required": [
        "members",
        "name"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "properties": {
        "conditions": {
          "default": [],
          "description": "Conditions describe the current conditions of the Group.",
          "items": {
            "description": "Condition contains details for one aspect of the current state of this API Resource.",
            "properties": {
              "lastTransitionTime": {
                "description": "lastTransitionTime is the last time the condition transitioned from one status to another.",
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "description": "message is a human readable message indicating details about the transition.",
                "maxLength": 32768,
                "type": "string"
              },
              "observedGeneration": {
                "description": "observedGeneration represents the .metadata.generation that the condition was set based upon.",
                "format": "int64",
                "minimum": 0,
                "type": "integer"
              },
              "reason": {
                "description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.",
                "maxLength": 1024,
                "minLength": 1,
                "pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
                "type": "string"
              },
              "status": {
                "description": "status of the condition, one of True, False, Unknown.",
                "enum": [
                  "True",
                  "False",
                  "Unknown"
                ],
                "type": "string"
              },
              "type": {
                "description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
                "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",
            "additionalProperties": false
          },
          "maxItems": 8,
          "type": "array",
          "x-kubernetes-list-map-keys": [
            "type"
          ],
          "x-kubernetes-list-type": "map"
        },
        "environmentId": {
          "description": "The environment ID defined in the management context",
          "type": "string"
        },
        "errors": {
          "description": "When group has been created regardless of errors, this field is\nused to persist the error message...",
          "properties": {
            "severe": {
              "description": "severe errors do not pass admission and will block reconcile\nhence, this field should always be...",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "warning": {
              "description": "warning errors do not block object reconciliation,\nmost of the time because the value is ignored or...",
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "id": {
          "description": "The ID of the Group in the Gravitee API Management instance",
          "type": "string"
        },
        "members": {
          "description": "The number of members added to this group",
          "type": "integer"
        },
        "organizationId": {
          "description": "The organization ID defined in the management context",
          "type": "string"
        },
        "processingStatus": {
          "description": "The processing status of the Group. *** DEPRECATED ***",
          "type": "string"
        }
      },
      "required": [
        "members"
      ],
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
