Class: Google::Apis::GameservicesV1::Rule
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1::Rule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gameservices_v1/classes.rb,
generated/google/apis/gameservices_v1/representations.rb,
generated/google/apis/gameservices_v1/representations.rb
Overview
A rule to be applied in a Policy.
Instance Attribute Summary collapse
-
#action ⇒ String
Required Corresponds to the JSON property
action
. -
#conditions ⇒ Array<Google::Apis::GameservicesV1::Condition>
Additional restrictions that must be met.
-
#description ⇒ String
Human-readable description of the rule.
-
#in ⇒ Array<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.
-
#log_config ⇒ Array<Google::Apis::GameservicesV1::LogConfig>
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
-
#not_in ⇒ Array<String>
If one or more 'not_in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
-
#permissions ⇒ Array<String>
A permission is a string of form '..' (e.g., 'storage.buckets.list').
Instance Method Summary collapse
-
#initialize(**args) ⇒ Rule
constructor
A new instance of Rule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Rule
Returns a new instance of Rule.
1794 1795 1796 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 1794 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Required
Corresponds to the JSON property action
1754 1755 1756 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 1754 def action @action end |
#conditions ⇒ Array<Google::Apis::GameservicesV1::Condition>
Additional restrictions that must be met. All conditions must pass for the
rule to match.
Corresponds to the JSON property conditions
1760 1761 1762 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 1760 def conditions @conditions end |
#description ⇒ String
Human-readable description of the rule.
Corresponds to the JSON property description
1765 1766 1767 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 1765 def description @description end |
#in ⇒ Array<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.
Corresponds to the JSON property in
1771 1772 1773 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 1771 def in @in end |
#log_config ⇒ Array<Google::Apis::GameservicesV1::LogConfig>
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
that match the LOG action.
Corresponds to the JSON property logConfig
1777 1778 1779 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 1777 def log_config @log_config end |
#not_in ⇒ Array<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).
Corresponds to the JSON property notIn
1785 1786 1787 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 1785 def not_in @not_in end |
#permissions ⇒ Array<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.
Corresponds to the JSON property permissions
1792 1793 1794 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 1792 def @permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1799 1800 1801 1802 1803 1804 1805 1806 1807 |
# File 'generated/google/apis/gameservices_v1/classes.rb', line 1799 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 |