Class: Google::Compute::Data::InstaDiskEncryKeyApi

Inherits:
InstaDiskEncryKey show all
Defined in:
lib/google/compute/property/instance_disk_encryption_key.rb

Overview

Manages a InstaDiskEncryKey nested object Data is coming from the GCP API

Instance Attribute Summary

Attributes inherited from InstaDiskEncryKey

#raw_key, #rsa_encrypted_key, #sha256

Instance Method Summary collapse

Methods inherited from InstaDiskEncryKey

#<=>, #==, #to_json, #to_s

Constructor Details

#initialize(args) ⇒ InstaDiskEncryKeyApi

Returns a new instance of InstaDiskEncryKeyApi.



90
91
92
93
94
95
# File 'lib/google/compute/property/instance_disk_encryption_key.rb', line 90

def initialize(args)
  @raw_key = Google::Compute::Property::String.api_munge(args['rawKey'])
  @rsa_encrypted_key =
    Google::Compute::Property::String.api_munge(args['rsaEncryptedKey'])
  @sha256 = Google::Compute::Property::String.api_munge(args['sha256'])
end