Reference documentation and code samples for the Compute V1 Client class DiskAsyncReplication.
Generated from protobuf message google.cloud.compute.v1.DiskAsyncReplication
Namespace
Google \ Cloud \ Compute \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ consistency_group_policy
string
[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.
↳ consistency_group_policy_id
string
[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.
↳ disk
string
The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
↳ disk_id
string
[Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.
getConsistencyGroupPolicy
[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.
Returns
Type
Description
string
hasConsistencyGroupPolicy
clearConsistencyGroupPolicy
setConsistencyGroupPolicy
[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getConsistencyGroupPolicyId
[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.
Returns
Type
Description
string
hasConsistencyGroupPolicyId
clearConsistencyGroupPolicyId
setConsistencyGroupPolicyId
[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDisk
The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
Returns
Type
Description
string
hasDisk
clearDisk
setDisk
The other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - https://www.googleapis.com/compute/v1/projects/project/zones/zone /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDiskId
[Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.
Returns
Type
Description
string
hasDiskId
clearDiskId
setDiskId
[Output Only] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.
[[["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-08-28 UTC."],[],[],null,["# Compute V1 Client - Class DiskAsyncReplication (1.35.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.35.0 (latest)](/php/docs/reference/cloud-compute/latest/V1.DiskAsyncReplication)\n- [1.34.0](/php/docs/reference/cloud-compute/1.34.0/V1.DiskAsyncReplication)\n- [1.33.0](/php/docs/reference/cloud-compute/1.33.0/V1.DiskAsyncReplication)\n- [1.32.0](/php/docs/reference/cloud-compute/1.32.0/V1.DiskAsyncReplication)\n- [1.31.0](/php/docs/reference/cloud-compute/1.31.0/V1.DiskAsyncReplication)\n- [1.30.0](/php/docs/reference/cloud-compute/1.30.0/V1.DiskAsyncReplication)\n- [1.29.0](/php/docs/reference/cloud-compute/1.29.0/V1.DiskAsyncReplication)\n- [1.28.0](/php/docs/reference/cloud-compute/1.28.0/V1.DiskAsyncReplication)\n- [1.27.0](/php/docs/reference/cloud-compute/1.27.0/V1.DiskAsyncReplication)\n- [1.26.0](/php/docs/reference/cloud-compute/1.26.0/V1.DiskAsyncReplication)\n- [1.25.0](/php/docs/reference/cloud-compute/1.25.0/V1.DiskAsyncReplication)\n- [1.24.0](/php/docs/reference/cloud-compute/1.24.0/V1.DiskAsyncReplication)\n- [1.23.0](/php/docs/reference/cloud-compute/1.23.0/V1.DiskAsyncReplication)\n- [1.22.1](/php/docs/reference/cloud-compute/1.22.1/V1.DiskAsyncReplication)\n- [1.21.0](/php/docs/reference/cloud-compute/1.21.0/V1.DiskAsyncReplication)\n- [1.20.0](/php/docs/reference/cloud-compute/1.20.0/V1.DiskAsyncReplication)\n- [1.19.0](/php/docs/reference/cloud-compute/1.19.0/V1.DiskAsyncReplication)\n- [1.18.1](/php/docs/reference/cloud-compute/1.18.1/V1.DiskAsyncReplication)\n- [1.17.0](/php/docs/reference/cloud-compute/1.17.0/V1.DiskAsyncReplication)\n- [1.16.2](/php/docs/reference/cloud-compute/1.16.2/V1.DiskAsyncReplication)\n- [1.14.0](/php/docs/reference/cloud-compute/1.14.0/V1.DiskAsyncReplication)\n- [1.13.0](/php/docs/reference/cloud-compute/1.13.0/V1.DiskAsyncReplication)\n- [1.12.1](/php/docs/reference/cloud-compute/1.12.1/V1.DiskAsyncReplication)\n- [1.11.1](/php/docs/reference/cloud-compute/1.11.1/V1.DiskAsyncReplication)\n- [1.10.1](/php/docs/reference/cloud-compute/1.10.1/V1.DiskAsyncReplication)\n- [1.9.1](/php/docs/reference/cloud-compute/1.9.1/V1.DiskAsyncReplication)\n- [1.8.3](/php/docs/reference/cloud-compute/1.8.3/V1.DiskAsyncReplication)\n- [1.7.1](/php/docs/reference/cloud-compute/1.7.1/V1.DiskAsyncReplication)\n- [1.6.1](/php/docs/reference/cloud-compute/1.6.1/V1.DiskAsyncReplication)\n- [1.5.0](/php/docs/reference/cloud-compute/1.5.0/V1.DiskAsyncReplication) \nReference documentation and code samples for the Compute V1 Client class DiskAsyncReplication.\n\nGenerated from protobuf message `google.cloud.compute.v1.DiskAsyncReplication`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Compute \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getConsistencyGroupPolicy\n\n\\[Output Only\\] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.\n\n### hasConsistencyGroupPolicy\n\n### clearConsistencyGroupPolicy\n\n### setConsistencyGroupPolicy\n\n\\[Output Only\\] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.\n\n### getConsistencyGroupPolicyId\n\n\\[Output Only\\] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.\n\n### hasConsistencyGroupPolicyId\n\n### clearConsistencyGroupPolicyId\n\n### setConsistencyGroupPolicyId\n\n\\[Output Only\\] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.\n\n### getDisk\n\nThe other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - \u003chttps://www.googleapis.com/compute/v1/projects/project/zones/zone\u003e /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk\n\n### hasDisk\n\n### clearDisk\n\n### setDisk\n\nThe other disk asynchronously replicated to or from the current disk. You can provide this as a partial or full URL to the resource. For example, the following are valid values: - \u003chttps://www.googleapis.com/compute/v1/projects/project/zones/zone\u003e /disks/disk - projects/project/zones/zone/disks/disk - zones/zone/disks/disk\n\n### getDiskId\n\n\\[Output Only\\] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used.\n\n### hasDiskId\n\n### clearDiskId\n\n### setDiskId\n\n\\[Output Only\\] The unique ID of the other disk asynchronously replicated to or from the current disk. This value identifies the exact disk that was used to create this replication. For example, if you started replicating the persistent disk from a disk that was later deleted and recreated under the same name, the disk ID would identify the exact version of the disk that was used."]]