{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/informatica/json-schema/informatica-query-operation-rm-schema.json",
  "title": "QueryOperationRM",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/informatica-data-profiling-api-openapi.yml#/components/schemas/QueryOperationRM",
  "required": [
    "connectionId",
    "name",
    "operator",
    "profileId",
    "queries",
    "queryType"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The system-generated unique identifier for the query asset.",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "description": "The name of the query asset."
    },
    "description": {
      "type": "string",
      "description": "The description for the query asset."
    },
    "operator": {
      "type": "string",
      "description": "The logical operator to aggregate multiple query results.",
      "enum": [
        "AND",
        "OR"
      ]
    },
    "queries": {
      "uniqueItems": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/QueryRM"
      }
    },
    "queryType": {
      "type": "string",
      "description": "You can specify persistent to query on the profile source. You can specify drilldown to view the filtered drilldown results. You need the Query - Create privilege to create queries, and the Query - Submit privilege to run queries and view query results.",
      "enum": [
        "PERSISTENT",
        "DRILLDOWN"
      ]
    },
    "profileId": {
      "type": "string",
      "description": "The ID of the profile on which the query runs."
    },
    "createdBy": {
      "type": "string",
      "description": "System-generated field that indicates the ID of the user who created the query.",
      "readOnly": true
    },
    "createdByName": {
      "type": "string",
      "description": "System-generated field that indicates the name of the user who created the query.",
      "readOnly": true
    },
    "createTime": {
      "type": "integer",
      "description": "System-generated field that indicates the time at which the query was created.",
      "format": "int64",
      "readOnly": true
    },
    "updatedBy": {
      "type": "string",
      "description": "System-generated field that indicates the ID of the user who updated the query.",
      "readOnly": true
    },
    "updatedByName": {
      "type": "string",
      "description": "System-generated field that indicates the name of the user who updated the query.",
      "readOnly": true
    },
    "connectionId": {
      "type": "string",
      "description": "The flat file connection. Data Profiling runs the query on the runtime environment associated with the flat file connection."
    },
    "updateTime": {
      "type": "integer",
      "description": "System-generated field that indicates the time at which the query was updated.",
      "format": "int64",
      "readOnly": true
    },
    "jobId": {
      "type": "string",
      "description": "System-generated field that indicates the job ID.",
      "readOnly": true
    },
    "status": {
      "type": "string",
      "description": "System-generated field that indicates the status of the job.",
      "readOnly": true
    },
    "rowsProcessed": {
      "type": "integer",
      "description": "System-generated field that indicates the number of rows processed by the job.",
      "format": "int32",
      "readOnly": true
    },
    "successRows": {
      "type": "integer",
      "description": "System-generated field that indicates the number or success rows.",
      "format": "int32",
      "readOnly": true
    }
  },
  "$defs": {
    "QueryRM": {
      "required": [
        "columnId",
        "columnType",
        "operationType",
        "valueFunctiontype"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "System-generated field.",
          "readOnly": true
        },
        "columnType": {
          "type": "string",
          "description": "The source, mapplet output, or profile column on which the query is generated.",
          "enum": [
            "PROFILEABLECOLUMN",
            "DATASOURCEFIELD",
            "MAPPLETFIELD"
          ]
        },
        "columnId": {
          "type": "string",
          "description": "The column ID or profileable Column ID based on the columnType"
        },
        "columnName": {
          "type": "string",
          "description": "The name of the column."
        },
        "operationType": {
          "type": "string",
          "description": "The search criteria, such as percentage of unique values in columns, column pattern, and column data type.",
          "enum": [
            "VALUE",
            "PATTERN",
            "DATATYPE"
          ]
        },
        "valueFunctiontype": {
          "type": "string",
          "description": "The operator to filter the search results.",
          "enum": [
            "EQUAL",
            "NOT_EQUAL",
            "LESS_THAN",
            "LESS_THAN_OR_EQUALS",
            "GREATER_THAN",
            "GREATER_THAN_OR_EQUALS",
            "BETWEEN",
            "IN",
            "NOT_IN",
            "IS_NULL",
            "IS_NOT_NULL",
            "STARTS_WITH",
            "ENDS_WITH",
            "CONTAINS"
          ]
        },
        "values": {
          "uniqueItems": true,
          "type": "array",
          "description": "The search strings used in the search criteria.",
          "items": {
            "type": "string",
            "description": "The value for the search string. For patterns or data types operator, you can use one or more patterns or data types as values."
          }
        }
      }
    }
  }
}