Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy::Abort.
Specification of how client requests are aborted as part of fault
injection before being sent to a destination.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#http_status
defhttp_status()->::Integer
Returns
(::Integer) — The HTTP status code used to abort the request.
The value must be between 200 and 599 inclusive.
#http_status=
defhttp_status=(value)->::Integer
Parameter
value (::Integer) — The HTTP status code used to abort the request.
The value must be between 200 and 599 inclusive.
Returns
(::Integer) — The HTTP status code used to abort the request.
The value must be between 200 and 599 inclusive.
#percentage
defpercentage()->::Integer
Returns
(::Integer) — The percentage of traffic which will be aborted.
The value must be between [0, 100]
#percentage=
defpercentage=(value)->::Integer
Parameter
value (::Integer) — The percentage of traffic which will be aborted.
The value must be between [0, 100]
Returns
(::Integer) — The percentage of traffic which will be aborted.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy::Abort (v2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Abort)\n- [2.3.0](/ruby/docs/reference/google-cloud-network_services-v1/2.3.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Abort)\n- [2.2.0](/ruby/docs/reference/google-cloud-network_services-v1/2.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Abort)\n- [2.1.0](/ruby/docs/reference/google-cloud-network_services-v1/2.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Abort)\n- [2.0.1](/ruby/docs/reference/google-cloud-network_services-v1/2.0.1/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Abort)\n- [1.2.0](/ruby/docs/reference/google-cloud-network_services-v1/1.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Abort)\n- [1.1.0](/ruby/docs/reference/google-cloud-network_services-v1/1.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Abort)\n- [1.0.1](/ruby/docs/reference/google-cloud-network_services-v1/1.0.1/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Abort)\n- [0.2.0](/ruby/docs/reference/google-cloud-network_services-v1/0.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Abort)\n- [0.1.0](/ruby/docs/reference/google-cloud-network_services-v1/0.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Abort) \nReference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy::Abort.\n\nSpecification of how client requests are aborted as part of fault\ninjection before being sent to a destination. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #http_status\n\n def http_status() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The HTTP status code used to abort the request.\n\n The value must be between 200 and 599 inclusive.\n\n### #http_status=\n\n def http_status=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The HTTP status code used to abort the request.\n\n\nThe value must be between 200 and 599 inclusive. \n**Returns**\n\n- (::Integer) --- The HTTP status code used to abort the request.\n\n The value must be between 200 and 599 inclusive.\n\n### #percentage\n\n def percentage() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The percentage of traffic which will be aborted.\n\n The value must be between \\[0, 100\\]\n\n### #percentage=\n\n def percentage=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The percentage of traffic which will be aborted.\n\n\nThe value must be between \\[0, 100\\] \n**Returns**\n\n- (::Integer) --- The percentage of traffic which will be aborted.\n\n The value must be between \\[0, 100\\]"]]