Class LocalDiskInitializeParams (1.6.1)

LocalDiskInitializeParams(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

NameDescription
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.
disk_type google.cloud.notebooks_v1.types.LocalDiskInitializeParams.DiskType
Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (PD_STANDARD).
labels 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.

Classes

DiskType

DiskType(value)

Possible disk types.

Values: DISK_TYPE_UNSPECIFIED (0): Disk type not set. PD_STANDARD (1): Standard persistent disk type. PD_SSD (2): SSD persistent disk type. PD_BALANCED (3): Balanced persistent disk type. PD_EXTREME (4): Extreme persistent disk type.

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.