class RegionDisks extends Resource (View source)

The "regionDisks" collection of methods.

Typical usage is:

 $computeService = new Google\Service\Compute(...);
 $regionDisks = $computeService->regionDisks;

Methods

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.

bulkInsert(string $project, string $region, BulkInsertDiskResource $postBody, array $optParams = [])

Bulk create a set of disks. (regionDisks.bulkInsert)

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)

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.

get(string $project, string $region, string $disk, array $optParams = [])

Returns a specified regional persistent disk. (regionDisks.get)

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)

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)

listRegionDisks(string $project, string $region, array $optParams = [])

Retrieves the list of persistent disks contained within the specified region.

removeResourcePolicies(string $project, string $region, string $disk, RegionDisksRemoveResourcePoliciesRequest $postBody, array $optParams = [])

Removes resource policies from a regional disk.

resize(string $project, string $region, string $disk, RegionDisksResizeRequest $postBody, array $optParams = [])

Resizes the specified regional persistent disk. (regionDisks.resize)

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)

setLabels(string $project, string $region, string $resource, RegionSetLabelsRequest $postBody, array $optParams = [])

Sets the labels on the target regional disk. (regionDisks.setLabels)

startAsyncReplication(string $project, string $region, string $disk, RegionDisksStartAsyncReplicationRequest $postBody, array $optParams = [])

Starts asynchronous replication. Must be invoked on the primary disk.

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)

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.

testIamPermissions(string $project, string $region, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

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)

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)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $disk

The disk name for this request.

RegionDisksAddResourcePoliciesRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation bulkInsert(string $project, string $region, BulkInsertDiskResource $postBody, array $optParams = [])

Bulk create a set of disks. (regionDisks.bulkInsert)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

BulkInsertDiskResource $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

string $disk

Name of the regional persistent disk to snapshot.

Snapshot $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

string $disk

Name of the regional persistent disk to delete.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Disk get(string $project, string $region, string $disk, array $optParams = [])

Returns a specified regional persistent disk. (regionDisks.get)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

string $disk

Name of the regional persistent disk to return.

array $optParams

Optional parameters.

Return Value

Disk

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

Disk $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

DiskList listRegionDisks(string $project, string $region, array $optParams = [])

Retrieves the list of persistent disks contained within the specified region.

(regionDisks.listRegionDisks)

Parameters

string $project

Project ID for this request.

string $region

Name of the region for this request.

array $optParams

Optional parameters.

Return Value

DiskList

Exceptions

Exception

Operation removeResourcePolicies(string $project, string $region, string $disk, RegionDisksRemoveResourcePoliciesRequest $postBody, array $optParams = [])

Removes resource policies from a regional disk.

(regionDisks.removeResourcePolicies)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $disk

The disk name for this request.

RegionDisksRemoveResourcePoliciesRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation resize(string $project, string $region, string $disk, RegionDisksResizeRequest $postBody, array $optParams = [])

Resizes the specified regional persistent disk. (regionDisks.resize)

Parameters

string $project

The project ID for this request.

string $region

Name of the region for this request.

string $disk

Name of the regional persistent disk.

RegionDisksResizeRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

RegionSetPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

Operation setLabels(string $project, string $region, string $resource, RegionSetLabelsRequest $postBody, array $optParams = [])

Sets the labels on the target regional disk. (regionDisks.setLabels)

Parameters

string $project

Project ID for this request.

string $region

The region for this request.

string $resource

Name or id of the resource for this request.

RegionSetLabelsRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Operation startAsyncReplication(string $project, string $region, string $disk, RegionDisksStartAsyncReplicationRequest $postBody, array $optParams = [])

Starts asynchronous replication. Must be invoked on the primary disk.

(regionDisks.startAsyncReplication)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $disk

The name of the persistent disk.

RegionDisksStartAsyncReplicationRequest $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $disk

The name of the persistent disk.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request. This must be the region of the primary or secondary disks in the consistency group.

DisksStopGroupAsyncReplicationResource $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

TestPermissionsResponse testIamPermissions(string $project, string $region, string $resource, TestPermissionsRequest $postBody, array $optParams = [])

Returns permissions that a caller has on the specified resource.

(regionDisks.testIamPermissions)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $resource

Name or id of the resource for this request.

TestPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestPermissionsResponse

Exceptions

Exception

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)

Parameters

string $project

Project ID for this request.

string $region

The name of the region for this request.

string $disk

The disk name for this request.

Disk $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception