Compute V1 Client - Class DiskAsyncReplication (1.17.0)

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.

Parameter
Name Description
var string
Returns
Type Description
$this