Google Cloud Ai Platform V1 Client - Class PersistentDiskSpec (0.26.2)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class PersistentDiskSpec.

Represents the spec of [persistent disk][https://cloud.google.com/compute/docs/disks/persistent-disks] options.

Generated from protobuf message google.cloud.aiplatform.v1.PersistentDiskSpec

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ disk_type string

Type of the disk (default is "pd-standard"). Valid values: "pd-ssd" (Persistent Disk Solid State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent Disk) "pd-extreme" (Extreme Persistent Disk)

↳ disk_size_gb int|string

Size in GB of the disk (default is 100GB).

getDiskType

Type of the disk (default is "pd-standard").

Valid values: "pd-ssd" (Persistent Disk Solid State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent Disk) "pd-extreme" (Extreme Persistent Disk)

Returns
TypeDescription
string

setDiskType

Type of the disk (default is "pd-standard").

Valid values: "pd-ssd" (Persistent Disk Solid State Drive) "pd-standard" (Persistent Disk Hard Disk Drive) "pd-balanced" (Balanced Persistent Disk) "pd-extreme" (Extreme Persistent Disk)

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDiskSizeGb

Size in GB of the disk (default is 100GB).

Returns
TypeDescription
int|string

setDiskSizeGb

Size in GB of the disk (default is 100GB).

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this