{
  "name": "RateLimitCredential",
  "plane": "internal",
  "terraformEligible": false,
  "protocol": {
    "kind": "cloudJson",
    "target": "CloudGateway.RateLimitCredential",
    "service": "gateway"
  },
  "requestBody": "typed",
  "responseBody": "typed",
  "requestSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
      "credentialId": {
        "type": "string"
      }
    },
    "required": [
      "credentialId"
    ],
    "title": "RateLimitCredentialRequest",
    "type": "object"
  },
  "responseSchema": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "properties": {
      "allowed": {
        "type": "boolean"
      },
      "remaining": {
        "format": "uint32",
        "minimum": 0.0,
        "type": "integer"
      },
      "retryAfterSeconds": {
        "format": "uint64",
        "minimum": 0.0,
        "type": [
          "integer",
          "null"
        ]
      }
    },
    "required": [
      "allowed",
      "remaining"
    ],
    "title": "RateLimitResponse",
    "type": "object"
  }
}
