Google Cloud Recaptcha Enterprise V1 Client - Class IpOverrideData (1.14.0)

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

Information about the IP or IP range override.

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

Namespace

Google \ Cloud \ RecaptchaEnterprise \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ ip string

Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8🔢:/48

↳ override_type int

Required. Describes the type of IP override.

getIp

Required. The IP address to override (can be IPv4, IPv6 or CIDR).

The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8🔢:/48

Returns
Type Description
string

setIp

Required. The IP address to override (can be IPv4, IPv6 or CIDR).

The IP override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP override must be a public IP address. Example of IPv4: 168.192.5.6 Example of IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8🔢:/48

Parameter
Name Description
var string
Returns
Type Description
$this

getOverrideType

Required. Describes the type of IP override.

Returns
Type Description
int

setOverrideType

Required. Describes the type of IP override.

Parameter
Name Description
var int
Returns
Type Description
$this