class Google::Apis::IamV1::Rule
A rule to be applied in a Policy.
Attributes
Required Corresponds to the JSON property `action` @return [String]
Additional restrictions that must be met Corresponds to the JSON property `conditions` @return [Array<Google::Apis::IamV1::Condition>]
Human-readable description of the rule. Corresponds to the JSON property `description` @return [String]
The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries. Corresponds to the JSON property `in` @return [Array<String>]
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action. Corresponds to the JSON property `logConfig` @return [Array<Google::Apis::IamV1::LogConfig>]
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. Corresponds to the JSON property `permissions` @return [Array<String>]
Public Class Methods
# File generated/google/apis/iam_v1/classes.rb, line 437 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/iam_v1/classes.rb, line 442 def update!(**args) @description = args[:description] if args.key?(:description) @permissions = args[:permissions] if args.key?(:permissions) @action = args[:action] if args.key?(:action) @in = args[:in] if args.key?(:in) @not_in = args[:not_in] if args.key?(:not_in) @conditions = args[:conditions] if args.key?(:conditions) @log_config = args[:log_config] if args.key?(:log_config) end