Google Cloud Api Keys V2 Client - Class BrowserKeyRestrictions (0.1.7)

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

The HTTP referrers (websites) that are allowed to use the key.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ allowed_referrers array

A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.

getAllowedReferrers

A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllowedReferrers

A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this