Compute V1 Client - Class SecurityPolicyRecaptchaOptionsConfig (1.12.1)

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

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

Namespace

Google \ Cloud \ Compute \ V1

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. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

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. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

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. This field is only supported in Global Security Policies of type CLOUD_ARMOR.

Parameter
NameDescription
var string
Returns
TypeDescription
$this