public final class Rule extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
Rule()  | 
| Modifier and Type | Method and Description | 
|---|---|
Rule | 
clone()  | 
String | 
getAction()
Required 
 | 
List<Condition> | 
getConditions()
Additional restrictions that must be met. 
 | 
String | 
getDescription()
Human-readable description of the rule. 
 | 
List<String> | 
getIns()
If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR
 is in at least one of these entries. 
 | 
List<LogConfig> | 
getLogConfigs()
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG
 action. 
 | 
List<String> | 
getNotIns()
If one or more 'not_in' clauses are specified, the rule matches if the
 PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. 
 | 
List<String> | 
getPermissions()
A permission is a string of form '..' (e.g., 'storage.buckets.list'). 
 | 
Rule | 
set(String fieldName,
   Object value)  | 
Rule | 
setAction(String action)
Required 
 | 
Rule | 
setConditions(List<Condition> conditions)
Additional restrictions that must be met. 
 | 
Rule | 
setDescription(String description)
Human-readable description of the rule. 
 | 
Rule | 
setIns(List<String> ins)
If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/AUTHORITY_SELECTOR
 is in at least one of these entries. 
 | 
Rule | 
setLogConfigs(List<LogConfig> logConfigs)
The config returned to callers of tech.iam.IAM.CheckPolicy for any entries that match the LOG
 action. 
 | 
Rule | 
setNotIns(List<String> notIns)
If one or more 'not_in' clauses are specified, the rule matches if the
 PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. 
 | 
Rule | 
setPermissions(List<String> permissions)
A permission is a string of form '..' (e.g., 'storage.buckets.list'). 
 | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAction()
null for nonepublic Rule setAction(String action)
action - action or null for nonepublic List<Condition> getConditions()
null for nonepublic Rule setConditions(List<Condition> conditions)
conditions - conditions or null for nonepublic String getDescription()
null for nonepublic Rule setDescription(String description)
description - description or null for nonepublic List<String> getIns()
null for nonepublic Rule setIns(List<String> ins)
ins - ins or null for nonepublic List<LogConfig> getLogConfigs()
null for nonepublic Rule setLogConfigs(List<LogConfig> logConfigs)
logConfigs - logConfigs or null for nonepublic List<String> getNotIns()
null for nonepublic Rule setNotIns(List<String> notIns)
notIns - notIns or null for nonepublic List<String> getPermissions()
null for nonepublic Rule setPermissions(List<String> permissions)
permissions - permissions or null for nonepublic Rule set(String fieldName, Object value)
set in class GenericJsonpublic Rule clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.