public final class Secret
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 Build 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.Flags
Constructor and Description |
---|
Secret() |
Modifier and Type | Method and Description |
---|---|
Secret |
clone() |
java.lang.String |
getKmsKeyName()
Cloud KMS key name to use to decrypt these envs.
|
java.util.Map<java.lang.String,java.lang.String> |
getSecretEnv()
Map of environment variable name to its encrypted value.
|
Secret |
set(java.lang.String fieldName,
java.lang.Object value) |
Secret |
setKmsKeyName(java.lang.String kmsKeyName)
Cloud KMS key name to use to decrypt these envs.
|
Secret |
setSecretEnv(java.util.Map<java.lang.String,java.lang.String> secretEnv)
Map of environment variable name to its encrypted value.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getKmsKeyName()
null
for nonepublic Secret setKmsKeyName(java.lang.String kmsKeyName)
kmsKeyName
- kmsKeyName or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getSecretEnv()
null
for nonepublic Secret setSecretEnv(java.util.Map<java.lang.String,java.lang.String> secretEnv)
secretEnv
- secretEnv or null
for nonepublic Secret set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Secret clone()
clone
in class com.google.api.client.json.GenericJson