Class: Google::Apis::NetworkservicesV1::GrpcRouteStatefulSessionAffinityPolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb

Overview

The specification for cookie-based stateful session affinity where the date plane supplies a “session cookie” with the name "GSSA" which encodes a specific destination host and each request containing that cookie will be directed to that host as long as the destination host remains up and healthy. The gRPC proxyless mesh library or sidecar proxy will manage the session cookie but the client application code is responsible for copying the cookie from each RPC in the session to the next.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GrpcRouteStatefulSessionAffinityPolicy

Returns a new instance of GrpcRouteStatefulSessionAffinityPolicy.



1225
1226
1227
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1225

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

Required. The cookie TTL value for the Set-Cookie header generated by the data plane. The lifetime of the cookie may be set to a value from 1 to 86400 seconds (24 hours) inclusive. Corresponds to the JSON property cookieTtl

Returns:

  • (String)


1223
1224
1225
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1223

def cookie_ttl
  @cookie_ttl
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1230
1231
1232
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1230

def update!(**args)
  @cookie_ttl = args[:cookie_ttl] if args.key?(:cookie_ttl)
end