public sealed class ServerKeyRestrictions : IMessage<ServerKeyRestrictions>, IEquatable<ServerKeyRestrictions>, IDeepCloneable<ServerKeyRestrictions>, IBufferMessage, IMessage
Reference documentation and code samples for the API Keys v2 API class ServerKeyRestrictions.
The IP addresses of callers that are allowed to use the key.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eServerKeyRestrictions\u003c/code\u003e class in the API Keys v2 API allows for defining restrictions on which IP addresses can use a specific API key.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enhancing its functionality and compatibility.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServerKeyRestrictions\u003c/code\u003e inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, providing core functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllowedIps\u003c/code\u003e property is used to specify a list of IP addresses that are permitted to make API calls with the associated key, and it uses the \u003ccode\u003eRepeatedField\u003c/code\u003e type.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for creating instances of the \u003ccode\u003eServerKeyRestrictions\u003c/code\u003e class: one default constructor, and one that takes another \u003ccode\u003eServerKeyRestrictions\u003c/code\u003e instance as an argument.\u003c/p\u003e\n"]]],[],null,[]]