Google Cloud Recaptcha Enterprise V1 Client - Class FirewallAction (1.5.2)

Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class FirewallAction.

An individual action. Each action represents what to do if a policy matches.

Generated from protobuf message google.cloud.recaptchaenterprise.v1.FirewallAction

Namespace

Google \ Cloud \ RecaptchaEnterprise \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ allow Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\AllowAction

The user request did not match any policy and should be allowed access to the requested resource.

↳ block Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\BlockAction

This action will deny access to a given page. The user will get an HTTP error code.

↳ redirect Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\RedirectAction

This action will redirect the request to a ReCaptcha interstitial to attach a token.

↳ substitute Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\SubstituteAction

This action will transparently serve a different page to an offending user.

↳ set_header Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\SetHeaderAction

This action will set a custom header but allow the request to continue to the customer backend.

getAllow

The user request did not match any policy and should be allowed access to the requested resource.

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\AllowAction|null

hasAllow

setAllow

The user request did not match any policy and should be allowed access to the requested resource.

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\AllowAction
Returns
TypeDescription
$this

getBlock

This action will deny access to a given page. The user will get an HTTP error code.

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\BlockAction|null

hasBlock

setBlock

This action will deny access to a given page. The user will get an HTTP error code.

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\BlockAction
Returns
TypeDescription
$this

getRedirect

This action will redirect the request to a ReCaptcha interstitial to attach a token.

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\RedirectAction|null

hasRedirect

setRedirect

This action will redirect the request to a ReCaptcha interstitial to attach a token.

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\RedirectAction
Returns
TypeDescription
$this

getSubstitute

This action will transparently serve a different page to an offending user.

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\SubstituteAction|null

hasSubstitute

setSubstitute

This action will transparently serve a different page to an offending user.

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\SubstituteAction
Returns
TypeDescription
$this

getSetHeader

This action will set a custom header but allow the request to continue to the customer backend.

Returns
TypeDescription
Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\SetHeaderAction|null

hasSetHeader

setSetHeader

This action will set a custom header but allow the request to continue to the customer backend.

Parameter
NameDescription
var Google\Cloud\RecaptchaEnterprise\V1\FirewallAction\SetHeaderAction
Returns
TypeDescription
$this

getFirewallActionOneof

Returns
TypeDescription
string