Class: Google::Apis::TpuV2alpha1::BootDiskConfig

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

Overview

Boot disk configurations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BootDiskConfig

Returns a new instance of BootDiskConfig.



181
182
183
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 181

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

Instance Attribute Details

#customer_encryption_keyGoogle::Apis::TpuV2alpha1::CustomerEncryptionKey

Customer's encryption key. Corresponds to the JSON property customerEncryptionKey



173
174
175
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 173

def customer_encryption_key
  @customer_encryption_key
end

#enable_confidential_computeBoolean Also known as: enable_confidential_compute?

Optional. Whether the boot disk will be created with confidential compute mode. Corresponds to the JSON property enableConfidentialCompute

Returns:

  • (Boolean)


178
179
180
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 178

def enable_confidential_compute
  @enable_confidential_compute
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



186
187
188
189
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 186

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