API Keys v2 API - Class Restrictions (1.3.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
Name Description
other Restrictions

Properties

AndroidKeyRestrictions

public AndroidKeyRestrictions AndroidKeyRestrictions { get; set; }

The Android apps that are allowed to use the key.

Property Value
Type Description
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
Type Description
RepeatedFieldApiTarget

BrowserKeyRestrictions

public BrowserKeyRestrictions BrowserKeyRestrictions { get; set; }

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

Property Value
Type Description
BrowserKeyRestrictions

ClientRestrictionsCase

public Restrictions.ClientRestrictionsOneofCase ClientRestrictionsCase { get; }
Property Value
Type Description
RestrictionsClientRestrictionsOneofCase

IosKeyRestrictions

public IosKeyRestrictions IosKeyRestrictions { get; set; }

The iOS apps that are allowed to use the key.

Property Value
Type Description
IosKeyRestrictions

ServerKeyRestrictions

public ServerKeyRestrictions ServerKeyRestrictions { get; set; }

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

Property Value
Type Description
ServerKeyRestrictions