Skip to content

RouteSpec

Source code in docs_src/capo_app_mesh/types/route_spec.py
class RouteSpec(TypedDict, closed=True):
    priority: NotRequired["capo_app_mesh.types.route_priority.RoutePriority"]
    """<p>The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.</p>"""
    http_route: NotRequired["capo_app_mesh.types.http_route.HttpRoute"]
    """<p>An object that represents the specification of an HTTP route.</p>"""
    tcp_route: NotRequired["capo_app_mesh.types.tcp_route.TcpRoute"]
    """<p>An object that represents the specification of a TCP route.</p>"""
    http2_route: NotRequired["capo_app_mesh.types.http_route.HttpRoute"]
    """<p>An object that represents the specification of an HTTP/2 route.</p>"""
    grpc_route: NotRequired["capo_app_mesh.types.grpc_route.GrpcRoute"]
    """<p>An object that represents the specification of a gRPC route.</p>"""

grpc_route instance-attribute

grpc_route: NotRequired[GrpcRoute]

An object that represents the specification of a gRPC route.

http2_route instance-attribute

http2_route: NotRequired[HttpRoute]

An object that represents the specification of an HTTP/2 route.

http_route instance-attribute

http_route: NotRequired[HttpRoute]

An object that represents the specification of an HTTP route.

priority instance-attribute

priority: NotRequired[RoutePriority]

The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.

tcp_route instance-attribute

tcp_route: NotRequired[TcpRoute]

An object that represents the specification of a TCP route.