Device name that the guest operating system will see. It is used by Runnable.volumes field to mount disks. So please specify the device_name if you want Batch to help mount the disk, and it should match the device_name field in volumes.
getNewDisk
Generated from protobuf field.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;
Device name that the guest operating system will see.
It is used by Runnable.volumes field to mount disks. So please specify
the device_name if you want Batch to help mount the disk, and it should
match the device_name field in volumes.
Returns
Type
Description
string
setDeviceName
Device name that the guest operating system will see.
It is used by Runnable.volumes field to mount disks. So please specify
the device_name if you want Batch to help mount the disk, and it should
match the device_name field in volumes.
[[["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 Batch V1 Client - Class AttachedDisk (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/cloud-batch/latest/V1.AllocationPolicy.AttachedDisk)\n- [1.2.1](/php/docs/reference/cloud-batch/1.2.1/V1.AllocationPolicy.AttachedDisk)\n- [1.1.7](/php/docs/reference/cloud-batch/1.1.7/V1.AllocationPolicy.AttachedDisk)\n- [1.0.3](/php/docs/reference/cloud-batch/1.0.3/V1.AllocationPolicy.AttachedDisk)\n- [0.17.0](/php/docs/reference/cloud-batch/0.17.0/V1.AllocationPolicy.AttachedDisk)\n- [0.16.10](/php/docs/reference/cloud-batch/0.16.10/V1.AllocationPolicy.AttachedDisk)\n- [0.15.0](/php/docs/reference/cloud-batch/0.15.0/V1.AllocationPolicy.AttachedDisk)\n- [0.14.0](/php/docs/reference/cloud-batch/0.14.0/V1.AllocationPolicy.AttachedDisk)\n- [0.13.1](/php/docs/reference/cloud-batch/0.13.1/V1.AllocationPolicy.AttachedDisk)\n- [0.12.1](/php/docs/reference/cloud-batch/0.12.1/V1.AllocationPolicy.AttachedDisk)\n- [0.11.3](/php/docs/reference/cloud-batch/0.11.3/V1.AllocationPolicy.AttachedDisk)\n- [0.10.0](/php/docs/reference/cloud-batch/0.10.0/V1.AllocationPolicy.AttachedDisk)\n- [0.9.0](/php/docs/reference/cloud-batch/0.9.0/V1.AllocationPolicy.AttachedDisk)\n- [0.8.0](/php/docs/reference/cloud-batch/0.8.0/V1.AllocationPolicy.AttachedDisk)\n- [0.7.0](/php/docs/reference/cloud-batch/0.7.0/V1.AllocationPolicy.AttachedDisk)\n- [0.6.0](/php/docs/reference/cloud-batch/0.6.0/V1.AllocationPolicy.AttachedDisk)\n- [0.5.2](/php/docs/reference/cloud-batch/0.5.2/V1.AllocationPolicy.AttachedDisk)\n- [0.4.0](/php/docs/reference/cloud-batch/0.4.0/V1.AllocationPolicy.AttachedDisk)\n- [0.3.0](/php/docs/reference/cloud-batch/0.3.0/V1.AllocationPolicy.AttachedDisk)\n- [0.2.2](/php/docs/reference/cloud-batch/0.2.2/V1.AllocationPolicy.AttachedDisk) \nReference documentation and code samples for the Google Cloud Batch V1 Client class AttachedDisk.\n\nA new or an existing persistent disk (PD) or a local ssd attached to a VM\ninstance.\n\nGenerated from protobuf message `google.cloud.batch.v1.AllocationPolicy.AttachedDisk`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Batch \\\\ V1 \\\\ AllocationPolicy\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getNewDisk\n\nGenerated from protobuf field `.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;`\n\n### hasNewDisk\n\n### setNewDisk\n\nGenerated from protobuf field `.google.cloud.batch.v1.AllocationPolicy.Disk new_disk = 1;`\n\n### getExistingDisk\n\nName of an existing PD.\n\n### hasExistingDisk\n\n### setExistingDisk\n\nName of an existing PD.\n\n### getDeviceName\n\nDevice name that the guest operating system will see.\n\nIt is used by Runnable.volumes field to mount disks. So please specify\nthe device_name if you want Batch to help mount the disk, and it should\nmatch the device_name field in volumes.\n\n### setDeviceName\n\nDevice name that the guest operating system will see.\n\nIt is used by Runnable.volumes field to mount disks. So please specify\nthe device_name if you want Batch to help mount the disk, and it should\nmatch the device_name field in volumes.\n\n### getAttached"]]