Class: Google::Apis::CloudbuildV1::Secret
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudbuildV1::Secret
 
- Defined in:
- generated/google/apis/cloudbuild_v1/classes.rb,
 generated/google/apis/cloudbuild_v1/representations.rb,
 generated/google/apis/cloudbuild_v1/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
- 
  
    
      #kms_key_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Cloud KMS key name to use to decrypt these envs. 
- 
  
    
      #secret_env  ⇒ Hash<String,String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Map of environment variable name to its encrypted value. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Secret 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Secret. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Secret
Returns a new instance of Secret
| 1022 1023 1024 | # File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1022 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#kms_key_name ⇒ String
Cloud KMS key name to use to decrypt these envs.
Corresponds to the JSON property kmsKeyName
| 1011 1012 1013 | # File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1011 def kms_key_name @kms_key_name end | 
#secret_env ⇒ Hash<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
1 KB in size. There can be at most ten secret values across all of a
build's secrets.
Corresponds to the JSON property secretEnv
| 1020 1021 1022 | # File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1020 def secret_env @secret_env end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1027 1028 1029 1030 | # File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1027 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 |