{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/harness/main/json-schema/harness-chaosguardconditions-update-condition-response-schema.json",
  "title": "chaosguardconditions.UpdateConditionResponse",
  "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.UpdateConditionResponse",
  "type": "object",
  "required": [
    "conditionId",
    "faultSpec",
    "infraType",
    "name"
  ],
  "properties": {
    "conditionId": {
      "type": "string"
    },
    "correlationID": {
      "type": "string"
    },
    "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"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "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"
          }
        }
      }
    }
  }
}