API Keys v2 API - Class Restrictions (1.0.0)

public sealed class Restrictions : IMessage<Restrictions>, IEquatable<Restrictions>, IDeepCloneable<Restrictions>, IBufferMessage, IMessage

Reference documentation and code samples for the API Keys v2 API class Restrictions.

Describes the restrictions on the key.

Inheritance

Object > Restrictions

Namespace

Google.Cloud.ApiKeys.V2

Assembly

Google.Cloud.ApiKeys.V2.dll

Constructors

Restrictions()

public Restrictions()

Restrictions(Restrictions)

public Restrictions(Restrictions other)
Parameter
NameDescription
otherRestrictions

Properties

AndroidKeyRestrictions

public AndroidKeyRestrictions AndroidKeyRestrictions { get; set; }

The Android apps that are allowed to use the key.

Property Value
TypeDescription
AndroidKeyRestrictions

ApiTargets

public RepeatedField<ApiTarget> ApiTargets { get; }

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.

Property Value
TypeDescription
RepeatedField<ApiTarget>

BrowserKeyRestrictions

public BrowserKeyRestrictions BrowserKeyRestrictions { get; set; }

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

Property Value
TypeDescription
BrowserKeyRestrictions

ClientRestrictionsCase

public Restrictions.ClientRestrictionsOneofCase ClientRestrictionsCase { get; }
Property Value
TypeDescription
Restrictions.ClientRestrictionsOneofCase

IosKeyRestrictions

public IosKeyRestrictions IosKeyRestrictions { get; set; }

The iOS apps that are allowed to use the key.

Property Value
TypeDescription
IosKeyRestrictions

ServerKeyRestrictions

public ServerKeyRestrictions ServerKeyRestrictions { get; set; }

The IP addresses of callers that are allowed to use the key.

Property Value
TypeDescription
ServerKeyRestrictions