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.
Attributes
Name
Description
description
str
Optional. Provide this property when creating
the disk.
disk_name
str
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.
disk_size_gb
int
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.
MutableMapping[str, str]
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class LocalDiskInitializeParams (1.13.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.13.3 (latest)](/python/docs/reference/notebooks/latest/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.13.1](/python/docs/reference/notebooks/1.13.1/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.12.0](/python/docs/reference/notebooks/1.12.0/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.11.1](/python/docs/reference/notebooks/1.11.1/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.10.5](/python/docs/reference/notebooks/1.10.5/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.9.0](/python/docs/reference/notebooks/1.9.0/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.8.0](/python/docs/reference/notebooks/1.8.0/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.7.1](/python/docs/reference/notebooks/1.7.1/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.6.1](/python/docs/reference/notebooks/1.6.1/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.5.1](/python/docs/reference/notebooks/1.5.1/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.4.4](/python/docs/reference/notebooks/1.4.4/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.3.2](/python/docs/reference/notebooks/1.3.2/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.2.1](/python/docs/reference/notebooks/1.2.1/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.1.1](/python/docs/reference/notebooks/1.1.1/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [1.0.0](/python/docs/reference/notebooks/1.0.0/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [0.4.3](/python/docs/reference/notebooks/0.4.3/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [0.3.2](/python/docs/reference/notebooks/0.3.2/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [0.2.0](/python/docs/reference/notebooks/0.2.0/google.cloud.notebooks_v1.types.LocalDiskInitializeParams)\n- [0.1.2](/python/docs/reference/notebooks/0.1.2/google.cloud.notebooks_v1.types.LocalDiskInitializeParams) \n\n LocalDiskInitializeParams(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nInput only. Specifies the parameters for a new disk that will\nbe created alongside the new instance. Use initialization\nparameters to create boot disks or local SSDs attached to the\nnew runtime.\nThis property is mutually exclusive with the source property;\nyou can only define one or the other, but not both.\n\nClasses\n-------\n\n### DiskType\n\n DiskType(value)\n\nPossible disk types.\n\n### LabelsEntry\n\n LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe abstract base class for a message."]]