Reference documentation and code samples for the Google Cloud Notebooks V1 Client class LocalDiskInitializeParams.
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.
Generated from protobuf message google.cloud.notebooks.v1.LocalDiskInitializeParams
Namespace
Google \ Cloud \ Notebooks \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ description
string
Optional. Provide this property when creating the disk.
↳ disk_name
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.
↳ disk_size_gb
int|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.
↳ disk_type
int
Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk ( PD_STANDARD
).
↳ labels
array| Google\Protobuf\Internal\MapField
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.
getDescription
Optional. Provide this property when creating the disk.
string
setDescription
Optional. Provide this property when creating the disk.
var
string
$this
getDiskName
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.
string
setDiskName
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.
var
string
$this
getDiskSizeGb
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.
int|string
setDiskSizeGb
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.
var
int|string
$this
getDiskType
Input only. The type of the boot disk attached to this instance, defaults to
standard persistent disk ( PD_STANDARD
).
int
setDiskType
Input only. The type of the boot disk attached to this instance, defaults to
standard persistent disk ( PD_STANDARD
).
var
int
$this
getLabels
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.
setLabels
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.
$this