Class: Google::Apis::HealthcareV1::KmsWrappedCryptoKey
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1::KmsWrappedCryptoKey
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1/classes.rb,
lib/google/apis/healthcare_v1/representations.rb,
lib/google/apis/healthcare_v1/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
-
#crypto_key ⇒ String
Required.
-
#wrapped_key ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KmsWrappedCryptoKey
constructor
A new instance of KmsWrappedCryptoKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KmsWrappedCryptoKey
Returns a new instance of KmsWrappedCryptoKey.
3076 3077 3078 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3076 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crypto_key ⇒ String
Required. The resource name of the KMS CryptoKey to use for unwrapping. For
example, projects/
project_id/locations/
location_id/keyRings/
keyring/
cryptoKeys/
key`.
Corresponds to the JSON property
cryptoKey`
3068 3069 3070 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3068 def crypto_key @crypto_key end |
#wrapped_key ⇒ String
Required. The wrapped data crypto key.
Corresponds to the JSON property wrappedKey
NOTE: Values are automatically base64 encoded/decoded in the client library.
3074 3075 3076 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3074 def wrapped_key @wrapped_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3081 3082 3083 3084 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 3081 def update!(**args) @crypto_key = args[:crypto_key] if args.key?(:crypto_key) @wrapped_key = args[:wrapped_key] if args.key?(:wrapped_key) end |