ApiKeyRestrictions class
Constructors
-
ApiKeyRestrictions({Input<
ApiKeyRestrictionsAndroidKeyRestrictions?> ? androidKeyRestrictions, Input<List< ? apiTargets, Input<ApiKeyRestrictionsApiTarget> ?>ApiKeyRestrictionsBrowserKeyRestrictions?> ? browserKeyRestrictions, Input<ApiKeyRestrictionsIosKeyRestrictions?> ? iosKeyRestrictions, Input<ApiKeyRestrictionsServerKeyRestrictions?> ? serverKeyRestrictions}) -
Creates a new ApiKeyRestrictions.
androidKeyRestrictionsThe Android apps that are allowed to use the key.apiTargetsA 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.browserKeyRestrictionsThe HTTP referrers (websites) that are allowed to use the key.iosKeyRestrictionsThe iOS apps that are allowed to use the key.serverKeyRestrictionsThe IP addresses of callers that are allowed to use the key.const -
ApiKeyRestrictions.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
androidKeyRestrictions
→ Input<
ApiKeyRestrictionsAndroidKeyRestrictions?> ? -
The Android apps that are allowed to use the key.
final
-
apiTargets
→ Input<
List< ?ApiKeyRestrictionsApiTarget> ?> -
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.
final
-
browserKeyRestrictions
→ Input<
ApiKeyRestrictionsBrowserKeyRestrictions?> ? -
The HTTP referrers (websites) that are allowed to use the key.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
iosKeyRestrictions
→ Input<
ApiKeyRestrictionsIosKeyRestrictions?> ? -
The iOS apps that are allowed to use the key.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serverKeyRestrictions
→ Input<
ApiKeyRestrictionsServerKeyRestrictions?> ? -
The IP addresses of callers that are allowed to use the key.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited