Reference documentation and code samples for the Google Cloud Dataflow V1beta3 Client class Disk.
Describes the data disk used by a workflow job.
Generated from protobuf messagegoogle.dataflow.v1beta3.Disk
Namespace
Google \ Cloud \ Dataflow \ V1beta3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ size_gb
int
Size of disk in GB. If zero or unspecified, the service will attempt to choose a reasonable default.
↳ disk_type
string
Disk storage type, as defined by Google Compute Engine. This must be a disk type appropriate to the project and zone in which the workers will run. If unknown or unspecified, the service will attempt to choose a reasonable default. For example, the standard persistent disk type is a resource name typically ending in "pd-standard". If SSD persistent disks are available, the resource name typically ends with "pd-ssd". The actual valid values are defined the Google Compute Engine API, not by the Cloud Dataflow API; consult the Google Compute Engine documentation for more information about determining the set of available disk types for a particular project and zone. Google Compute Engine Disk types are local to a particular project in a particular zone, and so the resource name will typically look something like this: compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
↳ mount_point
string
Directory in a VM where disk is mounted.
getSizeGb
Size of disk in GB. If zero or unspecified, the service will
attempt to choose a reasonable default.
Returns
Type
Description
int
setSizeGb
Size of disk in GB. If zero or unspecified, the service will
attempt to choose a reasonable default.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getDiskType
Disk storage type, as defined by Google Compute Engine. This
must be a disk type appropriate to the project and zone in which
the workers will run. If unknown or unspecified, the service
will attempt to choose a reasonable default.
For example, the standard persistent disk type is a resource name
typically ending in "pd-standard". If SSD persistent disks are
available, the resource name typically ends with "pd-ssd". The
actual valid values are defined the Google Compute Engine API,
not by the Cloud Dataflow API; consult the Google Compute Engine
documentation for more information about determining the set of
available disk types for a particular project and zone.
Google Compute Engine Disk types are local to a particular
project in a particular zone, and so the resource name will
typically look something like this:
compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
Returns
Type
Description
string
setDiskType
Disk storage type, as defined by Google Compute Engine. This
must be a disk type appropriate to the project and zone in which
the workers will run. If unknown or unspecified, the service
will attempt to choose a reasonable default.
For example, the standard persistent disk type is a resource name
typically ending in "pd-standard". If SSD persistent disks are
available, the resource name typically ends with "pd-ssd". The
actual valid values are defined the Google Compute Engine API,
not by the Cloud Dataflow API; consult the Google Compute Engine
documentation for more information about determining the set of
available disk types for a particular project and zone.
Google Compute Engine Disk types are local to a particular
project in a particular zone, and so the resource name will
typically look something like this:
compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dataflow V1beta3 Client - Class Disk (0.8.2)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.2 (latest)](/php/docs/reference/cloud-dataflow/latest/V1beta3.Disk)\n- [0.8.1](/php/docs/reference/cloud-dataflow/0.8.1/V1beta3.Disk)\n- [0.7.1](/php/docs/reference/cloud-dataflow/0.7.1/V1beta3.Disk)\n- [0.6.6](/php/docs/reference/cloud-dataflow/0.6.6/V1beta3.Disk)\n- [0.5.1](/php/docs/reference/cloud-dataflow/0.5.1/V1beta3.Disk)\n- [0.4.1](/php/docs/reference/cloud-dataflow/0.4.1/V1beta3.Disk)\n- [0.3.10](/php/docs/reference/cloud-dataflow/0.3.10/V1beta3.Disk) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Dataflow V1beta3 Client class Disk.\n\nDescribes the data disk used by a workflow job.\n\nGenerated from protobuf message `google.dataflow.v1beta3.Disk`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dataflow \\\\ V1beta3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSizeGb\n\nSize of disk in GB. If zero or unspecified, the service will\nattempt to choose a reasonable default.\n\n### setSizeGb\n\nSize of disk in GB. If zero or unspecified, the service will\nattempt to choose a reasonable default.\n\n### getDiskType\n\nDisk storage type, as defined by Google Compute Engine. This\nmust be a disk type appropriate to the project and zone in which\nthe workers will run. If unknown or unspecified, the service\nwill attempt to choose a reasonable default.\n\nFor example, the standard persistent disk type is a resource name\ntypically ending in \"pd-standard\". If SSD persistent disks are\navailable, the resource name typically ends with \"pd-ssd\". The\nactual valid values are defined the Google Compute Engine API,\nnot by the Cloud Dataflow API; consult the Google Compute Engine\ndocumentation for more information about determining the set of\navailable disk types for a particular project and zone.\nGoogle Compute Engine Disk types are local to a particular\nproject in a particular zone, and so the resource name will\ntypically look something like this:\ncompute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard\n\n### setDiskType\n\nDisk storage type, as defined by Google Compute Engine. This\nmust be a disk type appropriate to the project and zone in which\nthe workers will run. If unknown or unspecified, the service\nwill attempt to choose a reasonable default.\n\nFor example, the standard persistent disk type is a resource name\ntypically ending in \"pd-standard\". If SSD persistent disks are\navailable, the resource name typically ends with \"pd-ssd\". The\nactual valid values are defined the Google Compute Engine API,\nnot by the Cloud Dataflow API; consult the Google Compute Engine\ndocumentation for more information about determining the set of\navailable disk types for a particular project and zone.\nGoogle Compute Engine Disk types are local to a particular\nproject in a particular zone, and so the resource name will\ntypically look something like this:\ncompute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard\n\n### getMountPoint\n\nDirectory in a VM where disk is mounted.\n\n### setMountPoint\n\nDirectory in a VM where disk is mounted."]]