Module: Google::Cloud::Compute::V1::BackendService::SessionAffinity
- Defined in:
- proto_docs/google/cloud/compute/v1/compute.rb
Overview
Type of session affinity to use. The default is NONE.
When the loadBalancingScheme is EXTERNAL: * For Network Load Balancing, the possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. * For all other load balancers that use loadBalancingScheme=EXTERNAL, the possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. * You can use GENERATED_COOKIE if the protocol is HTTP, HTTP2, or HTTPS.
When the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
When the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE.
Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
Constant Summary collapse
- UNDEFINED_SESSION_AFFINITY =
A value indicating that the enum field is not set.
0- CLIENT_IP =
345665051- CLIENT_IP_PORT_PROTO =
221722926- CLIENT_IP_PROTO =
25322148- GENERATED_COOKIE =
370321204- HEADER_FIELD =
200737960- HTTP_COOKIE =
494981627- NONE =
2402104