Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::TcpRoute::RouteAction.
The specifications for routing traffic and applying associated policies.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#destinations
def destinations() -> ::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteDestination>
Returns
- (::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteDestination>) — Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
#destinations=
def destinations=(value) -> ::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteDestination>
Parameter
- value (::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteDestination>) — Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
Returns
- (::Array<::Google::Cloud::NetworkServices::V1::TcpRoute::RouteDestination>) — Optional. The destination services to which traffic should be forwarded. At least one destination service is required. Only one of route destination or original destination can be set.
#original_destination
def original_destination() -> ::Boolean
Returns
- (::Boolean) — Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
#original_destination=
def original_destination=(value) -> ::Boolean
Parameter
- value (::Boolean) — Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.
Returns
- (::Boolean) — Optional. If true, Router will use the destination IP and port of the original connection as the destination of the request. Default is false. Only one of route destinations or original destination can be set.