{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-datastore/json-schema/google-cloud-datastore-mutation-schema.json",
  "title": "Mutation",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-datastore-projects-api-openapi.yml#/components/schemas/Mutation",
  "type": "object",
  "properties": {
    "insert": {
      "$ref": "#/$defs/Entity"
    },
    "update": {
      "$ref": "#/$defs/Entity"
    },
    "upsert": {
      "$ref": "#/$defs/Entity"
    },
    "delete": {
      "$ref": "#/$defs/Key"
    },
    "baseVersion": {
      "type": "string"
    }
  },
  "$defs": {
    "Entity": {
      "type": "object",
      "properties": {
        "key": {
          "$ref": "#/$defs/Key"
        },
        "properties": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        }
      }
    },
    "Key": {
      "type": "object",
      "properties": {
        "partitionId": {
          "type": "object",
          "properties": {
            "projectId": {
              "type": "string"
            },
            "namespaceId": {
              "type": "string"
            },
            "databaseId": {
              "type": "string"
            }
          }
        },
        "path": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}