Rule class
A rule to be applied in a Policy.
Constructors
-
Rule({Input<
RuleAction> ? action, Input<List< ? conditions, Input<Condition> >String> ? description, Input<List< ? in_, Input<String> >List< ? logConfig, Input<LogConfig> >List< ? notIn, Input<String> >List< ? permissions})String> > -
Creates a new Rule.
actionRequiredconditionsAdditional restrictions that must be met. All conditions must pass for the rule to match.descriptionHuman-readable description of the rule.in_If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.logConfigThe config returned to callers of CheckPolicy for any entries that match the LOG action.notInIf one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. The format for in and not_in entries can be found at in the Local IAM documentation (see go/local-iam#features).permissionsA permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '' matches all permissions, and a verb part of '' (e.g., 'storage.buckets.*') matches all verbs.const -
Rule.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
action
→ Input<
RuleAction> ? -
Required
final
-
conditions
→ Input<
List< ?Condition> > -
Additional restrictions that must be met. All conditions must pass for the rule to match.
final
-
description
→ Input<
String> ? -
Human-readable description of the rule.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
in_
→ Input<
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.
final
-
logConfig
→ Input<
List< ?LogConfig> > -
The config returned to callers of CheckPolicy for any entries that match the LOG action.
final
-
notIn
→ Input<
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. The format for in and not_in entries can be found at in the Local IAM documentation (see go/local-iam#features).
final
-
permissions
→ Input<
List< ?String> > -
A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value of '' matches all permissions, and a verb part of '' (e.g., 'storage.buckets.*') matches all verbs.
final
- 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
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited