{
  "description": "TransportServer defines the TransportServer resource.",
  "properties": {
    "apiVersion": {
      "description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
      "type": "string"
    },
    "kind": {
      "description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "description": "TransportServerSpec is the spec of the TransportServer resource.",
      "properties": {
        "action": {
          "description": "TransportServerAction defines an action.",
          "properties": {
            "pass": {
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "host": {
          "type": "string"
        },
        "ingressClassName": {
          "type": "string"
        },
        "listener": {
          "description": "TransportServerListener defines a listener for a TransportServer.",
          "properties": {
            "name": {
              "type": "string"
            },
            "protocol": {
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "serverSnippets": {
          "type": "string"
        },
        "sessionParameters": {
          "description": "SessionParameters defines session parameters.",
          "properties": {
            "timeout": {
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "streamSnippets": {
          "type": "string"
        },
        "tls": {
          "description": "TransportServerTLS defines TransportServerTLS configuration for a TransportServer.",
          "properties": {
            "secret": {
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "upstreamParameters": {
          "description": "UpstreamParameters defines parameters for an upstream.",
          "properties": {
            "connectTimeout": {
              "type": "string"
            },
            "nextUpstream": {
              "type": "boolean"
            },
            "nextUpstreamTimeout": {
              "type": "string"
            },
            "nextUpstreamTries": {
              "type": "integer"
            },
            "udpRequests": {
              "type": "integer"
            },
            "udpResponses": {
              "type": "integer"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "upstreams": {
          "items": {
            "description": "TransportServerUpstream defines an upstream.",
            "properties": {
              "backup": {
                "type": "string"
              },
              "backupPort": {
                "type": "integer"
              },
              "failTimeout": {
                "type": "string"
              },
              "healthCheck": {
                "description": "TransportServerHealthCheck defines the parameters for active Upstream HealthChecks.",
                "properties": {
                  "enable": {
                    "type": "boolean"
                  },
                  "fails": {
                    "type": "integer"
                  },
                  "interval": {
                    "type": "string"
                  },
                  "jitter": {
                    "type": "string"
                  },
                  "match": {
                    "description": "TransportServerMatch defines the parameters of a custom health check.",
                    "properties": {
                      "expect": {
                        "type": "string"
                      },
                      "send": {
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "passes": {
                    "type": "integer"
                  },
                  "port": {
                    "type": "integer"
                  },
                  "timeout": {
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "loadBalancingMethod": {
                "type": "string"
              },
              "maxConns": {
                "type": "integer"
              },
              "maxFails": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "port": {
                "type": "integer"
              },
              "service": {
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "description": "TransportServerStatus defines the status for the TransportServer resource.",
      "properties": {
        "message": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "state": {
          "type": "string"
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
