class Google::Apis::ApikeysV2::V2BrowserKeyRestrictions

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

Attributes

allowed_referrers[RW]

A list of regular expressions for the referrer URLs that are allowed to make API calls with this key. Corresponds to the JSON property `allowedReferrers` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/apikeys_v2/classes.rb, line 215
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/apikeys_v2/classes.rb, line 220
def update!(**args)
  @allowed_referrers = args[:allowed_referrers] if args.key?(:allowed_referrers)
end