Class: Google::Apis::CloudkmsV1::EncryptResponse

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

Response 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) ⇒ EncryptResponse

Returns a new instance of EncryptResponse.



696
697
698
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 696

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

Instance Attribute Details

#ciphertextString

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

Returns:

  • (String)


688
689
690
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 688

def ciphertext
  @ciphertext
end

#nameString

The resource name of the CryptoKeyVersion used in encryption. Check this field to verify that the intended resource was used for encryption. Corresponds to the JSON property name

Returns:

  • (String)


694
695
696
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 694

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



701
702
703
704
# File 'generated/google/apis/cloudkms_v1/classes.rb', line 701

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