Compute V1 Client - Class SecurityPolicyRecaptchaOptionsConfig (1.6.1)

Reference documentation and code samples for the Compute V1 Client class SecurityPolicyRecaptchaOptionsConfig.

Generated from protobuf message google.cloud.compute.v1.SecurityPolicyRecaptchaOptionsConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ redirect_site_key string

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.

getRedirectSiteKey

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.

Returns
TypeDescription
string

hasRedirectSiteKey

clearRedirectSiteKey

setRedirectSiteKey

An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used.

Parameter
NameDescription
var string
Returns
TypeDescription
$this