RegionDisks
class RegionDisks extends Resource (View source)
The "regionDisks" collection of methods.
Typical usage is:
$computeService = new Google\Service\Compute(...);
$regionDisks = $computeService->regionDisks;
Methods
Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.
Bulk create a set of disks. (regionDisks.bulkInsert)
Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. (regionDisks.createSnapshot)
Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible.
Returns a specified regional persistent disk. (regionDisks.get)
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (regionDisks.getIamPolicy)
Retrieves the list of persistent disks contained within the specified region.
Removes resource policies from a regional disk.
Resizes the specified regional persistent disk. (regionDisks.resize)
Sets the access control policy on the specified resource. Replaces any existing policy. (regionDisks.setIamPolicy)
Sets the labels on the target regional disk. (regionDisks.setLabels)
Starts asynchronous replication. Must be invoked on the primary disk.
Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. (regionDisks.stopAsyncReplication)
Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.
Returns permissions that a caller has on the specified resource.
Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. (regionDisks.update)
Details
Operation
addResourcePolicies(string $project, string $region, string $disk, RegionDisksAddResourcePoliciesRequest $postBody, array $optParams = [])
Adds existing resource policies to a regional disk. You can only add one policy which will be applied to this disk for scheduling snapshot creation.
(regionDisks.addResourcePolicies)
Operation
bulkInsert(string $project, string $region, BulkInsertDiskResource $postBody, array $optParams = [])
Bulk create a set of disks. (regionDisks.bulkInsert)
Operation
createSnapshot(string $project, string $region, string $disk, Snapshot $postBody, array $optParams = [])
Creates a snapshot of a specified persistent disk. For regular snapshot creation, consider using snapshots.insert instead, as that method supports more features, such as creating snapshots in a project different from the source disk project. (regionDisks.createSnapshot)
Operation
delete(string $project, string $region, string $disk, array $optParams = [])
Deletes the specified regional persistent disk. Deleting a regional disk removes all the replicas of its data permanently and is irreversible.
However, deleting a disk does not delete any snapshots previously made from the disk. You must separately delete snapshots. (regionDisks.delete)
Disk
get(string $project, string $region, string $disk, array $optParams = [])
Returns a specified regional persistent disk. (regionDisks.get)
Policy
getIamPolicy(string $project, string $region, string $resource, array $optParams = [])
Gets the access control policy for a resource. May be empty if no such policy or resource exists. (regionDisks.getIamPolicy)
Operation
insert(string $project, string $region, Disk $postBody, array $optParams = [])
Creates a persistent regional disk in the specified project using the data included in the request. (regionDisks.insert)
DiskList
listRegionDisks(string $project, string $region, array $optParams = [])
Retrieves the list of persistent disks contained within the specified region.
(regionDisks.listRegionDisks)
Operation
removeResourcePolicies(string $project, string $region, string $disk, RegionDisksRemoveResourcePoliciesRequest $postBody, array $optParams = [])
Removes resource policies from a regional disk.
(regionDisks.removeResourcePolicies)
Operation
resize(string $project, string $region, string $disk, RegionDisksResizeRequest $postBody, array $optParams = [])
Resizes the specified regional persistent disk. (regionDisks.resize)
Policy
setIamPolicy(string $project, string $region, string $resource, RegionSetPolicyRequest $postBody, array $optParams = [])
Sets the access control policy on the specified resource. Replaces any existing policy. (regionDisks.setIamPolicy)
Operation
setLabels(string $project, string $region, string $resource, RegionSetLabelsRequest $postBody, array $optParams = [])
Sets the labels on the target regional disk. (regionDisks.setLabels)
Operation
startAsyncReplication(string $project, string $region, string $disk, RegionDisksStartAsyncReplicationRequest $postBody, array $optParams = [])
Starts asynchronous replication. Must be invoked on the primary disk.
(regionDisks.startAsyncReplication)
Operation
stopAsyncReplication(string $project, string $region, string $disk, array $optParams = [])
Stops asynchronous replication. Can be invoked either on the primary or on the secondary disk. (regionDisks.stopAsyncReplication)
Operation
stopGroupAsyncReplication(string $project, string $region, DisksStopGroupAsyncReplicationResource $postBody, array $optParams = [])
Stops asynchronous replication for a consistency group of disks. Can be invoked either in the primary or secondary scope.
(regionDisks.stopGroupAsyncReplication)
TestPermissionsResponse
testIamPermissions(string $project, string $region, string $resource, TestPermissionsRequest $postBody, array $optParams = [])
Returns permissions that a caller has on the specified resource.
(regionDisks.testIamPermissions)
Operation
update(string $project, string $region, string $disk, Disk $postBody, array $optParams = [])
Update the specified disk with the data included in the request. Update is performed only on selected fields included as part of update-mask. Only the following fields can be modified: user_license. (regionDisks.update)