Class V2Restrictions
Describes the restrictions on the key.
Implements
Inherited Members
Namespace: Google.Apis.ApiKeysService.v2.Data
Assembly: Google.Apis.ApiKeysService.v2.dll
Syntax
public class V2Restrictions : IDirectResponseSchema
Properties
AndroidKeyRestrictions
The Android apps that are allowed to use the key.
Declaration
[JsonProperty("androidKeyRestrictions")]
public virtual V2AndroidKeyRestrictions AndroidKeyRestrictions { get; set; }
Property Value
Type | Description |
---|---|
V2AndroidKeyRestrictions |
ApiTargets
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.
Declaration
[JsonProperty("apiTargets")]
public virtual IList<V2ApiTarget> ApiTargets { get; set; }
Property Value
Type | Description |
---|---|
IList<V2ApiTarget> |
BrowserKeyRestrictions
The HTTP referrers (websites) that are allowed to use the key.
Declaration
[JsonProperty("browserKeyRestrictions")]
public virtual V2BrowserKeyRestrictions BrowserKeyRestrictions { get; set; }
Property Value
Type | Description |
---|---|
V2BrowserKeyRestrictions |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
IosKeyRestrictions
The iOS apps that are allowed to use the key.
Declaration
[JsonProperty("iosKeyRestrictions")]
public virtual V2IosKeyRestrictions IosKeyRestrictions { get; set; }
Property Value
Type | Description |
---|---|
V2IosKeyRestrictions |
ServerKeyRestrictions
The IP addresses of callers that are allowed to use the key.
Declaration
[JsonProperty("serverKeyRestrictions")]
public virtual V2ServerKeyRestrictions ServerKeyRestrictions { get; set; }
Property Value
Type | Description |
---|---|
V2ServerKeyRestrictions |