[[["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 Tpu V2 Client - Class AttachedDisk (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-tpu/latest/V2.AttachedDisk)\n- [2.1.1](/php/docs/reference/cloud-tpu/2.1.1/V2.AttachedDisk)\n- [2.0.0](/php/docs/reference/cloud-tpu/2.0.0/V2.AttachedDisk)\n- [1.4.7](/php/docs/reference/cloud-tpu/1.4.7/V2.AttachedDisk)\n- [1.3.2](/php/docs/reference/cloud-tpu/1.3.2/V2.AttachedDisk)\n- [1.2.0](/php/docs/reference/cloud-tpu/1.2.0/V2.AttachedDisk)\n- [1.1.1](/php/docs/reference/cloud-tpu/1.1.1/V2.AttachedDisk)\n- [1.0.5](/php/docs/reference/cloud-tpu/1.0.5/V2.AttachedDisk) \nReference documentation and code samples for the Google Cloud Tpu V2 Client class AttachedDisk.\n\nA node-attached disk resource.\n\nNext ID: 8;\n\nGenerated from protobuf message `google.cloud.tpu.v2.AttachedDisk`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Tpu \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSourceDisk\n\nSpecifies the full path to an existing disk.\n\nFor example: \"projects/my-project/zones/us-central1-c/disks/my-disk\".\n\n### setSourceDisk\n\nSpecifies the full path to an existing disk.\n\nFor example: \"projects/my-project/zones/us-central1-c/disks/my-disk\".\n\n### getMode\n\nThe mode in which to attach this disk.\n\nIf not specified, the default is READ_WRITE mode.\nOnly applicable to data_disks.\n\n### setMode\n\nThe mode in which to attach this disk.\n\nIf not specified, the default is READ_WRITE mode.\nOnly applicable to data_disks."]]