public final class TrafficTarget
extends com.google.api.client.json.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 Cloud Run Admin API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TrafficTarget() |
| Modifier and Type | Method and Description |
|---|---|
TrafficTarget |
clone() |
String |
getConfigurationName()
[Deprecated] Not supported in Cloud Run.
|
Boolean |
getLatestRevision()
Uses the "status.latestReadyRevisionName" of the Service to determine the traffic target.
|
Integer |
getPercent()
Percent specifies percent of the traffic to this Revision or Configuration.
|
String |
getRevisionName()
Points this traffic target to a specific Revision.
|
String |
getTag()
Tag is used to expose a dedicated url for referencing this target exclusively.
|
String |
getUrl()
Output only.
|
TrafficTarget |
set(String fieldName,
Object value) |
TrafficTarget |
setConfigurationName(String configurationName)
[Deprecated] Not supported in Cloud Run.
|
TrafficTarget |
setLatestRevision(Boolean latestRevision)
Uses the "status.latestReadyRevisionName" of the Service to determine the traffic target.
|
TrafficTarget |
setPercent(Integer percent)
Percent specifies percent of the traffic to this Revision or Configuration.
|
TrafficTarget |
setRevisionName(String revisionName)
Points this traffic target to a specific Revision.
|
TrafficTarget |
setTag(String tag)
Tag is used to expose a dedicated url for referencing this target exclusively.
|
TrafficTarget |
setUrl(String url)
Output only.
|
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 getConfigurationName()
null for nonepublic TrafficTarget setConfigurationName(String configurationName)
configurationName - configurationName or null for nonepublic Boolean getLatestRevision()
null for nonepublic TrafficTarget setLatestRevision(Boolean latestRevision)
latestRevision - latestRevision or null for nonepublic Integer getPercent()
null for nonepublic TrafficTarget setPercent(Integer percent)
percent - percent or null for nonepublic String getRevisionName()
null for nonepublic TrafficTarget setRevisionName(String revisionName)
revisionName - revisionName or null for nonepublic String getTag()
null for nonepublic TrafficTarget setTag(String tag)
tag - tag or null for nonepublic String getUrl()
null for nonepublic TrafficTarget setUrl(String url)
url - url or null for nonepublic TrafficTarget set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic TrafficTarget clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.