Show / Hide Table of Contents

Class V2Restrictions

Describes the restrictions on the key.

Inheritance
object
V2Restrictions
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX