Class: Google::Apis::CloudbuildV1alpha1::Secret

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1alpha1/classes.rb,
generated/google/apis/cloudbuild_v1alpha1/representations.rb,
generated/google/apis/cloudbuild_v1alpha1/representations.rb

Overview

Pairs a set of secret environment variables containing encrypted values with the Cloud KMS key to use to decrypt the value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Secret

Returns a new instance of Secret



846
847
848
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 846

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kms_key_nameString

Cloud KMS key name to use to decrypt these envs. Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


835
836
837
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 835

def kms_key_name
  @kms_key_name
end

#secret_envHash<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. Corresponds to the JSON property secretEnv

Returns:

  • (Hash<String,String>)


844
845
846
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 844

def secret_env
  @secret_env
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



851
852
853
854
# File 'generated/google/apis/cloudbuild_v1alpha1/classes.rb', line 851

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