Class: Google::Apis::ComputeV1::RequestMirrorPolicy

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

Overview

A policy that specifies how requests intended for the route's backends are shadowed to a separate mirrored backend service. Loadbalancer 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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RequestMirrorPolicy

Returns a new instance of RequestMirrorPolicy



20006
20007
20008
# File 'generated/google/apis/compute_v1/classes.rb', line 20006

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)


20004
20005
20006
# File 'generated/google/apis/compute_v1/classes.rb', line 20004

def backend_service
  @backend_service
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20011
20012
20013
# File 'generated/google/apis/compute_v1/classes.rb', line 20011

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