
target.apidocs.com.google.api.services.compute.model.Principal.html Maven / Gradle / Ivy
Principal (Compute Engine API alpha-rev20200526-1.30.9)
com.google.api.services.compute.model
Class Principal
- 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.Principal
-
public final class Principal
extends GenericJson
[Deprecated] All fields defined in a principal 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
Principal()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Principal
clone()
String
getCondition()
An expression to specify custom condition.
List<String>
getGroups()
The groups the principal belongs to.
List<String>
getIps()
IPv4 or IPv6 address or range (In CIDR format)
List<String>
getNamespaces()
The namespaces.
List<String>
getNotGroups()
Negate of groups.
List<String>
getNotIps()
Negate of IPs.
List<String>
getNotNamespaces()
Negate of namespaces.
List<String>
getNotUsers()
Negate of users.
Map<String,String>
getProperties()
A map of Istio attribute to expected values.
List<String>
getUsers()
The user names/IDs or service accounts.
Principal
set(String fieldName,
Object value)
Principal
setCondition(String condition)
An expression to specify custom condition.
Principal
setGroups(List<String> groups)
The groups the principal belongs to.
Principal
setIps(List<String> ips)
IPv4 or IPv6 address or range (In CIDR format)
Principal
setNamespaces(List<String> namespaces)
The namespaces.
Principal
setNotGroups(List<String> notGroups)
Negate of groups.
Principal
setNotIps(List<String> notIps)
Negate of IPs.
Principal
setNotNamespaces(List<String> notNamespaces)
Negate of namespaces.
Principal
setNotUsers(List<String> notUsers)
Negate of users.
Principal
setProperties(Map<String,String> properties)
A map of Istio attribute to expected values.
Principal
setUsers(List<String> users)
The user names/IDs or service accounts.
-
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
-
getCondition
public String getCondition()
An expression to specify custom condition.
- Returns:
- value or
null
for none
-
setCondition
public Principal setCondition(String condition)
An expression to specify custom condition.
- Parameters:
condition
- condition or null
for none
-
getGroups
public List<String> getGroups()
The groups the principal belongs to. Exact match, prefix match, and suffix match are supported.
- Returns:
- value or
null
for none
-
setGroups
public Principal setGroups(List<String> groups)
The groups the principal belongs to. Exact match, prefix match, and suffix match are supported.
- Parameters:
groups
- groups or null
for none
-
getIps
public List<String> getIps()
IPv4 or IPv6 address or range (In CIDR format)
- Returns:
- value or
null
for none
-
setIps
public Principal setIps(List<String> ips)
IPv4 or IPv6 address or range (In CIDR format)
- Parameters:
ips
- ips or null
for none
-
getNamespaces
public List<String> getNamespaces()
The namespaces. Exact match, prefix match, and suffix match are supported.
- Returns:
- value or
null
for none
-
setNamespaces
public Principal setNamespaces(List<String> namespaces)
The namespaces. Exact match, prefix match, and suffix match are supported.
- Parameters:
namespaces
- namespaces or null
for none
-
getNotGroups
public List<String> getNotGroups()
Negate of groups. Specifies exclusions.
- Returns:
- value or
null
for none
-
setNotGroups
public Principal setNotGroups(List<String> notGroups)
Negate of groups. Specifies exclusions.
- Parameters:
notGroups
- notGroups or null
for none
-
getNotIps
public List<String> getNotIps()
Negate of IPs. Specifies exclusions.
- Returns:
- value or
null
for none
-
setNotIps
public Principal setNotIps(List<String> notIps)
Negate of IPs. Specifies exclusions.
- Parameters:
notIps
- notIps or null
for none
-
getNotNamespaces
public List<String> getNotNamespaces()
Negate of namespaces. Specifies exclusions.
- Returns:
- value or
null
for none
-
setNotNamespaces
public Principal setNotNamespaces(List<String> notNamespaces)
Negate of namespaces. Specifies exclusions.
- Parameters:
notNamespaces
- notNamespaces or null
for none
-
getNotUsers
public List<String> getNotUsers()
Negate of users. Specifies exclusions.
- Returns:
- value or
null
for none
-
setNotUsers
public Principal setNotUsers(List<String> notUsers)
Negate of users. Specifies exclusions.
- Parameters:
notUsers
- notUsers or null
for none
-
getProperties
public Map<String,String> getProperties()
A map of Istio attribute to expected values. Exact match, prefix match, and suffix match are
supported for values. For example, `request.headers[version]: "v1"`. The properties are ANDed
together.
- Returns:
- value or
null
for none
-
setProperties
public Principal setProperties(Map<String,String> properties)
A map of Istio attribute to expected values. Exact match, prefix match, and suffix match are
supported for values. For example, `request.headers[version]: "v1"`. The properties are ANDed
together.
- Parameters:
properties
- properties or null
for none
-
getUsers
public List<String> getUsers()
The user names/IDs or service accounts. Exact match, prefix match, and suffix match are
supported.
- Returns:
- value or
null
for none
-
setUsers
public Principal setUsers(List<String> users)
The user names/IDs or service accounts. Exact match, prefix match, and suffix match are
supported.
- Parameters:
users
- users or null
for none
-
set
public Principal set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Principal clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy