Google Cloud reCAPTCHA Enterprise v1 API - Class FirewallAction (2.7.0)

public sealed class FirewallAction : IMessage<FirewallAction>, IEquatable<FirewallAction>, IDeepCloneable<FirewallAction>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud reCAPTCHA Enterprise v1 API class FirewallAction.

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

Inheritance

object > FirewallAction

Namespace

Google.Cloud.RecaptchaEnterprise.V1

Assembly

Google.Cloud.RecaptchaEnterprise.V1.dll

Constructors

FirewallAction()

public FirewallAction()

FirewallAction(FirewallAction)

public FirewallAction(FirewallAction other)
Parameter
NameDescription
otherFirewallAction

Properties

Allow

public FirewallAction.Types.AllowAction Allow { get; set; }

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

Property Value
TypeDescription
FirewallActionTypesAllowAction

Block

public FirewallAction.Types.BlockAction Block { get; set; }

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

Property Value
TypeDescription
FirewallActionTypesBlockAction

FirewallActionOneofCase

public FirewallAction.FirewallActionOneofOneofCase FirewallActionOneofCase { get; }
Property Value
TypeDescription
FirewallActionFirewallActionOneofOneofCase

Redirect

public FirewallAction.Types.RedirectAction Redirect { get; set; }

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

Property Value
TypeDescription
FirewallActionTypesRedirectAction

SetHeader

public FirewallAction.Types.SetHeaderAction SetHeader { get; set; }

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

Property Value
TypeDescription
FirewallActionTypesSetHeaderAction

Substitute

public FirewallAction.Types.SubstituteAction Substitute { get; set; }

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

Property Value
TypeDescription
FirewallActionTypesSubstituteAction