Rule class

A rule to be applied in a Policy.

Constructors

Rule.new({String? action, List<Condition>? conditions, String? description, List<String>? in_, List<LogConfig>? logConfig, List<String>? notIn, List<String>? permissions})
Rule.fromJson(Map json_)

Properties

action String?
Required Possible string values are:
getter/setter pair
conditions List<Condition>?
Additional restrictions that must be met.
getter/setter pair
description String?
Human-readable description of the rule.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
in_ List<String>?
If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
getter/setter pair
logConfig List<LogConfig>?
The config returned to callers of CheckPolicy for any entries that match the LOG action.
getter/setter pair
notIn List<String>?
If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
getter/setter pair
permissions List<String>?
A permission is a string of form '..' (e.g., 'storage.buckets.list').
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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