FirewallPolicyRule class

Represents a rule that describes one or more match conditions along with the action to be taken when traffic matches this condition (allow or deny).

Constructors

FirewallPolicyRule({String? action, String? description, String? direction, bool? disabled, bool? enableLogging, String? kind, FirewallPolicyRuleMatcher? match, int? priority, String? ruleName, int? ruleTupleCount, String? securityProfileGroup, List<String>? targetResources, List<FirewallPolicyRuleSecureTag>? targetSecureTags, List<String>? targetServiceAccounts, bool? tlsInspect})
FirewallPolicyRule.fromJson(Map json_)

Properties

action String?
The Action to perform when the client connection triggers the rule. Valid actions for firewall rules are: "allow", "deny", "apply_security_profile_group" and "goto_next". Valid actions for packet mirroring rules are: "mirror", "do_not_mirror" and "goto_next".
getter/setter pair
description String?
An optional description for this resource.
getter/setter pair
direction String?
The direction in which this rule applies. Possible string values are:
getter/setter pair
disabled bool?
Denotes whether the firewall policy rule is disabled.
getter/setter pair
enableLogging bool?
Denotes whether to enable logging for a particular rule.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
kind String?
Type of the resource.
getter/setter pair
match FirewallPolicyRuleMatcher?
A match condition that incoming traffic is evaluated against. If it evaluates to true, the corresponding 'action' is enforced.
getter/setter pair
priority int?
An integer indicating the priority of a rule in the list.
getter/setter pair
ruleName String?
An optional name for the rule.
getter/setter pair
ruleTupleCount int?
Calculation of the complexity of a single firewall policy rule.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
securityProfileGroup String?
A fully-qualified URL of a SecurityProfile resource instance. Example: https://networksecurity.googleapis.com/v1/projects/{project}/locations/{location}/securityProfileGroups/my-security-profile-group Must be specified if action is one of 'apply_security_profile_group' or 'mirror'.
getter/setter pair
targetResources List<String>?
A list of network resource URLs to which this rule applies.
getter/setter pair
targetSecureTags List<FirewallPolicyRuleSecureTag>?
A list of secure tags that controls which instances the firewall rule applies to.
getter/setter pair
targetServiceAccounts List<String>?
A list of service accounts indicating the sets of instances that are applied with this rule.
getter/setter pair
tlsInspect bool?
Boolean flag indicating if the traffic should be TLS decrypted. Can be set only if action = 'apply_security_profile_group' and cannot be set for other actions.
getter/setter pair

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