Class: Google::Apis::ComputeAlpha::ShieldedInstanceConfig

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

Overview

A set of Shielded Instance options.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShieldedInstanceConfig

Returns a new instance of ShieldedInstanceConfig.



43266
43267
43268
# File 'lib/google/apis/compute_alpha/classes.rb', line 43266

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

Instance Attribute Details

#enable_integrity_monitoringBoolean Also known as: enable_integrity_monitoring?

Defines whether the instance has integrity monitoring enabled. Enabled by default. Corresponds to the JSON property enableIntegrityMonitoring

Returns:

  • (Boolean)


43251
43252
43253
# File 'lib/google/apis/compute_alpha/classes.rb', line 43251

def enable_integrity_monitoring
  @enable_integrity_monitoring
end

#enable_secure_bootBoolean Also known as: enable_secure_boot?

Defines whether the instance has Secure Boot enabled. Disabled by default. Corresponds to the JSON property enableSecureBoot

Returns:

  • (Boolean)


43257
43258
43259
# File 'lib/google/apis/compute_alpha/classes.rb', line 43257

def enable_secure_boot
  @enable_secure_boot
end

#enable_vtpmBoolean Also known as: enable_vtpm?

Defines whether the instance has the vTPM enabled. Enabled by default. Corresponds to the JSON property enableVtpm

Returns:

  • (Boolean)


43263
43264
43265
# File 'lib/google/apis/compute_alpha/classes.rb', line 43263

def enable_vtpm
  @enable_vtpm
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



43271
43272
43273
43274
43275
# File 'lib/google/apis/compute_alpha/classes.rb', line 43271

def update!(**args)
  @enable_integrity_monitoring = args[:enable_integrity_monitoring] if args.key?(:enable_integrity_monitoring)
  @enable_secure_boot = args[:enable_secure_boot] if args.key?(:enable_secure_boot)
  @enable_vtpm = args[:enable_vtpm] if args.key?(:enable_vtpm)
end