Google Cloud Notebooks V2 Client - Class DataDisk (0.6.2)

Reference documentation and code samples for the Google Cloud Notebooks V2 Client class DataDisk.

An instance-attached disk resource.

Generated from protobuf message google.cloud.notebooks.v2.DataDisk

Namespace

Google \ Cloud \ Notebooks \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ disk_size_gb int|string

Optional. The size of the disk in GB attached to this VM instance, up to a maximum of 64000 GB (64 TB). If not specified, this defaults to 100.

↳ disk_type int

Optional. Input only. Indicates the type of the disk.

↳ disk_encryption int

Optional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.

↳ kms_key string

Optional. Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id} Learn more about using your own encryption keys.

getDiskSizeGb

Optional. The size of the disk in GB attached to this VM instance, up to a maximum of 64000 GB (64 TB). If not specified, this defaults to 100.

Returns
TypeDescription
int|string

setDiskSizeGb

Optional. The size of the disk in GB attached to this VM instance, up to a maximum of 64000 GB (64 TB). If not specified, this defaults to 100.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getDiskType

Optional. Input only. Indicates the type of the disk.

Returns
TypeDescription
int

setDiskType

Optional. Input only. Indicates the type of the disk.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDiskEncryption

Optional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.

Returns
TypeDescription
int

setDiskEncryption

Optional. Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getKmsKey

Optional. Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id} Learn more about using your own encryption keys.

Returns
TypeDescription
string

setKmsKey

Optional. Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption is CMEK. Format: projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id} Learn more about using your own encryption keys.

Parameter
NameDescription
var string
Returns
TypeDescription
$this