Google Cloud Api Keys V2 Client - Class ServerKeyRestrictions (0.4.5)

Reference documentation and code samples for the Google Cloud Api Keys V2 Client class ServerKeyRestrictions.

The IP addresses of callers that are allowed to use the key.

Generated from protobuf message google.api.apikeys.v2.ServerKeyRestrictions

Namespace

Google \ Cloud \ ApiKeys \ V2

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ allowed_ips
array

A list of the caller IP addresses that are allowed to make API calls with this key.

getAllowedIps

A list of the caller IP addresses that are allowed to make API calls with this key.

Returns
Type
Description

setAllowedIps

A list of the caller IP addresses that are allowed to make API calls with this key.

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: