Class: Google::Apis::RunV2::GoogleDevtoolsCloudbuildV1InlineSecret

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsCloudbuildV1InlineSecret

Returns a new instance of GoogleDevtoolsCloudbuildV1InlineSecret.



4256
4257
4258
# File 'lib/google/apis/run_v2/classes.rb', line 4256

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

Instance Attribute Details

#env_mapHash<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 envMap

Returns:

  • (Hash<String,String>)


4248
4249
4250
# File 'lib/google/apis/run_v2/classes.rb', line 4248

def env_map
  @env_map
end

#kms_key_nameString

Resource name of Cloud KMS crypto key to decrypt the encrypted value. In format: projects//locations//keyRings//cryptoKeys/ Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


4254
4255
4256
# File 'lib/google/apis/run_v2/classes.rb', line 4254

def kms_key_name
  @kms_key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4261
4262
4263
4264
# File 'lib/google/apis/run_v2/classes.rb', line 4261

def update!(**args)
  @env_map = args[:env_map] if args.key?(:env_map)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
end