
target.apidocs.com.google.api.services.compute.model.Permission.html Maven / Gradle / Ivy
Permission (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute.model
Class Permission
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.compute.model.Permission
-
public final class Permission
extends GenericJson
[Deprecated] All fields defined in a permission are ANDed.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Permission()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getConstraints
public List<PermissionConstraint> getConstraints()
Extra custom constraints. The constraints are ANDed together.
- Returns:
- value or
null
for none
-
setConstraints
public Permission setConstraints(List<PermissionConstraint> constraints)
Extra custom constraints. The constraints are ANDed together.
- Parameters:
constraints
- constraints or null
for none
-
getHosts
public List<String> getHosts()
Used in Ingress or Egress Gateway cases to specify hosts that the policy applies to. Exact
match, prefix match, and suffix match are supported.
- Returns:
- value or
null
for none
-
setHosts
public Permission setHosts(List<String> hosts)
Used in Ingress or Egress Gateway cases to specify hosts that the policy applies to. Exact
match, prefix match, and suffix match are supported.
- Parameters:
hosts
- hosts or null
for none
-
setMethods
public Permission setMethods(List<String> methods)
HTTP method.
- Parameters:
methods
- methods or null
for none
-
getNotHosts
public List<String> getNotHosts()
Negate of hosts. Specifies exclusions.
- Returns:
- value or
null
for none
-
setNotHosts
public Permission setNotHosts(List<String> notHosts)
Negate of hosts. Specifies exclusions.
- Parameters:
notHosts
- notHosts or null
for none
-
getNotMethods
public List<String> getNotMethods()
Negate of methods. Specifies exclusions.
- Returns:
- value or
null
for none
-
setNotMethods
public Permission setNotMethods(List<String> notMethods)
Negate of methods. Specifies exclusions.
- Parameters:
notMethods
- notMethods or null
for none
-
getNotPaths
public List<String> getNotPaths()
Negate of paths. Specifies exclusions.
- Returns:
- value or
null
for none
-
setNotPaths
public Permission setNotPaths(List<String> notPaths)
Negate of paths. Specifies exclusions.
- Parameters:
notPaths
- notPaths or null
for none
-
getNotPorts
public List<String> getNotPorts()
Negate of ports. Specifies exclusions.
- Returns:
- value or
null
for none
-
setNotPorts
public Permission setNotPorts(List<String> notPorts)
Negate of ports. Specifies exclusions.
- Parameters:
notPorts
- notPorts or null
for none
-
getPaths
public List<String> getPaths()
HTTP request paths or gRPC methods. Exact match, prefix match, and suffix match are supported.
- Returns:
- value or
null
for none
-
setPaths
public Permission setPaths(List<String> paths)
HTTP request paths or gRPC methods. Exact match, prefix match, and suffix match are supported.
- Parameters:
paths
- paths or null
for none
-
setPorts
public Permission setPorts(List<String> ports)
Port names or numbers.
- Parameters:
ports
- ports or null
for none
-
set
public Permission set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Permission clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy