Class: Google::Apis::CloudkmsV1beta1::EncryptResponse

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

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



700
701
702
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 700

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

Instance Attribute Details

#ciphertextString

The encrypted data. Corresponds to the JSON property ciphertext

Returns:

  • (String)


698
699
700
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 698

def ciphertext
  @ciphertext
end

#nameString

The resource name of the CryptoKeyVersion used in encryption. Corresponds to the JSON property name

Returns:

  • (String)


693
694
695
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 693

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



705
706
707
708
# File 'generated/google/apis/cloudkms_v1beta1/classes.rb', line 705

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