Class: Google::Apis::NetworkservicesV1beta1::HttpRouteFaultInjectionPolicyAbort
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::HttpRouteFaultInjectionPolicyAbort
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.rb
Overview
Specification of how client requests are aborted as part of fault injection before being sent to a destination.
Instance Attribute Summary collapse
-
#http_status ⇒ Fixnum
The HTTP status code used to abort the request.
-
#percentage ⇒ Fixnum
The percentage of traffic which will be aborted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpRouteFaultInjectionPolicyAbort
constructor
A new instance of HttpRouteFaultInjectionPolicyAbort.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpRouteFaultInjectionPolicyAbort
Returns a new instance of HttpRouteFaultInjectionPolicyAbort.
1423 1424 1425 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1423 def initialize(**args) update!(**args) end |
Instance Attribute Details
#http_status ⇒ Fixnum
The HTTP status code used to abort the request. The value must be between 200
and 599 inclusive.
Corresponds to the JSON property httpStatus
1415 1416 1417 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1415 def http_status @http_status end |
#percentage ⇒ Fixnum
The percentage of traffic which will be aborted. The value must be between [0,
100]
Corresponds to the JSON property percentage
1421 1422 1423 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1421 def percentage @percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1428 1429 1430 1431 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1428 def update!(**args) @http_status = args[:http_status] if args.key?(:http_status) @percentage = args[:percentage] if args.key?(:percentage) end |