{
  "name": "PutEvents",
  "plane": "data",
  "terraformEligible": false,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudEvents.PutEvents",
    "service": "events"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "definitions": {
      "PutEventsEntry": {
        "additionalProperties": false,
        "properties": {
          "detail": {
            "type": "string"
          },
          "detailType": {
            "type": "string"
          },
          "eventBusName": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": "string"
          },
          "time": {
            "default": null,
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "detail",
          "detailType",
          "source"
        ],
        "type": "object"
      }
    },
    "properties": {
      "entries": {
        "items": {
          "$ref": "#/definitions/PutEventsEntry"
        },
        "type": "array"
      },
      "eventBusName": {
        "default": null,
        "type": [
          "string",
          "null"
        ]
      }
    },
    "required": [
      "entries"
    ],
    "title": "PutEventsRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
      "EventResult": {
        "properties": {
          "errorCode": {
            "type": [
              "string",
              "null"
            ]
          },
          "errorMessage": {
            "type": [
              "string",
              "null"
            ]
          },
          "eventId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "type": "object"
      }
    },
    "properties": {
      "entries": {
        "items": {
          "$ref": "#/definitions/EventResult"
        },
        "type": "array"
      },
      "failedEntryCount": {
        "format": "uint",
        "minimum": 0.0,
        "type": "integer"
      }
    },
    "required": [
      "entries",
      "failedEntryCount"
    ],
    "title": "PutEventsResponse",
    "type": "object"
  }
}
