Class: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk
- Defined in:
- generated/google/apis/compute_beta/classes.rb,
generated/google/apis/compute_beta/representations.rb,
generated/google/apis/compute_beta/representations.rb
Instance Attribute Summary collapse
-
#disk_encryption_key ⇒ Google::Apis::ComputeBeta::CustomerEncryptionKey
Represents a customer-supplied encryption key Corresponds to the JSON property
diskEncryptionKey
. -
#source ⇒ String
Specifies a valid partial or full URL to an existing Persistent Disk resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomerEncryptionKeyProtectedDisk
constructor
A new instance of CustomerEncryptionKeyProtectedDisk.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomerEncryptionKeyProtectedDisk
Returns a new instance of CustomerEncryptionKeyProtectedDisk
4233 4234 4235 |
# File 'generated/google/apis/compute_beta/classes.rb', line 4233 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disk_encryption_key ⇒ Google::Apis::ComputeBeta::CustomerEncryptionKey
Represents a customer-supplied encryption key
Corresponds to the JSON property diskEncryptionKey
4225 4226 4227 |
# File 'generated/google/apis/compute_beta/classes.rb', line 4225 def disk_encryption_key @disk_encryption_key end |
#source ⇒ String
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
4231 4232 4233 |
# File 'generated/google/apis/compute_beta/classes.rb', line 4231 def source @source end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4238 4239 4240 4241 |
# File 'generated/google/apis/compute_beta/classes.rb', line 4238 def update!(**args) @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) @source = args[:source] if args.key?(:source) end |