Class: Google::Apis::ServicemanagementV1::Rule
- Inherits:
-
Object
- Object
- Google::Apis::ServicemanagementV1::Rule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicemanagement_v1/classes.rb,
generated/google/apis/servicemanagement_v1/representations.rb,
generated/google/apis/servicemanagement_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::ServicemanagementV1::Condition>
Additional restrictions that must be met Corresponds to the JSON property
conditions
. -
#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::ServicemanagementV1::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.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Rule
Returns a new instance of Rule
1181 1182 1183 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1181 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Required
Corresponds to the JSON property action
1179 1180 1181 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1179 def action @action end |
#conditions ⇒ Array<Google::Apis::ServicemanagementV1::Condition>
Additional restrictions that must be met
Corresponds to the JSON property conditions
1155 1156 1157 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1155 def conditions @conditions end |
#description ⇒ String
Human-readable description of the rule.
Corresponds to the JSON property description
1150 1151 1152 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1150 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
1167 1168 1169 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1167 def in @in end |
#log_config ⇒ Array<Google::Apis::ServicemanagementV1::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
1161 1162 1163 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1161 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 is the same as for members in a
Binding (see google/iam/v1/policy.proto).
Corresponds to the JSON property notIn
1145 1146 1147 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1145 def not_in @not_in end |
#permissions ⇒ Array<String>
A permission is a string of form 'permissions
1174 1175 1176 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1174 def @permissions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1186 1187 1188 1189 1190 1191 1192 1193 1194 |
# File 'generated/google/apis/servicemanagement_v1/classes.rb', line 1186 def update!(**args) @not_in = args[:not_in] if args.key?(:not_in) @description = args[:description] if args.key?(:description) @conditions = args[:conditions] if args.key?(:conditions) @log_config = args[:log_config] if args.key?(:log_config) @in = args[:in] if args.key?(:in) @permissions = args[:permissions] if args.key?(:permissions) @action = args[:action] if args.key?(:action) end |