Class Secret
Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt
the value. Note: Use kmsKeyName
with available_secrets
instead of using kmsKeyName
with secret
. For
instructions see: https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-credentials.
Inheritance
System.Object
Secret
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudBuild.v1beta1.Data
Assembly: Google.Apis.CloudBuild.v1beta1.dll
Syntax
public class Secret : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
KmsKeyName
Cloud KMS key name to use to decrypt these envs.
Declaration
[JsonProperty("kmsKeyName")]
public virtual string KmsKeyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
SecretEnv
Map of environment variable name to its encrypted value. Secret environment variables must be unique across all of a build's secrets, and must be used by at least one build step. Values can be at most 64 KB in size. There can be at most 100 secret values across all of a build's secrets.
Declaration
[JsonProperty("secretEnv")]
public virtual IDictionary<string, string> SecretEnv { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> |