InitializeParams class

boot_disk.initialize_params block. Creates a new disk inline at instance-create time. Mutually exclusive with bootDisk.source (which attaches an existing disk).

Annotations
  • @immutable

Constructors

InitializeParams({String? image, num? size, String? type, Map<String, String>? labels, String? kmsKeySelfLink, Map<String, String>? resourceManagerTags, bool? enableConfidentialCompute, num? provisionedIops, num? provisionedThroughput})
const

Properties

enableConfidentialCompute bool?
Enables confidential compute on this boot disk. Pair with ConfidentialInstanceConfig for guest-side enablement.
final
hashCode int
The hash code for this object.
no setterinherited
image String?
Image family or self-link (e.g. 'debian-cloud/debian-12' or a project-scoped image self-link). Optional only when bootDisk.source is set elsewhere.
final
KMS CryptoKey self-link to encrypt the disk. Mutually exclusive with BootDisk.diskEncryptionKeyRaw.
final
labels Map<String, String>?
Disk labels.
final
provisionedIops num?
Provisioned IOPS (Hyperdisk family only).
final
provisionedThroughput num?
Provisioned throughput in MB/s (Hyperdisk family only).
final
resourceManagerTags Map<String, String>?
Resource Manager tags applied at disk-create time (tagKeys/{id} -> tagValues/{id}).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size num?
Disk size in GB. GCP infers a reasonable default from the image when unset.
final
type String?
PD type, e.g. 'pd-ssd', 'pd-balanced', 'hyperdisk-balanced'.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toArgMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited