Class: Google::Apis::HealthcareV1beta1::KmsWrappedCryptoKey

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

Overview

Include to use an existing data crypto key wrapped by KMS. The wrapped key must be a 128-, 192-, or 256-bit key. The key must grant the Cloud IAM permission cloudkms.cryptoKeyVersions.useToDecrypt to the project's Cloud Healthcare Service Agent service account. For more information, see Creating a wrapped key.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KmsWrappedCryptoKey

Returns a new instance of KmsWrappedCryptoKey.



3437
3438
3439
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3437

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

Instance Attribute Details

#crypto_keyString

Required. The resource name of the KMS CryptoKey to use for unwrapping. Corresponds to the JSON property cryptoKey

Returns:

  • (String)


3429
3430
3431
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3429

def crypto_key
  @crypto_key
end

#wrapped_keyString

Required. The wrapped data crypto key. Corresponds to the JSON property wrappedKey NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


3435
3436
3437
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3435

def wrapped_key
  @wrapped_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3442
3443
3444
3445
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3442

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