HttpVirtualServiceTrafficRouteRuleDetails

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

Bases: oci.service_mesh.models.virtual_service_traffic_route_rule_details.VirtualServiceTrafficRouteRuleDetails

Rule for routing incoming Virtual Service traffic with HTTP protocol

Attributes

PATH_TYPE_PREFIX A constant which can be used with the path_type property of a HttpVirtualServiceTrafficRouteRuleDetails.
TYPE_HTTP str(object=’’) -> str
TYPE_TCP str(object=’’) -> str
TYPE_TLS_PASSTHROUGH str(object=’’) -> str
destinations [Required] Gets the destinations of this VirtualServiceTrafficRouteRuleDetails.
is_grpc Gets the is_grpc of this HttpVirtualServiceTrafficRouteRuleDetails.
path Gets the path of this HttpVirtualServiceTrafficRouteRuleDetails.
path_type Gets the path_type of this HttpVirtualServiceTrafficRouteRuleDetails.
request_timeout_in_ms Gets the request_timeout_in_ms of this HttpVirtualServiceTrafficRouteRuleDetails.
type [Required] Gets the type of this VirtualServiceTrafficRouteRuleDetails.

Methods

__init__(**kwargs) Initializes a new HttpVirtualServiceTrafficRouteRuleDetails 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.
PATH_TYPE_PREFIX = 'PREFIX'

A constant which can be used with the path_type property of a HttpVirtualServiceTrafficRouteRuleDetails. This constant has a value of “PREFIX”

TYPE_HTTP = 'HTTP'
TYPE_TCP = 'TCP'
TYPE_TLS_PASSTHROUGH = 'TLS_PASSTHROUGH'
__init__(**kwargs)

Initializes a new HttpVirtualServiceTrafficRouteRuleDetails object with values from keyword arguments. The default value of the type attribute of this class is HTTP 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 HttpVirtualServiceTrafficRouteRuleDetails. 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 HttpVirtualServiceTrafficRouteRuleDetails.
  • path (str) – The value to assign to the path property of this HttpVirtualServiceTrafficRouteRuleDetails.
  • path_type (str) – The value to assign to the path_type property of this HttpVirtualServiceTrafficRouteRuleDetails. Allowed values for this property are: “PREFIX”
  • is_grpc (bool) – The value to assign to the is_grpc property of this HttpVirtualServiceTrafficRouteRuleDetails.
  • request_timeout_in_ms (int) – The value to assign to the request_timeout_in_ms property of this HttpVirtualServiceTrafficRouteRuleDetails.
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.

is_grpc

Gets the is_grpc of this HttpVirtualServiceTrafficRouteRuleDetails. If true, the rule will check that the content-type header has a application/grpc or one of the various application/grpc+ values.

Returns:The is_grpc of this HttpVirtualServiceTrafficRouteRuleDetails.
Return type:bool
path

Gets the path of this HttpVirtualServiceTrafficRouteRuleDetails. Route to match

Returns:The path of this HttpVirtualServiceTrafficRouteRuleDetails.
Return type:str
path_type

Gets the path_type of this HttpVirtualServiceTrafficRouteRuleDetails. Match type for the route

Allowed values for this property are: “PREFIX”

Returns:The path_type of this HttpVirtualServiceTrafficRouteRuleDetails.
Return type:str
request_timeout_in_ms

Gets the request_timeout_in_ms of this HttpVirtualServiceTrafficRouteRuleDetails. The maximum duration in milliseconds for the target service to respond to a request. If provided, the timeout value overrides the default timeout of 15 seconds for the HTTP based route rules, and disabled (no timeout) when ‘isGrpc’ is true. The value 0 (zero) indicates that the timeout is disabled. For streaming responses from the target service, consider either keeping the timeout disabled or set a sufficiently high value.

Returns:The request_timeout_in_ms of this HttpVirtualServiceTrafficRouteRuleDetails.
Return type:int
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