Google Cloud Network Services V1 Client - Class Abort (0.2.1)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class Abort.

Specification of how client requests are aborted as part of fault injection before being sent to a destination.

Generated from protobuf message google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort

Namespace

Google \ Cloud \ NetworkServices \ V1 \ HttpRoute \ FaultInjectionPolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ http_status int

The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.

↳ percentage int

The percentage of traffic which will be aborted. The value must be between [0, 100]

getHttpStatus

The HTTP status code used to abort the request.

The value must be between 200 and 599 inclusive.

Returns
Type Description
int

setHttpStatus

The HTTP status code used to abort the request.

The value must be between 200 and 599 inclusive.

Parameter
Name Description
var int
Returns
Type Description
$this

getPercentage

The percentage of traffic which will be aborted.

The value must be between [0, 100]

Returns
Type Description
int

setPercentage

The percentage of traffic which will be aborted.

The value must be between [0, 100]

Parameter
Name Description
var int
Returns
Type Description
$this