Class: Google::Apis::GenomicsV2alpha1::Secret

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

Overview

Secret holds encrypted information that is only decrypted and stored in RAM by the worker VM when running the pipeline.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Secret

Returns a new instance of Secret



1114
1115
1116
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1114

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

Instance Attribute Details

#cipher_textString

The value of the cipherText response from the encrypt method. Corresponds to the JSON property cipherText

Returns:

  • (String)


1105
1106
1107
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1105

def cipher_text
  @cipher_text
end

#key_nameString

The name of the Cloud KMS key that will be used to decrypt the secret value. The VM service account must have the required permissions and authentication scopes to invoke the decrypt method on the specified key. Corresponds to the JSON property keyName

Returns:

  • (String)


1112
1113
1114
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1112

def key_name
  @key_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1119
1120
1121
1122
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 1119

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