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.
#idle_timeout
def idle_timeout() -> ::Google::Protobuf::Duration
Returns
- (::Google::Protobuf::Duration) — Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 30 seconds. If set to 0s, the timeout will be disabled.
#idle_timeout=
def idle_timeout=(value) -> ::Google::Protobuf::Duration
Parameter
- value (::Google::Protobuf::Duration) — Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 30 seconds. If set to 0s, the timeout will be disabled.
Returns
- (::Google::Protobuf::Duration) — Optional. Specifies the idle timeout for the selected route. The idle timeout is defined as the period in which there are no bytes sent or received on either the upstream or downstream connection. If not set, the default idle timeout is 30 seconds. If set to 0s, the timeout will be disabled.
#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.