Class: Google::Apis::DlpV2::GooglePrivacyDlpV2KmsWrappedCryptoKey
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DlpV2::GooglePrivacyDlpV2KmsWrappedCryptoKey
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dlp_v2/classes.rb,
 generated/google/apis/dlp_v2/representations.rb,
 generated/google/apis/dlp_v2/representations.rb
Overview
Include to use an existing data crypto key wrapped by KMS. Authorization requires the following IAM permissions when sending a request to perform a crypto transformation using a kms-wrapped crypto key: dlp.kms.encrypt
Instance Attribute Summary collapse
- 
  
    
      #crypto_key_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The resource name of the KMS CryptoKey to use for unwrapping. 
- 
  
    
      #wrapped_key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The wrapped data crypto key. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GooglePrivacyDlpV2KmsWrappedCryptoKey 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of GooglePrivacyDlpV2KmsWrappedCryptoKey. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GooglePrivacyDlpV2KmsWrappedCryptoKey
Returns a new instance of GooglePrivacyDlpV2KmsWrappedCryptoKey
| 2889 2890 2891 | # File 'generated/google/apis/dlp_v2/classes.rb', line 2889 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#crypto_key_name ⇒ String
The resource name of the KMS CryptoKey to use for unwrapping. [required]
Corresponds to the JSON property cryptoKeyName
| 2881 2882 2883 | # File 'generated/google/apis/dlp_v2/classes.rb', line 2881 def crypto_key_name @crypto_key_name end | 
#wrapped_key ⇒ String
The wrapped data crypto key. [required]
Corresponds to the JSON property wrappedKey
NOTE: Values are automatically base64 encoded/decoded in the client library.
| 2887 2888 2889 | # File 'generated/google/apis/dlp_v2/classes.rb', line 2887 def wrapped_key @wrapped_key end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2894 2895 2896 2897 | # File 'generated/google/apis/dlp_v2/classes.rb', line 2894 def update!(**args) @crypto_key_name = args[:crypto_key_name] if args.key?(:crypto_key_name) @wrapped_key = args[:wrapped_key] if args.key?(:wrapped_key) end |