Class: Google::Apis::GameservicesV1beta::Rule
- Inherits:
-
Object
- Object
- Google::Apis::GameservicesV1beta::Rule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gameservices_v1beta/classes.rb,
lib/google/apis/gameservices_v1beta/representations.rb,
lib/google/apis/gameservices_v1beta/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::GameservicesV1beta::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::GameservicesV1beta::LogConfig>
The config returned to callers of 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.
1856 1857 1858 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1856 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Required
Corresponds to the JSON property action
1816 1817 1818 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1816 def action @action end |
#conditions ⇒ Array<Google::Apis::GameservicesV1beta::Condition>
Additional restrictions that must be met. All conditions must pass for the
rule to match.
Corresponds to the JSON property conditions
1822 1823 1824 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1822 def conditions @conditions end |
#description ⇒ String
Human-readable description of the rule.
Corresponds to the JSON property description
1827 1828 1829 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1827 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
1833 1834 1835 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1833 def in @in end |
#log_config ⇒ Array<Google::Apis::GameservicesV1beta::LogConfig>
The config returned to callers of CheckPolicy for any entries that match the
LOG action.
Corresponds to the JSON property logConfig
1839 1840 1841 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1839 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
1847 1848 1849 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1847 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
1854 1855 1856 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1854 def @permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1861 1862 1863 1864 1865 1866 1867 1868 1869 |
# File 'lib/google/apis/gameservices_v1beta/classes.rb', line 1861 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 |