class Google::Apis::ComputeV1::SecurityPolicyRule
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).
Attributes
The Action to perform when the client connection triggers the rule. Can currently be either “allow” or “deny()” where valid values for status are 403, 404, and 502. Corresponds to the JSON property `action` @return [String]
An optional description of this resource. Provide this property when you create the resource. Corresponds to the JSON property `description` @return [String]
- Output only
-
Type of the resource. Always compute#securityPolicyRule for
security policy rules Corresponds to the JSON property `kind` @return [String]
Represents a match condition that incoming traffic is evaluated against. Exactly one field must be specified. Corresponds to the JSON property `match` @return [Google::Apis::ComputeV1::SecurityPolicyRuleMatcher]
If set to true, the specified action is not enforced. Corresponds to the JSON property `preview` @return [Boolean]
If set to true, the specified action is not enforced. Corresponds to the JSON property `preview` @return [Boolean]
An integer indicating the priority of a rule in the list. The priority must be a positive value between 0 and 2147483647. Rules are evaluated from highest to lowest priority where 0 is the highest priority and 2147483647 is the lowest priority. Corresponds to the JSON property `priority` @return [Fixnum]
Public Class Methods
# File lib/google/apis/compute_v1/classes.rb, line 29336 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/compute_v1/classes.rb, line 29341 def update!(**args) @action = args[:action] if args.key?(:action) @description = args[:description] if args.key?(:description) @kind = args[:kind] if args.key?(:kind) @match = args[:match] if args.key?(:match) @preview = args[:preview] if args.key?(:preview) @priority = args[:priority] if args.key?(:priority) end