Class: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomerEncryptionKeyProtectedDisk

Returns a new instance of CustomerEncryptionKeyProtectedDisk.



5483
5484
5485
# File 'lib/google/apis/compute_beta/classes.rb', line 5483

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

Instance Attribute Details

#disk_encryption_keyGoogle::Apis::ComputeBeta::CustomerEncryptionKey

Decrypts data associated with the disk with a customer-supplied encryption key. Corresponds to the JSON property diskEncryptionKey



5475
5476
5477
# File 'lib/google/apis/compute_beta/classes.rb', line 5475

def disk_encryption_key
  @disk_encryption_key
end

#sourceString

Specifies a valid partial or full URL to an existing Persistent Disk resource. This field is only applicable for persistent disks. Corresponds to the JSON property source

Returns:

  • (String)


5481
5482
5483
# File 'lib/google/apis/compute_beta/classes.rb', line 5481

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5488
5489
5490
5491
# File 'lib/google/apis/compute_beta/classes.rb', line 5488

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