Class: Google::Apis::ComputeV1::RequestMirrorPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::RequestMirrorPolicy
- 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
-
#backend_service ⇒ String
The full or partial URL to the BackendService resource being mirrored to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RequestMirrorPolicy
constructor
A new instance of RequestMirrorPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ RequestMirrorPolicy
Returns a new instance of RequestMirrorPolicy.
21263 21264 21265 |
# File 'generated/google/apis/compute_v1/classes.rb', line 21263 def initialize(**args) update!(**args) end |
Instance Attribute Details
#backend_service ⇒ String
The full or partial URL to the BackendService resource being mirrored to.
Corresponds to the JSON property backendService
21261 21262 21263 |
# File 'generated/google/apis/compute_v1/classes.rb', line 21261 def backend_service @backend_service end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21268 21269 21270 |
# File 'generated/google/apis/compute_v1/classes.rb', line 21268 def update!(**args) @backend_service = args[:backend_service] if args.key?(:backend_service) end |