Class: Google::Apis::ClouduseraccountsVmAlpha::Rule
- Inherits:
-
Object
- Object
- Google::Apis::ClouduseraccountsVmAlpha::Rule
- Defined in:
- generated/google/apis/clouduseraccounts_vm_alpha/classes.rb,
generated/google/apis/clouduseraccounts_vm_alpha/representations.rb,
generated/google/apis/clouduseraccounts_vm_alpha/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::ClouduseraccountsVmAlpha::Condition>
Additional restrictions that must be met Corresponds to the JSON property
conditions
. -
#description ⇒ String
Human-readable description of the rule.
-
#ins ⇒ Array<String>
The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries.
-
#log_configs ⇒ Array<Google::Apis::ClouduseraccountsVmAlpha::LogConfig>
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG action.
-
#not_ins ⇒ Array<String>
The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of 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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Rule
Returns a new instance of Rule
1017 1018 1019 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 1017 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Required
Corresponds to the JSON property action
981 982 983 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 981 def action @action end |
#conditions ⇒ Array<Google::Apis::ClouduseraccountsVmAlpha::Condition>
Additional restrictions that must be met
Corresponds to the JSON property conditions
986 987 988 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 986 def conditions @conditions end |
#description ⇒ String
Human-readable description of the rule.
Corresponds to the JSON property description
991 992 993 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 991 def description @description end |
#ins ⇒ Array<String>
The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries.
Corresponds to the JSON property ins
996 997 998 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 996 def ins @ins end |
#log_configs ⇒ Array<Google::Apis::ClouduseraccountsVmAlpha::LogConfig>
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
that match the LOG action.
Corresponds to the JSON property logConfigs
1002 1003 1004 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 1002 def log_configs @log_configs end |
#not_ins ⇒ Array<String>
The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of
entries.
Corresponds to the JSON property notIns
1008 1009 1010 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 1008 def not_ins @not_ins 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
1015 1016 1017 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 1015 def @permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1022 1023 1024 1025 1026 1027 1028 1029 1030 |
# File 'generated/google/apis/clouduseraccounts_vm_alpha/classes.rb', line 1022 def update!(**args) @action = args[:action] if args.key?(:action) @conditions = args[:conditions] if args.key?(:conditions) @description = args[:description] if args.key?(:description) @ins = args[:ins] if args.key?(:ins) @log_configs = args[:log_configs] if args.key?(:log_configs) @not_ins = args[:not_ins] if args.key?(:not_ins) @permissions = args[:permissions] if args.key?(:permissions) end |