Class: Google::Apis::CloudkmsV1::DecryptRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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.Decrypt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DecryptRequest

Returns a new instance of DecryptRequest.



561
562
563
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 561

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

Instance Attribute Details

#additional_authenticated_dataString

Optional. Optional data that must match the data originally supplied in EncryptRequest.additional_authenticated_data. Corresponds to the JSON property additionalAuthenticatedData NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


552
553
554
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 552

def additional_authenticated_data
  @additional_authenticated_data
end

#ciphertextString

Required. The encrypted data originally returned in EncryptResponse.ciphertext. Corresponds to the JSON property ciphertext NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


559
560
561
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 559

def ciphertext
  @ciphertext
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



566
567
568
569
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 566

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