class Google::Apis::ComputeBeta::CustomerEncryptionKey

Represents a customer-supplied encryption key

Attributes

raw_key[RW]

Specifies a 256-bit customer-supplied encryption key, encoded in base64 to either encrypt or decrypt this resource. Corresponds to the JSON property `rawKey` @return [String]

rsa_encrypted_key[RW]

Specifies a base64 encoded, RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource. The key must meet the following requirements before you can provide it to Compute Engine:

  • The key is wrapped using a RSA public key certificate provided by Google.

  • After being wrapped, the key must be encoded in base64 encoding. Get the

RSA public key certificate provided by Google at: cloud-certs.storage.googleapis.com/google-cloud-csek-ingress.pem Corresponds to the JSON property `rsaEncryptedKey` @return [String]

sha256[RW]
Output only

The base64 encoded SHA-256 hash of the customer-supplied

encryption key that protects this resource. Corresponds to the JSON property `sha256` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/compute_beta/classes.rb, line 1263
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/compute_beta/classes.rb, line 1268
def update!(**args)
  @raw_key = args[:raw_key] if args.key?(:raw_key)
  @rsa_encrypted_key = args[:rsa_encrypted_key] if args.key?(:rsa_encrypted_key)
  @sha256 = args[:sha256] if args.key?(:sha256)
end