LocalDiskInitializeParams class

Input only. Specifies the parameters for a new disk that will be created alongside the new instance. Use initialization parameters to create boot disks or local SSDs attached to the new runtime. This property is mutually exclusive with the source property; you can only define one or the other, but not both.

Constructors

LocalDiskInitializeParams({Input<String>? description, Input<String>? diskName, Input<String>? diskSizeGb, Input<LocalDiskInitializeParamsDiskType>? diskType, Input<Map<String, String>>? labels})
Creates a new LocalDiskInitializeParams. description Optional. Provide this property when creating the disk. diskName Optional. Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated. diskSizeGb Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB. diskType Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (PD_STANDARD). labels Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
const
LocalDiskInitializeParams.fromMap(Map<String, dynamic> map)
factory

Properties

description → Input<String>?
Optional. Provide this property when creating the disk.
final
diskName → Input<String>?
Optional. Specifies the disk name. If not specified, the default is to use the name of the instance. If the disk with the instance name exists already in the given zone/region, a new name will be automatically generated.
final
diskSizeGb → Input<String>?
Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk will be the same size as the image (usually 10GB). If specified, the size must be equal to or larger than 10GB. Default 100 GB.
final
diskType → Input<LocalDiskInitializeParamsDiskType>?
Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (PD_STANDARD).
final
hashCode → int
The hash code for this object.
no setterinherited
labels → Input<Map<String, String>>?
Optional. Labels to apply to this disk. These can be later modified by the disks.setLabels method. This field is only applicable for persistent disks.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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