Class: Google::Apis::NetworkservicesV1::HttpRouteRequestMirrorPolicy

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

Specifies the policy on how requests are shadowed to a separate mirrored destination service. The proxy does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ HttpRouteRequestMirrorPolicy

Returns a new instance of HttpRouteRequestMirrorPolicy.



1492
1493
1494
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1492

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

Instance Attribute Details

#destinationGoogle::Apis::NetworkservicesV1::HttpRouteDestination

Specifications of a destination to which the request should be routed to. Corresponds to the JSON property destination



1490
1491
1492
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1490

def destination
  @destination
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1497
1498
1499
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1497

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