{
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "asNumber": {
          "format": "int32",
          "type": "integer"
        },
        "filters": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "keepOriginalNextHop": {
          "type": "boolean"
        },
        "keepaliveTime": {
          "type": "string"
        },
        "localASNumber": {
          "format": "int32",
          "type": "integer"
        },
        "localWorkloadSelector": {
          "type": "string"
        },
        "maxRestartTime": {
          "type": "string"
        },
        "nextHopMode": {
          "enum": [
            "Auto",
            "Self",
            "Keep"
          ],
          "type": "string"
        },
        "node": {
          "type": "string"
        },
        "nodeSelector": {
          "type": "string"
        },
        "numAllowedLocalASNumbers": {
          "format": "int32",
          "type": "integer"
        },
        "password": {
          "properties": {
            "secretKeyRef": {
              "properties": {
                "key": {
                  "type": "string"
                },
                "name": {
                  "default": "",
                  "type": "string"
                },
                "optional": {
                  "type": "boolean"
                }
              },
              "required": [
                "key"
              ],
              "type": "object",
              "x-kubernetes-map-type": "atomic",
              "additionalProperties": false
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "peerIP": {
          "type": "string"
        },
        "peerSelector": {
          "type": "string"
        },
        "reachableBy": {
          "type": "string"
        },
        "reversePeering": {
          "allOf": [
            {
              "enum": [
                "Auto",
                "Manual"
              ]
            },
            {
              "enum": [
                "Auto",
                "Manual"
              ]
            }
          ],
          "type": "string"
        },
        "sourceAddress": {
          "enum": [
            "UseNodeIP",
            "None"
          ],
          "type": "string"
        },
        "ttlSecurity": {
          "type": "integer"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "required": [
    "metadata",
    "spec"
  ],
  "type": "object"
}
