Cloud Build V1 API - Class Google::Cloud::Build::V1::Secret (v0.26.2)

Reference documentation and code samples for the Cloud Build V1 API class Google::Cloud::Build::V1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#kms_key_name

def kms_key_name() -> ::String
Returns
  • (::String) — Cloud KMS key name to use to decrypt these envs.

#kms_key_name=

def kms_key_name=(value) -> ::String
Parameter
  • value (::String) — Cloud KMS key name to use to decrypt these envs.
Returns
  • (::String) — Cloud KMS key name to use to decrypt these envs.

#secret_env

def secret_env() -> ::Google::Protobuf::Map{::String => ::String}
Returns
  • (::Google::Protobuf::Map{::String => ::String}) — 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.

#secret_env=

def secret_env=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
  • value (::Google::Protobuf::Map{::String => ::String}) — 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.

Returns
  • (::Google::Protobuf::Map{::String => ::String}) — 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.