Google Cloud Notebooks V1 Client - Class LocalDiskInitializeParams (0.6.2)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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.

Returns
TypeDescription
string

setDescription

Optional. Provide this property when creating the disk.

Parameter
NameDescription
var string
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var string
Returns
TypeDescription
$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.

Returns
TypeDescription
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.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getDiskType

Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (PD_STANDARD).

Returns
TypeDescription
int

setDiskType

Input only. The type of the boot disk attached to this instance, defaults to standard persistent disk (PD_STANDARD).

Parameter
NameDescription
var int
Returns
TypeDescription
$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.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

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.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this