Class: Google::Apis::CloudkmsV1beta1::EncryptRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudkms_v1beta1/classes.rb,
generated/google/apis/cloudkms_v1beta1/representations.rb,
generated/google/apis/cloudkms_v1beta1/representations.rb

Overview

Request message for KeyManagementService.Encrypt.

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) ⇒ EncryptRequest

Returns a new instance of EncryptRequest



94
95
96
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 94

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

Instance Attribute Details

#additional_authenticated_dataString

Optional data that, if specified, must also be provided during decryption through DecryptRequest.additional_authenticated_data. Must be no larger than 64KiB. Corresponds to the JSON property additionalAuthenticatedData

Returns:

  • (String)


87
88
89
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 87

def additional_authenticated_data
  @additional_authenticated_data
end

#plaintextString

Required. The data to encrypt. Must be no larger than 64KiB. Corresponds to the JSON property plaintext

Returns:

  • (String)


92
93
94
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 92

def plaintext
  @plaintext
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



99
100
101
102
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 99

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