Google Cloud Api Keys V2 Client - Class BrowserKeyRestrictions (1.1.2)Stay organized with collectionsSave and categorize content based on your preferences.
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 messagegoogle.api.apikeys.v2.BrowserKeyRestrictions
Namespace
Google \ Cloud \ ApiKeys \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ allowed_referrers
string[]
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-19 UTC."],[],[]]