Google Cloud Ai Platform V1 Client - Class PersistentDiskSpec (1.41.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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月08日 UTC.