TcpVirtualServiceTrafficRouteRuleDetails

class oci.service_mesh.models.TcpVirtualServiceTrafficRouteRuleDetails(**kwargs)

Bases: oci.service_mesh.models.virtual_service_traffic_route_rule_details.VirtualServiceTrafficRouteRuleDetails

Rule for routing incoming Virtual Service traffic with TCP protocol

Attributes

TYPE_HTTP str(object=’’) -> str
TYPE_TCP str(object=’’) -> str
TYPE_TLS_PASSTHROUGH str(object=’’) -> str
destinations [Required] Gets the destinations of this VirtualServiceTrafficRouteRuleDetails.
type [Required] Gets the type of this VirtualServiceTrafficRouteRuleDetails.

Methods

__init__(**kwargs) Initializes a new TcpVirtualServiceTrafficRouteRuleDetails object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
TYPE_HTTP = 'HTTP'
TYPE_TCP = 'TCP'
TYPE_TLS_PASSTHROUGH = 'TLS_PASSTHROUGH'
__init__(**kwargs)

Initializes a new TcpVirtualServiceTrafficRouteRuleDetails object with values from keyword arguments. The default value of the type attribute of this class is TCP and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • type (str) – The value to assign to the type property of this TcpVirtualServiceTrafficRouteRuleDetails. Allowed values for this property are: “HTTP”, “TLS_PASSTHROUGH”, “TCP”
  • destinations (list[oci.service_mesh.models.VirtualDeploymentTrafficRuleTargetDetails]) – The value to assign to the destinations property of this TcpVirtualServiceTrafficRouteRuleDetails.
destinations

[Required] Gets the destinations of this VirtualServiceTrafficRouteRuleDetails. The destination of the request.

Returns:The destinations of this VirtualServiceTrafficRouteRuleDetails.
Return type:list[oci.service_mesh.models.VirtualDeploymentTrafficRuleTargetDetails]
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

type

[Required] Gets the type of this VirtualServiceTrafficRouteRuleDetails. Type of protocol.

Allowed values for this property are: “HTTP”, “TLS_PASSTHROUGH”, “TCP”

Returns:The type of this VirtualServiceTrafficRouteRuleDetails.
Return type:str