NonResourcePolicyRule class

NonResourcePolicyRule is a predicate that matches non-resource requests according to their verb and the target non-resource URL. A NonResourcePolicyRule matches a request if and only if both (a) at least one member of verbs matches the request and (b) at least one member of nonResourceURLs matches the request.

Constructors

NonResourcePolicyRule({required List<String> nonResourceURLs, required List<String> verbs})
Default constructor.
const
NonResourcePolicyRule.fromJson(Map<String, dynamic> json)
Creates a NonResourcePolicyRule from JSON data.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
nonResourceURLs List<String>
nonResourceURLs is a set of url prefixes that a user should have access to and may not be empty. For example:
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
verbs List<String>
verbs is a list of matching verbs and may not be empty. "*" matches all verbs. If it is present, it must be the only entry. Required.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a NonResourcePolicyRule instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited