Compute V1 Client - Class DiskAsyncReplication (1.14.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
NameDescription
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
TypeDescription
string

hasConsistencyGroupPolicy

clearConsistencyGroupPolicy

setConsistencyGroupPolicy

[Output Only] URL of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConsistencyGroupPolicyId

[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

Returns
TypeDescription
string

hasConsistencyGroupPolicyId

clearConsistencyGroupPolicyId

setConsistencyGroupPolicyId

[Output Only] ID of the DiskConsistencyGroupPolicy if replication was started on the disk as a member of a group.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this