public final class Permission 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 |
|---|
Permission() |
| Modifier and Type | Method and Description |
|---|---|
Permission |
clone() |
List<PermissionConstraint> |
getConstraints()
Extra custom constraints.
|
List<String> |
getHosts()
Used in Ingress or Egress Gateway cases to specify hosts that the policy applies to.
|
List<String> |
getMethods()
HTTP method.
|
List<String> |
getNotHosts()
Negate of hosts.
|
List<String> |
getNotMethods()
Negate of methods.
|
List<String> |
getNotPaths()
Negate of paths.
|
List<String> |
getNotPorts()
Negate of ports.
|
List<String> |
getPaths()
HTTP request paths or gRPC methods.
|
List<String> |
getPorts()
Port names or numbers.
|
Permission |
set(String fieldName,
Object value) |
Permission |
setConstraints(List<PermissionConstraint> constraints)
Extra custom constraints.
|
Permission |
setHosts(List<String> hosts)
Used in Ingress or Egress Gateway cases to specify hosts that the policy applies to.
|
Permission |
setMethods(List<String> methods)
HTTP method.
|
Permission |
setNotHosts(List<String> notHosts)
Negate of hosts.
|
Permission |
setNotMethods(List<String> notMethods)
Negate of methods.
|
Permission |
setNotPaths(List<String> notPaths)
Negate of paths.
|
Permission |
setNotPorts(List<String> notPorts)
Negate of ports.
|
Permission |
setPaths(List<String> paths)
HTTP request paths or gRPC methods.
|
Permission |
setPorts(List<String> ports)
Port names or numbers.
|
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 List<PermissionConstraint> getConstraints()
null for nonepublic Permission setConstraints(List<PermissionConstraint> constraints)
constraints - constraints or null for nonepublic List<String> getHosts()
null for nonepublic Permission setHosts(List<String> hosts)
hosts - hosts or null for nonepublic Permission setMethods(List<String> methods)
methods - methods or null for nonepublic List<String> getNotHosts()
null for nonepublic Permission setNotHosts(List<String> notHosts)
notHosts - notHosts or null for nonepublic List<String> getNotMethods()
null for nonepublic Permission setNotMethods(List<String> notMethods)
notMethods - notMethods or null for nonepublic List<String> getNotPaths()
null for nonepublic Permission setNotPaths(List<String> notPaths)
notPaths - notPaths or null for nonepublic List<String> getNotPorts()
null for nonepublic Permission setNotPorts(List<String> notPorts)
notPorts - notPorts or null for nonepublic List<String> getPaths()
null for nonepublic Permission setPaths(List<String> paths)
paths - paths or null for nonepublic Permission setPorts(List<String> ports)
ports - ports or null for nonepublic Permission set(String fieldName, Object value)
set in class GenericJsonpublic Permission clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.