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

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
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getDiskSizeGb

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

Returns
Type Description
int|string

setDiskSizeGb

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

Parameter
Name Description
var int|string
Returns
Type Description
$this