class Google::Apis::CloudbuildV1::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: cloud.google.com/cloud-build/docs/securing-builds/ use-encrypted-credentials.

Attributes

kms_key_name[RW]

Cloud KMS key name to use to decrypt these envs. Corresponds to the JSON property `kmsKeyName` @return [String]

secret_env[RW]

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. Corresponds to the JSON property `secretEnv` @return [Hash<String,String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudbuild_v1/classes.rb, line 2551
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudbuild_v1/classes.rb, line 2556
def update!(**args)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
  @secret_env = args[:secret_env] if args.key?(:secret_env)
end