class Google::Apis::ApikeysV2::V2Restrictions
Describes the restrictions on the key.
Attributes
The Android apps that are allowed to use the key. Corresponds to the JSON property `androidKeyRestrictions` @return [Google::Apis::ApikeysV2::V2AndroidKeyRestrictions]
A restriction for a specific service and optionally one or more specific methods. Requests are allowed if they match any of these restrictions. If no restrictions are specified, all targets are allowed. Corresponds to the JSON property `apiTargets` @return [Array<Google::Apis::ApikeysV2::V2ApiTarget>]
The HTTP referrers (websites) that are allowed to use the key. Corresponds to the JSON property `browserKeyRestrictions` @return [Google::Apis::ApikeysV2::V2BrowserKeyRestrictions]
The iOS apps that are allowed to use the key. Corresponds to the JSON property `iosKeyRestrictions` @return [Google::Apis::ApikeysV2::V2IosKeyRestrictions]
The IP addresses of callers that are allowed to use the key. Corresponds to the JSON property `serverKeyRestrictions` @return [Google::Apis::ApikeysV2::V2ServerKeyRestrictions]
Public Class Methods
# File lib/google/apis/apikeys_v2/classes.rb, line 444 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/apikeys_v2/classes.rb, line 449 def update!(**args) @android_key_restrictions = args[:android_key_restrictions] if args.key?(:android_key_restrictions) @api_targets = args[:api_targets] if args.key?(:api_targets) @browser_key_restrictions = args[:browser_key_restrictions] if args.key?(:browser_key_restrictions) @ios_key_restrictions = args[:ios_key_restrictions] if args.key?(:ios_key_restrictions) @server_key_restrictions = args[:server_key_restrictions] if args.key?(:server_key_restrictions) end