{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-chaosguardconditions-list-condition-response-schema.json",
  "title": "chaosguardconditions.ListConditionResponse",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/harness-chaosguard-conditions-api-openapi.yml#/components/schemas/chaosguardconditions.ListConditionResponse",
  "type": "object",
  "properties": {
    "conditions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/chaosguardconditions.ConditionResponse"
      }
    },
    "correlationID": {
      "type": "string"
    },
    "pagination": {
      "$ref": "#/$defs/github_com_harness_hce-saas_graphql_server_api.Pagination"
    }
  },
  "$defs": {
    "chaosguardconditions.ConditionResponse": {
      "type": "object",
      "required": [
        "conditionId",
        "faultSpec",
        "infraType",
        "name"
      ],
      "properties": {
        "conditionId": {
          "type": "string"
        },
        "createdAt": {
          "type": "integer"
        },
        "createdBy": {
          "$ref": "#/$defs/hcesdk.UserDetails"
        },
        "description": {
          "type": "string"
        },
        "faultSpec": {
          "$ref": "#/$defs/security_governance.FaultSpec"
        },
        "infraType": {
          "$ref": "#/$defs/security_governance.InfraType"
        },
        "k8sSpec": {
          "$ref": "#/$defs/security_governance.K8sSpec"
        },
        "machineSpec": {
          "$ref": "#/$defs/security_governance.MachineSpec"
        },
        "name": {
          "type": "string"
        },
        "rules": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/chaosguardconditions.Rule"
          }
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "updatedAt": {
          "type": "integer"
        },
        "updatedBy": {
          "$ref": "#/$defs/hcesdk.UserDetails"
        }
      }
    },
    "chaosguardconditions.Rule": {
      "type": "object",
      "required": [
        "name",
        "ruleId"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "ruleId": {
          "type": "string"
        }
      }
    },
    "github_com_harness_hce-saas_graphql_server_api.Pagination": {
      "type": "object",
      "properties": {
        "index": {
          "type": "integer"
        },
        "limit": {
          "type": "integer"
        },
        "totalItems": {
          "type": "integer"
        },
        "totalPages": {
          "type": "integer"
        }
      }
    },
    "hcesdk.UserDetails": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string"
        },
        "userID": {
          "type": "string"
        },
        "username": {
          "type": "string"
        }
      }
    },
    "security_governance.AccessControl": {
      "type": "string",
      "enum": [
        "ALLOWED",
        "BLOCKED"
      ],
      "x-enum-varnames": [
        "ALLOWED",
        "BLOCKED"
      ]
    },
    "security_governance.ApplicationSpec": {
      "type": "object",
      "properties": {
        "operator": {
          "$ref": "#/$defs/security_governance.Operator"
        },
        "workloads": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/security_governance.Workload"
          }
        }
      }
    },
    "security_governance.ChaosServiceAccountSpec": {
      "type": "object",
      "properties": {
        "operator": {
          "$ref": "#/$defs/security_governance.Operator"
        },
        "serviceAccounts": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "security_governance.Env": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "security_governance.Fault": {
      "type": "object",
      "properties": {
        "faultType": {
          "$ref": "#/$defs/security_governance.FaultType"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "security_governance.FaultSpec": {
      "type": "object",
      "properties": {
        "faults": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/security_governance.Fault"
          }
        },
        "operator": {
          "$ref": "#/$defs/security_governance.Operator"
        }
      }
    },
    "security_governance.FaultType": {
      "type": "string",
      "enum": [
        "FAULT_GROUP",
        "FAULT_NAME"
      ],
      "x-enum-varnames": [
        "FAULT_GROUP",
        "FAULT_NAME"
      ]
    },
    "security_governance.InfraSpec": {
      "type": "object",
      "properties": {
        "infraIds": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "operator": {
          "$ref": "#/$defs/security_governance.Operator"
        }
      }
    },
    "security_governance.InfraType": {
      "type": "string",
      "enum": [
        "Kubernetes",
        "KubernetesV2",
        "Linux",
        "Windows"
      ],
      "x-enum-varnames": [
        "KUBERNETES",
        "KUBERNETESV2",
        "Linux",
        "Windows"
      ]
    },
    "security_governance.K8sSpec": {
      "type": "object",
      "properties": {
        "applicationSpec": {
          "$ref": "#/$defs/security_governance.ApplicationSpec"
        },
        "chaosServiceAccountSpec": {
          "$ref": "#/$defs/security_governance.ChaosServiceAccountSpec"
        },
        "infraSpec": {
          "$ref": "#/$defs/security_governance.InfraSpec"
        },
        "unverifiedProbe": {
          "$ref": "#/$defs/security_governance.AccessControl"
        }
      }
    },
    "security_governance.MachineSpec": {
      "type": "object",
      "properties": {
        "infraSpec": {
          "$ref": "#/$defs/security_governance.InfraSpec"
        },
        "unverifiedProbe": {
          "$ref": "#/$defs/security_governance.AccessControl"
        }
      }
    },
    "security_governance.Operator": {
      "type": "string",
      "enum": [
        "EQUAL_TO",
        "NOT_EQUAL_TO"
      ],
      "x-enum-varnames": [
        "EQUAL_TO",
        "NOT_EQUAL_TO"
      ]
    },
    "security_governance.Workload": {
      "type": "object",
      "properties": {
        "applicationMapId": {
          "type": "string"
        },
        "env": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/security_governance.Env"
          }
        },
        "kind": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "namespace": {
          "type": "string"
        },
        "services": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}