Class: Google::Apis::NetworkservicesV1::GrpcRouteRetryPolicy
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1::GrpcRouteRetryPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1/classes.rb,
lib/google/apis/networkservices_v1/representations.rb,
lib/google/apis/networkservices_v1/representations.rb
Overview
The specifications for retries. Specifies one or more conditions for which this retry rule applies. Valid values are:
Instance Attribute Summary collapse
-
#num_retries ⇒ Fixnum
Specifies the allowed number of retries.
-
#retry_conditions ⇒ Array<String>
- connect-failure: Router will retry on failures connecting to Backend Services, for example due to connection timeouts.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GrpcRouteRetryPolicy
constructor
A new instance of GrpcRouteRetryPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GrpcRouteRetryPolicy
Returns a new instance of GrpcRouteRetryPolicy.
1095 1096 1097 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1095 def initialize(**args) update!(**args) end |
Instance Attribute Details
#num_retries ⇒ Fixnum
Specifies the allowed number of retries. This number must be > 0. If not
specified, default to 1.
Corresponds to the JSON property numRetries
1079 1080 1081 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1079 def num_retries @num_retries end |
#retry_conditions ⇒ Array<String>
- connect-failure: Router will retry on failures connecting to Backend
Services, for example due to connection timeouts. - refused-stream: Router
will retry if the backend service resets the stream with a REFUSED_STREAM
error code. This reset type indicates that it is safe to retry. - cancelled:
Router will retry if the gRPC status code in the response header is set to
cancelled - deadline-exceeded: Router will retry if the gRPC status code in
the response header is set to deadline-exceeded - resource-exhausted: Router
will retry if the gRPC status code in the response header is set to resource-
exhausted - unavailable: Router will retry if the gRPC status code in the
response header is set to unavailable
Corresponds to the JSON property
retryConditions
1093 1094 1095 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1093 def retry_conditions @retry_conditions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1100 1101 1102 1103 |
# File 'lib/google/apis/networkservices_v1/classes.rb', line 1100 def update!(**args) @num_retries = args[:num_retries] if args.key?(:num_retries) @retry_conditions = args[:retry_conditions] if args.key?(:retry_conditions) end |