Class: Google::Apis::CloudkmsV1::EncryptRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudkmsV1::EncryptRequest
- Defined in:
- generated/google/apis/cloudkms_v1/classes.rb,
generated/google/apis/cloudkms_v1/representations.rb,
generated/google/apis/cloudkms_v1/representations.rb
Overview
Request message for KeyManagementService.Encrypt.
Instance Attribute Summary collapse
-
#additional_authenticated_data ⇒ String
Optional data that, if specified, must also be provided during decryption through DecryptRequest.additional_authenticated_data.
-
#plaintext ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EncryptRequest
constructor
A new instance of EncryptRequest.
-
#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) ⇒ EncryptRequest
Returns a new instance of EncryptRequest
599 600 601 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 599 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_authenticated_data ⇒ String
Optional data that, if specified, must also be provided during decryption
through DecryptRequest.additional_authenticated_data.
The maximum size depends on the key version's
protection_level. For
SOFTWARE keys, the AAD must be no larger than
64KiB. For HSM keys, the combined length of the
plaintext and additional_authenticated_data fields must be no larger than
8KiB.
Corresponds to the JSON property additionalAuthenticatedData
NOTE: Values are automatically base64 encoded/decoded in the client library.
585 586 587 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 585 def additional_authenticated_data @additional_authenticated_data end |
#plaintext ⇒ String
Required. The data to encrypt. Must be no larger than 64KiB.
The maximum size depends on the key version's
protection_level. For
SOFTWARE keys, the plaintext must be no larger
than 64KiB. For HSM keys, the combined length of the
plaintext and additional_authenticated_data fields must be no larger than
8KiB.
Corresponds to the JSON property plaintext
NOTE: Values are automatically base64 encoded/decoded in the client library.
597 598 599 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 597 def plaintext @plaintext end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
604 605 606 607 |
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 604 def update!(**args) @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data) @plaintext = args[:plaintext] if args.key?(:plaintext) end |