Reference documentation and code samples for the Google Cloud Life Sciences V2beta Client class ExistingDisk.
Configuration for an existing disk to be attached to the VM.
Generated from protobuf messagegoogle.cloud.lifesciences.v2beta.ExistingDisk
Namespace
Google \ Cloud \ LifeSciences \ V2beta
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ disk
string
Ifdiskcontains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. Ifdiskdoes not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the formzones/<zone>/disks/<disk>, where<zone>is the zone in which the instance is allocated. The disk must be ext4 formatted. If allMountreferences to this disk have theread_onlyflag set to true, the disk will be attached inread-onlymode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared.
getDisk
Ifdiskcontains slashes, the Cloud Life Sciences API assumes that it is
a complete URL for the disk. Ifdiskdoes not contain slashes, the Cloud
Life Sciences API assumes that the disk is a zonal disk and a URL will be
generated of the formzones/<zone>/disks/<disk>, where<zone>is the
zone in which the instance is allocated. The disk must be ext4 formatted.
If allMountreferences to this disk have theread_onlyflag set to
true, the disk will be attached inread-onlymode and can be shared with
other instances. Otherwise, the disk will be available for writing but
cannot be shared.
Returns
Type
Description
string
setDisk
Ifdiskcontains slashes, the Cloud Life Sciences API assumes that it is
a complete URL for the disk. Ifdiskdoes not contain slashes, the Cloud
Life Sciences API assumes that the disk is a zonal disk and a URL will be
generated of the formzones/<zone>/disks/<disk>, where<zone>is the
zone in which the instance is allocated. The disk must be ext4 formatted.
If allMountreferences to this disk have theread_onlyflag set to
true, the disk will be attached inread-onlymode and can be shared with
other instances. Otherwise, the disk will be available for writing but
cannot be shared.
[[["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-09 UTC."],[],[],null,["# Google Cloud Life Sciences V2beta Client - Class ExistingDisk (0.7.3)\n\nVersion latestkeyboard_arrow_down\n\n- [0.7.3 (latest)](/php/docs/reference/cloud-life-sciences/latest/V2beta.ExistingDisk)\n- [0.7.2](/php/docs/reference/cloud-life-sciences/0.7.2/V2beta.ExistingDisk)\n- [0.6.8](/php/docs/reference/cloud-life-sciences/0.6.8/V2beta.ExistingDisk)\n- [0.5.4](/php/docs/reference/cloud-life-sciences/0.5.4/V2beta.ExistingDisk)\n- [0.4.0](/php/docs/reference/cloud-life-sciences/0.4.0/V2beta.ExistingDisk)\n- [0.3.5](/php/docs/reference/cloud-life-sciences/0.3.5/V2beta.ExistingDisk) \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 Life Sciences V2beta Client class ExistingDisk.\n\nConfiguration for an existing disk to be attached to the VM.\n\nGenerated from protobuf message `google.cloud.lifesciences.v2beta.ExistingDisk`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ LifeSciences \\\\ V2beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDisk\n\nIf `disk` contains slashes, the Cloud Life Sciences API assumes that it is\na complete URL for the disk. If `disk` does not contain slashes, the Cloud\nLife Sciences API assumes that the disk is a zonal disk and a URL will be\ngenerated of the form `zones/\u003czone\u003e/disks/\u003cdisk\u003e`, where `\u003czone\u003e` is the\nzone in which the instance is allocated. The disk must be ext4 formatted.\n\nIf all `Mount` references to this disk have the `read_only` flag set to\ntrue, the disk will be attached in `read-only` mode and can be shared with\nother instances. Otherwise, the disk will be available for writing but\ncannot be shared.\n\n### setDisk\n\nIf `disk` contains slashes, the Cloud Life Sciences API assumes that it is\na complete URL for the disk. If `disk` does not contain slashes, the Cloud\nLife Sciences API assumes that the disk is a zonal disk and a URL will be\ngenerated of the form `zones/\u003czone\u003e/disks/\u003cdisk\u003e`, where `\u003czone\u003e` is the\nzone in which the instance is allocated. The disk must be ext4 formatted.\n\nIf all `Mount` references to this disk have the `read_only` flag set to\ntrue, the disk will be attached in `read-only` mode and can be shared with\nother instances. Otherwise, the disk will be available for writing but\ncannot be shared."]]