class Google::Apis::GameservicesV1::Rule

A rule to be applied in a Policy.

Attributes

action[RW]

Required Corresponds to the JSON property `action` @return [String]

conditions[RW]

Additional restrictions that must be met. All conditions must pass for the rule to match. Corresponds to the JSON property `conditions` @return [Array<Google::Apis::GameservicesV1::Condition>]

description[RW]

Human-readable description of the rule. Corresponds to the JSON property `description` @return [String]

in[RW]

If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/ AUTHORITY_SELECTOR is in at least one of these entries. Corresponds to the JSON property `in` @return [Array<String>]

log_config[RW]

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::GameservicesV1::LogConfig>]

not_in[RW]

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). Corresponds to the JSON property `notIn` @return [Array<String>]

permissions[RW]

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

new(**args) click to toggle source
# File lib/google/apis/gameservices_v1/classes.rb, line 1861
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/gameservices_v1/classes.rb, line 1866
def update!(**args)
  @action = args[:action] if args.key?(:action)
  @conditions = args[:conditions] if args.key?(:conditions)
  @description = args[:description] if args.key?(:description)
  @in = args[:in] if args.key?(:in)
  @log_config = args[:log_config] if args.key?(:log_config)
  @not_in = args[:not_in] if args.key?(:not_in)
  @permissions = args[:permissions] if args.key?(:permissions)
end