Class: Google::Apis::ComputeAlpha::RequestMirrorPolicy

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

Overview

A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. The load balancer doesn't wait for responses from the shadow service. Before sending traffic to the shadow service, the host or authority header is suffixed with -shadow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RequestMirrorPolicy

Returns a new instance of RequestMirrorPolicy.



32586
32587
32588
# File 'lib/google/apis/compute_alpha/classes.rb', line 32586

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

Instance Attribute Details

#backend_serviceString

The full or partial URL to the BackendService resource being mirrored to. Corresponds to the JSON property backendService

Returns:

  • (String)


32584
32585
32586
# File 'lib/google/apis/compute_alpha/classes.rb', line 32584

def backend_service
  @backend_service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32591
32592
32593
# File 'lib/google/apis/compute_alpha/classes.rb', line 32591

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