API Keys V2 API - Class Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions (v0.2.0)

Reference documentation and code samples for the API Keys V2 API class Google::Cloud::ApiKeys::V2::BrowserKeyRestrictions.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#allowed_referrers

def allowed_referrers() -> ::Array<::String>
Returns
  • (::Array<::String>) — A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.

#allowed_referrers=

def allowed_referrers=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.
Returns
  • (::Array<::String>) — A list of regular expressions for the referrer URLs that are allowed to make API calls with this key.