{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-chaoshubv2-get-hub-response-schema.json",
  "title": "chaoshubv2.GetHubResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-chaos-hubs-api-openapi.yml#/components/schemas/chaoshubv2.GetHubResponse",
  "type": "object",
  "required": [
    "accountID",
    "hubId",
    "identity",
    "isDefault",
    "isRemoved",
    "name"
  ],
  "properties": {
    "accountID": {
      "type": "string"
    },
    "actionTemplateCount": {
      "type": "integer"
    },
    "authType": {
      "description": "TBD check if this details is available in connector details if so deprecate it",
      "allOf": [
        {
          "$ref": "#/$defs/chaos_hub.AuthType"
        }
      ]
    },
    "connectorId": {
      "description": "TBD use ConnectorRef: org.test-connector and deprecate it",
      "type": "string"
    },
    "connectorScope": {
      "description": "TBD use ConnectorRef and deprecate it",
      "allOf": [
        {
          "$ref": "#/$defs/chaos_hub.ConnectorScope"
        }
      ]
    },
    "createdAt": {
      "type": "integer"
    },
    "createdBy": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "experimentTemplateCount": {
      "type": "integer"
    },
    "faultTemplateCount": {
      "type": "integer"
    },
    "hubId": {
      "type": "string"
    },
    "identity": {
      "type": "string"
    },
    "isDefault": {
      "type": "boolean"
    },
    "isRemoved": {
      "type": "boolean"
    },
    "lastSyncedAt": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    },
    "orgID": {
      "type": "string"
    },
    "probeTemplateCount": {
      "type": "integer"
    },
    "projectID": {
      "type": "string"
    },
    "repoBranch": {
      "type": "string"
    },
    "repoName": {
      "type": "string"
    },
    "repoUrl": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "updatedAt": {
      "type": "integer"
    },
    "updatedBy": {
      "type": "string"
    }
  },
  "$defs": {
    "chaos_hub.AuthType": {
      "type": "string",
      "enum": [
        "Ssh",
        "UsernameToken"
      ],
      "x-enum-varnames": [
        "AuthTypeSSH",
        "AuthTypeUsernameToken"
      ]
    },
    "chaos_hub.ConnectorScope": {
      "type": "string",
      "enum": [
        "ACCOUNT",
        "PROJECT",
        "ORGANISATION"
      ],
      "x-enum-varnames": [
        "ConnectorScopeAccount",
        "ConnectorScopeProject",
        "ConnectorScopeOrganisation"
      ]
    }
  }
}